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
1
vote
1 answer

Open Epub from uri ActivityNotFoundException Error Android

Im open a epub file when I press a button, but when my android don´t have any epub reader, show an toast saying please install epub reader, but my code not works, and stopp my app saying the app stop unexpectedly. Button leer = (Button)…
Loreln
  • 201
  • 3
  • 14
1
vote
2 answers

Unable to find explicit activity class

I just began android development, and I'm stuck on this issue. When the application runs, I'm greeted with the following: https://i.stack.imgur.com/EA6Nr.jpg (In case the link is broken or the image can't be seen, it is simply a menu in landscape…
hmir
  • 1,333
  • 2
  • 17
  • 24
1
vote
3 answers

ActivityNotFoundException when starting Activity through ACTION_MAIN

I am trying to start an Activity from another activity with an ACTION_MAIN. I am doing this because I want to give to other apps the possibility to start this secondary activity as well. So in my manifest I have two MAIN…
Gyonder
  • 3,674
  • 7
  • 32
  • 49
1
vote
2 answers

I can´t call an activity from a jar file

I have this scenario: I have a main project that has a jar file (a secondary project that gives some info to the main one). I created the jar file followin this tuto and then add the jar file to the main project in /libs and then add it in the Build…
Ivan
  • 215
  • 3
  • 17
0
votes
1 answer

ActivityNotFoundException {com.example.greetingcard/androidx.fragment.app.FragmentActivity};

class FragmentActivity : AppCompatActivity() { lateinit var binding : ActivityFragmentBinding override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) binding=…
0
votes
1 answer

No Activity found to handle Intent act=android.provider.action.PICK_IMAGES

I am making an Android app. I updated the target version from 28 to 33. I need to use the picture selector. I made it such that if the Build.VERSION.SDK_INT is higher than S_V2, then action MediaStore.ACTION_PICK_IMAGES is used. Otherwise…
0
votes
0 answers

Launch Another Application from Application throws ActivityNotFound Exception in android 13

I am trying to launch an Application with use of Intent and PackageManager. It is working fine upto android 12 but due to some behaviour changes in android 13 it is throwing me an Exception i.e: ActivityNotFoundException. Complete Error message is…
0
votes
1 answer

How to determine live wallpaper intent is valid programmatically?

I add a live wallpaper feature in our app, but got some exception in firebase. I tested on our ten android devices and got no exception, I wonder if I can determine live wallpaper is supported in a specific device programmatically (I don't want to…
thecr0w
  • 2,148
  • 4
  • 33
  • 59
0
votes
2 answers

For a Service class I see android.content.ActivityNotFoundException: Unable to find explicit activity class

I am working with Android and facing the following error when I create a service and run it from the main activity thread. I did go through all the threads related to this error but the error they see mostly for the Activity task. Below are the…
Shobha
  • 141
  • 1
  • 7
0
votes
1 answer

Xamarin Forms android speech recognition ActivityNotFoundException

I've been trying to add speech-to-text to my android app but i'm keep getting "Android.Content.ActivityNotFoundAcception". I'm using android 5.0 (lollipop) emulator since my computer can't start any other emulator. Interface: public interface…
0
votes
1 answer

App crashes when clicking on data table export button

HI I have a website in Asp.net where I am using Data Tables with Export Buttons like CSV Excel Pdf I have created a WebView android app for the site. But when I am clicking on any export button, the app crashes. Here is my download code …
0
votes
3 answers

How to fix "android.content.ActivityNotFoundException" android-studio 2.3.3

I have a small problem where when I click a certain button within my app, the app completely crashes each time without fail. I am using android studio 2.3.3 and the app is a barcode scanner, here is the error message I…
Moh Nab
  • 19
  • 1
  • 6
0
votes
3 answers

"No Activity found to handle Intent" error occurs when its going to load a URL in browser

I've checked similar questions about No Activity found to handle Intent error. none of them covered my problem. I'm getting this error in my Sentry logs when the app is going to open a URL in Chrome browser using Intent in an…
Alireza Noorali
  • 3,129
  • 2
  • 33
  • 80
0
votes
0 answers

ActivityNotFoundException thrown

In which of the following cases is the ActivityNotFoundException thrown? (a). When the Target Activity when started Explicitly is not declared in AndroidMainfest.xml file (b). When the Target Activity to be started fails to retrieve the incoming…
Priyanka
  • 247
  • 4
  • 19
0
votes
1 answer

Why poor casting causes ActivityNotFound Exception in Android using Kotlin?

I recently came across an exception while writing a program and it took me a lot of time to debug simply because I was given a wrong exception by the compiler. Here's my activity code: private var mCheatMap = HashMap() override fun…
HQuser
  • 640
  • 10
  • 26