Tuesday, December 20, 2011

Android App crashing on navigating from one Screen to another on Device but working fine on the Emulator.?

Hi All,


I am a newbee to Android Application Development and started working on it just about a week ago. I created a very basic, very simple App which would list down some Template Messages on a screen and would allow you to add more as well.


on tapping on any of the messages the user would get another screen displaying the contacts of the phone and on tapping on the contacts the template message selected Earlier would be sent to the selected Contact no.


I have used Native Content Provider for the same.


Now this app runs perfectly fine on the Emulators and i am able to send SMS from one Emulator to another.


When i ported it on a Samsung Galaxy mobile phone, it opened fine and would let me Add more template messages. When i would tap on any of the messages it won't load the list of the contacts and would crash(Unexpected Closure).


Please help me with what could be a possible reason for this. The Phone has Android 2.2 and my App's min SDK is also set to 8.


Screenshots.





[1]: http://i.imgur.com/QSZRI.png


[2]: http://i.imgur.com/XaZdN.png


[3]: http://i.imgur.com/nUx12.png|||When I had a device specific problem, I installed the log collector app to the device: http://code.google.com/p/android-log-col鈥?/a> Then, I added some logging to the app where the problem was, ran the app on the device until it crashed, then ran log collector which emails you the log. I was able to see the stacktrace and eventually solve the problem. Good luck.

No comments:

Post a Comment