question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android No Activity found to handle

See original GitHub issue

Hey, just tried using the package but i get a weird error, i checked all the manual installing and it is all correct. Im trying to when the user opens the ‘page’ it will appear the picker after 200 milisec but it gets this error or sometimes the App closes:

screenshot_2017-05-31-15-53-49-097_com goofyapp 1

This is what i wrote:

const DocumentPicker = require('react-native').NativeModules.RNDocumentPicker;

componentDidMount(){ this.timeoutHandle = setTimeout(() => { DocumentPicker.show({ filetype: ['public.image'], },(error,url) => { alert(url); }); }, 200); }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

9reactions
ivankashtanovcommented, May 31, 2017

I’ve had same error (though only visible in Android monitor logs in Android Studio, no red screen) and found out that filetype values for Android should be MIME types (e.g. */* for all files or image/* for all images). So you should detect current platform and choose filetype from some map accordingly (e.g. image/* for Android and public.image for iOS).

@Elyx0 could you add this to readme?

1reaction
ivankashtanovcommented, Jun 1, 2017

Not sure if that’s the right workaround but I’ve used setTimeout after receiving file info from picker before doing anything with it as recommended in one of readme examples. I’ve also used Alert component from react-native to show alert dialog, not just JS alert.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No Activity found to handle Intent error? How it will resolve
have you registered the intent filter ( "com.scytec.datamobile.vd.gui.android.AppPreferenceActivity" ) for the activity in manifiest? – Karthik. Feb 6, ...
Read more >
Easy Solution to No Activity Found To Handle Intent Error
No activity found to handle intent is an error caused by different reasons such as Google Play is not installed, using a rooted...
Read more >
No Activity found to handle Intent { act=android.intent ... - GitHub
Navigate to settings > Apps · Select Chrome · Tap "Disable" button, confirm warnings · Launch an app with this component integrated on...
Read more >
No Activity found to handle Intent { act=android.intent.action ...
Crash in android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat= } at android.app.
Read more >
[Xamarin.Android] API-31: No Activity found to handle Intent ...
[Xamarin.Android] API-31: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///storage/emulated/0/Pictures/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found