So I can't figure out why my app wont load... There are no errors.
Link to onCreate (Its kinda big)
Maybe it has to do with tabhost? new to that, first attempt...
Hopefully someone can help.
Thanks, Brandon
asked Jan 1, 2011 at 23:04
Brandon
7031 gold badge9 silver badges24 bronze badges
-
1You serisouly need to refactor that code :)Amokrane Chentir– Amokrane Chentir2011年01月01日 23:05:38 +00:00Commented Jan 1, 2011 at 23:05
-
@Brandon : first I'd start with using loops to load the resources. To debug your application did you open the DDMS perspective? Please check the Log, the information you need is there!Amokrane Chentir– Amokrane Chentir2011年01月01日 23:09:25 +00:00Commented Jan 1, 2011 at 23:09
-
How would I go about loading with loops? How would I tell which resource to load... like I understand loops... but how would I tell the loop to load the next resource, is there a method to get it as an array? sorry if I worded that weird... I am debugging through DDMS (didnt know about it till now haha)Brandon– Brandon2011年01月01日 23:15:38 +00:00Commented Jan 1, 2011 at 23:15
-
01-01 15:30:54.346: ERROR/AndroidRuntime(453): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.laytproducts.girboardpro/com.laytproducts.girboardpro.mainAct}: java.lang.NullPointerException now I am confusedBrandon– Brandon2011年01月01日 23:31:54 +00:00Commented Jan 1, 2011 at 23:31
-
You need to post the rest of your code. You are not showing us where you are instantiating (creating) the objects sound as mSoundManager.sksamuel– sksamuel2011年01月02日 00:20:01 +00:00Commented Jan 2, 2011 at 0:20
1 Answer 1
I would bet that mSoundManager is null. Where are you initializing it ?
Most probably you should initialize if before using it as it seems to depend on Context.
answered Jan 2, 2011 at 5:30
Diego Torres Milano
69.9k9 gold badges117 silver badges145 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
Brandon
I finally got it to work... But now I am getting Heap Size Overflow errors... I have like 86 sounds in my sound pool... But they are all small oggs so I am surprised I am having issues with this. Is there anyway to bypass this? Maybe its just the emulator having crudy heap sizes?
default