Errors with ZXing intergration into Android application - android

I have read a few tutorials, but I have problem with integration. I do this sequence:
1) downloading sources;
2) generating core.jar
3) adding as new project folder "android" from sources
4) add core.jar into "android" project
Then I will got many errors - R file doesn't generate, and another mistakes. Where could I make mistake?

Perhaps you can solve that with organize Imports - Eclipse.
In fact, this 'problem' is a conflict that happens when you just copy and paste codes..
Try it.
regards

The problem is that you have copied and pasted our app, in android/, into your project. Please do not copy and paste our app. Write your own. You do not need any code from our app as it is not a library. You should use core.jar, and reuse bits of the Android source if you need to make your app.

Related

Error in OpenCV Android eclipse setting up sample projects

I already watched so many tutorials online but I can't figure out what's wrong with the sample projects given by the openCv.
I also follow the steps given in this link : sample question
The error in 15 puzzle is different from camera-calibration and color-blob-detection.
After I deleted the error lines in JavaCameraView.java file, some of the samples start to works fine.
My ndk version is r10 and OpenCV version is 2.4.9. I hope someone can help me solve my problem. Thanks in advance!
You can look at this sample. Basically you will just need to redirect the library to your folder
After some configurations, I finally figured out how to solve my problem. Here are the steps:
First: Click on every folder->Properties->Android->Delete the unknown reference then add the OpenCV library.
Second: Make sure to link the C/C++ Build by Properties-> C/C++ Build-> Then copy the file path of your ndk folder
Third:copy jni folder present in face detection or other projects then paste it to a project that don't have a jni folder.
Fourth: Change the include declaration to local library of OpenCV.mk in Android.mk file.
Ex. include C:/Dev/OpenCV-2.4.9-android-sdk/OpenCV-2.4.9-android-sdk/sdk/native/jni/OpenCV.mk
Fifth:Make sure to clean and build the project.
Finally run every project on your device. cherio!

Android - Adding JAR File to eclipse (hotpotato API)

I'm having this problem, and tried googling and doing tutorials in eclipse. But, it wasnt really helpful for me to use this .jar file in my project.
Source: https://github.com/brunodecarvalho/hotpotato
To be specific, I downloaded this jar file , added it to my project successfully by copying the jar file into my source folder , then added it by doing(Properties->Add Jars->And added it). Also i did a Project -> Clean.
Then once I start coding as they have shown in the examples, it gives me errors, which proves that the Adding of Jar file was not successful.
I tried in different eclipse workspaces but still no luck.
If I explain what I'm trying to do here, I'm working on a Android Download Manager Project. What I need to do is to create a pipeling connection to the request URL so that I can download the packets parallel.
Please help me find my mistake. Thanks for your time!
You can try the following:
Remove the jar from the buildpath - and make a folder called libs underneath the root of the project, at the same level as src / bin / etc.
Then put your lib in there, build path issues may then arise if you are in Eclipse but i believe everything should auto resolve from there.
In the past I have put the jar in the libs folder and additionally added it to the build path from there.
Does it error in the IDE, or at runtime?
Not all Java libraries are compatible with Android. Do what RenegadeAndy wrote here, and if that doesn't work, the lib might really be incompatible with Android.
Remember, Android is not a real Java implementation.

IMarketBillingService.java is never created in gen folder of the application?

I have been working on an android application in which I have to integrate In-app billing. I am following the procedure given on the following link but it is not paying off.
http://developer.android.com/guide/google/play/billing/billing_integrate.html#billing-permission
On this link there is a section named Adding AIDL file to your project, When I follow the steps given in the section, I do not find any " IMarketBillingService.java" file in the "gen" folder of the project. What can be the issue? Has anybody faced this issue..?
Any help is regarding the issue is appreciated.
Move .aidl file from project's src folder into some temporary folder.
Clean & build the project (build can fail, its just important that you start it).
Move .aidl file back to its place.
Clean and build again. This time everything should be ok.
Well nothing worked for me like Cleaning and rebuilding project time and again....However creating a new project from the existing project solved the issue. In the new project I was able to add aidl file and then a corresponding java file was created in the gen folder. It might not be the best solution butt only this is the only thing that worked for me after 2 to 3 days of searching and mindstorming, so if someone has a better solution please do share...:-)
right click on project-->select property-->select java compiler-->set compiler compliance level to 1.6 or more than that

Error message: [2011-11-18 10:40:31 - Notepadv1] AndroidManifest.xml file missing?

I am trying to do the notepad tutorials and keep getting this error.
I am following all the directions on the website.
I have tried the "Fix Project Properties" via "Android Tools" but this does nothing to fix the problem.
I have put the extracted folder for the tutorial in various locations - this did nothing.
I am trying to create a new Android project from source with 2.1...
I have been told to uninstall Eclipse.
Any help would be appreciated.
Thank you
I was having this problem, and for me it was caused by already having the extracted source code (which I was trying to import into the new project) in the same directory as where I wanted to created the project. So, don't put the extracted files in your eclipse workspace.
This could be (and mainly is for me) caused by some form error in the XML. I would scour your XML and check to verify that you have missed something somewhere.
Try to create New Android Sample Project, select Android 2.1 target and choose NotePad example .

Android InApp Purchase Example

I am facing the issue in building InApp Purchase Example App give in SDK.
It's showing error in IMarketBillingService.aidl because its showing like disabled file.
and the other java files importing this file shows error that
import com.android.vending.billing.IMarketBillingService cannot be resolved
Can any one solve this problem or give soemalternate solution for this InApp Billing i need good example for this.
I had a similar problem when trying to integrate the components from the example into my software. The source of the issue for me was that the code I was modifying was an Android library resource to the main project, and somehow the sources in the build path had gotten mixed up.
The solution for me was to (in Eclipse) right-click the project, Build Path, and Configure Build Path. Choose the sources tab at the top, and verify there aren't duplicate sources there, perhaps under different names. If there are, you're going to have to do some fiddling and figure out which ones belong.
I'm not sure how it gets into this situation; it was a long day...
Sorry for the ambiguous answer but I hope it helps anyone in this pickle.
With IDE android studio:
Step1: right-click app folder and choose new/folder/AIDL Folder
Step2: right-click aidl folder and choose new/package, make name is com.android.vending.billing
Step3: Copy IInAppBillingService.aidl to package com.android.vending.billing
Step3: Clean and Rebuild
==> It will work!.

Categories

Resources