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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en