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.

88 questions
42
votes
6 answers

intent.resolveActivity returns null in API 30

Looking at intent.resolveActivity != null but launching the intent throws an ActivityNotFound exception I wrote opening a browser or an application with Deep linking: private fun openUrl(url: String) { val intent = Intent().apply { …
14
votes
1 answer

Android 10 - No Activity found to handle Intent

My 3rd party app has a way for the end-user to download an updated APK from our server and then the app will invoke the install package manager on that APK after it's done downloading. This same method has worked for all versions of Android OS but…
buradd
  • 1,083
  • 1
  • 11
  • 19
10
votes
4 answers

ActivityNotFoundException when calling Intent.ACTION_CALL

I get ActivityNotFoundException when perform Intent.ACTION_CALL operation. I found many links but all of it couldn't solve my problem. It sometimes gives me exception like android.content.ActivityNotFoundException: No Activity found to handle Intent…
Nooruddin Lakhani
  • 4,098
  • 2
  • 14
  • 32
6
votes
3 answers

Can't open Activity from other module

I've added a reference to a new module and try to open an Activity from it. It throws an Exception that says: android.content.ActivityNotFoundException: Unable to find explicit activity class{ …
6
votes
2 answers

How to catch an Exception (ActivityNotFoundException) while using LinkMovementMethod

I have currently a TextView with some HTML phone numbers and url. I have noticed that we can use the setMovementMethod to make these links clickable: tv.setText("Phone number is: +32485123456 and url is…
Waza_Be
  • 39,545
  • 47
  • 176
  • 256
5
votes
1 answer

No Activity found to handle Intent { act=android.intent.action.VIEW dat=google.navigation:q=17.399986,78.483137 pkg=com.google.android.apps.maps }

I am trying to launch maps using the following code. public static void navigate(Context context, double lat, double lon) { String locationQuery = lat + "," + lon; Uri gmmIntentUri = Uri.parse("google.navigation:q=" +…
user1002448
  • 405
  • 8
  • 19
5
votes
1 answer

App crashing with 'boolean android.content.Intent.migrateExtraStreamToClipData()' on a null object reference' even when try/catch block is there

I'm trying to open certain apps using there package names and for that I'm using this code: public void openAppHavingPackageName(String packageName, String appName) { try { Intent intent =…
5
votes
1 answer

Library project activity not found error

I am working on a project , where i need to render pdf on my device screen. For that i am using mupdf library. I have included it in my project. Now from library project , i need to use MuPDFActivity.class through intent for showing pdf. But i am…
5
votes
3 answers

ActivityNotFoundException in Lollipop when trying to launch activity with intent android.settings.USAGE_ACCESS_SETTINGS

I am trying to get the permission to access app usage data using this permission. THis is only being done for Lollipop and when I start activity with this intent (android.settings.USAGE_ACCESS_SETTINGS), the app crashes (stacktrace below) Observed…
4
votes
2 answers

No Activity found (browser) with valid http:// prefix

So I got an exception from my app as follows: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=http://google.com (has extras) } at …
Stan
  • 6,121
  • 8
  • 48
  • 85
4
votes
3 answers

ActivityNotFoundException when trying to start a second activity

I've just started learning Android apps programming, i'm following the android official basics tutorials but i don't understand why i'm having an error while i make an intent and the app throws me this error. public class MainActivity extends…
3
votes
2 answers

No Activity found to handle Intent error with valid url

I have this small method: private fun showWebsiteWithUrl(url: String) { val i = Intent(Intent.ACTION_VIEW) i.data = Uri.parse(url) startActivity(i) } And I see in google play that sometimes this method throw…
just
  • 1,637
  • 3
  • 21
  • 43
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…
1
2 3 4 5 6