Android related questions

General information about Neurotechnology and its software

How can I create Android project for Face Recognition only?

Postby ashis_dwkr » Oct 12, 2013 12:02

Hi,

I am using your trial sdk(Neurotec_Biometric_4_5_SDK_Trial). I want to develop an Android App that Recognises User Face & transfer user to next Screen.
I could not find any example code to do this automatically on Face-Detection, but I managed to to do so on click of Button Click.

Also, Is there a way to develop only Face part (without the Iris, Voice, Finger modules). If I try to remove these files from project, then Application builds successfully, but while it run in mobile it crashes.

Any help in the regard will be really helpfull.

Thanks
Ashish
ashis_dwkr
 
Posts: 3
Joined: Oct 12, 2013 08:17

Re: Android related questions

Postby Martynas » Oct 14, 2013 12:29

ashis_dwkr wrote:Hi,

I am using your trial sdk(Neurotec_Biometric_4_5_SDK_Trial). I want to develop an Android App that Recognises User Face & transfer user to next Screen.
I could not find any example code to do this automatically on Face-Detection, but I managed to to do so on click of Button Click.

Also, Is there a way to develop only Face part (without the Iris, Voice, Finger modules). If I try to remove these files from project, then Application builds successfully, but while it run in mobile it crashes.

Any help in the regard will be really helpfull.

Thanks
Ashish

Hello,

our sample is showing the functionality of the SDK. The sample doe snot have a functionality which you have described. So in your case you will need to implement the application, whcih on start will obtain licenses, will start the camera and will start the extraction and identification of the person. You can use provided samples and tutorials as reference to see how one or other functionality of the SDK is used.
What regards the removing files from the sample project. If you do not need to use any other activities, then you can remove them, but you should ensure, that the dependencies on them are not left in any other activities or project. If there is any crash in our provided sample, then please provide the logcat of such situation.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Android related questions

Postby ashis_dwkr » Oct 17, 2013 09:17

Hi Martyans,

Thanks for reply, I am working on it, will give you the status about it later.

But I have one more problem, Actually When I install the .apk files (both licensing-manager.apk & multibiometric-sample.apk) tha both Applications are running fine on Samsung Galaxy s4 (Android version 4.2.2) this is the phone where these .apk files were first run, But If i try ti install tthem on other phones having Android versions, 4.1.2, 2.3.6 & others, I get following error:

"process.com.neurotec.samples.licensing has stopped unexpectedly"


Is this due to licensing-manager.apk file can run on single Phone, or it could be the Android version issue.
Can I run same licensing-manager.apk file on multiple phones?

Thanks
ashis_dwkr
 
Posts: 3
Joined: Oct 12, 2013 08:17

Re: Android related questions

Postby Martynas » Oct 17, 2013 13:12

ashis_dwkr wrote:Hi Martyans,

Thanks for reply, I am working on it, will give you the status about it later.

But I have one more problem, Actually When I install the .apk files (both licensing-manager.apk & multibiometric-sample.apk) tha both Applications are running fine on Samsung Galaxy s4 (Android version 4.2.2) this is the phone where these .apk files were first run, But If i try ti install tthem on other phones having Android versions, 4.1.2, 2.3.6 & others, I get following error:

"process.com.neurotec.samples.licensing has stopped unexpectedly"


Is this due to licensing-manager.apk file can run on single Phone, or it could be the Android version issue.
Can I run same licensing-manager.apk file on multiple phones?

Thanks

Hello,

as it was written to you by email, please send logcats from devices, where the application crashes.
apks can be used on multiple devices.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

SDK5.0 multibiometric-sample.apk crashes

Postby Kosntantin » Apr 10, 2014 10:23

I'm trying to evaluate new SDK 5.0 release on Android 4.0.1 tablet.

Any attempt to run VeriFinger application crashes.

Here is logcat entries:
Code: Select all
E/ACRA    ( 2422): com.neurotec.samples.multibiometric fatal error : null
E/ACRA    ( 2422): java.lang.ExceptionInInitializerError
E/ACRA    ( 2422):      at com.neurotec.samples.multibiometric.Model.<init>(Model.java:50)
E/ACRA    ( 2422):      at com.neurotec.samples.multibiometric.Model.getInstance(Model.java:32)
E/ACRA    ( 2422):      at com.neurotec.samples.multibiometric.BiometricActivity.onCreate(BiometricActivity.java:202)
E/ACRA    ( 2422):      at com.neurotec.samples.multibiometric.fingers.FingerActivity.onCreate(FingerActivity.java:75)
E/ACRA    ( 2422):      at android.app.Activity.performCreate(Activity.java:4479)
E/ACRA    ( 2422):      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1050)
E/ACRA    ( 2422):      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2041)
E/ACRA    ( 2422):      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2104)
E/ACRA    ( 2422):      at android.app.ActivityThread.access$600(ActivityThread.java:134)
E/ACRA    ( 2422):      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
E/ACRA    ( 2422):      at android.os.Handler.dispatchMessage(Handler.java:99)
E/ACRA    ( 2422):      at android.os.Looper.loop(Looper.java:154)
E/ACRA    ( 2422):      at android.app.ActivityThread.main(ActivityThread.java:4624)
E/ACRA    ( 2422):      at java.lang.reflect.Method.invokeNative(Native Method)
E/ACRA    ( 2422):      at java.lang.reflect.Method.invoke(Method.java:511)
E/ACRA    ( 2422):      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
E/ACRA    ( 2422):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
E/ACRA    ( 2422):      at dalvik.system.NativeStart.main(Native Method)
E/ACRA    ( 2422): Caused by: java.lang.ExceptionInInitializerError
E/ACRA    ( 2422):      at com.neurotec.biometrics.client.NBiometricClient.<clinit>(NBiometricClient.java:146)
E/ACRA    ( 2422):      ... 18 more
E/ACRA    ( 2422): Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'NBiometricClient': Cannot load library: link_image[1962]:   103 could not load needed library 'libNCluster.so' for 'libNBiometricClient.so' (load_library[1117]: Library 'libNCluster.so' not found)
E/ACRA    ( 2422):      at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:194)
E/ACRA    ( 2422):      at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:283)
E/ACRA    ( 2422):      at com.neurotec.biometrics.client.NBiometricClient.<clinit>(NBiometricClient.java:140)
E/ACRA    ( 2422):      ... 18 more
I/ACRA    ( 2422): Finishing the last Activity prior to killing the Process

I've checked installation folder and looks like libNCluster is there:
Code: Select all
root@android:/data/data/com.neurotec.samples.multibiometric/lib # ls -la
-rwxr-xr-x system   system     949653 2014-05-01 06:00 libNBiometricClient.so
-rwxr-xr-x system   system   31634713 2014-05-01 06:00 libNBiometrics.so
[b]-rwxr-xr-x system   system     147087 2014-05-01 06:00 libNCluster.so[/b]
-rwxr-xr-x system   system     117487 2014-05-01 06:00 libNClusterJni.so
-rwxr-xr-x system   system    1639882 2014-05-01 06:00 libNCore.so
-rwxr-xr-x system   system     214241 2014-05-01 06:00 libNDevices.so
-rwxr-xr-x system   system      10966 2014-05-01 06:00 libNGui.so
-rwxr-xr-x system   system     357028 2014-05-01 06:00 libNLicensing.so
-rwxr-xr-x system   system    1614353 2014-05-01 06:00 libNMedia.so
-rwxr-xr-x system   system     406059 2014-05-01 06:00 libNMediaProc.so
-rwxr-xr-x system   system     367473 2014-05-01 06:00 libNService.so
-rwxr-xr-x system   system      37387 2014-05-01 06:00 libNdmFutronic.so
-rwxr-xr-x system   system      33244 2014-05-01 06:00 libNdmSecuGen.so
-rwxr-xr-x system   system     458196 2014-05-01 06:03 libdpfj.so
-rwxr-xr-x system   system      30752 2014-05-01 06:03 libdpfpdd.so
-rwxr-xr-x system   system     346372 2014-05-01 06:03 libdpfpdd5000.so
-rwxr-xr-x system   system      42164 2014-05-01 06:03 libdpuareu_jni.so
-rwxr-xr-x system   system     196264 2014-05-01 06:03 libdpuvc.so
-rwxr-xr-x system   system     468308 2014-05-01 06:00 libftrScanAPI.so
-rwxr-xr-x system   system      17060 2014-05-01 06:04 libftrScanApiAndroidJni.so
-rwxr-xr-x system   system   25056368 2014-05-01 06:00 libgstreamer_android.so
-rwxr-xr-x system   system     996884 2014-05-01 06:04 libibscanultimate.so
-rwxr-xr-x system   system      29820 2014-05-01 06:04 libibscanultimatejni.so
-rwxr-xr-x system   system     708272 2014-05-01 06:03 libjniPtapi.so
-rwxr-xr-x system   system      92460 2014-05-01 06:00 libjnidispatch.so
-rwxr-xr-x system   system      70700 2014-05-01 06:04 libjnisgfdetect.so
-rwxr-xr-x system   system     449940 2014-05-01 06:04 libjnisgfdu03.so
-rwxr-xr-x system   system     136656 2014-05-01 06:04 libjnisgfdu04.so
-rwxr-xr-x system   system     209844 2014-05-01 06:04 libjnisgfplib.so
-rwxr-xr-x system   system     139220 2014-05-01 06:04 libsgfpamx.so
-rwxr-xr-x system   system      42236 2014-05-01 06:00 libusb-1.0.so
-rwxr-xr-x system   system      58604 2014-05-01 06:04 libusb.so

What can be a reason ?

Thanks.

Admin: merged to "Android related questions"
Kosntantin
 
Posts: 10
Joined: Mar 05, 2013 14:26

Re: SDK5.0 multibiometric-sample.apk crashes

Postby Martynas » Apr 10, 2014 10:35

Kosntantin wrote:I'm trying to evaluate new SDK 5.0 release on Android 4.0.1 tablet.

Any attempt to run VeriFinger application crashes.

Here is logcat entries:
Code: Select all
E/ACRA    ( 2422): com.neurotec.samples.multibiometric fatal error : null
E/ACRA    ( 2422): java.lang.ExceptionInInitializerError
E/ACRA    ( 2422):      at com.neurotec.samples.multibiometric.Model.<init>(Model.java:50)
E/ACRA    ( 2422):      at com.neurotec.samples.multibiometric.Model.getInstance(Model.java:32)
E/ACRA    ( 2422):      at com.neurotec.samples.multibiometric.BiometricActivity.onCreate(BiometricActivity.java:202)
E/ACRA    ( 2422):      at com.neurotec.samples.multibiometric.fingers.FingerActivity.onCreate(FingerActivity.java:75)
E/ACRA    ( 2422):      at android.app.Activity.performCreate(Activity.java:4479)
E/ACRA    ( 2422):      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1050)
E/ACRA    ( 2422):      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2041)
E/ACRA    ( 2422):      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2104)
E/ACRA    ( 2422):      at android.app.ActivityThread.access$600(ActivityThread.java:134)
E/ACRA    ( 2422):      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
E/ACRA    ( 2422):      at android.os.Handler.dispatchMessage(Handler.java:99)
E/ACRA    ( 2422):      at android.os.Looper.loop(Looper.java:154)
E/ACRA    ( 2422):      at android.app.ActivityThread.main(ActivityThread.java:4624)
E/ACRA    ( 2422):      at java.lang.reflect.Method.invokeNative(Native Method)
E/ACRA    ( 2422):      at java.lang.reflect.Method.invoke(Method.java:511)
E/ACRA    ( 2422):      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
E/ACRA    ( 2422):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
E/ACRA    ( 2422):      at dalvik.system.NativeStart.main(Native Method)
E/ACRA    ( 2422): Caused by: java.lang.ExceptionInInitializerError
E/ACRA    ( 2422):      at com.neurotec.biometrics.client.NBiometricClient.<clinit>(NBiometricClient.java:146)
E/ACRA    ( 2422):      ... 18 more
E/ACRA    ( 2422): Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'NBiometricClient': Cannot load library: link_image[1962]:   103 could not load needed library 'libNCluster.so' for 'libNBiometricClient.so' (load_library[1117]: Library 'libNCluster.so' not found)
E/ACRA    ( 2422):      at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:194)
E/ACRA    ( 2422):      at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:283)
E/ACRA    ( 2422):      at com.neurotec.biometrics.client.NBiometricClient.<clinit>(NBiometricClient.java:140)
E/ACRA    ( 2422):      ... 18 more
I/ACRA    ( 2422): Finishing the last Activity prior to killing the Process

I've checked installation folder and looks like libNCluster is there:
Code: Select all
root@android:/data/data/com.neurotec.samples.multibiometric/lib # ls -la
-rwxr-xr-x system   system     949653 2014-05-01 06:00 libNBiometricClient.so
-rwxr-xr-x system   system   31634713 2014-05-01 06:00 libNBiometrics.so
[b]-rwxr-xr-x system   system     147087 2014-05-01 06:00 libNCluster.so[/b]
-rwxr-xr-x system   system     117487 2014-05-01 06:00 libNClusterJni.so
-rwxr-xr-x system   system    1639882 2014-05-01 06:00 libNCore.so
-rwxr-xr-x system   system     214241 2014-05-01 06:00 libNDevices.so
-rwxr-xr-x system   system      10966 2014-05-01 06:00 libNGui.so
-rwxr-xr-x system   system     357028 2014-05-01 06:00 libNLicensing.so
-rwxr-xr-x system   system    1614353 2014-05-01 06:00 libNMedia.so
-rwxr-xr-x system   system     406059 2014-05-01 06:00 libNMediaProc.so
-rwxr-xr-x system   system     367473 2014-05-01 06:00 libNService.so
-rwxr-xr-x system   system      37387 2014-05-01 06:00 libNdmFutronic.so
-rwxr-xr-x system   system      33244 2014-05-01 06:00 libNdmSecuGen.so
-rwxr-xr-x system   system     458196 2014-05-01 06:03 libdpfj.so
-rwxr-xr-x system   system      30752 2014-05-01 06:03 libdpfpdd.so
-rwxr-xr-x system   system     346372 2014-05-01 06:03 libdpfpdd5000.so
-rwxr-xr-x system   system      42164 2014-05-01 06:03 libdpuareu_jni.so
-rwxr-xr-x system   system     196264 2014-05-01 06:03 libdpuvc.so
-rwxr-xr-x system   system     468308 2014-05-01 06:00 libftrScanAPI.so
-rwxr-xr-x system   system      17060 2014-05-01 06:04 libftrScanApiAndroidJni.so
-rwxr-xr-x system   system   25056368 2014-05-01 06:00 libgstreamer_android.so
-rwxr-xr-x system   system     996884 2014-05-01 06:04 libibscanultimate.so
-rwxr-xr-x system   system      29820 2014-05-01 06:04 libibscanultimatejni.so
-rwxr-xr-x system   system     708272 2014-05-01 06:03 libjniPtapi.so
-rwxr-xr-x system   system      92460 2014-05-01 06:00 libjnidispatch.so
-rwxr-xr-x system   system      70700 2014-05-01 06:04 libjnisgfdetect.so
-rwxr-xr-x system   system     449940 2014-05-01 06:04 libjnisgfdu03.so
-rwxr-xr-x system   system     136656 2014-05-01 06:04 libjnisgfdu04.so
-rwxr-xr-x system   system     209844 2014-05-01 06:04 libjnisgfplib.so
-rwxr-xr-x system   system     139220 2014-05-01 06:04 libsgfpamx.so
-rwxr-xr-x system   system      42236 2014-05-01 06:00 libusb-1.0.so
-rwxr-xr-x system   system      58604 2014-05-01 06:04 libusb.so

What can be a reason ?

Thanks.

Hi,

this issue is fixed and will be released with the new update of the SDK.
As temporary workaround the fix below can be used.

1. Add neurotec-cluster-android dependency to MM/Samples/Android/multibiometric-sample/pom.xml file:
Code: Select all
<dependency>
            <groupId>com.neurotec</groupId>
            <artifactId>neurotec-cluster-android</artifactId>
            <version>5.0.0.0</version>
</dependency>


2. Edit Model class as follows:
Code: Select all
// ===========================================================
// Private constructor
// ===========================================================
private Model() {
     NCluster.NATIVE_LIBRARY.getClass(); // Add this line before initializing NBiometricClient
         client = new NbiometricClient();
}
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: SDK5.0 multibiometric-sample.apk crashes

Postby Kosntantin » Apr 10, 2014 11:33

Thanks Martynas, But needed to make more modifications to make it work:

1. Add an import to Model.java

Code: Select all
import com.neurotec.cluster.NCluster;


2. Add two more dependencies in multibiometric-sample/pom.xml

Code: Select all
      <dependency>
         <groupId>net.java.dev.jna</groupId>
         <artifactId>libjnidispatch</artifactId>
         <version>3.5.1</version>
         <type>so</type>
         <classifier>armeabi</classifier>
      </dependency>
      <dependency>
         <groupId>net.java.dev.jna</groupId>
         <artifactId>libjnidispatch</artifactId>
         <version>3.5.1</version>
         <type>so</type>
         <classifier>armeabi-v7a</classifier>
      </dependency>


After all modification VeriFinger application has started to work.
Kosntantin
 
Posts: 10
Joined: Mar 05, 2013 14:26

Re: SDK5.0 multibiometric-sample.apk crashes

Postby Martynas » Apr 10, 2014 11:44

Kosntantin wrote:Thanks Martynas, But needed to make more modifications to make it work:

1. Add an import to Model.java

Code: Select all
import com.neurotec.cluster.NCluster;


2. Add two more dependencies in multibiometric-sample/pom.xml

Code: Select all
      <dependency>
         <groupId>net.java.dev.jna</groupId>
         <artifactId>libjnidispatch</artifactId>
         <version>3.5.1</version>
         <type>so</type>
         <classifier>armeabi</classifier>
      </dependency>
      <dependency>
         <groupId>net.java.dev.jna</groupId>
         <artifactId>libjnidispatch</artifactId>
         <version>3.5.1</version>
         <type>so</type>
         <classifier>armeabi-v7a</classifier>
      </dependency>


After all modification VeriFinger application has started to work.

Thanks. I missed it.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Android Sample NoClassDefFoundError

Postby tlouis » May 22, 2014 13:29

Hello,

I"m trying to run the multibiometrics sample on my android Device , but it fails due to NoClassDefFoundError
Code: Select all
05-22 15:09:55.510: E/AndroidRuntime(2954): FATAL EXCEPTION: main
05-22 15:09:55.510: E/AndroidRuntime(2954): java.lang.NoClassDefFoundError: org.acra.ACRA
05-22 15:09:55.510: E/AndroidRuntime(2954):    at com.neurotec.samples.multibiometric.BiometricApplication.onCreate(BiometricApplication.java:45)
05-22 15:09:55.510: E/AndroidRuntime(2954):    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
05-22 15:09:55.510: E/AndroidRuntime(2954):    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4502)
05-22 15:09:55.510: E/AndroidRuntime(2954):    at android.app.ActivityThread.access$1300(ActivityThread.java:150)
05-22 15:09:55.510: E/AndroidRuntime(2954):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1336)
05-22 15:09:55.510: E/AndroidRuntime(2954):    at android.os.Handler.dispatchMessage(Handler.java:99)
05-22 15:09:55.510: E/AndroidRuntime(2954):    at android.os.Looper.loop(Looper.java:213)

I acknowledge that the jar files are not enough to compute the sample and i used the Android NDK to link jar files to the .so libraries

Admin: merged to "Android related questions"
tlouis
 
Posts: 11
Joined: May 22, 2014 13:22

Re: Android Sample NoClassDefFoundError

Postby Martynas » May 23, 2014 11:40

tlouis wrote:Hello,

I"m trying to run the multibiometrics sample on my android Device , but it fails due to NoClassDefFoundError
Code: Select all
05-22 15:09:55.510: E/AndroidRuntime(2954): FATAL EXCEPTION: main
05-22 15:09:55.510: E/AndroidRuntime(2954): java.lang.NoClassDefFoundError: org.acra.ACRA
05-22 15:09:55.510: E/AndroidRuntime(2954):    at com.neurotec.samples.multibiometric.BiometricApplication.onCreate(BiometricApplication.java:45)
05-22 15:09:55.510: E/AndroidRuntime(2954):    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
05-22 15:09:55.510: E/AndroidRuntime(2954):    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4502)
05-22 15:09:55.510: E/AndroidRuntime(2954):    at android.app.ActivityThread.access$1300(ActivityThread.java:150)
05-22 15:09:55.510: E/AndroidRuntime(2954):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1336)
05-22 15:09:55.510: E/AndroidRuntime(2954):    at android.os.Handler.dispatchMessage(Handler.java:99)
05-22 15:09:55.510: E/AndroidRuntime(2954):    at android.os.Looper.loop(Looper.java:213)

I acknowledge that the jar files are not enough to compute the sample and i used the Android NDK to link jar files to the .so libraries

Hello,

What is the revision number of the SDK you are using? It can be found in the SDKRevision.txt file of the downloaded SDK.
Do you receive the same issue if our provided sample is used?
Is the version of your used ADT higher then 17, or lower?
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Android Sample NoClassDefFoundError

Postby tlouis » May 26, 2014 09:14

Hello,

I use the 19th version of Android SDK, that was to try to compile it by my self.



But i already tryied to compile it with the instruction using maven. and there is errors.
Code: Select all
[INFO] Scanning for projects...
Downloading: http://repository.apache.org/snapshots/org/apache/maven/plugins/mav
en-install-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-install-plu
gin/maven-metadata.xml from/to Apache snapshots repository (http://repository.ap
ache.org/snapshots/): Failed to transfer file: http://repository.apache.org/snap
shots/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml. Return c
ode is: 500 , ReasonPhrase:Server Error.
Downloading: http://repository.apache.org/snapshots/org/apache/maven/plugins/mav
en-deploy-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-deploy-plug
in/maven-metadata.xml from/to Apache snapshots repository (http://repository.apa
che.org/snapshots/): Failed to transfer file: http://repository.apache.org/snaps
hots/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml. Return cod
e is: 500 , ReasonPhrase:Server Error.
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea
ded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Multibiometric Sample 5.0.0.0
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.neurotec.samples:utils-android:apklib:5.0.0.0 is missi
ng, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-media-android:jar:5.0.0.0 is missing
, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-media-processing-android:jar:5.0.0.0
 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-gui-android:jar:5.0.0.0 is missing,
no dependency information available
[WARNING] The POM for com.neurotec:neurotec-biometrics-android:jar:5.0.0.0 is mi
ssing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-biometrics-client-android:jar:5.0.0.
0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-cluster-android:jar:5.0.0.0 is missi
ng, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-devices-android:jar:5.0.0.0 is missi
ng, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-biometrics-gui-android:jar:5.0.0.0 i
s missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-devices-fscanners-authentec-android:
jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-devices-fscanners-bluefin-android:ja
r:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-devices-fscanners-digitalpersona-uar
eu-android:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-devices-fscanners-futronic-android:j
ar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-devices-fscanners-secugen-android:ja
r:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-devices-fscanners-integratedbiometri
cs-android:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-devices-irisscanners-iritech-irishie
ld-android:jar:5.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-devices-cameras-android-camera:jar:5
.0.0.0 is missing, no dependency information available
[WARNING] The POM for com.neurotec:neurotec-devices-microphones-android-micropho
ne:jar:5.0.0.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.980 s
[INFO] Finished at: 2014-05-26T11:10:53+01:00
[INFO] Final Memory: 7M/26M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project multibiometric-sample-android: Could n
ot resolve dependencies for project com.neurotec.samples:multibiometric-sample-a
ndroid:apk:5.0.0.0: The following artifacts could not be resolved: com.neurotec.
samples:utils-android:apklib:5.0.0.0, com.neurotec:neurotec-media-android:jar:5.
0.0.0, com.neurotec:neurotec-media-processing-android:jar:5.0.0.0, com.neurotec:
neurotec-gui-android:jar:5.0.0.0, com.neurotec:neurotec-biometrics-android:jar:5
.0.0.0, com.neurotec:neurotec-biometrics-client-android:jar:5.0.0.0, com.neurote
c:neurotec-cluster-android:jar:5.0.0.0, com.neurotec:neurotec-devices-android:ja
r:5.0.0.0, com.neurotec:neurotec-biometrics-gui-android:jar:5.0.0.0, com.neurote
c:neurotec-devices-fscanners-authentec-android:jar:5.0.0.0, com.neurotec:neurote
c-devices-fscanners-bluefin-android:jar:5.0.0.0, com.neurotec:neurotec-devices-f
scanners-digitalpersona-uareu-android:jar:5.0.0.0, com.neurotec:neurotec-devices
-fscanners-futronic-android:jar:5.0.0.0, com.neurotec:neurotec-devices-fscanners
-secugen-android:jar:5.0.0.0, com.neurotec:neurotec-devices-fscanners-integrated
biometrics-android:jar:5.0.0.0, com.neurotec:neurotec-devices-irisscanners-irite
ch-irishield-android:jar:5.0.0.0, com.neurotec:neurotec-devices-cameras-android-
camera:jar:5.0.0.0, com.neurotec:neurotec-devices-microphones-android-microphone
:jar:5.0.0.0: Failure to find com.neurotec.samples:utils-android:apklib:5.0.0.0
in http://repo.maven.apache.org/maven2 was cached in the local repository, resol
ution will not be reattempted until the update interval of central has elapsed o
r updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
C:UsersThomasFavoritesNeurotec_Biometric_5_0_SDK_Trial_2014-05-09Neurotec_B
iometric_5_0_SDK_TrialSamplesBiometricsAndroidmultibiometric-sample>

Best regards
tlouis
 
Posts: 11
Joined: May 22, 2014 13:22

Re: Android Sample NoClassDefFoundError

Postby Martynas » May 26, 2014 11:03

tlouis wrote:Downloading: http://repository.apache.org/snapshots/ ... tadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-deploy-plugin/maven-metadata.xml from/to Apache snapshots repository (http://repository.apache.org/snapshots/): Failed to transfer file: http://repository.apache.org/snapshots/ ... tadata.xml. Return code is: 500 , ReasonPhrase:Server Error.


According to your output it looks like there are issues with your connection to external repositories and packages required for the apk are not downloaded. Do you have a non restricted Internet connection while you are running the "mvn clean install" command?

[WARNING] The POM for com.neurotec:neurotec-devices-android:jar:5.0.0.0 is missing, no dependency information available


The command "mvn clean install" is executed in incorrect folder. You should execute it in "Samples\Biometrics\Android".
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Android Sample NoClassDefFoundError

Postby tlouis » May 26, 2014 12:48

Hello,
Thank you a lot for your help, I successfully compiled your Sample called multi-biometrics.
You was right,it was in the Android folder. It seems like there is an error in the Documentation :
Compiling applications
Samples and other source code is compiled using command line terminal. Use these commands to compile application for
Android platform:
CD %MegaMatcher Embedded Android SDK root directory%
Change directory to where sample is saved:
CD Samples
Build sample application:
mvn clean install

So now. My goal is to developp with the Neurotech SDK an embedded face recognition system. I work for a compagny called that have alread use some of your algorithms (not embedded).

I load the compiled project in Eclipse but there is no link with others package. how can i use your SDK simply ? do i really need the android-ndk ?


Best Regards
tlouis
 
Posts: 11
Joined: May 22, 2014 13:22

Re: Android Sample NoClassDefFoundError

Postby Martynas » May 26, 2014 13:09

tlouis wrote:I load the compiled project in Eclipse but there is no link with others package.


Please explain what do you mean?

tlouis wrote:do i really need the android-ndk ?


Requirements to develop the Android application by using our SDK are provided int he documentation of the SDK (document "Neurotechnology Biometric SDK for Android.pdf"): Section "1.1 System Requirements".
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Android Sample NoClassDefFoundError

Postby tlouis » May 27, 2014 12:11

Hello,

Ok, so i see. I do what it was explained in the instructions to get the Maven project import.
but there is also problems :

[2014-05-27 13:51:39 - utils-android] Unable to resolve target 'android-17'
[2014-05-27 13:52:13 - multibiometric-sample-android] R.java was modified manually! Reverting to generated version!

I apologize for the fact i have no knowledge in how to set a project. I just make an internship and my field is just Applied Mathematic, not pure informatic.
tlouis
 
Posts: 11
Joined: May 22, 2014 13:22

Re: Android Sample NoClassDefFoundError

Postby Martynas » May 27, 2014 12:20

tlouis wrote:Hello,

Ok, so i see. I do what it was explained in the instructions to get the Maven project import.
but there is also problems :

[2014-05-27 13:51:39 - utils-android] Unable to resolve target 'android-17'
[2014-05-27 13:52:13 - multibiometric-sample-android] R.java was modified manually! Reverting to generated version!

I apologize for the fact i have no knowledge in how to set a project. I just make an internship and my field is just Applied Mathematic, not pure informatic.

Hi,

open Android SDK Manager (can be opened from the Eclipse) and install all APIs available in the Android SDK Manager.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Android Sample NoClassDefFoundError

Postby tlouis » May 27, 2014 12:21

Re,

I also noticed that there was a mistake in the pom file, I don't know why :
Code: Select all
at the node : <plugin>

Multiple annotations found at this line:
   - Execution default-proguard of goal com.jayway.maven.plugins.android.generation2:android-maven-
    plugin:3.8.0:proguard failed: Unable to load the mojo 'proguard' (or one of its required components) from the
    plugin 'com.jayway.maven.plugins.android.generation2:android-maven-plugin:
    3.8.0' (com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:proguard:default-
    proguard:process-classes)
   - Execution default-consume-aar of goal com.jayway.maven.plugins.android.generation2:android-
    maven-plugin:3.8.0:consume-aar failed: Unable to load the mojo 'consume-aar' (or one of its required
    components) from the plugin 'com.jayway.maven.plugins.android.generation2:android-maven-plugin:
    3.8.0' (com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:consume-aar:default-
    consume-aar:compile)

In fact when i imported the project using maven, eclipse forced me to install android-maven plugin.
Thank you for your support.

Best Regard
tlouis
 
Posts: 11
Joined: May 22, 2014 13:22

Re: Android Sample NoClassDefFoundError

Postby tlouis » May 28, 2014 13:03

Hello,

I did all it was said in the instruction paper.
When i do : Run as > Maven Build ... ... and all the other instructin i got this message in the console :

Code: Select all
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Multibiometric Sample 5.0.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ multibiometric-sample-android ---
[INFO] Deleting C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target
[INFO] Deleting C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\..\..\..\..\Bin\Android (includes = [multibiometric-sample.apk], excludes = [])
[INFO]
[INFO] --- android-maven-plugin:3.8.0:generate-sources (default-generate-sources) @ multibiometric-sample-android ---
[DEBUG] Expanding: C:\Users\Thomas\.m2\repository\com\neurotec\samples\utils-android\5.0.0.0\utils-android-5.0.0.0.apklib into C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\unpack\apklibs\com.neurotec.samples_utils-android_apklib_5.0.0.0
[DEBUG] expand complete
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] Manifest merging disabled. Using project manifest only
[INFO] C:\NVPACK\android-sdk-windows\build-tools\19.0.3\aapt.exe [package, -m, -J, C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\generated-sources\r, -M, C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\AndroidManifest.xml, -S, C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\res, -S, C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\unpack\apklibs/com.neurotec.samples_utils-android_apklib_5.0.0.0/res, --auto-add-overlay, -A, C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\assets, -I, C:\NVPACK\android-sdk-windows\platforms\android-17\android.jar]
[INFO] C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\unpack\apklibs\com.neurotec.samples_utils-android_apklib_5.0.0.0\res\layout\about_view.xml:14: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_neurotechnology_logo').
[INFO] C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\unpack\apklibs\com.neurotec.samples_utils-android_apklib_5.0.0.0\res\drawable\refresh_button.xml:3: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/ic_menu_refresh_pressed').
[ERROR] Error when generating sources.
org.apache.maven.plugin.MojoExecutionException:
   at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:576)
   at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.execute(GenerateSourcesMojo.java:211)
   at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
   at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
   at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
   at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
   at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
   at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
   at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
   at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:46)
Caused by: com.jayway.maven.plugins.android.ExecutionException: ANDROID-040-001: Could not execute: Command = cmd.exe /X /C "C:\NVPACK\android-sdk-windows\build-tools\19.0.3\aapt.exe package -m -J C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\generated-sources\r -M C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\AndroidManifest.xml -S C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\res -S C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\unpack\apklibs/com.neurotec.samples_utils-android_apklib_5.0.0.0/res --auto-add-overlay -A C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\assets -I C:\NVPACK\android-sdk-windows\platforms\android-17\android.jar", Result = 1
   at com.jayway.maven.plugins.android.CommandExecutor$Factory$DefaultCommandExecutor.executeCommand(CommandExecutor.java:246)
   at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:572)
   ... 23 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.373 s
[INFO] Finished at: 2014-05-28T15:00:20+01:00
[INFO] Final Memory: 14M/225M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:generate-sources (default-generate-sources) on project multibiometric-sample-android: MojoExecutionException: ANDROID-040-001: Could not execute: Command = cmd.exe /X /C "C:\NVPACK\android-sdk-windows\build-tools\19.0.3\aapt.exe package -m -J C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\generated-sources\r -M C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\AndroidManifest.xml -S C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\res -S C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\unpack\apklibs/com.neurotec.samples_utils-android_apklib_5.0.0.0/res --auto-add-overlay -A C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\assets -I C:\NVPACK\android-sdk-windows\platforms\android-17\android.jar", Result = 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException



What can i do ?


Best Regards.
tlouis
 
Posts: 11
Joined: May 22, 2014 13:22

Re: Android Sample NoClassDefFoundError

Postby Martynas » May 28, 2014 13:11

tlouis wrote:Hello,

I did all it was said in the instruction paper.
When i do : Run as > Maven Build ... ... and all the other instructin i got this message in the console :

Code: Select all
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Multibiometric Sample 5.0.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ multibiometric-sample-android ---
[INFO] Deleting C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target
[INFO] Deleting C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\..\..\..\..\Bin\Android (includes = [multibiometric-sample.apk], excludes = [])
[INFO]
[INFO] --- android-maven-plugin:3.8.0:generate-sources (default-generate-sources) @ multibiometric-sample-android ---
[DEBUG] Expanding: C:\Users\Thomas\.m2\repository\com\neurotec\samples\utils-android\5.0.0.0\utils-android-5.0.0.0.apklib into C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\unpack\apklibs\com.neurotec.samples_utils-android_apklib_5.0.0.0
[DEBUG] expand complete
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] Manifest merging disabled. Using project manifest only
[INFO] C:\NVPACK\android-sdk-windows\build-tools\19.0.3\aapt.exe [package, -m, -J, C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\generated-sources\r, -M, C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\AndroidManifest.xml, -S, C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\res, -S, C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\unpack\apklibs/com.neurotec.samples_utils-android_apklib_5.0.0.0/res, --auto-add-overlay, -A, C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\assets, -I, C:\NVPACK\android-sdk-windows\platforms\android-17\android.jar]
[INFO] C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\unpack\apklibs\com.neurotec.samples_utils-android_apklib_5.0.0.0\res\layout\about_view.xml:14: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_neurotechnology_logo').
[INFO] C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\unpack\apklibs\com.neurotec.samples_utils-android_apklib_5.0.0.0\res\drawable\refresh_button.xml:3: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/ic_menu_refresh_pressed').
[ERROR] Error when generating sources.
org.apache.maven.plugin.MojoExecutionException:
   at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:576)
   at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.execute(GenerateSourcesMojo.java:211)
   at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
   at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
   at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
   at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
   at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
   at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
   at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
   at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
   at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
   at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:46)
Caused by: com.jayway.maven.plugins.android.ExecutionException: ANDROID-040-001: Could not execute: Command = cmd.exe /X /C "C:\NVPACK\android-sdk-windows\build-tools\19.0.3\aapt.exe package -m -J C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\generated-sources\r -M C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\AndroidManifest.xml -S C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\res -S C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\unpack\apklibs/com.neurotec.samples_utils-android_apklib_5.0.0.0/res --auto-add-overlay -A C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\assets -I C:\NVPACK\android-sdk-windows\platforms\android-17\android.jar", Result = 1
   at com.jayway.maven.plugins.android.CommandExecutor$Factory$DefaultCommandExecutor.executeCommand(CommandExecutor.java:246)
   at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:572)
   ... 23 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.373 s
[INFO] Finished at: 2014-05-28T15:00:20+01:00
[INFO] Final Memory: 14M/225M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:generate-sources (default-generate-sources) on project multibiometric-sample-android: MojoExecutionException: ANDROID-040-001: Could not execute: Command = cmd.exe /X /C "C:\NVPACK\android-sdk-windows\build-tools\19.0.3\aapt.exe package -m -J C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\generated-sources\r -M C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\AndroidManifest.xml -S C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\res -S C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\target\unpack\apklibs/com.neurotec.samples_utils-android_apklib_5.0.0.0/res --auto-add-overlay -A C:\Users\Thomas\cours\Neurotec_Biometric_5_0_SDK_Trial_2014-05-09\Neurotec_Biometric_5_0_SDK_Trial\Samples\Biometrics\Android\multibiometric-sample\assets -I C:\NVPACK\android-sdk-windows\platforms\android-17\android.jar", Result = 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException



What can i do ?


Best Regards.

Hi,

did you run "mvn clean install" command in the Command Prompt in "Samples\Biometrics\Android" folder? Was it successful?
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Android Sample NoClassDefFoundError

Postby tlouis » May 28, 2014 13:15

Re:
yes i already done it in the command prompt and it have works well, i get the .apk file that works.
Should i do it, and do it again with eclipse ?
tlouis
 
Posts: 11
Joined: May 22, 2014 13:22

Re: Android Sample NoClassDefFoundError

Postby Martynas » May 28, 2014 13:20

tlouis wrote:Re:
yes i already done it in the command prompt and it have works well, i get the .apk file that works.
Should i do it, and do it again with eclipse ?

Hello,

it is enough to run it in Command Prompt. Once it is doen and is successful, then in Eclipse you need to import the maven project and there is no need to run "Build" again. You can "Run as" or "Debug as" Android application, if your device is connected.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Android Sample NoClassDefFoundError

Postby tlouis » May 28, 2014 13:30

Hello,

I've got an apk file but it's invalid due to the Maven build ...

Best Regards
tlouis
 
Posts: 11
Joined: May 22, 2014 13:22

Re: Android Sample NoClassDefFoundError

Postby Martynas » May 28, 2014 13:33

Hello,

please write an email to support@neurotechnology.com and we will arrange a remote connection to your computer tomorrow.
Explain the issue in email in details.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Set Android"s Front Camera as Default in FaceActivity Sample

Postby rabsafari » May 29, 2014 17:05

How do I set the Android"s front camera as the default in the FaceActivity sample?

Admin: merged to "Android related questions"
rabsafari
 
Posts: 2
Joined: May 29, 2014 16:27

Re: Set Android"s Front Camera as Default in FaceActivity Sa

Postby Martynas » May 30, 2014 11:49

rabsafari wrote:How do I set the Android"s front camera as the default in the FaceActivity sample?


Hi,

What is the revision number of the SDK you are using? It can be found in the SDKRevision.txt file of the downloaded SDK.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Set Android"s Front Camera as Default in FaceActivity Sa

Postby rabsafari » May 30, 2014 12:44

Product revision number: 117693
rabsafari
 
Posts: 2
Joined: May 29, 2014 16:27

Re: Set Android"s Front Camera as Default in FaceActivity Sa

Postby Martynas » Jun 02, 2014 08:44

rabsafari wrote:Product revision number: 117693

Hello,

You need to set which camera will be used in NBiometricClient, by using method setFaceCaptureDevice.
The list of available cameras can be retrieved from NDeviceManager.

FaceActivity.java has this code below, which shows how to get the devices from the NDeviceManager and how to set the camera as capturing device.

Code: Select all
      for (NDevice device : client.getDeviceManager().getDevices()) {
         if (device.getDeviceType().contains(NDeviceType.CAMERA)) {
            if (!device.equals(currentCamera)) {
               client.setFaceCaptureDevice((NCamera) device);
               startCapturing();
               break;
            }
         }
      }


So, if you want to set some camera by default, this should be done before the capturing is started in your application.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

ExceptionInInitializerError in Android

Postby ajain » Jun 23, 2014 04:53

I work for Organization which have purchased Megamatcher License. We are trying to integrate Biometric as a part of services. I have created Android Maven project with all dependency added up in parent pom.xml and app pom.xml(Please refer in post below for code), There are lot of issuesI am facing

1. How to integrate App Licensing in Custom Developed Applications?,
Feedback: It should quite easy and direct process, along with proper documentation for it, both in terms of Package Hierachy(Standard Java docs format) and Code Documentation in samples.


2. How does app take licensing, since I already have License Manager installed and it shows list of available licenses. Cause the app crashes even adding all the necessary libraries and dependencies?
Feedback: Please provide stub project OR Maven Archtype for creating stub Android Maven project which create basic Android Activity along with licensing and other things, Since it gives a quick start to developer in many ways, instead of manually finding and integrating lot of code from sample and utils. It also becomes quite easy to go instead of hit and trial. Please consider this as it provide lot of help


3. I am having error when I start the FingerActivity in my application which was copied from Android Samples Application. (Yes I have copied most of necessary, that is why it is getting successfully build)
The LogCat message is as follows
Code: Select all
06-20 07:08:14.010: W/dalvikvm(8597): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/sun/jna/Native;
06-20 07:08:14.010: W/dalvikvm(8597): Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Lcom/sun/jna/NativeLibrary;
06-20 07:08:14.010: W/dalvikvm(8597): Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Lcom/neurotec/lang/NCore;
06-20 07:08:14.010: D/AndroidRuntime(8597): Shutting down VM
06-20 07:08:14.010: W/dalvikvm(8597): threadid=1: thread exiting with uncaught exception (group=0x40a621f8)
06-20 07:08:14.020: E/AndroidRuntime(8597): FATAL EXCEPTION: main
06-20 07:08:14.020: E/AndroidRuntime(8597): java.lang.ExceptionInInitializerError
06-20 07:08:14.020: E/AndroidRuntime(8597):    at com.neurotec.multibiometric.BiometricActivity.onCreate(BiometricActivity.java:159)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at com.neurotec.multibiometric.fingers.FingerActivity.onCreate(FingerActivity.java:74)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at android.app.Activity.performCreate(Activity.java:4492)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at android.app.ActivityThread.access$600(ActivityThread.java:123)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at android.os.Handler.dispatchMessage(Handler.java:99)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at android.os.Looper.loop(Looper.java:137)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at android.app.ActivityThread.main(ActivityThread.java:4424)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at java.lang.reflect.Method.invokeNative(Native Method)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at java.lang.reflect.Method.invoke(Method.java:511)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at dalvik.system.NativeStart.main(Native Method)
06-20 07:08:14.020: E/AndroidRuntime(8597): Caused by: java.lang.ExceptionInInitializerError
06-20 07:08:14.020: E/AndroidRuntime(8597):    at com.neurotec.lang.NCore.<clinit>(NCore.java:115)
06-20 07:08:14.020: E/AndroidRuntime(8597):    ... 16 more
06-20 07:08:14.020: E/AndroidRuntime(8597): Caused by: java.lang.ExceptionInInitializerError
06-20 07:08:14.020: E/AndroidRuntime(8597):    at com.neurotec.lang.NCore.<clinit>(NCore.java:107)
06-20 07:08:14.020: E/AndroidRuntime(8597):    ... 16 more
06-20 07:08:14.020: E/AndroidRuntime(8597): Caused by: java.lang.ExceptionInInitializerError
06-20 07:08:14.020: E/AndroidRuntime(8597):    at com.sun.jna.NativeLibrary.<clinit>(NativeLibrary.java:67)
06-20 07:08:14.020: E/AndroidRuntime(8597):    ... 17 more
06-20 07:08:14.020: E/AndroidRuntime(8597): Caused by: java.lang.UnsatisfiedLinkError: Couldn"t load jnidispatch: findLibrary returned null
06-20 07:08:14.020: E/AndroidRuntime(8597):    at java.lang.Runtime.loadLibrary(Runtime.java:365)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at java.lang.System.loadLibrary(System.java:535)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at com.sun.jna.Native.loadNativeLibrary(Native.java:698)
06-20 07:08:14.020: E/AndroidRuntime(8597):    at com.sun.jna.Native.<clinit>(Native.java:127)
06-20 07:08:14.020: E/AndroidRuntime(8597):    ... 18 more



parent pom.xml
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <groupId>com.tbrain.biometric</groupId>
   <artifactId>BiometricDemo-parent</artifactId>   
   <version>1</version>
   <packaging>pom</packaging>
   <name>BiometricDemo - Parent</name>      
   
   
   <modules>
      <module>/../utils</module>
      <module>BiometricDemo</module>
      <!-- <module>BiometricDemo-it</module> -->
   </modules>

   <properties>
      <product.root.directory>${basedir}/../../..</product.root.directory>
      <platform.version> 4.1.1.4</platform.version>
      <android.plugin.version>3.6.0</android.plugin.version>
   </properties>

   <dependencyManagement>
      <dependencies>
         <dependency>
            <groupId>com.google.android</groupId>
            <artifactId>android</artifactId>
            <version>${platform.version}</version>
            <scope>provided</scope>
         </dependency>
         <dependency>
            <groupId>com.google.android</groupId>
            <artifactId>android-test</artifactId>
            <version>${platform.version}</version>
            <scope>provided</scope>
         </dependency>
         <!-- <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>provided</scope>
         </dependency> -->
         <dependency>
            <groupId>com.neurotec.samples</groupId>
            <artifactId>utils-android</artifactId>
            <version>5.0.0.0</version>
            <type>apklib</type>
         </dependency>
         
         <!--Neurotec Dependency -->
         <dependency>
            <groupId>com.neurotec</groupId>
            <artifactId>neurotec-media-android</artifactId>
            <version>5.0.0.0</version>
         </dependency>
         <dependency>
            <groupId>com.neurotec</groupId>
            <artifactId>neurotec-media-processing-android</artifactId>
            <version>5.0.0.0</version>
         </dependency>
         <dependency>
            <groupId>com.neurotec</groupId>
            <artifactId>neurotec-gui-android</artifactId>
            <version>5.0.0.0</version>
         </dependency>
         <dependency>
            <groupId>com.neurotec</groupId>
            <artifactId>neurotec-biometrics-android</artifactId>
            <version>5.0.0.0</version>
         </dependency>
         <dependency>
            <groupId>com.neurotec</groupId>
            <artifactId>neurotec-biometrics-client-android</artifactId>
            <version>5.0.0.0</version>
         </dependency>
         <dependency>
            <groupId>com.neurotec</groupId>
            <artifactId>neurotec-devices-android</artifactId>
            <version>5.0.0.0</version>
         </dependency>
         <dependency>
            <groupId>com.neurotec</groupId>
            <artifactId>neurotec-biometrics-gui-android</artifactId>
            <version>5.0.0.0</version>
         </dependency>
         <dependency>
            <groupId>ch.acra</groupId>
            <artifactId>acra</artifactId>
            <version>4.5.0</version>
         </dependency>
           <dependency>
               <groupId>net.java.dev.jna</groupId>
               <artifactId>libjnidispatch</artifactId>
               <version>3.5.1</version>
               <type>so</type>
               <classifier>armeabi</classifier>
         </dependency>
         <dependency>
            <groupId>net.java.dev.jna</groupId>
            <artifactId>libjnidispatch</artifactId>
            <version>3.5.1</version>
            <type>so</type>
            <classifier>armeabi-v7a</classifier>
         </dependency>
      </dependencies>
   </dependencyManagement>

   <build>
      <pluginManagement>
         <plugins>
            <plugin>
               <groupId>com.jayway.maven.plugins.android.generation2</groupId>
               <artifactId>android-maven-plugin</artifactId>
               <!-- <version>${android.plugin.version}</version> -->
               <!-- <version>3.2.1</version> -->
               <configuration>
                  <sdk>
                     <platform>16</platform>
                  </sdk>
               </configuration>
            </plugin>
            <plugin>
               <artifactId>maven-compiler-plugin</artifactId>
               <configuration>
                     <encoding>UTF-8</encoding>
                     <source>1.6</source>
                     <target>1.6</target>
               </configuration>
               <version>3.1</version>
            </plugin>
            
            <plugin>
               <artifactId>maven-jar-plugin</artifactId>
               <configuration>
                  <outputDirectory>${project.build.directory}</outputDirectory>
               </configuration>
            </plugin>
            <plugin>
               <artifactId>maven-surefire-plugin</artifactId>
               <configuration>
                  <skipTests>true</skipTests>
               </configuration>
            </plugin>
            
            <plugin>
               <artifactId>maven-clean-plugin</artifactId>
               <configuration>
                  <filesets>
                     <fileset>
                         <directory>${project.build.directory}</directory>
                        <includes>
                           <include>${project.build.finalName}.apk</include>
                        </includes>
                     </fileset>
                  </filesets>
               </configuration>
            </plugin>
            
            
            <plugin>
               <artifactId>maven-dependency-plugin</artifactId>
               <executions>
                  <execution>
                     <id>copy-dependencies</id>
                     <phase>package</phase>
                     <goals>
                        <goal>copy-dependencies</goal>
                     </goals>
                     <configuration>
                        <includeScope>runtime</includeScope>
                        <outputDirectory>${project.output.directory}</outputDirectory>
                        <includeGroupIds>ch.acra</includeGroupIds>
                        <stripVersion>true</stripVersion>
                        <overWriteIfNewer>true</overWriteIfNewer>
                     </configuration>
                  </execution>
               </executions>
            </plugin>
            
            <plugin>
               <artifactId>maven-resources-plugin</artifactId>
               <version>2.5</version>
               <executions>
                  <execution>
                     <id>copy-resources</id>
                     <phase>package</phase>
                     <goals>
                        <goal>copy-resources</goal>
                     </goals>
                     <configuration>
                        <outputDirectory>${project.build.directory}</outputDirectory>
                        <resources>
                           <resource>
                              <directory>${project.build.directory}</directory>
                              <includes>
                                 <include>${project.build.finalName}.apk</include>
                              </includes>
                           </resource>
                        </resources>
                     </configuration>
                  </execution>
               </executions>
            </plugin>
         </plugins>
      </pluginManagement>
   </build>
</project>


App pom.xml
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
   
   <parent>
      <groupId>com.tbrain.biometric</groupId>
      <artifactId>BiometricDemo-parent</artifactId>
      <version>1</version>
   </parent>

   <groupId>com.tbrain.biometric.app</groupId>
   <artifactId>BiometricDemo</artifactId>
   <version>1.0.1</version>
   <packaging>apk</packaging>
   <name>BiometricDemo - Application</name>

   <dependencies>
      <dependency>
         <groupId>com.google.android</groupId>
         <artifactId>android</artifactId>
<!--          <version>${platform.version}</version> -->
         <scope>provided</scope>
      </dependency>
      
      <dependency>
         <groupId>com.neurotec.samples</groupId>
         <artifactId>utils-android</artifactId>
         <type>apklib</type>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-media-android</artifactId>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-media-processing-android</artifactId>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-gui-android</artifactId>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-biometrics-android</artifactId>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-biometrics-client-android</artifactId>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-cluster-android</artifactId>
         <version>5.0.0.0</version>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-devices-android</artifactId>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-biometrics-gui-android</artifactId>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-devices-fscanners-authentec-android</artifactId>
         <version>5.0.0.0</version>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-devices-fscanners-bluefin-android</artifactId>
         <version>5.0.0.0</version>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-devices-fscanners-digitalpersona-uareu-android</artifactId>
         <version>5.0.0.0</version>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-devices-fscanners-futronic-android</artifactId>
         <version>5.0.0.0</version>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-devices-fscanners-secugen-android</artifactId>
         <version>5.0.0.0</version>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-devices-fscanners-integratedbiometrics-android</artifactId>
         <version>5.0.0.0</version>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-devices-irisscanners-iritech-irishield-android</artifactId>
         <version>5.0.0.0</version>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-devices-cameras-android-camera</artifactId>
         <version>5.0.0.0</version>
      </dependency>
      <dependency>
         <groupId>com.neurotec</groupId>
         <artifactId>neurotec-devices-microphones-android-microphone</artifactId>
         <version>5.0.0.0</version>
      </dependency>
      <dependency>
         <groupId>ch.acra</groupId>
         <artifactId>acra</artifactId>
      </dependency>
   </dependencies>
   <build>
      <finalName>${project.artifactId}</finalName>
      <plugins>
         <plugin>
            <groupId>com.jayway.maven.plugins.android.generation2</groupId>
            <artifactId>android-maven-plugin</artifactId>
            <!-- <extensions>true</extensions> -->
            <extensions>true</extensions>
            <configuration>
               <sdk>
                  <platform>${android.platform}</platform>
               </sdk>
            </configuration>
         </plugin>
<!--          <plugin> -->
<!--             <artifactId>maven-dependency-plugin</artifactId> -->
<!--          </plugin> -->
      </plugins>
   </build>
</project>


I have made changes as per needed to pom.xml and have also added two more dependencies net.java.dev.jna


Project Structure as in Eclipse, see the image
http://picpaste.com/project_struture_in_eclipse-2lGMVWJg.png

Library Dependencies added , see image below
http://picpaste.com/eclipse_libraries-cWzHRYpa.png

Please reply how to solve error and also do take feedback as noted. If anything else require, Please inform.

Admin: merged to "Android related questions"
ajain
 
Posts: 4
Joined: Jun 19, 2014 12:00

Re: ExceptionInInitializerError in Android

Postby Vytautas » Jun 23, 2014 13:22

Hello,

What is the revision number of the SDK (number is located in the text file of SDK installation directory)?
Could you please provide a screenshot of libraries added in libs folder of your project.
Native libraries should be added to the project from SDK\libs\android.

Licensing is done through the services listed in manifest and can be of following types:
trial licensing- can obtain license directly over internet
non-trial:
1. serial number licenses provided as serial number files, which after activation (can be online or manual activation, both generates license file .lic), can be used offline. Locks to hardware. License will be lost if factory reset or in some cases when major android OS update is installed.
2. internet license - does not require activation, constant internet connectivity is required for license validation, can be moved to another device.
3. VLM usb dongle - special device which can be connected to the device directly (may require rooting and permission setting) or can provide licenses over the network when connected to another machine.
Code: Select all
<service
         android:name="com.neurotec.licensing.NPGService"
         android:enabled="true"
         android:process="com.neurotec.licensing.NPGService" >
         <intent-filter>
            <action android:name="com.neurotec.licensing.NPGService" />
         </intent-filter>
      </service>
      <service
         android:name="com.neurotec.licensing.NIDGenService"
         android:enabled="true"
         android:process="com.neurotec.licensing.NIDGenService" >
         <intent-filter>
            <action android:name="com.neurotec.licensing.NIDGenService" />
         </intent-filter>
      </service>
      <service
         android:name="com.neurotec.licensing.NPGMonitor"
         android:enabled="true"
         android:process="com.neurotec.licensing.NPGMonitor" >
         <intent-filter>
            <action android:name="com.neurotec.licensing.NPGMonitor" />
         </intent-filter>
      </service>

Feedback is noted. Will pass to documentation and development teams.
Vytautas P
Neurotechnology
Vytautas
Neurotechnology
 
Posts: 25
Joined: Apr 23, 2013 13:04

Re: ExceptionInInitializerError in Android

Postby ajain » Jun 24, 2014 05:27

Yes by adding the native libraries to the libs directory, it is working and yes I have already added/defined the specific services to the Android Manifest.xml

The revision Number is
Product revision number: 119249


The issues now coming are:
1. It takes lot of time to load FingerActivity, around 10 seconds.

2. By adding the Native libraries, the Final build size of the APK is increased quite a lot. What is the way to reduce it?

3. What Components does FingerMatcherClient and FingerMatcherMatcher license cover?

Since I am not able to obtain license
We have serial number licenses provided as serial number files.lic for above mentioned two

and the information provided in the http://www.neurotechnology.com/fingerprint-components.html is different that what is in License Manager.

Logcat log
Code: Select all
06-24 07:21:41.058: I/LicensingManager(15495): Obtaining licenses from server /local:5000
06-24 07:21:41.188: D/dalvikvm(15495): GC_CONCURRENT freed 539K, 14% free 7624K/8775K, paused 3ms+5ms
06-24 07:21:41.318: E/LicensingManager(15495): Exception
06-24 07:21:41.318: E/LicensingManager(15495): com.neurotec.io.NIOException: IO error occurred
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.io.IOErrorCreator.create(IOErrorCreator.java:21)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:22)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.lang.NError.get(NError.java:174)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.lang.NError.get(NError.java:191)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.lang.NError.getLast(NError.java:205)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.lang.NResult.checkUnchecked(NResult.java:245)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.licensing.NLicense.obtainComponents(NLicense.java:223)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.licensing.NLicense.obtainComponents(NLicense.java:325)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.licensing.LicensingManager.obtain(LicensingManager.java:197)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.licensing.LicensingManager.obtain(LicensingManager.java:280)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.licensing.LicensingManager$2.doInBackground(LicensingManager.java:255)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.licensing.LicensingManager$2.doInBackground(LicensingManager.java:246)
06-24 07:21:41.318: E/LicensingManager(15495):    at android.os.AsyncTask$2.call(AsyncTask.java:264)
06-24 07:21:41.318: E/LicensingManager(15495):    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
06-24 07:21:41.318: E/LicensingManager(15495):    at java.util.concurrent.FutureTask.run(FutureTask.java:137)
06-24 07:21:41.318: E/LicensingManager(15495):    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
06-24 07:21:41.318: E/LicensingManager(15495):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
06-24 07:21:41.318: E/LicensingManager(15495):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
06-24 07:21:41.318: E/LicensingManager(15495):    at java.lang.Thread.run(Thread.java:856)


Following License defined as while trying to get components in FingerActivity
Code: Select all
protected List<String> getComponents()
   {
             return Arrays.asList(LicensingManager.LICENSE_FINGER_DETECTION,
         LicensingManager.LICENSE_FINGER_EXTRACTION,
         LicensingManager.LICENSE_FINGER_MATCHING,
         LicensingManager.LICENSE_FINGER_MATCHING_FAST,
         LicensingManager.LICENSE_FINGER_DEVICES_SCANNERS,
         LicensingManager.LICENSE_FINGER_WSQ,
         LicensingManager.LICENSE_FINGER_STANDARDS_FINGER_TEMPLATES,
         LicensingManager.LICENSE_FINGER_STANDARDS_FINGERS);
   }


4. Which libraries and dependency and libraries, must to have Fingerprint Biometric in the application, what else can be removed??

5. Screenshot of Finger Activity after Loading, and not obtaining License
http://picpaste.com/device-2014-06-24-105848-0XPsMtm2.png
ajain
 
Posts: 4
Joined: Jun 19, 2014 12:00

Re: ExceptionInInitializerError in Android

Postby Vytautas » Jun 30, 2014 13:07

Hello,

please find answers below.


1. It takes lot of time to load FingerActivity, around 10 seconds.


First time BiometricClient initialization takes 6 or more seconds. Also licensing may take some time too.

2. By adding the Native libraries, the Final build size of the APK is increased quite a lot. What is the way to reduce it?


NBiometrics and gsteamer native libs takes the largest part of the final APK. Unfortunately at this moment there is no way to reduce NBiometrics size or split into separate libraries for different modalities.

3. What Components does FingerMatcherClient and FingerMatcherMatcher license cover?

Since I am not able to obtain license
We have serial number licenses provided as serial number files.lic for above mentioned two
and the information provided in the http://www.neurotechnology.com/fingerprint-components.html is different that what is in License Manager.

Fingerprint Extractor unlocks:
  • Devices.FingerScanners
  • SmartCards
  • Biometrics.FingerDetectionBase
  • Biometrics.FingerExtraction
  • Biometrics.FingerExtractionBase
  • Images.Processing.FFT

Fingerprint Client unlocks:
  • Devices.FingerScanners
  • Biometrics.FingerDetectionBase
  • Biometrics.FingerDetection
  • Biometrics.FingerExtractionBase
  • Biometrics.FingerExtraction
  • Biometrics.FingerSegmentation
  • Biometrics.FingerQualityAssessment
  • Images.WSQ
  • Images.IHead
  • Images.LosslessJPEG
  • Images.JPEG2000
  • Images.Processing.FFT
  • Biometrics.Standards.Base
  • Biometrics.Standards.FingerTemplates
  • Biometrics.Standards.FingerCardTemplates
  • Biometrics.Standards.Fingers
  • Biometrics.Standards.Other
  • BioAPI.Base
  • BioAPI.Fingers
  • Biometrics.Tools.NFIQ
  • Biometrics.Tools.FingerClassification

Fingerprint Matcher unlocks:
  • Cluster.ClusterNode
  • Biometrics.MatchingFusion
  • Biometrics.FingerMatching

If licenses can not be obtained, please send license files and hardware id files from your android device to support@neurotechnology.com

Logcat log
Code: Select all
06-24 07:21:41.058: I/LicensingManager(15495): Obtaining licenses from server /local:5000
06-24 07:21:41.188: D/dalvikvm(15495): GC_CONCURRENT freed 539K, 14% free 7624K/8775K, paused 3ms+5ms
06-24 07:21:41.318: E/LicensingManager(15495): Exception
06-24 07:21:41.318: E/LicensingManager(15495): com.neurotec.io.NIOException: IO error occurred
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.io.IOErrorCreator.create(IOErrorCreator.java:21)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:22)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.lang.NError.get(NError.java:174)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.lang.NError.get(NError.java:191)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.lang.NError.getLast(NError.java:205)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.lang.NResult.checkUnchecked(NResult.java:245)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.licensing.NLicense.obtainComponents(NLicense.java:223)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.licensing.NLicense.obtainComponents(NLicense.java:325)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.licensing.LicensingManager.obtain(LicensingManager.java:197)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.licensing.LicensingManager.obtain(LicensingManager.java:280)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.licensing.LicensingManager$2.doInBackground(LicensingManager.java:255)
06-24 07:21:41.318: E/LicensingManager(15495):    at com.neurotec.licensing.LicensingManager$2.doInBackground(LicensingManager.java:246)
06-24 07:21:41.318: E/LicensingManager(15495):    at android.os.AsyncTask$2.call(AsyncTask.java:264)
06-24 07:21:41.318: E/LicensingManager(15495):    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
06-24 07:21:41.318: E/LicensingManager(15495):    at java.util.concurrent.FutureTask.run(FutureTask.java:137)
06-24 07:21:41.318: E/LicensingManager(15495):    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
06-24 07:21:41.318: E/LicensingManager(15495):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
06-24 07:21:41.318: E/LicensingManager(15495):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
06-24 07:21:41.318: E/LicensingManager(15495):    at java.lang.Thread.run(Thread.java:856)


In most cases IO exception is thrown if licensing services are not running.

4. Which libraries and dependency and libraries, must to have Fingerprint Biometric in the application, what else can be removed??


Scanner modules that will not be used can be removed. However, as mentioned earlier size of NBiometrics library account for quite large part of all libraries size.

5. Screenshot of Finger Activity after Loading, and not obtaining License
http://picpaste.com/device-2014-06-24-105848-0XPsMtm2.png
Vytautas P
Neurotechnology
Vytautas
Neurotechnology
 
Posts: 25
Joined: Apr 23, 2013 13:04

Re: Android related questions

Postby chapman » Aug 03, 2014 06:12

Hi All

i have a question about Android of Neurotec Biometric 5.0 SDK Trial
i just took steps under process

1st. download Neurotec Biometric 5.0 SDK Trial
-. Product revision number: 120480
2nd. copy multibiometric-sample.apk and licensing-manager.apk into Samsung Galaxy S3 root folder
multibiometric-sample.apk and licensing-manager.apk are located in Neurotec Biometric 5.0 SDK TrialBinAndroid
3rd. execute multibiometric-sample.apk in Samsung Galaxy S3
4th. run VeriLook Appl but it still shows "obtaining license...." and then display only "Lecense were not obtained"

How can i play VeriLook??

for the reference, i tested Neurotechnology_Biometric_Algorithm_Demo_Android.apk, it did not work any time, but it sometimes work so i could take picture and save and identified

BR
chapman

Thank you
chapman
 
Posts: 3
Joined: Aug 02, 2014 16:04

Re: Android related questions

Postby Martynas » Aug 04, 2014 08:57

chapman wrote:Hi All

i have a question about Android of Neurotec Biometric 5.0 SDK Trial
i just took steps under process

1st. download Neurotec Biometric 5.0 SDK Trial
-. Product revision number: 120480
2nd. copy multibiometric-sample.apk and licensing-manager.apk into Samsung Galaxy S3 root folder
multibiometric-sample.apk and licensing-manager.apk are located in Neurotec Biometric 5.0 SDK TrialBinAndroid
3rd. execute multibiometric-sample.apk in Samsung Galaxy S3
4th. run VeriLook Appl but it still shows "obtaining license...." and then display only "Lecense were not obtained"

How can i play VeriLook??

for the reference, i tested Neurotechnology_Biometric_Algorithm_Demo_Android.apk, it did not work any time, but it sometimes work so i could take picture and save and identified

BR
chapman

Thank you

Hello,

the trial on Android requires that the broadband Internet connection via WiFi should be available. The 3G/2G Internet connection is not supported by the trial version of the SDK.
If you are using the broadband Internet connection on your device and still experiencing the "license not obtained" issue, then write an email to support@neurotechnology.com and provide your external IP address too along with the detailed description of the issue.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Android related questions

Postby chapman » Aug 11, 2014 03:05

Hi,

I am using your trial sdk(Neurotec_Biometric_4_5_SDK_Trial). I want to use KOREAN Language when i enroll korean name
and then take picture and check identify buit the name of id crashed

how can i save korean name and display correctly korean name in verification without any carshed characters

for the reference, i submit the log message about korean crash

Any help in the regard will be really helpfull.

Thanks
chapman

Code: Select all
=============================================================
08-11 11:49:21.782: I/InputDispatcher(2378): Delivering touch to: action: 0x1
08-11 11:49:21.782: E/DatabaseUtils(2378): Writing exception to parcel
08-11 11:49:21.782: E/DatabaseUtils(2378): java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
08-11 11:49:21.782: E/DatabaseUtils(2378):    at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:13325)
08-11 11:49:21.782: E/DatabaseUtils(2378):    at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2038)
08-11 11:49:21.782: E/DatabaseUtils(2378):    at com.android.providers.settings.SettingsProvider.callFromPackage(SettingsProvider.java:607)
08-11 11:49:21.782: E/DatabaseUtils(2378):    at android.content.ContentProvider$Transport.call(ContentProvider.java:279)
08-11 11:49:21.782: E/DatabaseUtils(2378):    at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:273)
08-11 11:49:21.782: E/DatabaseUtils(2378):    at android.os.Binder.execTransact(Binder.java:388)
08-11 11:49:21.782: E/DatabaseUtils(2378):    at dalvik.system.NativeStart.run(Native Method)
08-11 11:49:21.782: W/ActivityManager(2378): Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
08-11 11:49:21.812: E/EnterpriseContainerManager(2378): ContainerPolicy Service is not yet ready!!!
08-11 11:49:21.812: D/EnterpriseDeviceManager(2378): ContainerId: 0
08-11 11:49:21.817: W/LicenseLogService(2378): log() is called by non admin
08-11 11:49:21.817: E/ViewRootImpl(5677): sendUserActionEvent() mView == null
08-11 11:49:21.817: W/InputMethodManagerService(2378): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43e8ad30 attribute=null, token = android.os.BinderProxy@43dc31b0
08-11 11:49:22.067: I/SurfaceFlinger(1950): id=392 Removed GaceActivit (4/5)
08-11 11:49:22.067: I/SurfaceFlinger(1950): id=392 Removed GaceActivit (-2/5)
08-11 11:49:24.107: D/SSRMv2:Monitor(2378): SIOP:: AP = 370 (read only)
08-11 11:49:25.792: I/InputReader(2378): Touch event"s action is 0x0 (deviceType=0) [pCnt=1, s=0.1382 ] when=13007199173000
08-11 11:49:25.792: I/InputDispatcher(2378): Delivering touch to: action: 0x0
08-11 11:49:25.877: I/InputReader(2378): Touch event"s action is 0x1 (deviceType=0) [pCnt=1, s=] when=13007288593000
08-11 11:49:25.877: I/InputDispatcher(2378): Delivering touch to: action: 0x1
08-11 11:49:25.882: E/DatabaseUtils(2378): Writing exception to parcel
08-11 11:49:25.882: E/DatabaseUtils(2378): java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
08-11 11:49:25.882: E/DatabaseUtils(2378):    at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:13325)
08-11 11:49:25.882: E/DatabaseUtils(2378):    at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2038)
08-11 11:49:25.882: E/DatabaseUtils(2378):    at com.android.providers.settings.SettingsProvider.callFromPackage(SettingsProvider.java:607)
08-11 11:49:25.882: E/DatabaseUtils(2378):    at android.content.ContentProvider$Transport.call(ContentProvider.java:279)
08-11 11:49:25.882: E/DatabaseUtils(2378):    at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:273)
08-11 11:49:25.882: E/DatabaseUtils(2378):    at android.os.Binder.execTransact(Binder.java:388)
08-11 11:49:25.882: E/DatabaseUtils(2378):    at dalvik.system.NativeStart.run(Native Method)
08-11 11:49:25.882: W/ActivityManager(2378): Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
08-11 11:49:25.887: I/BiometricActivity(5677): Operation: IDENTIFY, Status: OK
08-11 11:49:25.902: V/PackageManager(2378): getApplicationInfo com.neurotec.samples.multibiometric: Package{465a7630 com.neurotec.samples.multibiometric}
08-11 11:49:25.922: V/WindowManager(2378): Window{43e1eb58 u0 Keyguard}mOrientationRequetedFromKeyguard=false
chapman
 
Posts: 3
Joined: Aug 02, 2014 16:04

Re: Android related questions

Postby Martynas » Aug 11, 2014 10:45

chapman wrote:Hi,

I am using your trial sdk(Neurotec_Biometric_4_5_SDK_Trial). I want to use KOREAN Language when i enroll korean name
and then take picture and check identify buit the name of id crashed

how can i save korean name and display correctly korean name in verification without any carshed characters

for the reference, i submit the log message about korean crash

Any help in the regard will be really helpfull.

Thanks
chapman

Hello,

please send the detailed description of the issue and a full logcat to support@neurotechnology.com.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Android related questions

Postby chapman » Aug 11, 2014 14:37

Martynas wrote:Hello,

please send the detailed description of the issue and a full logcat to support@neurotechnology.com.

Dear Martynas

i sent the detailed korea language description by e-mail to support@neurotechnology.com

Thanks a lot

best regards

Chapman
chapman
 
Posts: 3
Joined: Aug 02, 2014 16:04

Re: Android related questions

Postby KienDT » Sep 29, 2014 04:45

Hello,
I"m developing an eclipse android app that use a fingerprint device (FUTRONIC FS80). I downloaded Neurotec_Biometric_5_0_SDK already but still dont know how to intergrate it to my app. I"m not using maven so please you guy can advice which jar file I need and the basic steps that I should follow. I know the SDK has been included document but I dont have time to read it.
KienDT
 
Posts: 1
Joined: Sep 29, 2014 03:46

Re: Android related questions

Postby Martynas » Oct 01, 2014 10:16

Hi,

you can build the sample application without maven too. Below you will find steps how to do it.
Code: Select all
1. Open Eclipse
2. Press Window -> Preferences -> Android -> Build, untick “Force error when external jars contain native libraries”;
3. Press File -> Import -> Select Android -> Existing Android Code Into Workspace;
4. Specify Neurotec_Biometric_5_0_SDK\Samples\Biometrics\Android as “Root Directory”;
5. Untick "multibiometric-sample\target\....". Leave only "multibiometric-sample" ticked;
6. Press "finish". if you will see error stating that "build path conatins duplicate entry", then just ignore it and press ok
7. Press File -> Import -> Select Android -> Existing Android Code Into Workspace;
8. Specify Neurotec_Biometric_5_0_SDK\Samples\Common\Android as “Root Directory”;
9. Press "finish". if you will see error stating that "build path conatins duplicate entry", then just ignore it and press ok
10. Right click on "samples-utils-android" project and select "properties"
11. Go to Java Build Path
12. In "Source tab" delete all paths, which contains "(missing)", if there are any
13. Untick "Allow output folders for source folders"
14. Go to "libraries" tab
12. Press Add External Jars
13. Go to "Neurotec_Biometric_5_0_SDK\Bin\Android" path and select all jars in it
14. Go to "order and Export" tab. Tick all imported jars
15. Right click on "multibiometric-sample-android" project, then New -> Folder
16. Name it "libs"
17. Drag and drop both folders from "Neurotec_Biometric_5_0_SDK\Lib\Android" folder to this newly created libs folder
18. Right click on "multibiometric-sample-android" project and select "properties"
19. Go to Java Build Path
20. In "Source tab" delete all paths, which contains "(missing)", if there are any
21. Untick "Allow output folders for source folders"
22. Go to "libraries" tab
23. Press Add External Jars
24. Go to "Neurotec_Biometric_5_0_SDK\Bin\Android" path and select all jars in it
25. Go to "order and Export" tab. Tick all imported jars
26. Right click on "multibiometric-sample-android" project and select "properties"
27. Go to Android
28. untick "is library"
29. check if the reference to utils is correct. It should be flagged with green flag. if you see red cross, then remove it and it by using "add..." button
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Some problem about android project using SDK

Postby Helen » Oct 31, 2014 12:55

Hi,
I am using your sdk(Neurotec_Biometric_4_5_SDK).I am developing an Android app for Face-Detection and Face-Recognition without marven.But when I call the function in your SDK,there are some problems.I can compile it successfully.However,when I run the application,there comes the following errors.I found that after I run the application,most of .so files which I copy from "Neurotec_Biometric_4_5_SDKLibAndroid" to "myprojectlibs" disappeared,which makes me feel strange.

Here is the main part of errors in the logcat:
Code: Select all
E AndroidRuntime at java.lang.reflect.Mechod.invoke(Method.java:511)
E AndroidRuntime at com.android.internal.os.ZygoteInit&MethodAndArgsCaller.run(ZygoteInit.java:833)
E AndroidRuntime at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
E AndroidRuntime at dalvik.system.NativeStart.main(Native Method)
E AndroidRuntime Caused by: java.lang.ExceptionInInitializerError
E AndroidRuntime at com.neurotec.biometrics.NBiometrics.<clinit>(NBiometrics.java:46)
E AndroidRuntime ... 11 more
E AndroidRuntime Caused by: java.lang.ExceptionInInitializerError
E AndroidRuntime at com.neurotec.media.NMedia.<clinit>(NMedia.java:49)
E AndroidRuntime at com.neurotec.media.precessing.NMediaProc.<clinit>(NMediaProc.java:48)
E AndroidRuntime ... 12 more
E AndroidRuntime Caused by: java.lang.ExceptionInInitializerError
E AndroidRuntime at com.neurotec.lang.NCore.<clinit>(NCore.java:112)
E AndroidRuntime at com.neurotec.lang.NTypes.<clinit>(NTypes.java:113)
E AndroidRuntime at com.neurotec.lang.NMedia.<clinit>(NMedia.java:46)
E AndroidRuntime ... 13 more
E AndroidRuntime Caused by: java.lang.UnsatisfiedLinkError: Couldn"t load jnidispatch from loader dalvik.system.PathClassLoader(DexPathList[dexElements=[sip file "/data/app/org.xia.neurotecface-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.xia.neurotecface-1, /vendor/lib, /system/lib]]]: findLibrary returned null
E AndroidRuntime at java.lang.Runtime.loadLibrary(Runtime.java:359)
E AndroidRuntime at java.lang.System.loadLibrary(Runtime.java:514)
E AndroidRuntime at com.sun.jna.Native.loadNativeLibrary(Native.java:698)
E AndroidRuntime at com.sun.jna.Native.<clinit>(Native.java:127)
E AndroidRuntime at com.sun.jna.NativeLibrary.<clinit>(NativeLibrary.java:67)
E AndroidRuntime at com.neurotec.lang.NCore.<clinit>(NCore.java:104)
E AndroidRuntime ... 15 more


Any help in the regard will be really helpfull.

best regards,
Helen

Admin: merged to "Android related questions"
Helen
 
Posts: 9
Joined: Oct 31, 2014 11:01

Re: Some problem about android project using SDK

Postby vaidasz » Nov 03, 2014 12:44

Helen wrote:Hi,
I am using your sdk(Neurotec_Biometric_4_5_SDK).I am developing an Android app for Face-Detection and Face-Recognition without marven.But when I call the function in your SDK,there are some problems.I can compile it successfully.However,when I run the application,there comes the following errors.I found that after I run the application,most of .so files which I copy from "Neurotec_Biometric_4_5_SDKLibAndroid" to "myprojectlibs" disappeared,which makes me feel strange.

Here is the main part of errors in the logcat:
Code: Select all
E AndroidRuntime at java.lang.reflect.Mechod.invoke(Method.java:511)
E AndroidRuntime at com.android.internal.os.ZygoteInit&MethodAndArgsCaller.run(ZygoteInit.java:833)
E AndroidRuntime at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
E AndroidRuntime at dalvik.system.NativeStart.main(Native Method)
E AndroidRuntime Caused by: java.lang.ExceptionInInitializerError
E AndroidRuntime at com.neurotec.biometrics.NBiometrics.<clinit>(NBiometrics.java:46)
E AndroidRuntime ... 11 more
E AndroidRuntime Caused by: java.lang.ExceptionInInitializerError
E AndroidRuntime at com.neurotec.media.NMedia.<clinit>(NMedia.java:49)
E AndroidRuntime at com.neurotec.media.precessing.NMediaProc.<clinit>(NMediaProc.java:48)
E AndroidRuntime ... 12 more
E AndroidRuntime Caused by: java.lang.ExceptionInInitializerError
E AndroidRuntime at com.neurotec.lang.NCore.<clinit>(NCore.java:112)
E AndroidRuntime at com.neurotec.lang.NTypes.<clinit>(NTypes.java:113)
E AndroidRuntime at com.neurotec.lang.NMedia.<clinit>(NMedia.java:46)
E AndroidRuntime ... 13 more
E AndroidRuntime Caused by: java.lang.UnsatisfiedLinkError: Couldn"t load jnidispatch from loader dalvik.system.PathClassLoader(DexPathList[dexElements=[sip file "/data/app/org.xia.neurotecface-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.xia.neurotecface-1, /vendor/lib, /system/lib]]]: findLibrary returned null
E AndroidRuntime at java.lang.Runtime.loadLibrary(Runtime.java:359)
E AndroidRuntime at java.lang.System.loadLibrary(Runtime.java:514)
E AndroidRuntime at com.sun.jna.Native.loadNativeLibrary(Native.java:698)
E AndroidRuntime at com.sun.jna.Native.<clinit>(Native.java:127)
E AndroidRuntime at com.sun.jna.NativeLibrary.<clinit>(NativeLibrary.java:67)
E AndroidRuntime at com.neurotec.lang.NCore.<clinit>(NCore.java:104)
E AndroidRuntime ... 15 more


Any help in the regard will be really helpfull.

best regards,
Helen


Hello Helen,

It is strange that the libraries disappeared.
As I see from exception message jnidispatch.so library is missing. According to Android specification your project should contain libs folder with armeabi and armeabi-v7a subfolders and necessary libraries in them.
So make sure you have these folders and all necessary libraries in them.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 558
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: Some problem about android project using SDK

Postby Helen » Nov 04, 2014 14:28

Hi,
I try it again with your help and now I solve the problem mentioned above. But there comes another problem,maybe it"s relative to activation. I activated the licence a few days ago, and I could run VeriLook application. However, recently when I run this application, it says that licences were not obtained. When I start the licensing manager application, it says that Licensing Manager has crashed. And there comes the following error: External error occurred ExternalError:-1. When I start my application for Face-Detection and Face-Recognition, there are some problem as mentioned below.

Here is the errors of the logcat:
Code: Select all
AndroidRuntime   FATAL EXCEPTION: main
AndroidRuntime   com.neurotec.lang.NotActivated Exception: Operation is not activated
AndroidRuntime   at com.neurotec.lang.RuntimeErrorCreator.create(RuntimeErrorCreator.java:56)
AndroidRuntime   at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCteator.java:20)
AndroidRuntime   at com.neurotec.lang.NError.get(NError.java:143)
AndroidRuntime   at com.neurotec.lang.NError.get(NError.java:163)
AndroidRuntime   at com.neurotec.lang.NError.getLast(NError.java:177)
AndroidRuntime   at com.neurotec.lang.NResult.checkUnchecked(NResult.java:234)
AndroidRuntime   at com.neurotec.lang.NResult.raiseError(NResult.java:312)
AndroidRuntime   at com.neurotec.lang.NResult.check(NResult.java:223)
AndroidRuntime   at com.neurotec.biometrics.NLExtractor.detectFace(NLExtractor.java:417)
AndroidRuntime   at org.xia.nface.BiometricEngin.detectFaces(BiometricEngine.java:33)
AndroidRuntime   at org.xia.nface.MainActivity.onPreviewFrame(MainActivity.java:166)
AndroidRuntime   at android.hardware.Camera&EventHandler.handleMessage(Camera.java:873)
AndroidRuntime   at android.os.Handler.dispatchMessage(Handler.java:99)
AndroidRuntime   at android.os.Looper.loop(Looper.java:153)
AndroidRuntime   at android.app.ActivityThread.main(ActivityThread.java:5317)
AndroidRuntime   at java.lang.reflect.Method.invokeNative(Native Method.java:511)
AndroidRuntime   at java.lang.reflect.Method.invoke(Method.java:511)
AndroidRuntime   at com.android.internal.os.ZygoteInit&MethodAndArgsCaller.run(ZygoteInit.java:833)
AndroidRuntime   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
AndroidRuntime   at dalvik.system.NativeStart.main(Native Method)


Thank you for your support.

Best regards,
Helen
Helen
 
Posts: 9
Joined: Oct 31, 2014 11:01

Re: Some problem about android project using SDK

Postby vaidasz » Nov 05, 2014 10:37

Helen wrote:Hi,
I try it again with your help and now I solve the problem mentioned above. But there comes another problem,maybe it"s relative to activation. I activated the licence a few days ago, and I could run VeriLook application. However, recently when I run this application, it says that licences were not obtained. When I start the licensing manager application, it says that Licensing Manager has crashed. And there comes the following error: External error occurred ExternalError:-1. When I start my application for Face-Detection and Face-Recognition, there are some problem as mentioned below.

Here is the errors of the logcat:
Code: Select all
AndroidRuntime   FATAL EXCEPTION: main
AndroidRuntime   com.neurotec.lang.NotActivated Exception: Operation is not activated
AndroidRuntime   at com.neurotec.lang.RuntimeErrorCreator.create(RuntimeErrorCreator.java:56)
AndroidRuntime   at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCteator.java:20)
AndroidRuntime   at com.neurotec.lang.NError.get(NError.java:143)
AndroidRuntime   at com.neurotec.lang.NError.get(NError.java:163)
AndroidRuntime   at com.neurotec.lang.NError.getLast(NError.java:177)
AndroidRuntime   at com.neurotec.lang.NResult.checkUnchecked(NResult.java:234)
AndroidRuntime   at com.neurotec.lang.NResult.raiseError(NResult.java:312)
AndroidRuntime   at com.neurotec.lang.NResult.check(NResult.java:223)
AndroidRuntime   at com.neurotec.biometrics.NLExtractor.detectFace(NLExtractor.java:417)
AndroidRuntime   at org.xia.nface.BiometricEngin.detectFaces(BiometricEngine.java:33)
AndroidRuntime   at org.xia.nface.MainActivity.onPreviewFrame(MainActivity.java:166)
AndroidRuntime   at android.hardware.Camera&EventHandler.handleMessage(Camera.java:873)
AndroidRuntime   at android.os.Handler.dispatchMessage(Handler.java:99)
AndroidRuntime   at android.os.Looper.loop(Looper.java:153)
AndroidRuntime   at android.app.ActivityThread.main(ActivityThread.java:5317)
AndroidRuntime   at java.lang.reflect.Method.invokeNative(Native Method.java:511)
AndroidRuntime   at java.lang.reflect.Method.invoke(Method.java:511)
AndroidRuntime   at com.android.internal.os.ZygoteInit&MethodAndArgsCaller.run(ZygoteInit.java:833)
AndroidRuntime   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
AndroidRuntime   at dalvik.system.NativeStart.main(Native Method)


Thank you for your support.

Best regards,
Helen


Hello Helen,

Please send an e-mail to support@neurotechnology.com with issue description. Send the crash log of Licensing Manager.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 558
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Relative question about front camera [Android]

Postby Helen » Nov 19, 2014 02:26

Hi,
I'm using Neurotec_Biometric_5_0_SDK(Android) to develop the face detection and recognition application. How can I open the front camera through the NCamera Class or other Classes when I start the application ? Thank you!

Best regards,
Helen

Admin: merged to "Android related questions"
Helen
 
Posts: 9
Joined: Oct 31, 2014 11:01

Re: Relative question about front camera

Postby Martynas » Nov 19, 2014 07:59

Helen wrote:Hi,
I'm using Neurotec_Biometric_5_0_SDK(Android) to develop the face detection and recognition application. How can I open the front camera through the NCamera Class or other Classes when I start the application ? Thank you!

Best regards,
Helen

Hello,

You need to set which camera will be used in NBiometricClient, by using method setFaceCaptureDevice.
The list of available cameras can be retrieved from NDeviceManager.

FaceActivity.java has this code below, which shows how to get the devices from the NDeviceManager and how to set the camera as capturing device.

Code: Select all
          for (NDevice device : client.getDeviceManager().getDevices()) {
             if (device.getDeviceType().contains(NDeviceType.CAMERA)) {
                if (!device.equals(currentCamera)) {
                   client.setFaceCaptureDevice((NCamera) device);
                   startCapturing();
                   break;
                }
             }
          }


So, if you want to set some camera by default, this should be done before the capturing is started in your application.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Android related questions

Postby deep9 » Nov 20, 2014 05:04

Hi,

How to run licensing manager app and multibiometric sample apk on emulator please provide me steps to run on emulator and also how to connect fingerprint scanner device with emulator for testing VeriFinger.What configuration are needed to run scanner device with emulator [Device is Secugen Hamster Plus] .

i am using Trial SDK . I have tried to install it on emulator licensing manager is installed successfully but when i try to run it , it crashed and not working.

Emulator of version 4.0.

Thanks,
Deep
deep9
 
Posts: 12
Joined: Nov 20, 2014 04:51

Re: Android related questions

Postby Martynas » Nov 20, 2014 09:46

deep9 wrote:Hi,

How to run licensing manager app and multibiometric sample apk on emulator please provide me steps to run on emulator and also how to connect fingerprint scanner device with emulator for testing VeriFinger.What configuration are needed to run scanner device with emulator [Device is Secugen Hamster Plus] .

i am using Trial SDK . I have tried to install it on emulator licensing manager is installed successfully but when i try to run it , it crashed and not working.

Emulator of version 4.0.

Thanks,
Deep

Hello,

emulators are not supported. Use real Android device.
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Android related questions

Postby deep9 » Nov 20, 2014 09:53

Martynas wrote:Hello,
emulators are not supported. Use real Android device.


Here is your answer about on emulator that"s why i try to use it :
"According to our developers only the Trial version of the SDK can be used on the Emulator. if the full SDK was purchased, then it should be used on a real device.
Do you use the trial version of the SDK or full one? "
reference : viewtopic.php?f=3&t=3275&start=50&sid=70aea649992679aaed9d8093145ef3ef#p10572

Thanks,
Deep
deep9
 
Posts: 12
Joined: Nov 20, 2014 04:51

Re: Android related questions

Postby Martynas » Nov 21, 2014 11:25

deep9 wrote:Here is your answer about on emulator that"s why i try to use it :
"According to our developers only the Trial version of the SDK can be used on the Emulator. if the full SDK was purchased, then it should be used on a real device.
Do you use the trial version of the SDK or full one? "
reference : viewtopic.php?f=3&t=3275&start=50&sid=70aea649992679aaed9d8093145ef3ef#p10572

Thanks,
Deep

Hello,

in any case it is recommended to use the real device, as emulators usually are quite limited.
What is the SDK Revision number of your used SDK?
Best regards,

Martynas
Software Consultant
Neurotechnology
Martynas
Neurotechnology
 
Posts: 2192
Joined: Sep 19, 2008 10:02
Location: Vilnius, Lithuania

Re: Android related questions

Postby deep9 » Nov 21, 2014 12:46

Martynas wrote:Hello,

in any case it is recommended to use the real device, as emulators usually are quite limited.
What is the SDK Revision number of your used SDK?


Hi,
I am using version 23.0.2.1259578.

Thanks,
Deep
deep9
 
Posts: 12
Joined: Nov 20, 2014 04:51

Re: Android related questions

Postby deep9 » Nov 24, 2014 08:54

Martynas wrote:Hello,

in any case it is recommended to use the real device, as emulators usually are quite limited.
What is the SDK Revision number of your used SDK?


Hi,
i am using 23.0.2 revision number of SDK.

Thanks,
Deep
deep9
 
Posts: 12
Joined: Nov 20, 2014 04:51

PreviousNext

Return to Public

Who is online

Users browsing this forum: No registered users and 1 guest

cron