Questions tagged [activitynotfoundexception]

This is a Java exception in the Android API that is thrown when a call to startActivity(Intent) or one of its variants fails because an Activity can not be found to execute the given Intent.

This is a Java exception in the Android API.

This exception is thrown when a call to startActivity(Intent) or one of its variants fails because an Activity can not be found to execute the given Intent.

Link.

97 questions
2
votes
1 answer

Android ActivityNotFoundException on simple https URI Intent

I am launching a web page when user clicks a button in my app. val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://www.example.com")) startActivity(intent) It works on every device I have tested but I am getting crash…
2
votes
3 answers

Android - No Activity found to handle HTTPS CustomTabsIntent

I have an app in production and some users get a weird ActivityNotFoundException about a VIEW https intent. I cannot reproduce it locally on my physical device or emulator. I also assume that every Android has a browser to open URLs by default, am I…
2
votes
1 answer

IccLockSettings call using Nougat Android 7 throws ActivityNotFoundException

In order to open SIM PIN settings, I am using this code up to Android M. 7.0 SDK 24, Sim is inside the tray. ^^ Intent intent = new Intent(Intent.ACTION_MAIN); ComponentName cn = new…
divol
  • 192
  • 7
2
votes
2 answers

ActivityNotFoundException when trying to invoke an 'explicit' intent from Preferences, to open an Activity in default package?

In the following SSCCE I am trying to invoke an explicit intent from preferences.xml, to open an Activity which is located in the one and only package in the app, in which all Activity's are located. But I get the following…
2
votes
1 answer

How manage "No application can perform this action" (AKA ActivityNotFoundException)

So this is my code public void onClick() { try { startActivity(Utils.openFile(f.getPath(),myExt)); } catch(ActivityNotFoundException activityNotFoundException) { …
Tizianoreica
  • 2,142
  • 3
  • 28
  • 43
2
votes
2 answers

Android:ActivityNotFoundException

public void onContacts(View v) { Intent i=new Intent(Intent.ACTION_VIEW, ContactsContract.Contacts.CONTENT_URI); startActivity(i); } public void onBrowse(View v) { String s1= et1.getText().toString(); Intent i= new…
ceanan007
  • 31
  • 6
2
votes
1 answer

How to call startActivityForResult inside onActivityResult?

Calling startActivityForResult gives me ActivityNotFoundException. I wanted to know that is it even possible to call startActivityForResult inside onActivityResult? If yes then what could possibly be wrong with my code: Here is the…
1
vote
1 answer

Activity not found on some devices only

I am running into an issue where Android gives me the ActivityNotFoundException error. The code is extremely straightforward and run on every devices so far. At least up until a couple of days ago where I had a dozen crashes ALL coming from the same…
Anael
  • 417
  • 1
  • 6
  • 18
1
vote
1 answer

Android Studio - "Unable to find explicit activity class" and I have already declared the activities in Manifest, which is the suggested problem

This error comes up in the logcat when I try to click on a button in my application and it crashes: ``` FATAL EXCEPTION: main Process: com.example.savedtrial, PID: 16090 android.content.ActivityNotFoundException: Unable to find explicit activity…
1
vote
1 answer

Activity found to handle Intent { act=android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS dat=package:com.example.batterop }

when run this code that exception throw Intent intent=new Intent(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS); //intent.setAction(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS); //intent.setData(Uri.parse("package:" +…
1
vote
1 answer

ActivityNotFoundException when accessing the camera using registerForActivityResult

My API 28 application throws this ActivityNotFoundException when trying to capture photos with the camera (both in the Emulator as well as with a real device) using registerForActivityResult: "No Activity found to handle Intent {…
1
vote
1 answer

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=PendingIntent{ }

I am trying to execute another app from my app using PendingIntent. I get other apps' pending Intent value and do this (I got pending intent value in String type) public class NotificationCrawlingService extends NotificationListenerService…
1
vote
1 answer

My androids app have Activitynotfoundexception based crashes on some devices. How can i regenerate it?

I have an Android app released on Google Play. It works fine but some users complains about app crashes when it's opened. On Play console there is an %2,5 crash rate and all of them are activitynotfoundexception. But me or my several android user…
Sky
  • 13
  • 2
1
vote
2 answers

android (exception ActityNotFoundException)

I am working on an android game https://code.google.com/p/something-soft/ and I my log cat says that it is trying to fire the intent to the game, but then the main thread seems to die (with and ActivityNotFoundException) and then seems to freeze. in…
gardian06
  • 1,496
  • 3
  • 20
  • 34
1
vote
2 answers

Android Instagram sharing exception

I am making an application for one company and I need to make sharing on Instagram. The code I am using is: public void SharingToSocialMedia(String application) { Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); …
Apuna12
  • 375
  • 2
  • 6
  • 23