using Zbar library in Android project - android-ndk

I am developping an Android App in witch I want to use Zbar library functions to facilitate Qr code Scan. I am using Android SDK+NDK. I followed this tutorial. It worked pretty well until the last step, i don't manage to build NDK.
The error I have is :
fatal error: com_hae_zapp_Zbar.h: No file or directory.
I looked for this file but it seems unfound. Does anybody know how would I overcome that problem? Do they use Zbar SDK? ( I use the standard android SDK )

I`m not sure if this is the kind of answer that you are expecting, but if you are having problems trying to integrate ZBar with your application, you should try to use the DushyanthMaguluru / ZBarScanner library to simplify the use.
I have used this library in my application and took me about 20 minutes to be able to use the qrcode scanner.

Related

Problems with rider and xamarin.forms creating a solution cross platform using host linux system

I have Linux as my base system
but when creating a cross platform solution in rider
create the entire project,
but it gives me an error with the ios solution,
I understand that ios does not compile on linux and there are alternatives on windows and
the option to pair with a mac or use the cloud
but I only create the project and it won't let me update
the Android solution,
my question is
How can I create a Cross Platform solution and delete the iOS solution?
I understand I can create a Native Android solution, but that is not the case,
What files can I configure to remove the iOS solution? in a cross platform project, of course.
It also won't let me update Xamarin.Android.Support,
I tried to remove the iOS solution but it gives me an error.

Building Electron Native Extensions using Visual Basic 2015

Where I am currently:
I have began working on a NodeJS native extension I intend to work with Electron, but from previous works I have noted that the build steps for building for just NodeJS are as expected, include the libraries as per instruction and change to output a .dll file with a .node extension.
The problem I am facing:
When compiling my extension, which tried and tested within NodeJS, does not work within an Electron contained instance of NodeJS - from searching around I understand this to be a problem with the header files which I am compiling against etc. The documentation for building with visual studio (not Visual Studio Code) is very sparse and everywhere generally points to using node-gyp - which is something I'm attempting to avoid and build using purely Visual Studio 2015.
For reference, when running the working (in NodeJS) NativeExtension I get the following error (which googling brought me to the conclusion I am compiling against the wrong thing):
ELECTRON_ASAR.js:167 Uncaught Error: Module did not self-register.
Could someone please shed some light on where I may be going wrong? I am a novice when it comes to C++ program structure and compiling methodologies.
The documentation for building with visual studio (not Visual Studio Code) is very sparse and everywhere generally points to using node-gyp - which is something I'm attempting to avoid and build using purely Visual Studio 2015.
There is a standard way of compiling native Node modules, and as a self admitted novice it would be unwise to deviate from it. I suggest you read through the Microsoft NodeJS guidelines and get your development environment properly configured to build via node-gyp, once that's working you can start figuring out how to rebuild native Node modules for Electron.

Using Zxing Library in my aplication

I have seriously tried to find a method to integrate zxing library for my barcode scanning application and found some examples and tutorials, but they mostly concentrate on the code of integrating the project library. I have understood how to use it but my only issue is I cant seem to find a correct way to copy the new zxing library. Please can anyone guide me through which files to copy where or how to bind the project in Android Studio.
I believe you want to 'add' the zxing library in your Android Studio project.
If you are comfortable with using Gradle, just add the below line in your app's build.gradle file under dependencies.
compile 'com.google.zxing:core:3.2.0'
Build your project and then start integrating zxing by importing the required classes.
I hope this answers your question and solves your problem.

Using tesseract OCR in android

Can anyone please provide a clear instruction on using tessaract ocr as a library in android development. I'm currently developing an application to perform text extraction. I'm using cygwin to clone tesseract from github but i'm facing problem on "ndk-build" step. How to set my application project path in cygwin in order to make the ndk-build successful? NDK_PROJECT_PATH := $(strip $(NDK_PROJECT_PATH)) from build-local.mk in android ndk folder. PLEASE HELP ME
You may use Tesseract. It's powerful library and it has java wrapper Tess4j too.

Running J2me apps on Android phones

Is it possible to run J2ME apps on Android phones? If so, what is the installation procedure?
Otherwise, is it possible to convert .jad files to .apk? In this case, what is the procedure.
(I have already tested the procedure offered by netmite but it doesn't seem to work.)
Using this site http://www.netmite.com/android/srv/2.0/getapk.php you can convert your J2ME application in to Android Application. You need to just supply your .Jad & .Jar file in it and it will generate Android's executable file .apk for you.
However in it doesn't able to convert all the feature of Java ME to Android, but basics can be easily converted.
You can try phoneME, netmite j2me app runner, jblend, jbed like jeme emulators in android. For now, phoneME is the best. you can get various version of phoneME here http://davy.preuveneers.be/phoneme
You also need OI file manager to select files in phoneME.
A complete guide can be found here http://w3epic.com/run-java-apps-j2me-on-android-devices-guide/ for rest of other emulators (if you want to try).
#dennis
I got it, thanks.
MicroEmu open source project hasn't been mentioned yet, and here it goes: https://code.google.com/p/microemu/
I searched for a good JavaME emulator for Android for a long time, and finally found one. This here is what you need:
http://davy.preuveneers.be/phoneme/
No doubt the best there is for Android.
Added 15th January 2016:
Reply from the author of phoneME, Davy Preuveneers, in regards to the Android 5.0+ issue commented by Álvaro Gutiérrez:
Hi,
I am testing on a Samsung Galaxy S4 running Android 5.0.1, and the
"phoneME Advanced - Foundation Profile + MIDP FullHD Resolution" build
seems to run just fine on this device.
Also, following this thread
Position Independent Executables and Android Lollipop,
I ran:
$ readelf -l libcvm.so | grep -i "file type"
and it reports:
Elf file type is DYN (Shared object file)
So according to the website this is OK.
However, for the CDC and Foundation profiles (console like
applications), there is indeed an issue where you get this error:
"Error: only position independent executables (PIE) are supported"
However, for those 2 profile I call a native executables and redirect
the native stdout/stderr streams to Android, whereas for the MIDP dual
stack I load a library and create a complicated wrapper to get things going.
I can recompile with -fPIE and -pie options but will then end up with
binaries that are no longer backwards compatible with devices running
Android 4.0 and below. That is why I added some additional builds to my
website for Android 5+ devices:
http://davy.preuveneers.be/phoneme/?q=node/10
Best regards,
Davy

Resources