[android-developers] Main class not starting

2011-04-03 Thread Raghav Sood
Hi, In my app there are currently 2 classes. matchpuzzler and level1. level1 is the first level of the game and matchpuzzler is the name of the project and the class whih has the menu. Both of the classes extend Activity. for some reason level1 opens up whenever the app starts. How do I make

Re: [android-developers] Main class not starting

2011-04-03 Thread TreKing
On Sun, Apr 3, 2011 at 9:04 AM, Raghav Sood raghavs...@gmail.com wrote: How do I make matchpuzzler open? http://developer.android.com/guide/topics/intents/intents-filters.html - TreKing

Re: [android-developers] Main class not starting

2011-04-03 Thread Raghav Sood
Thanks TreKing. Got that fixed a while back nut thanks anyways. The problem right now is that I need to start another activity from the main one but after putting in the necessary code it force closes. main activity code to start new activity: public OnClickListener a = new OnClickListener()

Re: [android-developers] Main class not starting

2011-04-03 Thread TreKing
On Sun, Apr 3, 2011 at 11:57 AM, Raghav Sood raghavs...@gmail.com wrote: The problem right now is that I need to start another activity from the main one but after putting in the necessary code it force closes. http://developer.android.com/guide/developing/debugging/index.html

Re: [android-developers] Main class not starting

2011-04-03 Thread Raghav Sood
Thanks. I have already done that: 04-03 21:26:40.460 I/ActivityManager( 1368): Start proc com.raghavsood.mpfor activity com.raghavsood.mp/.matchpuzzler: pid=4772 uid=10113 gids={3003} 04-03 21:26:40.580 I/ContactsProvider( 7028): Query Uri match 1000 Uri content://com.android.

Re: [android-developers] Main class not starting

2011-04-03 Thread TreKing
On Sun, Apr 3, 2011 at 12:12 PM, Raghav Sood raghavs...@gmail.com wrote: That is what the log read. I can't understand much except that it failed to start the activity. Read the stack trace. *04-03 21:26:40.810 E/AndroidRuntime( 4772): Caused by: java.lang.NullPointerException* 04-03