我想使用三星 SPen SDK 开发一个应用程序。三星提供的资源中有一个示例,但是当我尝试在 AVD 上运行它时出现错误。它说内存不足。
我已经检查了http://galaxynotespenchallenge.com/forum_topics/657但没有解决方案。
有没有人和我一样的问题并解决了?
这是我的 AVD 配置:
目标:Android 2.3.3 - API 级别 10,最大 VM 应用程序堆大小:256,设备内存大小:512
这是错误:
09-03 11:10:28.712: E/AndroidRuntime(335): FATAL EXCEPTION: main
09-03 11:10:28.712: E/AndroidRuntime(335): java.lang.OutOfMemoryError: bitmap size exceeds VM budget
09-03 11:10:28.712: E/AndroidRuntime(335): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:470)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.sdraw.cl.a(SourceFile:56)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.sdraw.ao.h(SourceFile:198)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.sdraw.ao.g(SourceFile:172)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.sdraw.ao.c(SourceFile:105)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.sdraw.ao.a(SourceFile:93)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.sdraw.AbstractSettingView.j(SourceFile:2806)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.sdraw.AbstractSettingView.a(SourceFile:561)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.sdraw.AbstractSettingView.<init>(SourceFile:429)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.sdraw.SettingView.<init>(SourceFile:137)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.spen.a.d.b.onCreateSettingView(SourceFile:591)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.spen.a.g.b.a(SourceFile:74)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.spensdk.SCanvasView.b(SourceFile:382)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.spensdk.SCanvasView.c(SourceFile:362)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.spensdk.SCanvasView.a(SourceFile:359)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.spensdk.SCanvasView$12.onFinish(SourceFile:4543)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.samsung.sdraw.CanvasView.onLayout(SourceFile:597)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.view.View.layout(View.java:7175)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.widget.RelativeLayout.onLayout(RelativeLayout.java:912)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.view.View.layout(View.java:7175)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1130)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.widget.LinearLayout.onLayout(LinearLayout.java:1047)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.view.View.layout(View.java:7175)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.view.View.layout(View.java:7175)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1130)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.widget.LinearLayout.onLayout(LinearLayout.java:1047)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.view.View.layout(View.java:7175)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.view.View.layout(View.java:7175)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.view.ViewRoot.performTraversals(ViewRoot.java:1140)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.view.ViewRoot.handleMessage(ViewRoot.java:1859)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.os.Handler.dispatchMessage(Handler.java:99)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.os.Looper.loop(Looper.java:123)
09-03 11:10:28.712: E/AndroidRuntime(335): at android.app.ActivityThread.main(ActivityThread.java:3683)
09-03 11:10:28.712: E/AndroidRuntime(335): at java.lang.reflect.Method.invokeNative(Native Method)
09-03 11:10:28.712: E/AndroidRuntime(335): at java.lang.reflect.Method.invoke(Method.java:507)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
09-03 11:10:28.712: E/AndroidRuntime(335): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
09-03 11:10:28.712: E/AndroidRuntime(335): at dalvik.system.NativeStart.main(Native Method)
提前致谢