0

我下载了水族馆动态壁纸,当我在 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 中:这里

4

2 回答 2

1

您正在使用导致您内存不足的大位图。正如你所看到的这条线,

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

于 2012-05-25T10:09:51.737 回答
0

您的 apk 已正确安装,但它不会像普通应用程序一样显示您的输出。所以您需要在真实设备中设置为 livewallper。如果您长按主屏幕,它将显示要设置的壁纸,通过选择这个您会找到您安装的壁纸 apk。通过选择该 apk,您将在屏幕上看到壁纸。

于 2012-05-25T10:09:02.597 回答