App crash on 1 particular Android device

Hi.

I’ve got an app nearly ready, which I am currently bug-fixing / readying for launch.

It works fine on iOS (iPad, iPhone/iPod) and I thought it worked fine on Android too… however…

I know my app is a little texture-memory hungry, but I’ve optimised where I can. It runs fine on a Galaxy Note, but crashes on a HTC Desire. This happens during a series of display.newImage allocations early in the app.

Is this a memory (shortage) problem on the Desire?

More importantly, how can I debug this Android device? I have been using ‘Instruments’ on the Mac to check resource usage, but don’t know where to start with Android devices.

Any advice would be greatly appreciated.

Dave. [import]uid: 82595 topic_id: 20056 reply_id: 320056[/import]

I’m a little rusty on Android but I believe what you are looking for is called adb logcat.

Peach :slight_smile: [import]uid: 52491 topic_id: 20056 reply_id: 78321[/import]

Thanks Peach - I think you need the Android SDK to use this. I deleted this, as you didn’t need it with Corona SDK! Time to reinstall I guess.

All I’m really after I guess is the ‘event log’ of my phone, to see if it is throwing out any messages when my app crashes. This should be relatively easy to find? [import]uid: 82595 topic_id: 20056 reply_id: 78679[/import]

Hey Dave,

I think that is what the aforementioned program is used for, although you may want to glance at the docs.

If you have any issues create a new thread in the Android sub forum.

I’m sorry I’m not exactly an encyclopedia of knowledge about the subject, I’m fairly inexperienced when it comes to the Android side of things unfortunately. (I’m learning!)

Peach :slight_smile: [import]uid: 52491 topic_id: 20056 reply_id: 78748[/import]

Hey thanks Peach. I was able to download an Android app which displays all the logcat data.

I can now see my numerous error messages in all their glorious detail.

Thanks again!
Dave. [import]uid: 82595 topic_id: 20056 reply_id: 78778[/import]

Fantastic - thanks for letting me know. (When it comes to Android I’m always a little apprehensive.)

Peach :slight_smile: [import]uid: 52491 topic_id: 20056 reply_id: 78870[/import]

No problems, Peach - and thanks again.

It looks like texture memory problems - so I’m looking to get rid of my individual display.newImage’s and replace them with sprite sheets.

http://developer.anscamobile.com/forum/2012/01/10/help-required-texture-memory-efficiencies

Regards,
Dave. [import]uid: 82595 topic_id: 20056 reply_id: 78902[/import]