Closed jagan27101986 closed 6 years ago
In that case, you will need to perform native eclipse integration and then use the plugin source as a base for creating your own wrapper around your native SDK integration.
Add appcompat-v7 library to your workspace and reference it by target project (modern ADT plugin for Eclipse does this automatically for all new android projects).
Is Android SDK 24 required to run in Android or Android 6.0 will do ?
Our SDK has been compiled using the latest Android SDK and you should do that too. You can always target older android version even if using the latest SDK.
I created the Android Library Project with the instructions provided . the issue i am facing is after adding the project as library , i am getting an error as The container 'Android Dependencies' references non existing library 'bin\jar folder. Please advise as what needs to be done. Also i downloaded the Android 24 Version from SDK manager .
Also i didn't understand where about Adding appcompat-v7 library to your workspace and reference it by target project (modern ADT plugin for Eclipse does this automatically for all new android projects).
Could you please help me out with the same ?
What should be the target build project API - 23 or 24 or more . Please advise the same. Also where can i get the appcompat-v7 library and also do we need to build path for the same in both the library project and main project ?
Hi I am able to build APK based on the comments that you have provided. However when i call ; i see that no camera is getting opened or i am getting any error message in the application . Could you please advise on the same ?
I am using Android SDK 6.0 with 23 as the API and also Cordova version 3.7.0 and also the ADT automatically created the android.support.v7.appcompat library when i created a new Android Project .. Is there anything i am missing for the camera to be inititated ?
Which activity are you using? Are there any errors in ADB log?
I didnt get about the Activity , Could you please explain in detail ? I am new to Eclipse Android. I can explain the stepls that i have done
What i see is that , when i call the cordova plugin , it retrieves all the information send, then goes to the scan function , from there ideally it needs to open the camera. however which didnt happen. Also i was checking to run the Library project where i created the apk and installed in the device,and couldnt open the app as the option wasnt available
I created a Blank Activity in the Android Application Project and also removed the Src and Res Folder and replaced with the steps above.
Could you please check and update on the query i have raised.
Also to note that i am using JDK 1.6 and JRE 1.6 for building the Mobile Application . Is this also the reason for not identifying the Scanner ?
In the AndroidManifest file i have provided the Scan Activity such as activity android:name="com.microblink.activity.ScanCard" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:configChanges="orientation|screenSize" android:screenOrientation="portrait"
However i see that this class is not getting called with the other Android Library Project which has been created.
After providing Scan Activity in your manifest, you should be able to use it from your test application written in Java, by following native android integration instructions. However, to use that activity from your Cordova app, you will have to create your own Cordova plugin that will wrap the native integration code. You can use our official open source plugin source code as basis for doing that, however you will need to adapt cordova-specific part of the source code to match the version you have.
This is not something that can be done quickly and easily. I suggest using more modern version of Cordova which allows you to use gradle-based build. As I see, IBM MobileFirst v8.0.0 supports cordova-android v5.1.1 which uses Android studio for development of Android parts. However, you will need to use plugin from this branch in order to work with cordova-android 5.1.1, as v5.1.1 is also outdated by today's standards (latest version is v7.0.0).
I really suggest that you upgrade to IBM MobileFirst v8.0 because this will at least give you possibility to use modern development tools for your app development. Eclipse support has been deprecated by more than 3 years ago and you will not find a lot of materials online that will help you with app development while using Eclipse.
Thanks for the comments. I will surely look into it.
Is there a way whether the BLINK SDK can support Java JDK , JRE 1.6 and Cordova 3.7.0 with IBM MobileFirst ?
BlinkID Phonegap plugin never had a support for such an old version of Cordova. However, early versions of PDF417.mobi phonegap did have support for cordova < v4.0.0. You can see how you should organise your code in order to work with cordova v3.0.0, however I really do not recommend this - it is complicated and error-prone (all resources, assets, JARs and native libraries need to be manually managed from cordova plugin.xml description). We do not plan to officially support such old versions of Cordova.
Closed due to inactivity.
I am currently working on a hybrid application and my cordova version is 3.7.0 where i am using IBM MobileFirst 7.1 version. There is no gradle file to compile as it comes as a part of Eclipse Plugin. I would like to know how i can integrate the phonegap plugin with my application without gradle.
The query that i have is do we need Android SDK 24 which is 7.0 to run this application. ?