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 }

JIRA | jingqiaX | 5 months ago
  1. 0

    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}

    JIRA | 5 months ago | jingqiaX
    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 }
  2. 0

    App crash when trying to print

    GitHub | 2 years ago | jraoatlogic
    android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND typ=text/html flg=0x1 pkg=com.google.android.apps.cloudprint (has clip) (has extras) }
  3. 0

    paypal payment plugin with cordova on android devices

    GitHub | 2 years ago | pocahentez
    android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.hello/com.paypal.android.sdk.payments.PaymentActivity}; have you declared this activity in your AndroidManifest.xml?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    paypal payment with cordova plugin

    Stack Overflow | 2 years ago | Ghada Salem
    android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.hello/com.paypal.android.sdk.payments.PaymentActivity}; have you declared this activity in your AndroidManifest.xml?
  6. 0

    PhoneGap Calendar Plugin Error: no activity found to handle intent

    Stack Overflow | 2 years ago | RickON
    android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.EDIT typ=vnd.android.cursor.item/event (has extras) }
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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 }

    at android.app.Instrumentation.checkStartActivityResult()
  2. Android Platform
    Activity.startActivityForResult
    1. android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1798)
    2. android.app.Instrumentation.execStartActivity(Instrumentation.java:1512)
    3. android.app.Activity.startActivityForResult(Activity.java:3930)
    3 frames
  3. org.apache.cordova
    CordovaActivity.startActivityForResult
    1. org.apache.cordova.CordovaActivity.startActivityForResult(CordovaActivity.java:332)
    1 frame
  4. Android Platform
    Activity.startActivity
    1. android.app.Activity.startActivityForResult(Activity.java:3890)
    2. android.app.Activity.startActivity(Activity.java:4213)
    3. android.app.Activity.startActivity(Activity.java:4181)
    3 frames
  5. org.xwalk.core
    XWalkLibraryLoader$DownloadManagerTask.onPostExecute
    1. org.xwalk.core.XWalkUpdater$ForegroundListener.onDownloadCompleted(XWalkUpdater.java:515)
    2. org.xwalk.core.XWalkLibraryLoader$DownloadManagerTask.onPostExecute(XWalkLibraryLoader.java:455)
    3. org.xwalk.core.XWalkLibraryLoader$DownloadManagerTask.onPostExecute(XWalkLibraryLoader.java:346)
    3 frames
  6. Android Platform
    AsyncTask.finish
    1. android.os.AsyncTask.finish(AsyncTask.java:651)
    1 frame