activitynotfoundexception

How to fix “android.content.ActivityNotFoundException” android-studio 2.3.3

こ雲淡風輕ζ 提交于 2021-02-08 09:55:46
问题 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 get: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=5010029217902 } Here is the section of code that is causing the error: } }); builder.setNeutralButton("Visit", new DialogInterface.OnClickListener() {

Unable to find explicit activity class

狂风中的少年 提交于 2019-12-24 05:49:57
问题 I just began android development, and I'm stuck on this issue. When the application runs, I'm greeted with the following: http://imgur.com/yIFxvd4 (In case the link is broken or the image can't be seen, it is simply a menu in landscape mode with three buttons.) This is what I want to see. However, when I click "Start Playing" which should cause the android emulator to go to a blank screen, the emulator quits our of the app and says, "Unfortunately, MainMenu has been stopped." This is the

I can´t call an activity from a jar file

三世轮回 提交于 2019-12-13 19:19:14
问题 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 Path. When I call the activity from the jar file there is a Fatal Exception This is the logCat 03-22 12:47:09.509: D/AndroidRuntime(13341): Shutting down VM 03-22 12:47:09.509: W/dalvikvm(13341): threadid=1: thread exiting with uncaught exception

Fragment :opening activity from fragment giving ActivityNotFoundException:

☆樱花仙子☆ 提交于 2019-12-11 18:23:32
问题 I am trying to open an activity from Listfragment as below @Override public void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); ((MenuActivity)getActivity()).getSlideoutHelper().close(); Intent myIntent = new Intent(getActivity(), TravellerTimer.class); getActivity().startActivity(myIntent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY)); } i registered the TimeTraveller activity in manifest file but still its giving ActivityNotFoundException

Android:ActivityNotFoundException

强颜欢笑 提交于 2019-12-11 04:01:38
问题 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 Intent(Intent.ACTION_VIEW, Uri.parse(s1)); startActivity(i); } public void onSearch(View v) { String s1= et2.getText().toString(); Intent i=new Intent(Intent.ACTION_WEB_SEARCH); i.putExtra(SearchManager.QUERY, s1); startActivity(i); } public void onMap(View v) { String s1= et3

Android 10 - No Activity found to handle Intent

三世轮回 提交于 2019-12-06 04:37:28
问题 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 now it will crash on Android 10 (api 29). I haven't seen anyone with a similar problem yet, any help would be greatly appreciated! Here's what I use to call the APK file from within my app: Intent intent = new Intent(Intent.ACTION_VIEW); final File

Android 10 - No Activity found to handle Intent

匆匆过客 提交于 2019-12-04 14:39:29
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 now it will crash on Android 10 (api 29). I haven't seen anyone with a similar problem yet, any help would be greatly appreciated! Here's what I use to call the APK file from within my app: Intent intent = new Intent(Intent.ACTION_VIEW); final File apkFile = new File(Files.getApkFileName()); Log.v("dt.update", "Start update from " + apkFile

Android-fragment exception:activity not found

拜拜、爱过 提交于 2019-12-02 08:39:12
问题 I am using the navigation-drawer template in eclipse to do a simple Android application. I have some trouble with fragment. I declared a fragment called PresenceLog Fragment in manifest but when I called it in MainActivity , the log still says that 03-23 13:54:50.817: E/AndroidRuntime(16750): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.singtel.ricecooker/com.singtel.ricecooker.PresenceLogFragment}; have you declared this activity in your

ActivityNotFoundException, image capturing?

三世轮回 提交于 2019-12-01 13:57:11
I have released an App which user can take photo in it.I do this to capturing photo: File file = new File( _path ); Uri outputFileUri = Uri.fromFile( file ); Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE ); intent.putExtra( MediaStore.EXTRA_OUTPUT, outputFileUri ); startActivityForResult( intent, 0 ); and also I added this permission to manifest: <uses-permission android:name="android.permission.CAMERA" /> I tested my App on Android2.3.5 and Android3.0 ,and it works fine.But when I run my App on Android4.0.3 ,it crashes: android.content.ActivityNotFoundException:

ActivityNotFoundException, image capturing?

霸气de小男生 提交于 2019-12-01 13:12:48
问题 I have released an App which user can take photo in it.I do this to capturing photo: File file = new File( _path ); Uri outputFileUri = Uri.fromFile( file ); Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE ); intent.putExtra( MediaStore.EXTRA_OUTPUT, outputFileUri ); startActivityForResult( intent, 0 ); and also I added this permission to manifest: <uses-permission android:name="android.permission.CAMERA" /> I tested my App on Android2.3.5 and Android3.0 ,and it