Titanium Community Questions & Answer Archive

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

How do I debug Android crashes

Hi, I have a weird crash occuring on an app that worked prior to Mobile SDK 1.2.0 but not with 1.2.0 or later. What is the correct methodology to determine what is causing the crashes?

I have pastied it here in case anyone with more knowledge can help me… http://www.pastie.org/920852

— asked April 15th 2010 by Gregor Munro
  • andriod
  • crashes.
  • debug

2 Answers

  • Accepted Answer

    Gregor in this particular case, it looks like you changed the case on your appid. It should be com.securitgroup.ireal Java is case sensitive. Did you happen to regenerate the project and move over source?

    RACE] class name (com/securitgroup/ireal/IrealActivity) does not match path (com/securitgroup/iReal/IrealActivity.class)
    [TRACE] ...while parsing com/securitgroup/iReal/IrealActivity.class
    [TRACE] ...while processing com/securitgroup/iReal/IrealActivity.class
    — answered April 15th 2010 by Don Thorp
  • Debugging android is frustrating, but it's also not rocket surgery either. You need to put Ti.API.info("001"); at the beginning of your app, then 002, then 003, or whatever, throughout the loading portion of your app, and keep running it until you figure out the last line that got executed.

    It's a pain, but once you locate the source of the error, it's usually easy to fix.

    — answered April 15th 2010 by Mark Burggraf
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.