使用Samsung SPen SDK示例时内存不足

时间:2012-09-03 03:18:45

标签: android android-emulator

我想使用Samsung 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)

提前致谢

2 个答案:

答案 0 :(得分:0)

您是否仔细阅读了您发布的链接的最后评论。

  

我们正在处理模拟器的问题。在此期间,SDK   1.5仍然可用。 1.5版适用于模拟器。它将很好地体现使用SDK的感觉   一般。你可以找到它   http://innovator.samsungmobile.com/cms/cnts/knowledge.detail.view.do?platformId=1&cntsId=10210

     

Hod的

似乎只有版本1.5正在运行,他们正在尝试解决问题,这完全符合我的理解。

答案 1 :(得分:0)

请检查AVD的其他属性。 您需要的选项是“最大VM应用程序大小”。将其设置为100Mb并检查问题是否得到解决。

祝你好运