ZXing Barcode Android library getting ClassNotFoundException - android

I am new to android. I am using zxing in my android project natively. I followed the steps here. But I get get classNotFoundException for capture activity of zxing lib when I call intent calling zxing android client. Also note that when I add capture activity project as library, firstly it adds properly, then when I say apply/ok & later see again then i see red x mark for this added lib. Even the src folder of added lib is not seen in source tab. I think there is some problem while adding lib but I don't know what & how to figure it out.
Please suggest.
Thank You.

The problem is that you are trying to use android/ as a library, and it is not a library. You are not supposed to copy this code and try to call it in your app. Instead, write your own app. Then integrate the core library (just core/) for decoding.
If you're new to all of this, you will probably have a lot of difficulty getting this working versus just integrating by Intent: http://code.google.com/p/zxing/wiki/ScanningViaIntent

Related

How to use this library in android for Video Recording

I am developing an Android App for recording video and sending to server. Also video must be recorded only on Touch of Record button. I have googled and got this library in the below link but I don't know how to use it in my project. This is the first time am going to use a library in a project. I have enable in my properties but don't know to use this functionality in my app. Please help me or suggest a tutorial.
https://github.com/sourab-sharma/TouchToRecord
I have just unchecked the Library option from Properties and used it as a package in my project. Its really a silly question. But the worked great

OpenCV Circle Recognition in android devices

I am new to android app development. I need to develop a very simple app that could detect coloured circles.Can someone please tell me in detail how to use openCV Circle Recognition code in developing a simple android app that can detect coloured circles. I am currently using openCV+ Eclipcs but it does not allow me to compile the source code in to .apk file
I have already done what u are saying...I have done the following
I download the full NVidia tegra-devpack-2.0-windows-2013-02-06-14961502 and installed It contains both android ADT for eclipse and eclipse also. It also contains the open CV and it automatically configures everything.
Everything works fine when I make a new android app like “my first HELLO WORLD app” and I can even install it to my android phone that means everything is working fine and everything is configured correctly.
The problem arises when I try to import the source code of the “CVCamera” an common app for detecting circles in android devices
When I import it in the eclipse as an android project from existing code it gives me following 2 errors
(a) Project 'CVCamera' is missing required Java project: 'OpenCV'
(b) The project cannot be built until build path errors are resolved.
I have tried lots of things I even tried to link the open CV library to the project but of no use
I have a simple objective I want to develop an android application for detection of coloured circles by using the already available code on the web. Please help me in achieving the following
I am using openCV4android . I can even create new apps but the problem arises when i try develop the application by using already made source code. I am using the sources code of the CV camera app which has been already developed by so many developers Following is the link of the error I am getting in the eclipse.
Please see the image
Following is the link of the CV camera application which I am trying to import
stanford.edu/class/ee368/Android/OpenCV/CVCamera_Canny.zip
Here is the link for another error “Build path entry is missing: OpenCV”
image
building workspace problim image
Use opencv4android in eclipse.
Before that you should deploy android ADT for eclipse, or download bundle for android dev.
Then follow the tutorial at opencv official site to start your way to android.
Use hough transform for circle detection.
You must link JavaCV lib into your project rather than OpenCV.
Android app cannot use OpenCV(C++) unless you use JNI, which is far beyond the scope of this question.
So please follow the tutorial for using JavaCV on Android rather than doing the import stuff on your own. Please make some JavaCV examples compile and run on your phone before you try to adapt the code.
Besides I strongly recommend you use openCV4android, which is sure to work, rather than JavaCV + Android, which takes your considerable time coping with configuration and integration.

Android, Except ZXing is there any other third party library for reading Qr codes?

In my project I need to read Qr codes. I know how to call Zxing with Intent and if there was not install in device, how to direct user to android market in order to download it.
Based of request, I shouldn't use third party application therefore I decided to add zxing library to my project. Also, I know what should I do and how to add it as library. Before releasing ADT 18, I was successful to use integrate zxing as library into my other applications but i'm really amaze why I can't do it after upgrading to ADT 18. Each time compiler says Dalvik Machin encountered error 1; and nothing more.
I'm sure I set everything correctly but there is problem. Last two days I was working on it and i'm sure something has problem that I don't know what!
If you know other Or library (in .jar format) that i can integrate it to my application please tell me.
Any suggestion would be appreciated. Thanks
You can try OBSQR
https://bitbucket.org/trikita/obsqr

Adding Chartdroid library to an Android project

How do I add the Chartdroid library to my android project? I have gone on their website to download the source code but every way I try to add the file to my project it just shows up as gibberish and gives me an error message.
If possible could you give an extremely basic/simple explanation on how to do this because I am very new to both programming and android platforms.
Try to get the example app working and understand how it works. Then create your own application on the level of a HelloWorld appliction which makes a simple chart from a static array of data. That should get you pointed in the right direction.

How to include and use ZXing Library in Android with eclipse?

I am new to the concept of ZXing,so i want to know the step by step process to use the ZXing in android and i am using elicpse as IDE.Any one knows about it please help me.
As advised by the moderator, I am posting what did to import zxing into my android app, on this post. Seems like many people refer to this post to get an answer for zxing.
The zxing guys have made it easier to create a android project with 1.7. Its not as painful as it used to be. This is a quick blog for anyone who would like to create a zxing project for android quickly.
Checkout the zxing sources from zxing.org
Create a Android project on your eclipse
Delete main.xml
Right click on “src” directory and hit import. Browse to the following directories in the order mentioned. As you add them for
import one by one, ensure that you have the src directory in the edit
field of the import wizard. And that you select only the “com”
directory on the left directory tree. Do not select src.
core
android-integration
android
Ensure that your android sdk version is 9, anything lesser and androidmanifest.xml will cry.
Strings.xml in one of the languages will crib, just put a / before the ‘ character
For the benefit of people,
I have a android hello world integrated with zxing 1.7 http://www.4shared.com/file/bFx8Y5Ys/zXingJune2010.html
Another blog that has interesting direction for integrating zxing
http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/

Categories

Resources