Example write NFC Simple



  • hi, simple example nfc write to share link or source.

    tranks


  • Lifetime Qt Champion



  • @SGaist

    hi error write nfc:

    F/libc ( 4023): Fatal signal 11 (SIGSEGV) at 0x0000002c (code=1), thread 4211 (project.example)
    I/DEBUG ( 288): pid: 4023, tid: 4211, name: project.example >>> org.qtproject.example <<<


  • Lifetime Qt Champion

    A stack trace would likely have more information.



  • @SGaist

    hi

    Starting remote process.D/dalvikvm(11713): Late-enabling CheckJNI
    I/ActivityManager(  817): Start proc org.qtproject.example for activity org.qtproject.example/org.qtproject.qt5.android.bindings.QtActivity: pid=11713 uid=10189 gids={50189, 3003, 1015, 1028}
    E/ResourceType(11713): 0x5ad66a30: Failed to ResTable::remove() cookie = 0x3, not last table. mHeaders.size() = 4. Warning for spontaneous crashes when the garbage collector runs.
    E/asset   (11713): Error removing runtime skin resource (cookie 0x3)
    I/asset   (11713): Problem removing all runtime skin resources
    D/dalvikvm(11713): Trying to load lib /data/data/org.qtproject.example/lib/libgnustl_shared.so 0x41cfd578
    D/dalvikvm(11713): Added shared lib /data/data/org.qtproject.example/lib/libgnustl_shared.so 0x41cfd578
    D/dalvikvm(11713): No JNI_OnLoad found in /data/data/org.qtproject.example/lib/libgnustl_shared.so 0x41cfd578, skipping init
    D/dalvikvm(11713): Trying to load lib /data/data/org.qtproject.example/lib/libQt5Core.so 0x41cfd578
    D/dalvikvm(11713): Added shared lib /data/data/org.qtproject.example/lib/libQt5Core.so 0x41cfd578
    I/QtCore  (11713): Start
    D/dalvikvm(11713): Trying to load lib /data/data/org.qtproject.example/lib/libQt5Gui.so 0x41cfd578
    D/dalvikvm(11713): Added shared lib /data/data/org.qtproject.example/lib/libQt5Gui.so 0x41cfd578
    D/dalvikvm(11713): No JNI_OnLoad found in /data/data/org.qtproject.example/lib/libQt5Gui.so 0x41cfd578, skipping init
    D/dalvikvm(11713): Trying to load lib /data/data/org.qtproject.example/lib/libQt5Widgets.so 0x41cfd578
    D/dalvikvm(11713): Added shared lib /data/data/org.qtproject.example/lib/libQt5Widgets.so 0x41cfd578
    D/dalvikvm(11713): No JNI_OnLoad found in /data/data/org.qtproject.example/lib/libQt5Widgets.so 0x41cfd578, skipping init
    D/dalvikvm(11713): Trying to load lib /data/data/org.qtproject.example/lib/libQt5AndroidExtras.so 0x41cfd578
    D/dalvikvm(11713): Added shared lib /data/data/org.qtproject.example/lib/libQt5AndroidExtras.so 0x41cfd578
    D/dalvikvm(11713): No JNI_OnLoad found in /data/data/org.qtproject.example/lib/libQt5AndroidExtras.so 0x41cfd578, skipping init
    D/dalvikvm(11713): Trying to load lib /data/data/org.qtproject.example/lib/libQt5Nfc.so 0x41cfd578
    D/dalvikvm(11713): Added shared lib /data/data/org.qtproject.example/lib/libQt5Nfc.so 0x41cfd578
    D/dalvikvm(11713): Trying to load lib /data/data/org.qtproject.example/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x41cfd578
    D/dalvikvm(11713): Added shared lib /data/data/org.qtproject.example/qt-reserved-files/plugins/platforms/android/libqtforandroid.so 0x41cfd578
    I/Qt      (11713): qt start
    W/System.err(11713): java.lang.ClassNotFoundException: android.graphics.drawable.RippleDrawable
    W/System.err(11713): 	at java.lang.Class.classForName(Native Method)
    W/System.err(11713): 	at java.lang.Class.forName(Class.java:204)
    W/System.err(11713): 	at java.lang.Class.forName(Class.java:169)
    W/System.err(11713): 	at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:395)
    W/System.err(11713): 	at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:98)
    W/System.err(11713): 	at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:605)
    W/System.err(11713): 	at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(11713): 	at java.lang.reflect.Method.invoke(Method.java:525)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:237)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:649)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:183)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:266)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:273)
    W/System.err(11713): 	at android.app.Activity.performCreate(Activity.java:5133)
    W/System.err(11713): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    W/System.err(11713): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2225)
    W/System.err(11713): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2311)
    W/System.err(11713): 	at android.app.ActivityThread.access$600(ActivityThread.java:149)
    W/System.err(11713): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293)
    W/System.err(11713): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    W/System.err(11713): 	at android.os.Looper.loop(Looper.java:137)
    W/System.err(11713): 	at android.app.ActivityThread.main(ActivityThread.java:5214)
    W/System.err(11713): 	at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(11713): 	at java.lang.reflect.Method.invoke(Method.java:525)
    W/System.err(11713): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
    W/System.err(11713): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
    W/System.err(11713): 	at dalvik.system.NativeStart.main(Native Method)
    W/System.err(11713): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/RippleDrawable
    W/System.err(11713): 	... 27 more
    W/System.err(11713): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.drawable.RippleDrawable" on path: DexPathList[[zip file "/data/app/org.qtproject.example-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.qtproject.example-1, /vendor/lib, /system/lib]]
    W/System.err(11713): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
    W/System.err(11713): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    W/System.err(11713): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    W/System.err(11713): 	... 27 more
    W/System.err(11713): java.lang.ClassNotFoundException: android.graphics.drawable.AnimatedStateListDrawable
    W/System.err(11713): 	at java.lang.Class.classForName(Native Method)
    W/System.err(11713): 	at java.lang.Class.forName(Class.java:204)
    W/System.err(11713): 	at java.lang.Class.forName(Class.java:169)
    W/System.err(11713): 	at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:395)
    W/System.err(11713): 	at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:99)
    W/System.err(11713): 	at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:605)
    W/System.err(11713): 	at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(11713): 	at java.lang.reflect.Method.invoke(Method.java:525)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:237)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:649)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:183)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:266)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:273)
    W/System.err(11713): 	at android.app.Activity.performCreate(Activity.java:5133)
    W/System.err(11713): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    W/System.err(11713): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2225)
    W/System.err(11713): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2311)
    W/System.err(11713): 	at android.app.ActivityThread.access$600(ActivityThread.java:149)
    W/System.err(11713): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293)
    W/System.err(11713): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    W/System.err(11713): 	at android.os.Looper.loop(Looper.java:137)
    W/System.err(11713): 	at android.app.ActivityThread.main(ActivityThread.java:5214)
    W/System.err(11713): 	at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(11713): 	at java.lang.reflect.Method.invoke(Method.java:525)
    W/System.err(11713): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
    W/System.err(11713): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
    W/System.err(11713): 	at dalvik.system.NativeStart.main(Native Method)
    W/System.err(11713): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/AnimatedStateListDrawable
    W/System.err(11713): 	... 27 more
    W/System.err(11713): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.drawable.AnimatedStateListDrawable" on path: DexPathList[[zip file "/data/app/org.qtproject.example-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.qtproject.example-1, /vendor/lib, /system/lib]]
    W/System.err(11713): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
    W/System.err(11713): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    W/System.err(11713): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    W/System.err(11713): 	... 27 more
    W/System.err(11713): java.lang.ClassNotFoundException: android.graphics.drawable.VectorDrawable
    W/System.err(11713): 	at java.lang.Class.classForName(Native Method)
    W/System.err(11713): 	at java.lang.Class.forName(Class.java:204)
    W/System.err(11713): 	at java.lang.Class.forName(Class.java:169)
    W/System.err(11713): 	at org.qtproject.qt5.android.ExtractStyle.getClass(ExtractStyle.java:395)
    W/System.err(11713): 	at org.qtproject.qt5.android.ExtractStyle.<init>(ExtractStyle.java:100)
    W/System.err(11713): 	at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:605)
    W/System.err(11713): 	at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(11713): 	at java.lang.reflect.Method.invoke(Method.java:525)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:237)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:649)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:183)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:266)
    W/System.err(11713): 	at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:273)
    W/System.err(11713): 	at android.app.Activity.performCreate(Activity.java:5133)
    W/System.err(11713): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    W/System.err(11713): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2225)
    W/System.err(11713): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2311)
    W/System.err(11713): 	at android.app.ActivityThread.access$600(ActivityThread.java:149)
    W/System.err(11713): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293)
    W/System.err(11713): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    W/System.err(11713): 	at android.os.Looper.loop(Looper.java:137)
    W/System.err(11713): 	at android.app.ActivityThread.main(ActivityThread.java:5214)
    W/System.err(11713): 	at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(11713): 	at java.lang.reflect.Method.invoke(Method.java:525)
    W/System.err(11713): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
    W/System.err(11713): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
    W/System.err(11713): 	at dalvik.system.NativeStart.main(Native Method)
    W/System.err(11713): Caused by: java.lang.NoClassDefFoundError: android/graphics/drawable/VectorDrawable
    W/System.err(11713): 	... 27 more
    W/System.err(11713): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.graphics.drawable.VectorDrawable" on path: DexPathList[[zip file "/data/app/org.qtproject.example-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.qtproject.example-1, /vendor/lib, /system/lib]]
    W/System.err(11713): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
    W/System.err(11713): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    W/System.err(11713): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    W/System.err(11713): 	... 27 more
    W/ResourceType(11713): Skipping entry 0x1080527 in package table 0 because it is not complex!
    D/-heap   (11713): GC_CONCURRENT freed 3688K, 35% free 7092K/10904K, paused 2ms+9ms, total 49ms
    D/dalvikvm(11713): WAIT_FOR_CONCURRENT_GC blocked 6ms
    D/-heap   (11713): GC_CONCURRENT freed 1511K, 31% free 7559K/10904K, paused 3ms+8ms, total 39ms
    D/-heap   (11713): GC_CONCURRENT freed 1519K, 27% free 8017K/10904K, paused 1ms+4ms, total 24ms
    D/-heap   (11713): GC_CONCURRENT freed 1816K, 25% free 8251K/10904K, paused 2ms+10ms, total 58ms
    D/dalvikvm(11713): Trying to load lib /data/app-lib/org.qtproject.example-1/libndefeditor.so 0x41cfd578
    D/dalvikvm(11713): Added shared lib /data/app-lib/org.qtproject.example-1/libndefeditor.so 0x41cfd578
    D/dalvikvm(11713): No JNI_OnLoad found in /data/app-lib/org.qtproject.example-1/libndefeditor.so 0x41cfd578, skipping init
    D/libEGL  (11713): loaded /vendor/lib/egl/libEGL_adreno.so
    D/libEGL  (11713): loaded /vendor/lib/egl/libGLESv1_CM_adreno.so
    D/libEGL  (11713): loaded /vendor/lib/egl/libGLESv2_adreno.so
    I/Adreno-EGL(11713): <qeglDrvAPI_eglInitialize:316>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_2.6.1.04.02.02.121.010_msm8960_JB_2.6_CL3869936_release_AU (CL3869936)
    I/Adreno-EGL(11713): OpenGL ES Shader Compiler Version: 17.01.10.SPL
    I/Adreno-EGL(11713): Build Date: 11/16/13 Sat
    I/Adreno-EGL(11713): Local Branch:
    I/Adreno-EGL(11713): Remote Branch: quic/jb_2.6
    I/Adreno-EGL(11713): Local Patches: NONE
    I/Adreno-EGL(11713): Reconstruct Branch: AU_LINUX_ANDROID_JB_2.6.1.04.02.02.121.010 +  NOTHING
    D/OpenGLRenderer(11713): Enabling debug mode 0
    D/QtNfc   (11713): getStartIntent
    W/IInputConnectionWrapper(11713): getExtractedText on inactive InputConnection
    W/IInputConnectionWrapper(11713): getTextBeforeCursor on inactive InputConnection
    W/IInputConnectionWrapper(11713): getTextBeforeCursor on inactive InputConnection
    W/IInputConnectionWrapper(11713): getExtractedText on inactive InputConnection
    F/libc    (11713): Fatal signal 11 (SIGSEGV) at 0x0000002c (code=1), thread 11905 (project.example)
    I/DEBUG   (  288): pid: 11713, tid: 11905, name: project.example  >>> org.qtproject.example <<<
    D/Zygote  (  291): Process 11713 terminated by signal (11)
    I/ActivityManager(  817): Process org.qtproject.example (pid 11713) has died.
    
    
    "org.qtproject.example" died.
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.