android.content.ActivityNotFoundException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 1#261000707
    via GitHub by premtemp1
    ,
  • App crash when trying to print
    via GitHub by jraoatlogic
    ,
  • paypal payment with cordova plugin
    via Stack Overflow by Ghada Salem
    ,
  • Impacted Cases ============== usecase-cordova-android-tests/SharedModeLibraryDownload Reproduce Test Steps ==================== Precondition: setup a server and upload XWalkRuntimeLib.apk to the server, get apk URL(such as: http://host/XWalkRuntimeLib.apk) 1. {{$ cordova create org.xwalk.test}} 2. {{$ cd org.xwalk.test}} 3. {{$ cordova platform add android}} 4. {{$ cordova plugin add https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview --variable XWALK_VERSION="org.xwalk:xwalk_shared_library_beta:21.51.546.2" --variable XWALK_MODE="shared"}} 5. Add the following code to AndroidManifest.xml: {code} <meta-data android:name="xwalk_apk_url" android:value="http://host/XWalkRuntimeLib.apk" /> {code} {code} <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> {code} 6. {{$ cordova build -- --minSdkVersion=16}} 7. Install the built apk Expected Outcome ================ After 6: XWalkRuntimeLib.apk is installed, Crosswalk startup dialog disappears, and App is launched successfully Actual Outcome ============== After 6: Apk crashed when downloading XWalkRuntimeLib. Test Case Source Code ===================== ||Type||URL|| |Souce code in github| https://github.com/crosswalk-project/crosswalk-test-suite/tree/master/usecase/usecase-cordova-android-tests/samples/SharedModeLibraryDownload | Test Builds =========== ||Version||Test Date ||Test Device||Android Version||Result|| |crosswalk 20.50.533.6|2016.07.15|Google Nexus 9|5.1.1|{color:green}Pass{color}| |crosswalk 20.50.533.6|2016.07.15|Google Nexus 9|6.0.0|{color:red}Fail{color}| |crosswalk 20.50.533.11|2016.07.15|Google Nexus 9|5.1.1|{color:green}Pass{color}| |crosswalk 20.50.533.11|2016.07.15|Google Nexus 9|6.0.0|{color:red}Fail{color}| |crosswalk 21.51.546.2|2016.07.15|Google Nexus 9|6.0.0|{color:red}Fail{color}| |crosswalk 21.51.542.0|2016.07.15|Google Nexus 9|6.0.0|{color:red}Fail{color}| |crosswalk 21.51.542.0|2016.07.15|Google Nexus 9|5.1.1|{color:green}Pass{color}| Issue Analysis ============== {code} 07-15 02:40:13.339 14633 14633 E AndroidRuntime: FATAL EXCEPTION: main 07-15 02:40:13.339 14633 14633 E AndroidRuntime: Process: com.example.sharedModeLibraryDownload, PID: 14633 07-15 02:40:13.339 14633 14633 E AndroidRuntime: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=content://downloads/my_downloads/735 typ=application/vnd.android.package-archive } 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1798) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1512) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:3930) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at org.apache.cordova.CordovaActivity.startActivityForResult(CordovaActivity.java:332) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java:3890) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:4213) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at android.app.Activity.startActivity(Activity.java:4181) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at org.xwalk.core.XWalkUpdater$ForegroundListener.onDownloadCompleted(XWalkUpdater.java:515) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at org.xwalk.core.XWalkLibraryLoader$DownloadManagerTask.onPostExecute(XWalkLibraryLoader.java:455) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at org.xwalk.core.XWalkLibraryLoader$DownloadManagerTask.onPostExecute(XWalkLibraryLoader.java:346) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at android.os.AsyncTask.finish(AsyncTask.java:651) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at android.os.AsyncTask.-wrap1(AsyncTask.java) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 07-15 02:40:13.339 14633 14633 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 07-15 02:40:13.343 584 2424 W ActivityManager: Force finishing activity com.example.sharedModeLibraryDownload/.SharedModeLibraryDownload {code}
    via by jingqiaX,
    • android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.GET_CONTENT cat=`[android.intent.category.OPENABLE] typ=.doc,.docx,.rdf,.txt,.pdf,.odt }` at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1765) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1485) at android.app.Activity.startActivityForResult(Activity.java:3736) at org.apache.cordova.CordovaActivity.startActivityForResult(CordovaActivity.java:332) at android.app.Activity.startActivityForResult(Activity.java:3697) at org.apache.cordova.CordovaInterfaceImpl.startActivityForResult(CordovaInterfaceImpl.java:67) at org.apache.cordova.engine.SystemWebChromeClient.onShowFileChooser(SystemWebChromeClient.java:268) at com.android.webview.chromium.WebViewContentsClientAdapter.showFileChooser(WebViewContentsClientAdapter.java:910) at com.android.org.chromium.android_webview.AwWebContentsDelegateAdapter.runFileChooser(AwWebContentsDelegateAdapter.java:181) at com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) at com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:28) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

    Users with the same issue

    Agócs Tamás
    1 times, last one,
    Pierre
    1 times, last one,
    Unknown User
    3 times, last one,
    Indri Yunita
    4 times, last one,
    Hiren Amaliyar
    66 times, last one,
    92 more bugmates