My simple program runs on Android emulator, but not on my Nexus One

Posted by noisesolo on Stack Overflow See other posts from Stack Overflow or by noisesolo
Published on 2010-06-06T19:55:55Z Indexed on 2010/06/06 20:02 UTC
Read the original article Hit count: 484

To clarify, I have no trouble getting the Nexus One connected in developer's mode. I can actually get Eclipse to "run" my program on my Nexus One. However, my Nexus One simply gets stuck in a reboot loop. I've also created an .apk file and put it onto my Nexus One, installing it with apkInstaller. However, it crashed while installing. I see my app on my phone, but I'm kind of afraid to run it.

I am not doing anything fancy in my program; all it does is generate text by shuffling a couple arrays of strings together. It uses a bunch of text views, two buttons, and a spinner. I have only edited the main source file, the strings XML file, and the layout XML file, nothing else. It's a 2.1-update1 program and it runs fine on the emulator.

Does anyone have any idea what's going on? I'm using Windows 7 (32 bit) and my Nexus One is running Cyanogen 5.0.7.1. I'm pretty sure it's my code that's causing the problem. Now I'm just wondering if there are any common mistakes that would lead my app to run on the emulator but not on my device.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-emulator