Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Apps stopping on launch - android

I'm working with another developer on a gallery app. In the past I've had issues with apps closing on launch and it looks like I'm still there.

The developer is able to run the apps in his emulator, but I'm getting the error:

"Sorry! The application "name" (process) has stopped unexpectedly. Please try again."

I've installed the apk file on a G1 running 1.6 and a Motorola Droid running 2.1. Same error.

I've tried installing the apk file using adb command line install and installing via helper app from the sd card.

Every time I've run the app I've had an sd card mounted and working.

Debugging is on.

I've been able to install other apk files without issue, just having trouble with the titanium ones.

He's using 1.2.1 and he's updated his android.py file the most current.

Can anyone suggest anything?

— asked April 21st 2010 by Dekker Dreyer
  • android
  • android app build wont run

1 Answer

  • Try wrapping all of your javascript code in a try/catch and print the exception to the debug log. Unlike the iPhone version, an exception on startup will cause the app to crash on Android.

    (if you're trying to run on a native device, try an alert() with the error message)

    — answered April 22nd 2010 by Damien Elmes
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.