为什么Android动态壁纸没有设置?它被强行关闭。为什么?

时间:2012-05-25 09:48:56

标签: android live-wallpaper

我下载了Acquarium活壁纸,当我在eclipse上运行它没有显示任何错误,但在控制台中它显示以下消息

                                                Android Launch!
  [2012-05-25 14:55:43 - LiveAquariumWallpaper] adb is running normally.
  [2012-05-25 14:55:43 - LiveAquariumWallpaper] **No Launcher activity found!**
  [2012-05-25 14:55:43 - LiveAquariumWallpaper] **The launch will only sync the application package on the device!**
  [2012-05-25 14:55:43 - LiveAquariumWallpaper] Performing sync
  [2012-05-25 14:55:43 - LiveAquariumWallpaper] Automatic Target Mode: Preferred AVD 'deepi-8' is available on emulator 'emulator-5556'
  [2012-05-25 14:55:45 - LiveAquariumWallpaper] Application already deployed. No need to reinstall.
  [2012-05-25 14:55:45 - LiveAquariumWallpaper] \LiveAquariumWallpaper\bin\LiveAquariumWallpaper.apk installed on device
  [2012-05-25 14:55:45 - LiveAquariumWallpaper] Done!

为什么我收到此消息,如果我尝试设置菜单 - >活墙纸 - >水族馆 - >设置墙纸,不设置,不幸关闭。为什么?什么原因呢?       在Logcat:here

2 个答案:

答案 0 :(得分:1)

您正在使用一个很大的Bitmap,它会引导您进入内存不足的状态。正如你可以看到这一行,

05-25 15:21:04.276: E/AndroidRuntime(360):   at android.graphics.Bitmap.nativeCreate(Native Method)
05-25 15:21:04.276: E/AndroidRuntime(360):   at android.graphics.Bitmap.createBitmap(Bitmap.java:468)
05-25 15:21:04.276: E/AndroidRuntime(360):   at android.graphics.Bitmap.createBitmap(Bitmap.java:435)
05-25 15:21:04.276: E/AndroidRuntime(360):   at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:340)

您必须找到通过缩放或使用较小的位图来减少位图大小的方法。

我们在这里有很多关于OOM的讨论。看看这些,并找到一种方法来重新获得它。

https://stackoverflow.com/search?q=out+of+memory+android

答案 1 :(得分:0)

你的apk安装正确,但它不会显示你的输出像普通的application.so你需要设置为livewallper.in真正的设备如果你LongTouch主屏幕它将显示壁纸设置通过选择这一个你会找到你安装壁纸apk.by选择那个apk你会在屏幕上看到壁纸。