yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] aarelovich:
Hi:

I'm very new at programming in Android (I have programmed extensively PC applications and used Java) and I'm at a loss. I want to create a application that uses fragments. I want to create the Fragment Programaticaly (as the introduction says on Android Developer page) buy my application keeps crashing and I have no Idea as to why.

Here is the code for my main activity:

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

FragmentManager fmanager = getFragmentManager();
FragmentTransaction ftransaction = fmanager.beginTransaction();
FileBrowser fbrowser = new FileBrowser();
ftransaction.add(R.layout.main,fbrowser, "FileBrowser");
ftransaction.commit();

fbrowser.test();
}

And here is the code for FileBrowser:

public class FileBrowser extends ListFragment {

public void test(){
System.err.println("Entre a test!!!");
String[] MyList = {"HOla","Mundo","De","Las","Listas"};
if (getActivity() == null){
System.err.println("I get a NULL Activity");
}
else{
System.err.println("No NULL Activity Attempting to Create an Adapter");
ArrayAdapter<String> aa = new ArrayAdapter<String>(getActivity(), R.layout.file_row, MyList);
}
//setListAdapter(new ArrayAdapter<String>(this.getActivity(), R.layout.file_row, MyList));
}

}

All I wan to do to start is to print the string list MyList in the fragment. However I the program crashes and I get this error:

06-09 19:25:42.920: ERROR/AndroidRuntime(26064): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ccr/com.ccr.Main}: java.lang.IllegalArgumentException: No view found for id 0x7f030001 for fragment FileBrowser{4077d558 #0 id=0x7f030001 FileBrowser}

Thanks for any help!
[HD2 Android Q&A, Help & Troubleshooting and Genera] dumon:
Is there a way to decrease the minimum back-light level on a CM7 ROM?

I always prefer to keep back-light level as low as possible and not using automatic setting for it.

Recently I've tried one of the MIUI roms and noticed that the lowest back-light level on it is way dimmer that on CM7 ROMs. It allowed me to noticeably save on battery.

So is there any way to do it on CM7 based ROMs?
[HD2 Android Q&A, Help & Troubleshooting and Genera] j4n87:
http://xdaforums.com/showpost.php?p=14089317&postcount=10594

Tried and tested with typhoon rom. After usind this lib the cm7 autobacklight level should woork correctly..but therefore some LED Notification will behave a bit strange...you will be able to life with that. (=
[HD2 Android Q&A, Help & Troubleshooting and Genera] p107r0:
not 100% as I use a CM mod (AMA), but check Settings / CM Settings / Display/ Automatic Brightness / Edit Other Levels
[HD2 Android Q&A, Help & Troubleshooting and Genera] dumon:
OK. I've tried it and saw absolutely no difference in minimum backlight level.

When I move the backlight level slider all the way down it is still on the same level

as with older libs. And it did break notification lights.

As I've mentioned before I am not using autobacklight at all. I just want to have manual backlight level go much lower.
[HD2 Android Q&A, Help & Troubleshooting and Genera] huggs:
There is a free app in the Android Market that will do just what you want. It's called Screen Filter. Using this app, you can set your backlight level very low, and even put a widget pre-set to your preferred brightness level on one of your homescreens.
[HD2 Android Q&A, Help & Troubleshooting and Genera] p107r0:
that's how it looks on my device - the min brightness can be set to 1 which is very dark
[HD2 Android Q&A, Help & Troubleshooting and Genera] dumon:
This app is a fake. It does not decrease backlight level, but instead dims lcd pixels, which is not the same. Hence no power saving benefits. It would only help with OLED screens.
[HD2 Android Q&A, Help & Troubleshooting and Genera] dumon:
Did you replace lights libs to make it to work?
[HD2 Android Q&A, Help & Troubleshooting and Genera] p107r0:
that's how it comes with AMA, which is based on CM7.1, so it could be part of the original CM (have no way to check as I don't use NAND builds)
[HD2 Android Q&A, Help & Troubleshooting and Genera] dumon:
Ah..I see. That is SD build.

OK. Looks like CM7 autobacklight works if I replace lights libs now (loosing LED blinking though). I guess I'll try it out and see how it turns out.

Thank you all.
[HD2 Android Q&A, Help & Troubleshooting and Genera] dumon:
One thing I've noticed that backlight level number is not very granular.

As there is no difference if I have it set to 1, 5, 10, 15 or 20. It only changes at 25
[HD2 Android Q&A, Help & Troubleshooting and Genera] p107r0:
it might depend on the brightness ranges/thresholds - I've noticed in my build that if first two ranges are set as 0-100 and 100-200, the first one is ignored if upper limit is below 225, so I always get the screen brightness of the second range
[HD2 Android Q&A, Help & Troubleshooting and Genera] apemonkeyman:
I was looking for a dimmer lowest setting for the back light & tried Screen Filter BUT found it left the "black screen" well lit but everything else faded, almost like the colours were merging to gray rather than being dimmer. :(

Anyway, my need was for the clock display to be dim but found the Clock app's day/night mode button takes the clock display brightness right down low; lower than the manual screen brightness setting for sure... but only in the clock.

Hopefully any other noobs to Cyanogen / non-Sense ROMs may find this relevant! ;.)
[EVO 4G General] eeeeeeeeek:
Did anyone catch the CEO of sprint, Dan Hess on this? I was very impressed with what he had to say. He was very confident and addressed real issues that I see us sprint fanatics discuss. I'm sure it will be up in youtube shortly. He was calm and confident, he said that they investing in clearwire is going to continue even with clearwire's financial woes. Thoughts, Opinions?
[EVO 4G General] Hrshycro:
I'll wait until I see improvements on the phone in my hand...

Would like to see the video, though.
[EVO 4G General] mmegalodon:
Will look for it. But that Kramer guy is a total clown. Usually keeps me from ever thinking of tuning in.
[EVO 4G General] mattykinsx:
Although people are generally whiny and complain-y about Sprint, especially on these forums, Sprint has made a lot of positive improvements as of the last couple years.

Their phone line up = :thumbs up:

They need to pick a "4g" standard, continue to improve their customer service and their network and I think they're good to go.

They may never be number 1.

But honestly, I don't think I'd want them to be as it would require bending over the customer. [No really, pay attention to the "number 1" businesses across most sectors, they are usually the most greedy and rated worst for customer service]

Sprint's outlook is pretty good.

I think their number 1 priority should be to hurry up on getting that iDen network down and running LTE or Wimax or whatever through it.
[EVO 4G General] bjaxon:
I agree I have seen a lot of changes at sprint mostly for the better. Although I have seen the network speed drop so ce the evo's release. I chalk that up to the added users on smart phones. Either way 3g is plenty fine for me. 4g kills my battery and have only used it once to try it out and see what the fuss was. I will stick to 3g just get it running solid.
[EVO 4G General] dirkyd3rk:
Im very impressed with them bumping 4G upload speeds to 1.5mb for everyone. I guess that's a start......
[EVO 4G General] DirtyShroomz:
The future is bright for Sprint just wait guys!
[G2 and Desire Z Q&A, Help & Troubleshooting] Stratspider230:
I'm currently running Virtuous 1.0.2 and its stuck on Regular 3G, not 3G+ (this versions meaning of "H"). And it is REAL sluggish when loading, if it loads anything at all. Anyway I can swap radios to try and fix this? If so where do I find them? I went through pages and pages on the dev side without much success. Thanks
[Gen8, Gen9, Gen10 Q&A, Help & Troubleshooting] koolgtz:
Is there a way too increase the internal memory? I use Android booster to close all running apps before I run Zinio. After awhile I would get a warning that I'm running low on memory. I have the 250GB model. Is it possible to use some of the hard drive for additional memory when the internal memory runs low?
[Gen8, Gen9, Gen10 Q&A, Help & Troubleshooting] machhho:
Apps that are able to be moved to the SD card are dependent on whether the developer has enabled that option. To do so, go into settings > applications > manage apps and individually go through them. There should be a button that says either move to phone or move to SD, if it is possible to do so.

To see what is really taking up space, run DiskUsage - Android app on AppBrain or a similar app and it hopefully will tell you what is the largest items.

Also, sometimes just clearing caches out will help as well.

don't forget to hit thanks please ....
[Gen8, Gen9, Gen10 Q&A, Help & Troubleshooting] gottahavit:
I believe he is talking about memory, not storage. currently no one has posted any success in soldering in new RAM. The Swap option gives you some limited ability to use storage as memory, but it can only do so much.
[Gen8, Gen9, Gen10 Q&A, Help & Troubleshooting] Lenn:
You have 2 options:

Compcache

Swap

For both you need UD;)

And:

You shouldnt use a Memory Optimizer or so;) These apps ruin your Ram usage;)
[XPERIA X8 Android Development] Salo-S:
Greetings folks! I am here posting my personal ROM ...

Based MiniCM6 1.0.1

Froyo.WIZ v1.1

__________________________________________________

__________________________________________________

I did not create this ROM, I just modified it as I like to use and the look of the Samsung TouchWiz

Remember: This is my personal ROM is based on MiniCM6!

Credits and special thanks to ponanovn, who posted the MiniCM to us!

Change log

- Now the camera button is working to take photos - Thanks UAL4588 to post the fix, I really love this fix!

- Application icons changed to look like TouchWiz from Galaxy S

- AOSP Theme - It looks like Galaxy S too (Read FAQ)!

- I let the overclocking active, but if you do not want it flash this module - thanks again ponanovn to post this update -

- I put two launchers in the ROM, the TouchWiz and the stock AOSP Froyo, I like these two because they are very good

- You can use all the things and themes of MiniCM 6 1.0.1

- I included some apps

Working: Everything!

Bugs: sometimes, on the TouchWiz launcher, SD apps disappear! - Read the FAQ to see how to get around this problem -

To next update:

- Porting the rotatory and lense lockscreen (I need help with this, so all are welcome :D)

- Putting Edge Glow Effect in ROM (it is shortly to carry, but I'm having a little problem :()

- Porting CyanogenMod 7 settings (Whoa, I need help with that too :eek:)

- I need some HTC launcher, i like the look of Sense :p

Requeriments:

-Baseband 015 and 2.1.1.A.0.6 Fw

Download:

[URL="http://www.mediafire.com/?exrgpx4x3x8y86a"]FroyoWIZ v1.1[/URL]
[XPERIA X8 Android Development] Salo-S:
Reserved for future!
[XPERIA X8 Android Development] kurnage:
I don't get it, dx has brought us all those features already into a stable rom....
[XPERIA X8 Android Development] Flasher8:
thanks for the share! :D
[XPERIA X8 Android Development] thetrisatria:
i think everyone have same right to share their work. IMHO

nice work OP
[XPERIA X8 Android Development] Salo-S:
You're absolutely right!Everyone can share their ROMs, and nobody is here to compete, but are here to divide and share!
[XPERIA X8 Android Development] LG_fuad92:
I'm looking firward to this custom ROM. :D
[XPERIA X8 Android Development] tojnas:
more options are always good. :) looking forward to this one too :)
[XPERIA X8 Android Development] AChep:
Please, upload this launcher. :)
[XPERIA X8 Android Development] anmiman:
the launcher have been posted in Themes and Apps section a long time ago..:D

http://xdaforums.com/showthread.php?t=1086793
[XPERIA X8 Android Development] elderduke:
I would have 2 question to dev:

1. I notice in screen capture that model is E15a. Can you confirm everything works the same in E15i??

2. This being your ROM, please detail if you have Synaptics ar Cypress chip (digitizer). This is very important because Doixanh's module V007 for pinch-to-zoom does not work on Cypress.

Thank you,
[XPERIA X8 Android Development] Salo-S:
Yeah, it's works on E15i too

It's E15a on screenshot because my X8 is an E15a :D

And my digitizer, it's Synaptics... :(

*Huh, i'm not a Dev, only modder...It's different!

Have a nice day!
[EVO 4G General] MrDrumngun:
Is this possible? Sometimes I just want a video to load and then play it all the way through a minute later because it may be lagging a bunch throughout the video.
[EVO 4G General] sand1303:
Don't know but I get pissed at Sprint almost everytime I watch YouTube stuff on the phone. "premium data" my ass. All the sweet devices that are comming out with they should really invest in the network next.

If there is a way I would like to know as well
[Captivate Q&A, Help & Troubleshooting] CappyMan:
Hey I was wondering if you could flash a custom gingerbread rom over a custom froyo rom. Right now I am running phoenix ultimate rom and onix kernel 2.0.1 and uckb1 modem
[Captivate Q&A, Help & Troubleshooting] Cdub5:
Flash GB bootloaders first. And to warn you, ur gonna get a lot of crap for posting this question. There is a ton of info on this forum about this. Just an fyi. Definitely search and read before doing anything. If you do this wrong you will hard brick your phone!
[Captivate Q&A, Help & Troubleshooting] jmtheiss:
*cough* read this. *cough*
[Nexus S Q&A, Help & Troubleshooting] bender_123:
I am self taught on just about all things programming and am looking for a decent/thorough guide on making custom ROMs for my shiny new Nexus S. Any suggestions on books or internet based resources that I could use to start into this?

I would really like to start contributing to the community and all I need is a push in the right direction...i am sure there are many other folks that would like to start as well.

Thanks!
[Verizon Droid Charge] spjetrovic:
needed some help with a guide on how to use my pc to access the system folder in order to install a APK app. file. any help is greatly appreciated.:rolleyes:
[Verizon Droid Charge] >DARKMAN<:
Just put the apk on the sd card, make sure that you have allow unknown sources checked under menu>applications, then use file manager or whatever one you use to find it, tap on it and tap install.
[Verizon Droid Charge] chadness:
If you specifically need the /system folder, you can't access it directly. Copy it to your SD card, then move it to your /system folder using Root Explorer or something else that will let you access it in Read/Write mode.
[Verizon Droid Charge] spjetrovic:
Thanks for the help, its appreciated
[Hero CDMA Q&A, Help & Troubleshooting] kingsage25:
does anyone know hot to unlock a sprint cdma htc hero 200 to work in any carrier?
[Hero CDMA Q&A, Help & Troubleshooting] oohaylima:
That's a forbidden jutsu.
[Hero CDMA Q&A, Help & Troubleshooting] Bierce22:
there is no legal way to do it so thats why xda cant help sorry man.
[Hero CDMA Q&A, Help & Troubleshooting] NineInchNails:
As they said this is a big no-no. Please read the forum rules.

®patience is a virtue©
[Hero CDMA Q&A, Help & Troubleshooting] unCoRrUpTeD:
Either pay to have someone do it or do a google search. It's not that hard to do it, but we can not discuss how to do it on XDA.
[Hero CDMA Q&A, Help & Troubleshooting] NineInchNails:
+10

®patience is a virtue©
[Hero CDMA Q&A, Help & Troubleshooting] KyleBryant:
Phew! There was almost lawyers up in this thread. Lol
[Hero CDMA Q&A, Help & Troubleshooting] user7618:
Hardly, just trying to prevent noobs from catching a banhammer to the dome.

-----

Sent from my CDMA Hero. I got some hot Ginger-on-Hero action here!
[Hero CDMA Q&A, Help & Troubleshooting] 808Bill:
I don't believe it is illegal to unlock a Sprint phone to work on another carrier per se. It would depend on the carrier. For example, my carrier, while not promoting it, does not discourage the unlocking of Sprint or Verizon phones for use on their network. Several of their authorized repesentatives will do it for $40-$50. They advertise on Craigs List.

Now it is a different matter to mess with an ESN, or unlock a non-sprint phone for use on Sprint. But unlocking in and of itself is not illegal.
[Hero CDMA Q&A, Help & Troubleshooting] PS4AndroidHacker:
I agree with the rest of these guys but I've been on both sides of the river with a T-Mobile G1 GSM(Global System for Mobile Communications)which use SIM cards and now have an HTC Hero200 CDMA(Code Division Multiple Access) which DO NOT use SIM cards. As far as I've ever know or researched,only GSM phones could be unlocked directly from the manufacturer. I could be wrong but I'm not sure,just giving my .002. When I use to have my G1 through T-Mo,I was leaving for the U.S.Army to go to Kuwait,I called T-MO and told them I need the unlock code and that I'm traveling overseas for the U.S.Military and they gladly gave me the unlock code. I had to insert an AT&T SIM card into the phone and then it brought up the screen to enter the unlock code. Once that code was entered,the phone was unlocked to use around the world.It would run on the networks from other countries but not pick up great signal,that all depends on what frequencies the phone runs on. As far as unlocking a CDMA phone I've never heard of it being done but I could be wrong. If it is possible I don't know how. It IS NOT illegal to give info on unlocking phones though, here in the U.S. we have a great thing called FREEDOM OF SPEECH and FREEDOM of INFORMATION. Wish people would remember that instead of saying they can't talk about it,they can talk about whatever they want,it's in the Dec.of Independence,Bill of Rights,etc. That's coming from a U.S.Army soldier. I know the laws,I deal with JAG. Hope you find this info interesting,but sorry I could not help you! :)
[Hero CDMA Q&A, Help & Troubleshooting] laie1472:
Yea but here on xda we have a thing called rules. The army has them as well.

#Root/Hack-Mod_Always*
[Hero CDMA Q&A, Help & Troubleshooting] user7618:
+1

Not real sure if actual freedom of speech applies to a privately held website.

-----

Sent from my CDMA Hero. I got some hot Ginger-on-Hero action here!
[Hero CDMA Q&A, Help & Troubleshooting] PS4AndroidHacker:
This guy is getting annoying!

Ha Ha Funny! FREEDOM OF INFORMATION!!! I'll Give whatever info I want and get whatever info I want,nobody can stop you from that,get real,guess I'm getting pretty popular since you have to follow all my replies now!
[Hero CDMA Q&A, Help & Troubleshooting] user7618:
Indeed, you can give whatever info you want as long as you're prepared to suffer whatever consequences happen to befall you. :) In any event, we're off topic now.

-----

Sent from my CDMA Hero. I got some hot Ginger-on-Hero action here!
[Hero CDMA Q&A, Help & Troubleshooting] oohaylima:
That we do.
[Hero CDMA Q&A, Help & Troubleshooting] NineInchNails:
Some people's kids..

®patience is a virtue©
[Epic 4G General] Whosdaman:
http://briefmobile.com/sprint-extends-instant-mail-in-rebates-to-july-23rd

Just in time for the EVO 3D!!!
[Epic 4G General] rangerover_95:
Yet just outside of the GS2 release date..... :(

Edited to add...... 1st!
[Epic 4G General] Whosdaman:
Yeah, but I bet it'll be extended again. The Photon is slated to release on the 23rd of July as well. So idk what that means for the SGS II
[XPERIA X10 Q&A, Help & Troubleshooting] evecadu:
Hi All, I am running stock 2.1 rom on my X10 and all of a sudden it says that there is no SD card nor SIM card. I turned off then back on and nothing, what can I do, it was working fine today...

thanks
[XPERIA X10 Q&A, Help & Troubleshooting] evecadu:
Dont panic, I just removed the battery cover and reconnected the cards both SIM and SD and turn it back on and it recognized both
[Samsung Galaxy S (4G Model)] Phateless:
This was the last thing I was expecting from this phone. Did they finally fix it or am I an anomaly?
[Samsung Galaxy S (4G Model)] rickyc19:
i dont know about fixing it because this is my first android phone but it works well for me too :)
[Samsung Galaxy S (4G Model)] adobrakic:
today, I tried it out for the first time.. and omfg. it was fine for about 3 seconds, then it started jumping around on the map like I was teleporting or something.
[Samsung Galaxy S (4G Model)] Phateless:
That's what samsung gps usually does and what my gf's captivate always did. That was the reason I got her the inspire.
[Samsung Galaxy S (4G Model)] dsexton702:
gps has been working perfectly for me since out of the box
[Samsung Galaxy S (4G Model)] shotchacokov:
I can't complain. Mine has always been perfect.
[Samsung Galaxy S (4G Model)] mad_fitter:
Same here. Never had a gps issue. Even at street level. Must have been fixed with the first ota maybe?

sent from the pits of hell (from an sgs4g)
[Samsung Galaxy S (4G Model)] mavictb:
I get 15 sec cold locks with 9ft. accuracy all the way down to 4ft. after a min or so. my vibrant takes 45sec to lock with 20-40ft accuracy. (and thats with gps mods). id say they fixed it.
[Samsung Galaxy S (4G Model)] Phateless:
I agree. GPS was always my biggest reservation with Samsung phones. That and lack of a stable cm7.

When cm7 finally comes out for this phone I might sell my mt4g.
[Galaxy Tab Q&A, Help & Troubleshooting] ajeuk:
Hi, I have searched the threads and found similar problems but no solution appears to work for me.

I took delivery of my GT-P1000 UK model today and everything wise fine, rooted OK until I installed Clockwork Mod's Euro backup from the market. I let the euro reboot the tab and perform a nandriod backup that backed up Ok and verified but the tab would not reboot after that - only the Samsung boot screen and no recovery mode via the power and vol+ buttons.

I flashed the euro firmware pit, PDA P1000XWJMI, modem and phone but still no joy just the boot screen or download options. I do not know what my original firmware version was so I just chose the latest 2.2 available in this forum (P1000XWJMI).

I am pretty much stuck at the moment and would appreciate some help to get my tab back into working order with the stock froyo 2.2 Uk 3G+WiFi firmware.

Also tried firmware P1000XWJMG but still no joy :-(

Cheers

Tony
[Galaxy Tab Q&A, Help & Troubleshooting] k0sh:
why don't you flash Overcome Gingerbread , with their new kernel .. it will be a good idea. http://overcome.mimzo.com/ they got the guides so it will be easy for ya :)

or

if you wanna back to stock rom , go and flash gingerbread stock rom http://xdaforums.com/showthread.php?t=1073854 . hit the thanks button if i helped u
[Galaxy Tab Q&A, Help & Troubleshooting] ajeuk:
Thanks for the pointers but I tried both methods and they failed to work. Overcome failed to flash via odin and Stock Gingerbread installed OK butfailed during recovery:

Upon installing update assert failed: getprop("ro.product.device") == GT-P1000 and so on for each GT model and then Error in /cache/recovery/sec_csc.zip (status 7).

The wipe cache fails with E:format_volume: rfs format failed on /dev/block/stl11 the wipe data/factory reset also failed on /dev/block/mmcblk02p , stl10 and stl11.

I am no expert but it seems that my filesystems are read only following the attempted ext4 conversion by the Euro clockwork recovery app yesterday. I have tried to flash at least 10 different firmwares but all fail to boot I am beginning to think that I have a brick and should return to Samsung service centre...

Tony
[Galaxy Tab Q&A, Help & Troubleshooting] k0sh:
if your tab still can on and go through download mode is not bricked ...

what you need is pit and stock froyo to get back your SDcard .. after you do this step u can flash the gingerbread , this problem happened to me from 2days back , i flashed back to rotohammer rom then i flashed gingerbread , and got no more Error msg like you got up there ...