how to implement Zxing Intent Integrator.java in Android - android

I am working on bar code scanner.
I have Zxing IntentIntegrator.java file. I don't know how to use this File in my application to let my application work.

Paste the android_integration_supportv4.jar (located at zxing-2.1\android-integration) into libs folder in your eclipse (adt) project tree.
You should than create dependencies by right click on the folder and selecting
build path->Configure build path...
In the dialog click the Add jar button and select the android_integration_supportv4.jar you just added.

Related

Edit Classes From Github Libraries

I have installed the folder picker as per instructions from Github found on this link: https://github.com/kashifo/android-folder-picker-library
I have added the following line to gradle:
implementation 'lib.kashif:folderpicker:2.4'
And added to MainActivty:
import lib.folderpicker.FolderPicker;
And in onCreate:
Intent intent = new Intent(ActivityFolder.this, FolderPicker.class);
startActivityForResult(intent, PICKFILE_REQUEST_CODE);
Everything works fine accept that this type of installation seems to be working 'online' as I don't understand where this class is: FolderPicker.class, I would like to make changes to it and its xml layout (remove the New button etc..), how can I edit this library and customize it instead of using it as it is?
I have also downloaded the entire package as well and it also doesn't have all classes and layouts located within the app folders.
You are looking in to wrong folder , The app folder is for the sample project . The actual library will be in folder with name folderpicker
Here is the link to the class FolderPicker.java .
If you want to customize the library then clone the project , edit the parts you want in folderpicker and include the the folderpicker module to your project Or generate an aar file and add aar file in the project . If you have time you can even publish on jcentre/maven and directly include it as a gradle dependency
Follow This Steps For Import Module and Edit Libraries class in Android Studio.
First Download Project From Github Then Go to Android Studio-> File -> New -> Import Module...
Select the source directory of the Module you want to import and click Finish.
Open Project Structure and open Module Settings for your project.
Open the Dependencies tab.
Click the (+) icon and select Module Dependency. Select the module and click Ok.
Open your build.gradle file and check that the module is now listed under dependencies.(implementation project(path:":YOUR_PROJECT_MODULE_NAME")

Add *.jar file in folder named Android Dependencies

I want to use library from openCV named "opencv library -2.4.3" , I install all what it needs , and now openCV tutorials work. So I need add the same openCV library to my project for use.
QUESTION
How to add opencv "library -2.4.3" from another project to mine's folder named Android Dependencies
Thanks in advance
Create a libs folder (/libs) in your project's root folder.
Copy the wanted jar to it.
It will be added to Android dependencies.
You have to click on on the project properties (Right Click -> Properties) and add it as dependency there.
I just did this with a project, using eclipse 4.2.1. As with the other answerer, all I had to do was create a folder called "libs/" in my project, and it auto-updated the Android Dependencies list. Are you copying and pasting inside of eclipse?
I moved the file to that folder using the file system, outside of eclipse.
This link describes how the libs folder gets added to Android Dependencies:
http://tools.android.com/recent/dealingwithdependenciesinandroidprojects
Right click on project
Select Properties
Click on Android on left menu
Click on Add
Please select a Library Project
The jar will go into Android Dependencies.
If you add the jar directly to your project under libs or using build path, then it goes under Android Private Libraries.
Both methods works but referencing a library project can have benefits if you want to alter the code of the library during development.

How to Start the Vuforia AR sample App android?

I am following the Vuforia and I have run the samples, It's working fine but if I want to start the our own app so could you help me how to start the app.
Thanks.
Please follow the below steps to integrate vuforia with your android project.
1)copy vuforia.jar and armeabi-v7 folder that contains libvuforia.so and paste it on your libs folder of your project.
2)right click on your android project and go to build path>cofigure build path and select libraries tab and add vuforia.jar file.
this will work now you can easy to use vuforia functions.
if you want to create your own marker then you have to log in in https://developer.vuforia.com/targetmanager and create project and then download .xml file and .dat file and then integrate that file with your android project
For Android Studio 2.3.3
1. Copy vuforia.jar and libvuforia.so in your libs folder
2. In your app, right click and select open module settings
3. Click On the dependencies and '+' sign to add "jar dependency"
4. Select vuforia.jar and click Ok
Done!

how to include jar files in my eclipse project

I'm new to android and java. I downloaded the GSON library for use in my android project which exists in Eclipse. I lookup instructions on how to use the jar file in my project and it says...
Quote...
You can use a third party JAR in your application by adding it to your Eclipse project as follows:
In the Package Explorer panel, right-click on your project and select Properties.
Select Java Build Path, then the tab Libraries.
Press the Add External JARs... button and select the JAR file.
Alternatively, if you want to include third party JARs with your package, create a new directory for them within your project and select Add Library... instead.
It is not necessary to put external JARs in the assets folder
...UnQuote
I'm afraid that I don't know the difference between "using a 3rd party jar in my project" and "include third party jars with my package." I want to be able to use the GSON methods in my Android phone application and, of course, have the capability deployed in my .apk.
So, Which do I want to do?
Thanks, Gary
add the jar to your libs folder in your project.
open eclipse go to package explorer
right click on your project and select project properties
click on java Build path in the bar on the left hand side of the popup
select the libraries tab
select the "Add External Jar File" and navigate to your JAR file
best of luck =)
click Properties
left select Build path
Than add jar, and do not use the external libs, unless it is really required.
You have to copy the jar to your project to find it with "Add jars"
Right click onto your main project in the Project Explorer
Open properties option, found at the bottom of the context menu
A dialog box opens from which you select the Android option
Remove the old .jar file, click on ADD to add a new .jar file and select your the file you want to add
You're done!

Adding a JAR file to an Android application

I want to add the jTwitter library to my application.
How can I add and build the path for it?
Hai Nikki,
If you are using Eclipise IDE, then follow these steps shown below.
step1:
Right click the project Name, there yiu find a option Build path(Refer Figure1)
step2: click Build path then configure Build path(Refer figure2), a dialog box will appear, in that click Add External Jars , select and add it(refer figure3).
figure 1:
figure2:
figure 3:
In case you are using Eclipse go to Project → Properties there navigate to Java Build Path on the tab Libraries hit the Add External JARs button and select your JAR file.

Categories

Resources