Java Question My first example Library Don't work!

mitsusdev

Member
Licensed User
Longtime User
Hi,
im'tring to create a my first library. I want a method for decode yuv image (take from camera preview) into RGB565.

Firstly i've tried to create a basic library (FirstLib) follow youtube Erel video.
All is ok on Eclipse, but when i try my library into b4A i've there errors:

B4X:
GC_EXPLICIT freed 12900 objects / 785848 bytes in 210ms
GC_EXPLICIT freed 5092 objects / 301016 bytes in 181ms
application intent received: android.intent.action.PACKAGE_REMOVED, replacing=true
  --> package:com.example.firstlib
application intent received: android.intent.action.PACKAGE_ADDED, replacing=true
  --> package:com.example.firstlib
  --> update package com.example.firstlib
onReceive Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.example.firstlib flg=0x10000000 cmp=com.android.voicedialer/.VoiceDialerReceiver (has extras) }
deleteCachedGrammarFiles /data/data/com.android.voicedialer/files/openentries.txt
[75] LocalAssetCache.updateOnePackage(): No local info for com.example.firstlib
GC_EXPLICIT freed 5324 objects / 308768 bytes in 269ms
com.example.firstlib
onReceive Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.example.firstlib flg=0x10000000 cmp=com.android.voicedialer/.VoiceDialerReceiver (has extras) }
deleteCachedGrammarFiles /data/data/com.android.voicedialer/files/openentries.txt
unlink /data/dalvik-cache/data@[email protected]@classes.dex
[77] LocalAssetCache.updateOnePackage(): No local info for com.example.firstlib
Shutting down VM
Debugger has detached; object registry had 1 entries
NOTE: attach of thread 'Binder Thread #3' failed

>>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
Heap size: -Xmx16m
CheckJNI is OFF
--- registering native functions ---
Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.firstlib/.main }
Shutting down VM
Debugger has detached; object registry had 1 entries
NOTE: attach of thread 'Binder Thread #3' failed
Start proc com.example.firstlib for activity com.example.firstlib/.main: pid=1438 uid=10109 gids={3003, 3002, 1015}
Could not find method anywheresoftware.b4a.sample.FirstLib.multiply, referenced from method com.example.firstlib.main._activity_create
VFY: unable to resolve virtual method 1585: Lanywheresoftware/b4a/sample/FirstLib;.multiply (I)I
VFY: replacing opcode 0x6e at 0x0044
VFY: dead code 0x0047-0069 in Lcom/example/firstlib/main;._activity_create (Z)Ljava/lang/String;
Could not find class 'anywheresoftware.b4a.sample.FirstLib', referenced from method com.example.firstlib.main._globals
VFY: unable to resolve new-instance 288 (Lanywheresoftware/b4a/sample/FirstLib;) in Lcom/example/firstlib/main;
VFY: replacing opcode 0x22 at 0x0011
VFY: dead code 0x0013-0022 in Lcom/example/firstlib/main;._globals ()Ljava/lang/String;
Could not find method java.lang.String.<init>, referenced from method anywheresoftware.b4a.BA$1.uncaughtException
VFY: unable to resolve direct method 1766: Ljava/lang/String;.<init> ([BLjava/nio/charset/Charset;)V
VFY: replacing opcode 0x70 at 0x0031
VFY: dead code 0x0034-003c in Lanywheresoftware/b4a/BA$1;.uncaughtException (Ljava/lang/Thread;Ljava/lang/Throwable;)V
Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@440baaf0 (uid=10109 pid=1438)
Client not active, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@440c9668
Displayed activity com.example.firstlib/.main: 1238 ms (total 1238 ms)
Shutting down VM

FirstLib library code is the same of Erel's video example (below attached).

...where are my errors?

Thanks and regards
 

Attachments

  • FirstLib.zip
    1.6 KB · Views: 231
Top