Zxing on Android: Eclipse

Here is what I want to do.

I would like to create a new QR code reader using Zxing.

What I uploaded.

Eclipse SDK Classic Version: 3.7.0; Android SDK (with SDK Tools rev12 and all SDK platforms, APIs and samples; ADT plugin in Eclipse (I see all API targets in the list: 1.5-3.2 and Google APIs); Zxing 1.7.

Using. Windows 7 32 bit.

What are my environment variables.

ANT_HOME, at (...)\apache-ant-1.8.2
JAVA_HOME, at (...)\jdk1.7.0
PATH, at (...)\jdk1.7.0\bin

What I've done.

Extracted Zxing 1.7 into the zxing folder, successfully built core.jar using cmd (entering "ant -f core / build.xml" in (...) \ zxing; Created two Android virtual machines using the SDK Manager (Android 1.5 and Android 2.1); Set the location of the SDK in the Eclipse properties (C: \ PROGRA ~ 1 \ Android \ android-sdk). (Sorry if I missed something) I created a new Android project, chose "Create project from existing source" using the folder (...) \ zxing \ android. And the Android 2.1-update1 option is selected.

In these project properties, I added the core.jar file to (...) \ zxing \ core in "Java Build Path" → "Libraries" → Add External JARs ".

Ultimately, I have the following src:

`com.google.zxing.client.android
com.google.zxing.client.android.book
com.google.zxing.client.android.camera
com.google.zxing.client.android.encode
com.google.zxing.client.android.history
com.google.zxing.client.android.result
com.google.zxing.client.android.result.supplement
com.google.zxing.client.android.share
com.google.zxing.client.android.wifi`

Only * .android.camera seems to work completely;

There are some errors in AndroidManifest.xml: when

`<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.google.zxing.client.android"
      android:versionName="3.61 beta 1"
      android:versionCode="71"
      android:installLocation="auto">`

, 'installLocation' 'android'

`<supports-screens android:xlargeScreens="true"
                android:largeScreens="true"
                android:normalScreens="true"
                android:smallScreens="true"
                android:anyDensity="true"/>`

, 'xlargeScreen' 'android'

. ? , (, Android SDK). ?

.

Ummm, , ?

`Bitmap bMap = BitmapFactory.decodeStream(new FileInputStream(file));  
 LuminanceSource source = new RGBLuminanceSource(bMap);
 BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(
                          source));
 Reader reader = new MultiFormatReader();

 Result result = reader.decode(bitmap);`

? , , QR-. , ?

?

? AndroidManifest.xml?

:

Eclipse zxing-core, JVM.

Intent. , . ?

+5
1

Android 2.1 xLargeScreens ( 2.2+, ). . .

installLocation 2.2 ... . :

API 8 (2.2), (, SD- ). , android: installLocation. , .

... , . , : FIRST :

" ?"
" ?"
" , ?"
" ?"
" ?"
" Intent. , . ? "

Google - , . , , , Google :).

+2

All Articles