开发者

while the apk runs without problems on emulator when installed on Motorola milestone picture and icon doesn't shown as they were on emulator

my problem : the app I have uploaded into my cellular device is shown without the pictures I have insert to it .


steps I have done in order to install:

  1. I have inserted the xxx.apk file into the device via usb
  2. I downl开发者_C百科oaded an apps installer via the Market
  3. I opened the app using the installer and instead of picture an white background appeared
  4. when I opened the xxx.apk file using file system I found the pictures.

note: even an application icon weren't appearing. Apparently the res libary having problem to be bined to application.

  • I might ness to add something to my appliction manifest?
  • I might need to change something on my device ? (I already made a change and enabled user's not Market application )
  • I would be very grateful for some life saving answer I need to show my work in a few days in this is the first time i tested her on a real devise.

I also tried an example as shown in hello android book the same example worked perfectly on the emulator where on my android device (Motorola milestone ) the picture and icon weren't shown

Please tell me what I might be doing wrong guys I need to apply my project back at uni(I was the only one in uni who did it on android and in my country most of pep don't even know what android is so getting help outside of forum's like this is not an option ) so please please help me .


I don't know what app installer you downloaded from the Market, but you shouldn't need it. You should be installing the app to your phone using the same SDK tools you used to install it to the emulator. Ie, using Eclipse or the commandline "adb install" commmand.

I'm assuming you used the SDK tools to install the app to the emulators? In which case, start there. Start with looking at what you're doing different between when you installed unsuccessfully to your phone and when you installed to successfully to the SDK.

In my experiences so far, there should be very few differences between working with the emulator and working with the phone.


Well, something is wrong, but what is hard to tell from your question. What pictures are you talking about? Your drawable resources? My guess would be that your application works in the emulator (you have tested it?), but that it doesn't on the phone you're testing with. Have you checked the logcat output?

If you're developing from Eclipse, why not try a debugging session using the phone rather than the emulator?


Hard to narrow down without more details, but a few notes:

  1. Pontus has a point - what's your logcat output? You can use logcat on a real device. Maybe not yours unless it's rooted, but with many phones you can.

  2. Do you link the drawable to your app in the manifest file?

  3. How do you test on emulator vs. device? Do you right-click the app and choose "Run As -> Android Application"? Do you do that for both emulator and device?

  4. When you run on the device, do you first sign it? If so, can you verify the jar/apk and see the contents? Is the drawable under res/drawable?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜