Android App Constantly Crashing On Launch

Hi,

I have been developing an app for the iPhone using Corona and that has gone well, so i decided to see if i could port the app over to Android aswell, but after installing the app onto my android device, after it is installed and i try to launch it, i just constantly get this error message,

The application has stopped unexpectedly. Please try again.

I have got the logs from the device, but they mean nothing to me. Please could someone check the logs out and see if there is an obvious problem.
11-24 19:19:29.510 I/ActivityManager( 141): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=co.uk.domaintest.appname/com.ansca.corona.CoronaActivity } from pid 278
11-24 19:19:29.550 V/HtcAppUsageStats( 141): (launch app, package): (appname, co.uk.domaintest.appname)
11-24 19:19:29.550 I/POST_RESELECT: [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$START@400ed5b8,-1,0,-1,0)
11-24 19:19:29.560 I/POST_RESELECT: [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$END@40103c50,-1,0,-1,0)
11-24 19:19:29.560 I/POST_RESELECT: [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$START@400ed5b8,-1,0,-1,0)
11-24 19:19:29.570 I/POST_RESELECT: [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$END@40103c50,-1,0,-1,0)
11-24 19:19:29.570 D/PhoneWindow( 278): couldn’t save which view has focus because the focused view com.android.internal.policy.impl.PhoneWindow$DecorView@405ef7f8 has no id.
11-24 19:19:29.570 D/Background traffic light( 278): traffic light: GREEN, mBackgroundTrafficLight = false
11-24 19:19:29.580 D/AutoSetting( 314): service - mBroadcastReceiver: action = com.htc.content.Intent.ACTION_BACKGROUND_OP_GO
11-24 19:19:29.600 I/ActivityManager( 141): Start proc co.uk.domaintest.appname for activity co.uk.domaintest.appname/com.ansca.corona.CoronaActivity: pid=2915 uid=10080 gids={3003}
11-24 19:19:29.650 D/SensorService( 141): enable: BMA150 3-axis Accelerometer
11-24 19:19:29.650 D/SensorService( 141): SensorDevice::activate: handle = 0x0, enabled = 0x1
11-24 19:19:29.650 D/Sensors ( 141): [AkmSensor::enable] mEnabled = 0x1
11-24 19:19:29.650 D/SensorService( 141): pid=141, uid=1000
11-24 19:19:29.650 I/WindowManager( 141): Setting rotation to 1, animFlags=1
11-24 19:19:29.660 I/SurfaceFlinger( 141): SurfaceFlinger::setOrientation
11-24 19:19:29.660 D/AK8975 ( 79): Compass Start
11-24 19:19:29.660 D/PowerManagerService( 141): button light setOrientation:1
11-24 19:19:29.670 I/ActivityManager( 141): Config changed: { scale=1.0 imsi=234/15 loc=en_GB touch=3 keys=1/1/2 nav=1/1 orien=2 layout=18 uiMode=17 seq=8 skin=default}
11-24 19:19:29.730 W/dalvikvm( 278): disableGcForExternalAlloc: false
11-24 19:19:29.780 E/SurfaceFlinger( 141): layer=0x2f2840 is not in the purgatory list
11-24 19:19:29.990 I/ActivityThread( 2915): Pub co.uk.tynesoft.spud.files: com.ansca.corona.FileContentProvider
11-24 19:19:30.020 I/ActivityThread( 2915): Pub co.uk.tynesoft.spud.ppy_cache: com.papaya.social.PPYSocialContentProvider
11-24 19:19:30.030 W/dalvikvm( 2915): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/ansca/corona/CoronaActivity;
11-24 19:19:30.030 W/dalvikvm( 2915): Class init failed in newInstance call (Lcom/ansca/corona/CoronaActivity;)
11-24 19:19:30.030 D/AndroidRuntime( 2915): Shutting down VM
11-24 19:19:30.030 W/dalvikvm( 2915): threadid=1: thread exiting with uncaught exception (group=0x400205a0)
11-24 19:19:30.070 E/AndroidRuntime( 2915): FATAL EXCEPTION: main
11-24 19:19:30.070 E/AndroidRuntime( 2915): java.lang.ExceptionInInitializerError
11-24 19:19:30.070 E/AndroidRuntime( 2915): at java.lang.Class.newInstanceImpl(Native Method)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at java.lang.Class.newInstance(Class.java:1409)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1735)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1842)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at android.app.ActivityThread.access$1500(ActivityThread.java:132)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1038)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at android.os.Handler.dispatchMessage(Handler.java:99)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at android.os.Looper.loop(Looper.java:143)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at android.app.ActivityThread.main(ActivityThread.java:4268)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at java.lang.reflect.Method.invokeNative(Native Method)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at java.lang.reflect.Method.invoke(Method.java:507)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at dalvik.system.NativeStart.main(Native Method)
11-24 19:19:30.070 E/AndroidRuntime( 2915): Caused by: java.lang.UnsatisfiedLinkError: Couldn’t load openal: findLibrary returned null
11-24 19:19:30.070 E/AndroidRuntime( 2915): at java.lang.Runtime.loadLibrary(Runtime.java:429)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at java.lang.System.loadLibrary(System.java:554)
11-24 19:19:30.070 E/AndroidRuntime( 2915): at com.ansca.corona.CoronaActivity.(CoronaActivity.java:70)
11-24 19:19:30.070 E/AndroidRuntime( 2915): … 15 more
11-24 19:19:30.080 W/ActivityManager( 141): Force finishing activity co.uk.domaintest.appname/com.ansca.corona.CoronaActivity
11-24 19:19:30.160 I/SurfaceFlinger( 141): SurfaceFlinger::setOrientation
11-24 19:19:30.160 I/WindowManager( 141): Setting rotation to 0, animFlags=1
11-24 19:19:30.160 D/PowerManagerService( 141): button light setOrientation:0
11-24 19:19:30.180 I/ActivityManager( 141): Config changed: { scale=1.0 imsi=234/15 loc=en_GB touch=3 keys=1/1/2 nav=1/1 orien=1 layout=18 uiMode=17 seq=9 skin=default}
11-24 19:19:30.200 D/dalvikvm( 2915): GC_CONCURRENT freed 177K, 47% free 3044K/5639K, external 0K/0K, paused 5ms+21ms
11-24 19:19:30.580 W/ActivityManager( 141): Activity pause timeout for HistoryRecord{40ae1430 co.uk.domaintest.appname/com.ansca.corona.CoronaActivity}
11-24 19:19:30.590 D/SensorService( 141): disable: BMA150 3-axis Accelerometer
11-24 19:19:30.590 D/SensorService( 141): SensorDevice::activate: handle = 0x0, enabled = 0x0
11-24 19:19:30.590 D/Sensors ( 141): [AkmSensor::enable] mEnabled = 0x0
11-24 19:19:30.590 D/SensorService( 141): pid=141, uid=1000
11-24 19:19:30.600 D/CarouselDummyActivity( 278): CarouselDummyActivity.onResume: tab_allapps
11-24 19:19:30.600 D/Background traffic light( 278): traffic light: RED, mBackgroundTrafficLight = true
11-24 19:19:30.610 D/William ( 278): - refreshUsageStatCache -
11-24 19:19:30.620 D/AutoSetting( 314): service - mBroadcastReceiver: action = com.htc.content.Intent.ACTION_BACKGROUND_OP_STOP
11-24 19:19:30.810 D/AK8975 ( 79): Compass CLOSE
11-24 19:19:31.240 D/DEBUG ( 278): updateCellLayoutCache(3.5555556, 3.5546875)
11-24 19:19:31.830 I/wpa_supplicant( 341): Reset vh_switch_counter due to receive LINKSPEED cmd
11-24 19:19:31.830 D/ConnectivityService( 141): getMobileDataEnabled returning false
11-24 19:19:32.480 D/dalvikvm( 141): GC_EXPLICIT freed 1117K, 43% free 7864K/13639K, external 667K/1179K, paused 164ms
11-24 19:19:32.900 I/Process ( 2915): Sending signal. PID: 2915 SIG: 9
11-24 19:19:32.940 D/InputManagerService( 141): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@40ae7318
11-24 19:19:32.960 I/ActivityManager( 141): Process co.uk.domaintest.appname (pid 2915) has died.
11-24 19:19:33.110 E/SurfaceFlinger( 141): layer=0x2b68a8 is not in the purgatory list
11-24 19:19:34.430 D/DEBUG ( 278): updateCellLayoutCache(3.5555556, 3.5546875)
11-24 19:19:34.850 I/wpa_supplicant( 341): Reset vh_switch_counter due to receive LINKSPEED cmd
11-24 19:19:34.850 D/ConnectivityService( 141): getMobileDataEnabled returning false
11-24 19:19:36.440 D/henry ( 278): PagedFlingRunnable.startByDistanceAndVelocity: distance=180 velocity=-687 duration=500.0
11-24 19:19:36.440 W/dalvikvm( 278): disableGcForExternalAlloc: true
11-24 19:19:36.860 W/dalvikvm( 278): disableGcForExternalAlloc: false
11-24 19:19:37.570 D/henry ( 278): PagedFlingRunnable.startByDistanceAndVelocity: distance=-189 velocity=884 duration=500.0
11-24 19:19:37.570 W/dalvikvm( 278): disableGcForExternalAlloc: true
11-24 19:19:37.870 I/wpa_supplicant( 341): Reset vh_switch_counter due to receive LINKSPEED cmd
11-24 19:19:37.870 D/ConnectivityService( 141): getMobileDataEnabled returning false
11-24 19:19:38.000 W/dalvikvm( 278): disableGcForExternalAlloc: false
11-24 19:19:39.480 D/henry ( 278): PagedFlingRunnable.startByDistanceAndVelocity: distance=-190 velocity=418 duration=561.0
11-24 19:19:39.480 W/dalvikvm( 278): disableGcForExternalAlloc: true
11-24 19:19:39.950 W/dalvikvm( 278): disableGcForExternalAlloc: false
11-24 19:19:39.990 D/dalvikvm( 543): GC_EXPLICIT freed 28K, 49% free 2766K/5379K, external 0K/0K, paused 755ms
11-24 19:19:40.610 D/Background traffic light( 278): traffic light: GREEN, mBackgroundTrafficLight = false
11-24 19:19:40.620 D/AutoSetting( 314): service - mBroadcastReceiver: action = com.htc.content.Intent.ACTION_BACKGROUND_OP_GO
11-24 19:19:40.729 W/ActivityManager( 141): Activity destroy timeout for HistoryRecord{40ae1430 co.uk.tynesoft.spud/com.ansca.corona.CoronaActivity}
11-24 19:19:40.890 I/wpa_supplicant( 341): Reset vh_switch_counter due to receive LINKSPEED cmd
11-24 19:19:40.890 D/ConnectivityService( 141): getMobileDataEnabled returning false
11-24 19:19:42.730 D/henry ( 278): PagedFlingRunnable.startByDistanceAndVelocity: distance=16 velocity=0 duration=500.0
11-24 19:19:42.730 W/dalvikvm( 278): disableGcForExternalAlloc: true
i am very new to android. i only got the device today so this is all new to me.

Many thanks for any help. [import]uid: 86474 topic_id: 18213 reply_id: 318213[/import]

The log states that there was a link error. Did you edit the APK via apktool? Because it sounds like something was removed from the APK that the Corona app needs. [import]uid: 32256 topic_id: 18213 reply_id: 69599[/import]

Hi Joshua

Im not sure what apktool is. I haven’t edited anything. All I have done is built the app using corona and then installed it onto my android device.

Do you know what is missing and if I could fix it? [import]uid: 86474 topic_id: 18213 reply_id: 69602[/import]

Hi Phil,

Can you please tell me the following:

  • What build number of the Corona SDK are you using?
  • What is the make and model of your Android device?

Thanks! [import]uid: 32256 topic_id: 18213 reply_id: 69604[/import]

Hi Joshua,

Corona Build, Version 2011.695 (2011.8.2)

Device, HTC Wildfire S

Hope this helps

Philip [import]uid: 86474 topic_id: 18213 reply_id: 69607[/import]

My girlfriend has the same phone, it won’t work with Corona apps as it has an ARMv6 processor.
[import]uid: 93133 topic_id: 18213 reply_id: 69698[/import]

Thanks for the info. Looks like I’ll have to stick this phone on eBay.

Can anyone recommend a low cost arm7 android device which will be good for app testing? [import]uid: 86474 topic_id: 18213 reply_id: 69729[/import]