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.

contacts/contacts
04-03 21:26:40.610 I/ContactsProvider( 7028):
setTablesAndProjectionMapForContacts  Uri  >>
content://com.android.contacts/contacts
04-03 21:26:40.720 I/ActivityThread( 4769): Publishing provider
com.google.android.googlequicksearchbox.google:
com.google.android.googlequicksearchbox.google.GoogleSuggestionProvider
04-03 21:26:40.800 W/dalvikvm( 4772): threadid=1: thread exiting with
uncaught exception (group=0x40020ac0)
04-03 21:26:40.810 E/AndroidRuntime( 4772): FATAL EXCEPTION: main
04-03 21:26:40.810 E/AndroidRuntime( 4772): java.lang.RuntimeException:
Unable to start activity ComponentInfo{
com.raghavsood.mp/com.raghavsood.mp.matchpuzzler}:
java.lang.NullPointerException
04-03 21:26:40.810 E/AndroidRuntime( 4772): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
04-03 21:26:40.810 E/AndroidRuntime( 4772): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
04-03 21:26:40.810 E/AndroidRuntime( 4772): at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
04-03 21:26:40.810 E/AndroidRuntime( 4772): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
04-03 21:26:40.810 E/AndroidRuntime( 4772): at
android.os.Handler.dispatchMessage(Handler.java:99)
04-03 21:26:40.810 E/AndroidRuntime( 4772): at
android.os.Looper.loop(Looper.java:123)
04-03 21:26:40.810 E/AndroidRuntime( 4772): at
android.app.ActivityThread.main(ActivityThread.java:4627)
04-03 21:26:40.810 E/AndroidRuntime( 4772): at
java.lang.reflect.Method.invokeNative(Native Method)
04-03 21:26:40.810 E/AndroidRuntime( 4772): at
java.lang.reflect.Method.invoke(Method.java:521)
04-03 21:26:40.810 E/AndroidRuntime( 4772): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-03 21:26:40.810 E/AndroidRuntime( 4772): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-03 21:26:40.810 E/AndroidRuntime( 4772): at
dalvik.system.NativeStart.main(Native Method)
04-03 21:26:40.810 E/AndroidRuntime( 4772): Caused by:
java.lang.NullPointerException
04-03 21:26:40.810 E/AndroidRuntime( 4772): at com.raghavsood.mp.
matchpuzzler.onCreate(matchpuzzler.java:20)
04-03 21:26:40.810 E/AndroidRuntime( 4772): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-03 21:26:40.810 E/AndroidRuntime( 4772): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
04-03 21:26:40.810 E/AndroidRuntime( 4772): ... 11 more
04-03 21:26:40.860 I/ActivityThread( 4769): Publishing provider
com.google.android.googlequicksearchbox.shortcuts:
com.google.android.googlequicksearchbox.ShortcutsProvider
04-03 21:26:40.880 W/ActivityManager( 1368):   Force finishing activity
com.raghavsood.mp/.matchpuzzler
That is what the log read. I can't understand much except that it failed to
start the activity. Also the line number indicated in the red
line simply sets a onclicklistener for the level1 button.
On Sun, Apr 3, 2011 at 10:31 PM, TreKing <[email protected]> wrote:

> On Sun, Apr 3, 2011 at 11:57 AM, Raghav Sood <[email protected]> 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
>
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to