Barcode Scanner plugin is not working in nexsus 7 for android 4.3

350 views
Skip to first unread message

Tejeswini Sangaraju

unread,
Sep 25, 2013, 7:49:29 AM9/25/13
to phon...@googlegroups.com
Hi ,

I am using barcode scanner 3.0 plugin in my application.

 i have created cordova android 3.0  project from command line tool.And imported the project Eclipse.

I have added the xing library file to the libs and ran the application. but i got the following error.



Error :

09-25 07:46:27.480: W/System.err(803): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.phonegap.plugins.barcodescanner.SCAN cat=[android.intent.category.DEFAULT] }
09-25 07:46:27.480: W/System.err(803): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1632)
09-25 07:46:27.570: W/System.err(803): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1424)
09-25 07:46:27.610: W/System.err(803): at android.app.Activity.startActivityForResult(Activity.java:3390)
09-25 07:46:27.610: W/System.err(803): at android.app.Activity.startActivityForResult(Activity.java:3351)
09-25 07:46:27.610: W/System.err(803): at org.apache.cordova.CordovaActivity.startActivityForResult(CordovaActivity.java:844)
09-25 07:46:27.610: W/System.err(803): at com.phonegap.plugins.barcodescanner.BarcodeScanner.scan(BarcodeScanner.java:113)
09-25 07:46:27.610: W/System.err(803): at com.phonegap.plugins.barcodescanner.BarcodeScanner.execute(BarcodeScanner.java:99)
09-25 07:46:27.660: W/System.err(803): at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:65)
09-25 07:46:27.660: W/System.err(803): at org.apache.cordova.PluginManager.execHelper(PluginManager.java:229)
09-25 07:46:27.660: W/System.err(803): at org.apache.cordova.PluginManager.exec(PluginManager.java:214)
09-25 07:46:27.660: W/System.err(803): at org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:53)
09-25 07:46:27.690: W/System.err(803): at android.webkit.WebViewCore.nativeMouseClick(Native Method)
09-25 07:46:27.701: W/System.err(803): at android.webkit.WebViewCore.nativeMouseClick(Native Method)
09-25 07:46:27.730: W/System.err(803): at android.webkit.WebViewCore.access$6800(WebViewCore.java:59)
09-25 07:46:27.730: W/System.err(803): at android.webkit.WebViewCore$EventHub.dispatchWebKitEvent(WebViewCore.java:1793)
09-25 07:46:27.741: W/System.err(803): at android.webkit.WebViewInputDispatcher.dispatchWebKitEvent(WebViewInputDispatcher.java:689)
09-25 07:46:27.754: W/System.err(803): at android.webkit.WebViewInputDispatcher.dispatchWebKitEvents(WebViewInputDispatcher.java:639)
09-25 07:46:27.754: W/System.err(803): at android.webkit.WebViewInputDispatcher.access$800(WebViewInputDispatcher.java:78)
09-25 07:46:27.754: W/System.err(803): at android.webkit.WebViewInputDispatcher$WebKitHandler.handleMessage(WebViewInputDispatcher.java:1153)
09-25 07:46:27.754: W/System.err(803): at android.os.Handler.dispatchMessage(Handler.java:99)
09-25 07:46:27.791: W/System.err(803): at android.os.Looper.loop(Looper.java:137)
09-25 07:46:27.791: W/System.err(803): at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:814)
09-25 07:46:27.791: W/System.err(803): at java.lang.Thread.run(Thread.java:841)


Android manifets file :

<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" android:windowSoftInputMode="adjustPan" package="com.cnonymn.eBPROperator" xmlns:android="http://schemas.android.com/apk/res/android">
    <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
    <uses-feature android:name="android.hardware.camera"/>
    <uses-permission android:name="android.permission.INTERNET" />
     <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.RECORD_VIDEO"/>
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.WRITE_CONTACTS" />   
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />   
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.BROADCAST_STICKY" />
    <uses-feature android:name="android.hardware.camera" android:required="false"/>
  <uses-feature android:name="android.hardware.camera.front" android:required="false"/>
  <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
  <uses-feature android:name="android.hardware.camera.flash" android:required="false"/>
  <uses-feature android:name="android.hardware.screen.landscape"/>
  <uses-feature android:name="android.hardware.wifi" android:required="false"/>
  <uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
   <application android:debuggable="true" android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:name="eBPROperator" android:theme="@android:style/Theme.Black.NoTitleBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".CaptureActivity"
              android:screenOrientation="landscape"
              android:clearTaskOnLaunch="true"
              android:stateNotNeeded="true"
              android:configChanges="orientation|keyboardHidden"
              android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
              android:windowSoftInputMode="stateAlwaysHidden">
      <intent-filter>
        <action android:name="android.intent.action.MAIN"/>
        <category android:name="android.intent.category.LAUNCHER"/>
      </intent-filter>
      <intent-filter>
        <action android:name="com.google.zxing.client.android.SCAN"/>
        <category android:name="android.intent.category.DEFAULT"/>
      </intent-filter>
      <!-- Allow web apps to launch Barcode Scanner by linking to http://zxing.appspot.com/scan. -->
      <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>
        <data android:scheme="http" android:host="zxing.appspot.com" android:path="/scan"/>
      </intent-filter>
      <!-- We also support a Google Product Search URL. -->
      <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>
        <data android:scheme="http" android:host="www.google.com" android:path="/m/products/scan"/>
      </intent-filter>
      <!-- And the UK version. -->
      <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>
        <data android:scheme="http" android:host="www.google.co.uk" android:path="/m/products/scan"/>
      </intent-filter>
      <!-- Support zxing://scan/?... like iPhone app -->
      <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>
        <data android:scheme="zxing" android:host="scan" android:path="/"/>
      </intent-filter>
    </activity>
    <activity android:name=".PreferencesActivity"
              android:label="/preferences_name"
              android:stateNotNeeded="true">
    </activity>
    <activity android:name=".encode.EncodeActivity"
              android:label="/share_name"
              android:stateNotNeeded="true">
      <intent-filter>
        <action android:name="com.google.zxing.client.android.ENCODE"/>
        <category android:name="android.intent.category.DEFAULT"/>
      </intent-filter>
      <!-- This allows us to handle the Share button in Contacts. -->
      <intent-filter>
        <action android:name="android.intent.action.SEND"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <data android:mimeType="text/x-vcard"/>
      </intent-filter>
      <!-- This allows us to handle sharing any plain text . -->
      <intent-filter>
        <action android:name="android.intent.action.SEND"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <data android:mimeType="text/plain"/>
      </intent-filter>
    </activity>
    <activity android:name=".book.SearchBookContentsActivity"
              android:label="/sbc_name"
              android:stateNotNeeded="true"
              android:screenOrientation="landscape"
              android:configChanges="orientation|keyboardHidden">
      <intent-filter>
        <action android:name="com.google.zxing.client.android.SEARCH_BOOK_CONTENTS"/>
        <category android:name="android.intent.category.DEFAULT"/>
      </intent-filter>
    </activity>
    <activity android:name=".share.ShareActivity"
              android:label="/share_name"
              android:stateNotNeeded="true"
              android:screenOrientation="user"
              android:theme="@android:style/Theme.Light">
      <intent-filter>
        <action android:name="com.google.zxing.client.android.SHARE"/>
        <category android:name="android.intent.category.DEFAULT"/>
      </intent-filter>
    </activity>
    <activity android:name=".history.HistoryActivity"
              android:label="/history_title"
              android:stateNotNeeded="true">
      <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
      </intent-filter>
    </activity>
    <activity android:name=".share.BookmarkPickerActivity"
              android:label="/bookmark_picker_name"
              android:stateNotNeeded="true">
      <intent-filter>
        <action android:name="android.intent.action.PICK"/>
        <category android:name="android.intent.category.DEFAULT"/>
      </intent-filter>
    </activity>
    <activity android:name=".share.AppPickerActivity"
              android:label="/app_picker_name"
              android:stateNotNeeded="true"
              android:configChanges="orientation">
      <intent-filter>
        <action android:name="android.intent.action.PICK"/>
        <category android:name="android.intent.category.DEFAULT"/>
      </intent-filter>
    </activity>
    <activity android:name=".HelpActivity"
              android:screenOrientation="user">
      <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
      </intent-filter>
    </activity>
    </application>
    
    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="18" />
</manifest>

please help me out

Tejeswini Sangaraju

unread,
Sep 25, 2013, 8:04:45 AM9/25/13
to phon...@googlegroups.com
can any one reply to this post? please..

Tejeswini Sangaraju

unread,
Sep 25, 2013, 8:48:27 AM9/25/13
to phon...@googlegroups.com
please reply to this post..


On Wednesday, September 25, 2013 5:19:29 PM UTC+5:30, Tejeswini Sangaraju wrote:

svkirans

unread,
Sep 25, 2013, 10:18:51 AM9/25/13
to phon...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages