Note that there are some explanatory texts on larger screens.

plurals
  1. POCant scan QR codes with ZXing
    text
    copied!<p>I'm really new in Android Development and, like many others, I'm trying desperately to integrate ZXing into my project. I have to make a stand-alone QR scanning application for Android. (I'm using the 2.3.3 sdk).</p> <p>I have to explain that I've already tried to find a solution to my problem by reading all the answers about the topic but I haven't suceed at all.</p> <p>Here is what I've done:</p> <ol> <li><p>I downloaded the ZXing 2.0 Release from <a href="http://code.google.com/p/zxing/downloads/list" rel="nofollow">here</a></p></li> <li><p>Then, I added the assets, src and res to my project simply by dragging the files into my project.</p></li> <li><p>I referenced the core.jar archive located in the "core" folder by right-clicking in my project > Build Path > Configure Build Path. I add ir as an External JAR.</p></li> </ol> <p>This is a <a href="http://i1191.photobucket.com/albums/z478/peperamirez89/Capture.jpg" rel="nofollow">image</a> to ilustrate.</p> <ol> <li><p>In here, I was getting some errors in the ID's and some other resources. That was happening because I was referencing to que wrong R.java, so I solved that by changing "import com.google.zxing.client.android.R" to "import com.android.novaqr.R", which is my projects package.</p></li> <li><p>Then I added:</p> <pre><code>&lt;uses-permission android:name="android.permission.CAMERA"/&gt; </code></pre></li> </ol> <p>and</p> <pre><code> &lt;activity android:name="com.google.zxing.client.android.CaptureActivity" android:screenOrientation="landscape" android:configChanges="orientation|keyboardHidden" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:windowSoftInputMode="stateAlwaysHidden"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN"/&gt; &lt;category android:name="android.intent.category.DEFAULT"/&gt; &lt;/intent-filter&gt; &lt;intent-filter&gt; &lt;action android:name="com.google.zxing.client.android.SCAN"/&gt; &lt;category android:name="android.intent.category.DEFAULT"/&gt; &lt;/intent-filter&gt; &lt;/activity&gt; </code></pre> <p>to the AndroidManifest.xml</p> <p>So now I have no errors in my code and here is where i need help: I need the phone to scan when I push a button. I've tried a lot of solutions that I saw on the other questions about this topic, but I haven't succeed.</p> <p>I hope I'm clear with my question, if not, let me know and I'll try to be more specific</p> <p>Any help will be really apreciated.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload