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 work in Android Simulator, but not on Device

[Solved] Here's my app:

Titanium.UI.setBackgroundColor('#fff');
var win1 = Titanium.UI.createWindow({  
    title:'Test 4'
});
win1.open();

This works great in the simulator, but not on my T-Mobile G1 (with 1.6 firmware.)

What I see is the splash screen, followed by "The application Test4 (process com.mycompany.test4) has stopped unexpectedly. Please try again." [Force close]

— asked March 12th 2010 by Mark Burggraf
0 Comments

3 Answers

  • You'll need to get me a log. From the command line run adb -d logcat that will log what's happing on device. Paste the results in and I'll see what's happening.

    — answered March 12th 2010 by Don Thorp
    permalink
    0 Comments
  • The device I received for testing was rooted, so I'm first going to attempt to get it back to a stock device state. After I get that far, if it still won't run, I'll paste the log here.

    Thanks for your help!

    — answered March 12th 2010 by Mark Burggraf
    permalink
    0 Comments
  • It's working!

    I restored the G1 to it's original, stock state, then updated to 1.1, 1.5, and finally 1.6. Then it wouldn't install from the Titanium Developer app at all. Once I put the phone in Developer USB Debug Mode and ran ./adb -d logcat, I was THEN able to install and run both my sample app and the Kitchen Sink app.

    — answered March 13th 2010 by Mark Burggraf
    permalink
    0 Comments
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.