yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] SimplicityApks:
Did you import the right Fragment from the v4 compatibility lib? Otherwise, you'd have to use getFragmentManager() instead!

Edit: I see, you're using it above as well so it shouldn't be the case, could you try to call fm.getFragments() and see what it returns, where fm is the FragmentManager you already created?
[Java for Android App Development] domenicop:
[MENTION=5282469]SimplicityApks[/MENTION] It was so before, it still crashes if I use the fm fragment manager.

I add the logcat output for what it's worth:

11-04 23:20:48.640: ERROR/AndroidRuntime(10131): FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.domenicop.census/com.domenicop.census.MainActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2339)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2389)
at android.app.ActivityThread.access$600(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1269)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5289)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:115)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.domenicop.census.MainActivity.onCreate(MainActivity.java:104)
at android.app.Activity.performCreate(Activity.java:5133)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2293)
... 12 more
11-04 23:20:48.650: WARN/ActivityManager(2322): Force finishing activity com.domenicop.census/.MainActivity
11-04 23:20:49.185: WARN/ActivityManager(2322): Activity pause timeout for ActivityRecord{42ad16f0 u0 com.domenicop.census/.MainActivity}

MainActivity.java:104 is the penultimate line of the class. The incriminated one.
[Java for Android App Development] PicomatStudios:
What's null, fm or mContactsPagerFragment ?
[Java for Android App Development] domenicop:
fm.getFragments() does return null... How could that possibly be? I just instantiated them. Maybe I have to wait till they construct heir views?

I jus checked in the Android Developer API and I couldn't find any mention about this method. Eclipse was suggesting it.

I guess it's been deprecated, but even if that is true, why would it completely disappear?

Please someone that doublecheck on this. (I found getFragment (Bundle bundle, String key), no trace of getFragment...)
[Java for Android App Development] domenicop:
fm.getFragments() does return null... How could that possibly be? I just instantiated the fragments. Maybe I have to wait till they construct heir views?

EDIT

I just checked in the Android Developer API and I couldn't find any mention about this method. Eclipse is suggesting it.

I guess it's been deprecated, but even if that is true, why would it completely disappear?

Please someone that double-check on this. (I found getFragment (Bundle bundle, String key), no trace of getFragment...)

Also, thank you for talking to me, on other forums I feel like an alien when opening a 3d about android developer questions :o
[Java for Android App Development] nikwen:
Have you tested whether getFragments() returns null even if you call that method later (for example when a button is pressed)?
[Java for Android App Development] domenicop:
I just checked and it works if I don't call it from the MainActivity, anyway I've to say the results are not that comfortable. In some cases I've seen some output as scary as # of fragments on the screen is 45

It would be nice to know how this method works though. Without documentation, I can't really make any conclusion here.

Thank you for your help, and please report in this thread if you can find any explanation about the behavior of this method.

Bye.
[Java for Android App Development] kingsammalik@gmail.com:
if u implementing viewpager then u can simply use getCount() method to count the no. of pages.
[Samsung Epic 4G Touch] Wingchun222:
I was using the touched by an s4 rom but it is no longer being updated. I tried cm 10 but couldn't get gps working. So I was curious what rom all of you guys and gals are using?
[Samsung Epic 4G Touch] bilgerryan:
There aren't to many TouchWiz ROMs still being updated. ReCalked, JellyVerse, and Project X are still supported.
[Samsung Epic 4G Touch] castillo760:
Im using Revolt, it works smoothly and has lots of features.
[Samsung Epic 4G Touch] st0n3r:
Im using ProjectX at the moment, but Im not sure how long ill stick with it. Battery use is horrible for some reason. I can go from ful charge to 70% battery life in less than an hour.
[Samsung Epic 4G Touch] bilgerryan:
I get most of the day easy... It's most likely one of your apps running in the background constantly. Better Battery Stats will help you with wakelocks. This is today which is actually a bad day for my battery. Your battery also may be getting old. This is SenseWiz but it has pretty much the same tweaks as Project X.
[Samsung Epic 4G Touch] byrdcfmma:
Mokee 4.2.2 hope to upgrade to 4.3 but been too busy today
[Samsung Epic 4G Touch] Poor Grammar:
At the moment I'm using sensewiz:D..which is a nice mashup with gravy on side with great battery lifeView attachment 2403710
[Samsung Epic 4G Touch] VMCR:
Rocking Cyanogenmod 10.1
[Samsung Epic 4G Touch] dirtyhewr:
CM11 Kitkat... Awesome rom... Smooth even with no overclocking...
[Samsung Epic 4G Touch] 555rt:
I'm on Project-X 3.7 right now. Love it!
[Samsung Galaxy Nexus] Isstatu1:
Hello guys,

So basically my phone shut down while I was using the app drawer. And it got into a boot loop. The phone is rooted, and it has Lean Kernel and Paranoid Android 3.6 installed on it. It tried to factory reset, wipe data, wipe cache, basically do everything in the recovery mode, but it still wouldn't boot. So then I formatted the sd card, and everything else there was to format. And now the phone is just stuck on the word Google. I understand (guess) that's because I've formatted the internal memory. How do I get to flash a rom to the phone now? The computer can't seem to get a connection via USB while the phone is stuck on the word Google. Thanks for your help :)
[Samsung Galaxy Nexus] guitarEd182:
Just ran in to the exact same problem on my girlfriend's phone. Please help. It turns on and I can get into bootloader mode and recovery but when I go to reboot, it just stays on Google startup screen. I did the same things, formatting and such. The sd card is empty with nothing to flash. Help!
[Samsung Galaxy Nexus] Isstatu1:
Ok, so I've managed to flash another rom. But it only shows me the boot animation and back to the Google logo...
[Samsung Galaxy Nexus] ADDICT.ANK:
Flash the stock kernel from The Rom package.

It will boot up.
[Samsung Galaxy Nexus] Isstatu1:
I tried installing this kernel and this rom. But it still doesn't boot up. It seems that the kernel is installed on the phone, but the rom isn't, because the command line on the phone doesn't actually write Done or anything else, it just sits there for a while doing nothing.
[Samsung Galaxy Nexus] Zepius:
why dont you flash back to stock using fastboot?
[Samsung Galaxy Nexus] arifbmb:
Been there and the "Nexus Root Toolkit" by WugFresh really came in handy. Used the software to go back to stock and since then no problem :)
[Samsung Galaxy Nexus] ADDICT.ANK:
Via fastboot flash the recovery first and restore from there

and then see..

it should boot up..

or

just flash a stock rom too then.

check the link for stock kernel

http://xdaforums.com/showthread.php?p=44521651

and post here
[Samsung Galaxy Nexus] Isstatu1:
Ok, so I'm trying the Nexus Root Toolkit right now to get back to stock. But the log shows that archive does not contain:'boot.sig' , 'archive.sig', and 'system.sig'. The process was finished, and it says that stock was isntalled on the phone, but it still stuck in boot loop. It says in the CMD that it might be stuck in boot loop for 5-10 minutes, but it will eventually boot. But the phone still doesn't. And I've also tried to install each .img file through fastboot using this guide. But it still seems to be stuck in bootloop. I've been waiting for 5 minutes, but I'll keep it on for longer...

Update:

Ok, once it showed that :"apps are updating x out of y" and then it started looping again, and then another time it booted until the place where I could choose my language, aaaand it started looping again.
[Samsung Galaxy Nexus] arifbmb:
Well that is a progress :)

Try to update the recovery using Nexus Root Toolkit. Push the stock ROM using the advanced option and then flash the stock again using recovery. Wipe cache and dalvik cache then reboot.
[Samsung Galaxy Nexus] Zepius:
try to lock your bootloader. if its still unlocked after you reboot your phone, your emmc chip is fried.
[Samsung Galaxy Nexus] blmvxer:
Having the bootloop. I've tried the Universal Nexus Tool for Linux and get no boot SIG and recovery SIG error.

I can't get it to boot at all. :/
[Samsung Galaxy Nexus] Isstatu1:
I locked it with "fastboot oem lock" and after taking out the battery it says that the bootloader is locked. So I guess the emmc chip is fine?

By the way, is emmc memory related in anyway to the Lagfix(fstrim) app that I've got from Google Play to speed up my Nexus? Maybe the problem is somewhere there?

Also, If I'd locked the bootloader and took it to the Sprint store, would they try to fix it even though I had the phone for more than a year?
[Samsung Galaxy Nexus] blmvxer:
I've tried everything and still a bootloop. No matter if I recover to stock or flash a custom ROM.
[Samsung Galaxy Nexus] Isstatu1:
Fixed the problem by buying a Nexus 5...
[Android Q&A, Help & Troubleshooting] yapoyo:
hello,

i have a d2att running the latest PACman nightly. I heard of kitkat's release and I really like the way it looks, but there are no kitkat ROMS yet for the s3, which I can understand as kitkat was only released 3 days ago. Does anyone know of any good themes or icon packs, preferably free ones, that I can use to make my phone look like it's running kitkat?
[Android Q&A, Help & Troubleshooting] jjamain:
Have you try this?

https://play.google.com/store/apps/details?id=com.AJ.theme.kitkat
[LG Optimus L9 P760, P765, P768, P769] theguypeter:
SlimBean 4.3.1

this is for the p769 only :)

THANKS TO TWINFAMOUS :)

uploading is in progress be back in an hour ;) :p

sorry lol i have to post 10 lol so brb
[LG Optimus L9 P760, P765, P768, P769] theguypeter:
making this quick as possible
[LG Optimus L9 P760, P765, P768, P769] boo_radley:
Unlocked bootloader only??
[LG Optimus L9 P760, P765, P768, P769] artit:
Yes. All custom rom in L9 forum is for phone with unlocked bootloader.
[Verizon Samsung Galaxy S 4] budding_developer:
After successfully rooting my Verizon/ Galaxy S4 on MI1 and then following the recent tutorial at http://xdaforums.com/showthread.php?t=2504408 I have not been able to get Safestrap v3.6x to successfully install recovery.

Apparently, the OTA upgrade from Verizon now has SELinux enabled and enforcing a pre-defined Samsung security policy that blocks Safestrap every time it attempts to install recovery. :mad: I have searched but have not found any mention on the web or on HashCode's site about how to get around that and be able to successfully install recovery.

Can anyone point me to a work-around for this?
[Verizon Samsung Galaxy S 4] k1mu:
Hashcode hasn't gotten Safestrap running on MJ7 yet. It may be a while before he's able to find a way around the new enforcement in MJ7. There's some chance it may not be possible.
[Verizon Samsung Galaxy S 4] budding_developer:
Yeah, I have found that out... and soft-bricked it twice trying to disable selinux. Verizon sent me a replacement, which was on ME7 out of the box; flashed MI1, Root de la Vega, got back to my set up and locked out updates by uninstalling FWUpgrade.apk and SDM.apk in Titanium.

I guess I'll just stay where I am until the devs figure a way around the selinux thing -- that's what is keeping everyone out. :(
[Verizon Samsung Galaxy S 4] theslowhand:
Verizon is Big Red alright! ! (communist)

Verizon goes way too far taking away our liberty with OUR OWN PROPERTY!

What's the nexy best carrier for Eastern NorthCarolina?

Verizon is just COMMUNIST!

:mad:
[Verizon Samsung Galaxy S 4] mmuzzy:
I'm going to play devil's advocate here for a sec. The previous post talked about how he goofed up his phone, which he should have known was a possibility any time you flash your phone or try to modify it, and then made Verizon pay for his actions by exchanging it. So while I think it sucks that we can't easily flash recoveries and ROMs on our phones, I also think I see one possible reason why they feel the need to clamp them down.
[Verizon Samsung Galaxy S 4] azraell33:
I don't think its right to dicker something up then return it, BUT one could say that if they wouldn't have locked the bootloader this wouldn't be a problem and its there own dam fault and serves them right. I am not going deny I have been considering throwing mine under the car tire and returning it in hopes I will get a MDK version, but I pay for insurance that covers that kind of thing. Besides with my luck I would get a reman that had 4.3 on it and would be doubly screwed.
[Verizon Samsung Galaxy S 4] Mightycaptain:
I agree with mmuzzy. Got to eat it your self when you take the risk. Seems like everyone knows how Verizon is operating trying to lock down these flagship phones so everyone knew it going in so To speak.

So if you screw it up I'd have to say you gotta do what's right and eat your mistake regardless of Verizons reasons for locking down the phone...
[Verizon Samsung Galaxy S 4] budding_developer:
Cure for the Communist problem...

Check out this post I put up. I am now on AT&T (GSM USA) with the same S4, cut my phone bill in half, and have a kick-a*s custom ROM. Here's the thread I put up as a guide on how to do this --> http://xdaforums.com/showthread.php?p=47328895#post47328895
[Verizon Samsung Galaxy S 4] Chadwick108:
Mj7 calls for safestrap 3.70 or preferred 3.71

---------- Post added at 12:45 PM ---------- Previous post was at 12:41 PM ----------

Must use Safestrap 3.70 or 3.71 (recommended) for mj7 I have used both but 3.71 is supposed to be strictly for mj7 and mk2
[JASJAR, XDA Exec, MDA Pro General] tailazoom:
WM5 lets me choose the image i want but it looks bad (washed out) in any recognized format. Do i have to install a program for such a basic operation?
[JASJAR, XDA Exec, MDA Pro General] Broon:
Instead of setting the picture from the Today settings, browse to the picture you want (using file explorer) and in options choose 'set as background'. When you do, it will ask for you to set transparancy level - choose a low figure (10%) etc.
[JASJAR, XDA Exec, MDA Pro General] tailazoom:
Thanks!
[JASJAR, XDA Exec, MDA Pro General] oxysteph72:
Le numéro c'est un mythe moi j'avais autre que 505 et il a planté alors faut arrêter de colporter cette rumeur, tous les G4 sont potentiellement victimes de cette panne.

De plus j'ai je ne sais où que LG prolongeait la garantie à cause de cette panne reconnue par une class action.

Envoyé de mon LG-H815 en utilisant Tapatalk
[Sprint Samsung Galaxy Note 3] tigga9545:
I will never use Knox. Don't know what it is and care less. So do I really need to worry about it before rooting my phone
[Sprint Samsung Galaxy Note 3] oscarthegrouch:
To root, I used www.kingoapp.com and it didn't trip knox. When I flashed custom recovery, it did. If I had to do it all over again, I would not have flashed recovery, so I could do the hotspot mod. You said you don't care, but that's just my experience and opinion. I would have used another wireless tethering app to get online using ad-hoc mode.
[Sprint Samsung Galaxy Note 3] cherylbaker:
Only if you care about warrantee .. If you are ONLY going to root and do nothing else (like install recovery or a rom) than why not keep it. If you're going to install a rom or recovery that will trip knox anyway

Sent from my SM-N900P using Xparent Purple Tapatalk 2
[HTC One X] slickwidnick:
hello, ive got this rogers htc one x that is stuck in a bootloader loop, anyway heres my info i really need help with this:

C:\adb>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 2.14.0000

(bootloader) version-baseband: 0.23a.32.09.29

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 3.17.631.2

(bootloader) version-misc: PVT SHIP S-ON

(bootloader) serialno: HT24DW307580

(bootloader) imei:

(bootloader) product: evita

(bootloader) platform: HBOOT-8960

(bootloader) modelid: PJ8310000

(bootloader) cidnum: ROGER001

(bootloader) battery-status: good

(bootloader) battery-voltage: 3706mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-97c9a06e

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 1.031s

C:\adb>

actually its stuck in qhusb_dload
[HTC One X] sinkster:
You're on the wrong forum, this is the hox international board. Search for the HTC One XL threads
[T-Mobile Samsung Galaxy Note 3] FlutterPie:
Hello, I just got my note 3 the other day and I just love it. I just want to be able to get the most out of it that I can. I decided I wanted to root it and put a custom rom on it. I wanted to put the rom wicked because it just looks amazing. Anyways I tried following this tutorial /watch?v=A6qt8sSTKYI (cant post full link) The last step where I had to hold the home, power, and volume up I messed up a bit. I am not sure if it is because I didn't hold them down long enough or what but it didn't work. So when I got back to my phones setting I wanted to factory reset it to start from scratch. When I tried this the phones powers off and then when it powers back on I am stuck in odin mode. The ONLY way I was able to get out of it was taking out the battery for a few secs. Put the battery back in, held down the down volume, home, and power button. Then when that menu came up it said press up to continue or down to cancel or reset. If I pressed up I would be stuck in the odin mode again. When I pressed down the phone then booted fine which was a big relief.

I am just wondering what I did wrong. I really would like to factory restore it before attempting the root again. Maybe this time I can have someone help me on skype? :D If you are willing to help me that would be wonderful. I will PM you my skype and it will be just through text no voice.

Thank you in advance
[T-Mobile Samsung Galaxy Note 3] @rbiter:
I'm just guessing but perhaps you need to just go ahead and flash stock firmware through Odin. Your files or partitions may have got messed up somehow. Its pretty simple. Goto dev section and read up on it. Gonahead and download the files and research while downloading so less wait time.

sent from my sm-9005.
[T-Mobile Samsung Galaxy Note 3] FlutterPie:
Thank you, I will try this now. Hopefully this will work for me and not leave me stuck on odin mode again. I just tried to boot into recovery and I still get stuck in odin (cant boot normal). By the way does 0x1 mean I void my warranty? Just curious
[T-Mobile Samsung Galaxy Note 3] Inxed:
Yes, flashing anything will get the ticker to 0x1.(although I heard from some people, you CAN reset it, but it's not solid yet)

Now as far as getting to RECOVERY, it's volume UP, home and power, not down. down is download mode, up is recovery. Hope it helps.

---------- Post added at 08:56 PM ---------- Previous post was at 08:52 PM ----------

also, in order to start anything on a brand new device that not rooted yet, you have to install the root BY going through odin, at that point you should google root note 3 and go to the website(which i cant access im at work) is rootgalaxynote3.com. he has the files you need and tutorials to root, AT THAT POINT install goo manager and install recovery, which you need root access to do. when thats done, you can get into TWRP recovery by holding down in this sequence: volume UP,home,power(always hold down power last to make sure it recognizes you holding down the other two buttons) at that point youre all set to flash!
[T-Mobile Samsung Galaxy Note 3] FlutterPie:
I tried both volume down and up.
[T-Mobile Samsung Galaxy Note 3] @rbiter:
Or goto dev section and download files needed for sm-900t then move on to goo.manager.

Sent from my SM-9005.
[T-Mobile Samsung Galaxy Note 3] FlutterPie:
I currently am downloading the stock rom. Cant I just follow these instructions?

"1.. Download .tar and Odin to pc (move to desktop)

2.. Extract .zip N900TUVUBMI7_N900TTMBBMI7_TMB-1.zip

3..Run odin as administrator (left click on odin.exe)

4. Put phone into download mode..With phone off press Volume down + home and power (press power button last) ..now press..volume up to enter dl mode..

5.. Connect phone to pc... Wait till drivers install. when completed youll see a yellow ID:COM box light up...

6.. Click on pda and open N900TUVUBMI7_N900TTMBBMI7_N900TUVUBMI7_HOME.tar.md 5. ( If you did like i said it will be on you desktop. )

7 Patience......... "
[T-Mobile Samsung Galaxy Note 3] FlutterPie:
If someone wanted to help me on skype that would be wonderful ahah. I just want to make sure I dont screw up again or even worse brick it.
[T-Mobile Samsung Galaxy Note 3] Inxed:
Yeah that's good. Let us know what happens. That will stock your phone to out of the box. THEN Odin install the root.
[T-Mobile Samsung Galaxy Note 3] FlutterPie:
Well, That seems to have worked very nicely :D

After I did what I said above I was able to factory reset without a problem. NOW, before I go ahead and screw up again what procedures should I take exactly? I was having problems when in the videos they where saying clockworkmod. I had the rom manager and then it wanted me to pick a recovery or something and I was confused. Any tips?
[T-Mobile Samsung Galaxy Note 3] @rbiter:
Goto the twrp thread and DL 2.6.3.7. Flash that and start flashing.

Sent from my SM-9005.
[T-Mobile Samsung Galaxy Note 3] FlutterPie:
where is this twrp thread? What section?

Also I wanted to thank everyone for their help. Very much appreciated.
[T-Mobile Samsung Galaxy Note 3] Inxed:
No problem. Hit the thanks if we helped lol. if you gogle team win project, their website will be the first one there. just select your device and download ad install.
[T-Mobile Samsung Galaxy Note 3] FlutterPie:
I am in GooManager and when I click install openrecoveryscript it says "No recoveries were found for your device"
[T-Mobile Samsung Galaxy Note 3] FlutterPie:
I really have no idea what to do now. Does this mean I am stuck until a recovery is found for my device?
[T-Mobile Samsung Galaxy Note 3] Inxed:
Did you download and install twrp from the team win project website?
[T-Mobile Samsung Galaxy Note 3] FlutterPie:
If you are talking about goomanager yes

So in goomanager there are no recoveries found and in rom manager there is no clockworkmod recovery for the note 3. Im going crazy here.
[T-Mobile Samsung Galaxy Note 3] Inxed:
Theres gotta be a recovery for your phone. That is crazy that there s not. Hold on
[T-Mobile Samsung Galaxy Note 3] FlutterPie:
I get android system recovery but its no goomaster or rom manager recovery. My recovery screen has a dead android guy and a few option above him.
[T-Mobile Samsung Galaxy Note 3] Inxed:
What note 3 is this is it T-Mobile?
[T-Mobile Samsung Galaxy Note 3] FlutterPie:
Im sure there is because all these video tutorial I watch these guys do it with no problem. I have no idea what the hell im doing wrong.
[T-Mobile Samsung Galaxy Note 3] Inxed:
Check your pm box