Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your "crash".
On Sun, May 8, 2011 at 3:24 PM, anddevbren <[email protected]> wrote: > Ok guys, > > I have a very annoying problem. I am new to android and i am trying to > use an application object and cast it to my application using > android:name property defined in android manifest file. But the thing > is when i use android:name as a property of the application tag in the > manifest file, the app crashes in the beginning. So i need help. No > idea how to get it work. The android manifest file is like: > > > <!-- When i put android:name="MyAppApp" line in application tag, it > crashes, if i remove it, the app works, any idea what the problem is ? > I need to put name attribute there to use application object to save > state. Any help would be appriciated. --> > > <application > android:name="MyAppApp" > android:icon="@drawable/icon" > android:label="MyApplication" > android:allowClearUserData="true" > android:debuggable="true" > > > <activity android:name=".MyActivity" > android:label="@string/app_name"> > <intent-filter> > <action android:name="android.intent.action.MAIN" /> > <category > android:name="android.intent.category.LAUNCHER" /> > </intent-filter> > </activity> > > <activity android:name=".MySecondActivity" > android:label="MySecondActivity"> > <intent-filter> > <action android:name="getList" /> > <category > android:name="android.intent.category.DEFAULT" /> > </intent-filter> > </activity> > > > </application> > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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

