java - Basic sample program of Spen SDK throws Run time exception -
i writing basic android app involving spen sdk. xml file is:-
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingleft="@dimen/activity_horizontal_margin" android:paddingright="@dimen/activity_horizontal_margin" android:paddingtop="@dimen/activity_vertical_margin" android:paddingbottom="@dimen/activity_vertical_margin" tools:context=".mainactivity"> <framelayout android:id="@+id/canvas_container" android:layout_width="wrap_content" android:layout_height="wrap_content"> <com.samsung.sdraw.canvasview android:id="@+id/canvas_view" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/ic_launcher" /> <com.samsung.sdraw.settingview android:id="@+id/setting_view" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </framelayout> </relativelayout>
as write xml, error pops in preview panel. screen-shot attached below:
the error is:-
rendering problems: following classes not instantiated: - com.samsung.sdraw.canvasview (open class, show exception) - com.samsung.sdraw.settingview (open class, show exception) tip: use view.isineditmode() in custom views skip code or show sample data when shown in ide exception details (<-----with regard com.samsung.sdraw.canvasview class) write access not allowed during rendering (\mnt\sdcard\android\data\null\serial) @ com.android.ide.common.rendering.rendersecurityexception.create(rendersecurityexception.java:52) @ com.android.ide.common.rendering.rendersecuritymanager.checkwrite (rendersecuritymanager.java:544) @ java.io.file.mkdir(file.java:1305) @ java.io.file.mkdirs(file.java:1337) @ com.samsung.sdraw.z.a(sourcefile:23) @ com.samsung.sdraw.z.a(sourcefile:15) @ com.samsung.sdraw.setting.a(sourcefile:470) @ com.samsung.sdraw.setting.<init>(sourcefile:261) @ com.samsung.sdraw.modecontext.<init>(sourcefile:73) @ com.samsung.sdraw.canvasview.h(sourcefile:735) @ com.samsung.sdraw.canvasview.<init>(sourcefile:606) @ java.lang.reflect.constructor.newinstance(constructor.java:526) @ android.view.layoutinflater.rinflate_original(layoutinflater.java:755) @ android.view.layoutinflater_delegate.rinflate(layoutinflater_delegate.java:64) at android.view.layoutinflater.rinflate(layoutinflater.java:727) @ android.view.layoutinflater.rinflate_original(layoutinflater.java:758) @ android.view.layoutinflater_delegate.rinflate(layoutinflater_delegate.java:64) @ android.view.layoutinflater.rinflate(layoutinflater.java:727) @ android.view.layoutinflater.inflate(layoutinflater.java:492) @ android.view.layoutinflater.inflate(layoutinflater.java:373) diagnostic info studio bug report: failed path: \mnt\sdcard\android\data\null\serial normal temp dir: c:\users\avinash\appdata\local\temp\ normalized temp dir: c:\users\avinash\appdata\local\temp canonical temp dir: c:\users\avinash\appdata\local\temp os.name: windows 8 os.version: 6.2 java.runtime.version: 1.7.0_55-b13 exception details (<-----with regard com.samsung.sdraw.settingview class) java.lang.nullpointerexception at com.samsung.sdraw.bx.<init>(sourcefile:84) at com.samsung.sdraw.abstractsettingview.a(sourcefile:685) @ com.samsung.sdraw.abstractsettingview.<init>(sourcefile:648) @ com.samsung.sdraw.settingview.<init>(sourcefile:151) @ java.lang.reflect.constructor.newinstance(constructor.java:526) @ android.view.layoutinflater.rinflate_original(layoutinflater.java:755) @ android.view.layoutinflater_delegate.rinflate(layoutinflater_delegate.java:64) @ android.view.layoutinflater.rinflate(layoutinflater.java:727) @ android.view.layoutinflater.rinflate_original(layoutinflater.java:758) @ android.view.layoutinflater_delegate.rinflate(layoutinflater_delegate.java:64) @ android.view.layoutinflater.rinflate(layoutinflater.java:727) @ android.view.layoutinflater.inflate(layoutinflater.java:492) @ android.view.layoutinflater.inflate(layoutinflater.java:373)
can anybodu me these error?
update: when run program, logcat gives following warnings once debugger has settled:
06-10 12:04:58.916 31170-31323/com.example.myapplication4.app e/cb::beautifynative﹕ warning: not load libjni_secime natives 06-10 12:04:58.916 31170-31323/com.example.myapplication4.app w/dalvikvm﹕ no implementation found native lcom/bst/hwbeautify/beautifynative;.nativecbinitengine:()i 06-10 12:04:58.916 31170-31323/com.example.myapplication4.app w/dalvikvm﹕ threadid=11: thread exiting uncaught exception (group=0x41fec700) 06-10 12:04:58.921 31170-31323/com.example.myapplication4.app e/androidruntime﹕ fatal exception: thread-13335 java.lang.unsatisfiedlinkerror: native method not found: com.bst.hwbeautify.beautifynative.nativecbinitengine:()i @ com.bst.hwbeautify.beautifynative.nativecbinitengine(native method) @ com.bst.hwbeautify.beautifynative.cbinitengine(sourcefile:107) @ com.bst.hwbeautify.beautifymanager.b(sourcefile:87) @ com.bst.hwbeautify.beautifymanager.a(sourcefile:85) @ com.bst.hwbeautify.beautifymanager$1.run(sourcefile:64) @ java.lang.thread.run(thread.java:841) 06-10 12:04:59.891 31170-31170/com.example.myapplication4.app d/dalvikvm﹕ gc_for_alloc freed 925k, 22% free 14857k/18952k, paused 13ms, total 14ms 06-10 12:04:59.901 31170-31170/com.example.myapplication4.app i/dalvikvm-heap﹕ grow heap (frag case) 23.625mb 6317296-byte allocation 06-10 12:04:59.916 31170-31179/com.example.myapplication4.app d/dalvikvm﹕ gc_for_alloc freed <1k, 17% free 21027k/25124k, paused 13ms, total 13ms 06-10 12:04:59.931 31170-31170/com.example.myapplication4.app d/dalvikvm﹕ gc_for_alloc freed 2k, 17% free 21025k/25124k, paused 9ms, total 9ms 06-10 12:04:59.946 31170-31170/com.example.myapplication4.app i/dalvikvm-heap﹕ grow heap (frag case) 29.648mb 6317296-byte allocation 06-10 12:04:59.956 31170-31179/com.example.myapplication4.app d/dalvikvm﹕ gc_for_alloc freed <1k, 14% free 27194k/31296k, paused 10ms, total 10ms 06-10 12:05:00.181 31170-31170/com.example.myapplication4.app e/viewsystem﹕ viewrootimpl #2 surface not valid. 06-10 12:05:00.191 31170-31170/com.example.myapplication4.app w/system.err﹕ java.io.filenotfoundexception: /mnt/sdcard/android/data/com.example.myapplication4.app/serial/1125509560/sprites.raw: open failed: enoent (no such file or directory) 06-10 12:05:00.196 31170-31170/com.example.myapplication4.app w/system.err﹕ @ libcore.io.iobridge.open(iobridge.java:409) 06-10 12:05:00.196 31170-31170/com.example.myapplication4.app w/system.err﹕ @ java.io.fileoutputstream.<init>(fileoutputstream.java:88) 06-10 12:05:00.196 31170-31170/com.example.myapplication4.app w/system.err﹕ @ java.io.fileoutputstream.<init>(fileoutputstream.java:73) 06-10 12:05:00.196 31170-31170/com.example.myapplication4.app w/system.err﹕ @ com.samsung.sdraw.abstractmodecontext.a(sourcefile:182) 06-10 12:05:00.196 31170-31170/com.example.myapplication4.app w/system.err﹕ @ com.samsung.sdraw.abstractmodecontext.serializecontext(sourcefile:143) 06-10 12:05:00.201 31170-31170/com.example.myapplication4.app w/system.err﹕ @ com.samsung.sdraw.canvasview.b(sourcefile:7577) 06-10 12:05:00.201 31170-31170/com.example.myapplication4.app w/system.err﹕ @ com.samsung.sdraw.canvasview.ondetachedfromwindow(sourcefile:641) 06-10 12:05:00.201 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.view.view.dispatchdetachedfromwindow(view.java:13064) 06-10 12:05:00.201 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.view.viewgroup.dispatchdetachedfromwindow(viewgroup.java:2798) 06-10 12:05:00.201 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.view.viewgroup.dispatchdetachedfromwindow(viewgroup.java:2798) 06-10 12:05:00.201 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.view.viewgroup.dispatchdetachedfromwindow(viewgroup.java:2798) 06-10 12:05:00.206 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.view.viewgroup.dispatchdetachedfromwindow(viewgroup.java:2798) 06-10 12:05:00.206 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.view.viewgroup.dispatchdetachedfromwindow(viewgroup.java:2798) 06-10 12:05:00.206 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.view.viewrootimpl.dispatchdetachedfromwindow(viewrootimpl.java:3368) 06-10 12:05:00.206 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.view.viewrootimpl.dodie(viewrootimpl.java:5978) 06-10 12:05:00.206 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.view.viewrootimpl.die(viewrootimpl.java:5961) 06-10 12:05:00.206 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.view.windowmanagerglobal.removeviewlocked(windowmanagerglobal.java:378) 06-10 12:05:00.211 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.view.windowmanagerglobal.removeview(windowmanagerglobal.java:328) 06-10 12:05:00.211 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.view.windowmanagerimpl.removeviewimmediate(windowmanagerimpl.java:88) 06-10 12:05:00.211 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.app.activitythread.handledestroyactivity(activitythread.java:3677) 06-10 12:05:00.211 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.app.activitythread.access$1300(activitythread.java:165) 06-10 12:05:00.211 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.app.activitythread$h.handlemessage(activitythread.java:1379) 06-10 12:05:00.211 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.os.handler.dispatchmessage(handler.java:99) 06-10 12:05:00.216 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.os.looper.loop(looper.java:137) 06-10 12:05:00.216 31170-31170/com.example.myapplication4.app w/system.err﹕ @ android.app.activitythread.main(activitythread.java:5450) 06-10 12:05:00.216 31170-31170/com.example.myapplication4.app w/system.err﹕ @ java.lang.reflect.method.invokenative(native method) 06-10 12:05:00.216 31170-31170/com.example.myapplication4.app w/system.err﹕ @ java.lang.reflect.method.invoke(method.java:525) 06-10 12:05:00.216 31170-31170/com.example.myapplication4.app w/system.err﹕ @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1187) 06-10 12:05:00.216 31170-31170/com.example.myapplication4.app w/system.err﹕ @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1003) 06-10 12:05:00.221 31170-31170/com.example.myapplication4.app w/system.err﹕ @ dalvik.system.nativestart.main(native method) 06-10 12:05:00.221 31170-31170/com.example.myapplication4.app w/system.err﹕ caused by: libcore.io.errnoexception: open failed: enoent (no such file or directory) 06-10 12:05:00.221 31170-31170/com.example.myapplication4.app w/system.err﹕ @ libcore.io.posix.open(native method) 06-10 12:05:00.221 31170-31170/com.example.myapplication4.app w/system.err﹕ @ libcore.io.blockguardos.open(blockguardos.java:110) 06-10 12:05:00.226 31170-31170/com.example.myapplication4.app w/system.err﹕ @ libcore.io.iobridge.open(iobridge.java:393) 06-10 12:05:00.226 31170-31170/com.example.myapplication4.app w/system.err﹕ ... 29 more
Comments
Post a Comment