Android No Activity found to handle
See original GitHub issueHey, 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:
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:
- Created 6 years ago
- Comments:14 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 orimage/*
for all images). So you should detect current platform and choose filetype from some map accordingly (e.g.image/*
for Android andpublic.image
for iOS).@Elyx0 could you add this to readme?
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 fromreact-native
to show alert dialog, not just JSalert
.