0

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
6
  • 1
    You serisouly need to refactor that code :) Commented 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! Commented 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) Commented 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 confused Commented 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. Commented Jan 2, 2011 at 0:20

1 Answer 1

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
Sign up to request clarification or add additional context in comments.

1 Comment

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?

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.