2013-02-15 46 views
-5
02-15 09:10:02.196: E/dalvikvm-heap(881): Out of memory on a 2162176-byte allocation. 
02-15 09:10:02.376: E/AndroidRuntime(881): FATAL EXCEPTION: main 
02-15 09:10:02.376: E/AndroidRuntime(881): java.lang.OutOfMemoryError 
02-15 09:10:02.376: E/AndroidRuntime(881): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 
02-15 09:10:02.376: E/AndroidRuntime(881): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:502) 
02-15 09:10:02.376: E/AndroidRuntime(881): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:355) 
02-15 09:10:02.376: E/AndroidRuntime(881): at android.graphics.BitmapFactory.decodeResource(BitmapFactory.java:378) 
02-15 09:10:02.376: E/AndroidRuntime(881): at com.plugai.android.livewallpapers.fishes.ClownFish.<init>(ClownFish.java:20) 
02-15 09:10:02.376: E/AndroidRuntime(881): at com.plugai.android.livewallpapers.Aquarium.addFishes(Aquarium.java:88) 
02-15 09:10:02.376: E/AndroidRuntime(881): at com.plugai.android.livewallpapers.Aquarium.initialize(Aquarium.java:81) 
02-15 09:10:02.376: E/AndroidRuntime(881): at com.plugai.android.livewallpapers.AquariumWallpaperService$AquariumWallpaperEngine.<init>(AquariumWallpaperService.java:20) 
02-15 09:10:02.376: E/AndroidRuntime(881): at com.plugai.android.livewallpapers.AquariumWallpaperService.onCreateEngine(AquariumWallpaperService.java:10) 
02-15 09:10:02.376: E/AndroidRuntime(881): at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:1034) 
02-15 09:10:02.376: E/AndroidRuntime(881): at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:40) 
02-15 09:10:02.376: E/AndroidRuntime(881): at android.os.Handler.dispatchMessage(Handler.java:99) 
02-15 09:10:02.376: E/AndroidRuntime(881): at android.os.Looper.loop(Looper.java:137) 
02-15 09:10:02.376: E/AndroidRuntime(881): at android.app.ActivityThread.main(ActivityThread.java:5039) 
02-15 09:10:02.376: E/AndroidRuntime(881): at java.lang.reflect.Method.invokeNative(Native Method) 
02-15 09:10:02.376: E/AndroidRuntime(881): at java.lang.reflect.Method.invoke(Method.java:511) 
02-15 09:10:02.376: E/AndroidRuntime(881): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 
02-15 09:10:02.376: E/AndroidRuntime(881): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 
02-15 09:10:02.376: E/AndroidRuntime(881): at dalvik.system.NativeStart.main(Native Method) 
+2

魚對於那個水族箱需要太多的RAM。 – 2013-02-15 09:29:02

回答

3

顯然,動態壁紙需要更多的內存(RAM)比你有。

2

您正在收到OutOfMemory異常。這意味着您的應用程序會嘗試在設備RAM中分配太多內存。通常是由於嘗試加載比所需內容大的圖像而導致的。

嘗試縮放您在動態壁紙中使用的任何圖形。