jjzjj

android - 没有找到处理 Intent { act=android.accounts.AccountAuthenticator } 的 Activity ,即使我有一个

当用户在“帐​​户和同步”中选择“添加帐户”或想要使用该应用程序时,我试图让我的应用程序显示我的登录Activity尚未登录。我按照这个例子SampleSyncAdapter相当接近,但无法让它工作并收到以下异常:找不到处理Intent{act=android.accounts.AccountAuthenticator}的Activity我的授权服务包含:publicIBinderonBind(Intentintent){IBinderret=null;if(intent.getAction().equals(android.accounts.AccountManager.ACTION

android - 服务 Intent 必须明确 : Intent { act=com. android.vending.billing.InAppBillingService.BIND }

我在某些5.0设备上收到显式Intent异常,但我的代码已经具有显式Intent并且如下所示:IntentserviceIntent=newIntent("com.android.vending.billing.InAppBillingService.BIND");serviceIntent.setPackage("com.android.vending");PackageManagerpm=mContext.getPackageManager();ListintentServices=pm.queryIntentServices(serviceIntent,0);if(intentS

android - 找不到处理 Intent 的 Activity { act=android.intent.action.EDIT typ=vnd.android.cursor.item/event

我正在编写一段代码,其中我允许用户使用Intent将事件添加到日历中,但是每当我尝试将事件插入到较低版本中时,都会得到:不幸的是应用程序已停止和错误是:android.content.ActivityNotFoundException:NoActivityfoundtohandleIntent{act=android.intent.action.EDITtyp=vnd.android.cursor.item/event(hasextras)}AndroidManifest.xml:-Java代码:-finalButtonbutton=(Button)findViewById(R.id.

java - SecurityException : Not allowed to start service Intent { act=com. google.android.c2dm.intent.REGISTER pkg=com.google.android.gms(有附加功能)}

我尝试从Google获取我的GCMregistrationId。我的代码:StringSENDER_ID="722******53";/***RegisterstheapplicationwithGCMserversasynchronously.**StorestheregistrationIDandtheappversionCodeintheapplication's*sharedpreferences.*/privatevoidregisterInBackground(){newAsyncTask(){@OverrideprotectedStringdoInBackground(V

android - 找不到处理 Intent 的 Activity { act=android.intent.action.PICK dat=content ://media/external/images/media }

在我的应用中,我让用户从他们的图库中选择一张照片。我使用这样的Intent:IntentpickPictureIntent=newIntent(Intent.ACTION_PICK,MediaStore.Images.Media.EXTERNAL_CONTENT_URI);在我开始这个Intent之前,我检查是否有任何应用程序可以处理它:if(pickPictureIntent.resolveActivity(getActivity().getPackageManager())!=null){startActivityForResult(pickPictureIntent,SELECT

android - BLE 与 Android 5.0 : How to get a device to act as Central AND Server?

我正在使用两台Android5.0设备通过低功耗蓝牙进行通信,但我不想:设备1作为中心和服务器。设备2作为外围设备和客户端。这是我想要实现的行为:1)设备2开始广播(外设角色)。2)设备1开始扫描(中心角色),通过ScanCallback的onScanResult方法获取广告设备(BluetoothDevice对象)。3)我现在想要通知广告设备(设备2)它已被扫描并能够获取与设备1关联的BluetoothDevice。4)设备1有一个BluetoothGattServer实例。设备2现在将调用设备1上的connectGatt(Contextcontext,booleanautoConn

android - 找不到处理 Intent { act=android.speech.action.RECOGNIZE_SPEECH(有附加功能)} 的 Activity

异常在以下代码中抛出:Intentintent=newIntent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);intent.putExtra(RecognizerIntent.EXTRA_PROMPT,"Speechrecognitiondemo");startActivityForResult(intent,VOICE_RECOGNITION_REQU

android - 找不到处理 Intent { act=android.intent.action.CALL dat=+123456789 pkg=com.android.phone } 的 Activity

以下代码在我单击Activity中的按钮时工作正常,但在单击fragment中的按钮时出现“找不到处理Intent的Activity”错误。IntentcallIntent=newIntent(Intent.ACTION_CALL);callIntent.setData(Uri.parse("+123456789"));startActivity(callIntent); 最佳答案 我想你应该说你添加的数据是这样的电话号码:callIntent.setData(Uri.parse("tel:+123456789"));这是一个完整的

android.content.ActivityNotFoundException : No Activity found to handle Intent { act=android. settings.USAGE_ACCESS_SETTINGS }

此问题仅发生在Android5.0Lollipop上。我无法使用带有Lollipop的手机,我已经在GenymotionAndroidEmulator中开发了代码,但此问题不会在模拟器中发生。我只从用户的手机中获取失败的堆栈跟踪信息。我的代码:if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP){Intentintent=newIntent(Settings.ACTION_USAGE_ACCESS_SETTINGS);startActivity(intent);}应用程序崩溃以及我从用户那里获得的堆栈跟踪信息:android.c

android - 谷歌 Espresso java.lang.RuntimeException : Could not launch intent Intent { act=android. intent.action.MAIN

我是EspressoUI测试的新手。我在运行测试时遇到这个错误(ADTEclipseIDE)。该应用程序已经开发完成,并且在启动该应用程序时有很多请求正在进行。无法重写应用程序。但我需要找到测试此UI的方法,即使组件加载有任何延迟也是如此。java.lang.RuntimeException:CouldnotlaunchintentIntent{act=android.intent.action.MAINflg=0x14000000cmp=com.xx.android/com.yy.core.android.map.MapActivity}within45seconds.Perhaps