[aerogear-dev] PushApplication has stopped

vikas sahay vikas.sahay at bizruntime.com
Mon Sep 23 11:47:43 EDT 2013


yes Pittman  i have changed the attribute name but By Default it is
checking for MainActivity class. when i have changed the value
i am getting the following errorat output console.


[2013-09-23 21:14:23 - Pushapplication] Starting activity
com.example.pushapplication.MainActivity on device emulator-5554
[2013-09-23 21:14:24 - Pushapplication] ActivityManager: Starting: Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
cmp=com.example.pushapplication/.MainActivity }
[2013-09-23 21:14:24 - Pushapplication] ActivityManager: Error type 3
[2013-09-23 21:14:24 - Pushapplication] ActivityManager: Error: Activity
class
{com.example.pushapplication/com.example.pushapplication.MainActivity} does
not exist.



On Mon, Sep 23, 2013 at 7:28 PM, Summers Pittman <supittma at redhat.com>wrote:

> In your Android manifest.xml You need to make sure the name attribute on
> the application tag is the name of you Application class.  In this case
> "PushApplication".
>
> On 09/23/2013 09:30 AM, vikassahay wrote:
> > 09-23 13:25:08.128: I/Process(2055): Sending signal. PID: 2055 SIG: 9
> > 09-23 13:25:59.158: E/Trace(2101): error opening trace file: No such
> file or
> > directory (2)
> > 09-23 13:25:59.158: W/Trace(2101): Unexpected value from
> > nativeGetEnabledTags: 0
> > 09-23 13:25:59.158: W/Trace(2101): Unexpected value from
> > nativeGetEnabledTags: 0
> > 09-23 13:25:59.158: W/Trace(2101): Unexpected value from
> > nativeGetEnabledTags: 0
> > 09-23 13:25:59.179: W/Trace(2101): Unexpected value from
> > nativeGetEnabledTags: 0
> > 09-23 13:25:59.179: W/Trace(2101): Unexpected value from
> > nativeGetEnabledTags: 0
> > 09-23 13:25:59.239: W/Resources(2101): Converting to string:
> > TypedValue{t=0x12/d=0x0 a=2 r=0x7f050005}
> > 09-23 13:25:59.239: D/AndroidRuntime(2101): Shutting down VM
> > 09-23 13:25:59.249: W/dalvikvm(2101): threadid=1: thread exiting with
> > uncaught exception (group=0xb2def908)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101): FATAL EXCEPTION: main
> > 09-23 13:25:59.249: E/AndroidRuntime(2101): java.lang.RuntimeException:
> > Unable to start activity
> >
> ComponentInfo{com.example.pushapplication/com.example.pushapplication.MainActivity}:
> > java.lang.ClassCastException: android.app.Application cannot be cast to
> > com.example.pushapplication.PushApplication
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> >
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> > android.app.ActivityThread.access$600(ActivityThread.java:141)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> > android.os.Handler.dispatchMessage(Handler.java:99)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> > android.os.Looper.loop(Looper.java:137)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> > android.app.ActivityThread.main(ActivityThread.java:5039)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> > java.lang.reflect.Method.invokeNative(Native Method)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> > java.lang.reflect.Method.invoke(Method.java:511)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> >
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> > dalvik.system.NativeStart.main(Native Method)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101): Caused by:
> > java.lang.ClassCastException: android.app.Application cannot be cast to
> > com.example.pushapplication.PushApplication
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> > com.example.pushapplication.MainActivity.onCreate(MainActivity.java:22)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> > android.app.Activity.performCreate(Activity.java:5104)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> >
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   at
> >
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
> > 09-23 13:25:59.249: E/AndroidRuntime(2101):   ... 11 more
> >
> >
> >
> >
> > --
> > View this message in context:
> http://aerogear-dev.1069024.n5.nabble.com/PushApplication-has-stopped-tp4849.html
> > Sent from the aerogear-dev mailing list archive at Nabble.com.
> > _______________________________________________
> > aerogear-dev mailing list
> > aerogear-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130923/a5e5bff9/attachment.html 


More information about the aerogear-dev mailing list