草庐IT

receiver_tensors

全部标签

android - 如何解决内部错误: retry receiver class not set yet and GCMBaseIntentService : SERVICE_NOT_AVAILABLE error

我在MicromaxCanvas2上运行我的应用程序时收到此logcat,我的手机配置为Google服务和Google帐户,这里我没有获取GCM注册ID而我是在模拟器中获取它。任何建议为什么?提前致谢。07-1113:52:48.145:V/InputMethodManager(16539):focusOut:android.widget.AutoCompleteTextView{41990460VFED..CL.F....ID0,53-480,113#7f070024app:id/txt_sitename}mServedView=android.widget.AutoComplete

android - 自动完成 TextView 错误 : IllegalStateException: The content of the adapter has changed but ListView did not receive a notification

在我的AutocompleteTextView上取消或快速键入时,我在此类中遇到IllegalStateException错误。我已经阅读了一些相关内容,但我无法解决这个问题。任何人都可以更正我的代码吗?提前感谢任何帮助者!(抱歉我的英语不好)这是完整的错误:java.lang.IllegalStateException:ThecontentoftheadapterhaschangedbutListViewdidnotreceiveanotification.Makesurethecontentofyouradapterisnotmodifiedfromabackgroundthrea

android - Viewflipper Receiver 在 2.1 和 2.2 中方向改变时未注册错误

我正在使用viewflipper进行手势识别,在2.0和之前的版本中一切正常,但在2.2和2.1中它抛出异常,如“java.lang.IllegalArgumentException:Receivernotregistered:android.widget.ViewFlipper”下面是完整的调试跟踪。java.lang.IllegalArgumentException:Receivernotregistered:android.widget.ViewFlipper$1@452f839809-1911:33:06.825:ERROR/AndroidRuntime(393):atandr

android - 我应该在哪里使用 Service 、 AsyncTask 和 Broadcast Receiver ?

我有点困惑,在什么情况下我需要使用应用程序组件,如Service、asyncTask和BroadcastReceiver。谁能解释一下这些组件之间的确切区别以及我需要在哪里使用这些组件? 最佳答案 AsyncTask是一种创建异步执行某些工作的新线程的友好方式。广播接收器类似于系统事件的事件处理程序。它可以运行在背景并在发生某些事情时执行操作,例如关闭手机或打开wifi..服务只是一个在后台运行的应用程序(如守护进程),并为应用程序提供信息或仅执行任务。对不起我的英语,我试着让我听懂但它不是我的母语

Android 错误 Cant Use FLAG_RECEIVER_BOOT_UPGRADE here

我正在尝试从AppA启动AppB。关于AppBIActivity的问题:Intenti=newIntent();i.setAction("START_APPB");i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);context.sendBroadcast(i)在AppB内部,我有一个正在监听START_APPBIntent过滤器的广播接收器。如下:Intenti=newIntent();i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);i.setAction("SHOW_APPBPAGE");context.star

android - 我可以发送 "SMS received intent"吗?

标题很明显。我可以在Android手机上发送“SMSreceivedintent”吗?换句话说,通过虚拟接收自定义SMS来伪造某些SMS接收者。 最佳答案 您可以创建假短信(GMS类型),以便像真实消息一样内置捕获。这是myanswerIntentintent=newIntent();intent.setClassName("com.android.mms","com.android.mms.transaction.SmsReceiverService");intent.setAction("android.provider.Tel

android - 我无法在 Android Oreo 中收到 “android.provider.Telephony.SMS_RECEIVED” 这个广播

这是我的Menifest文件这是我的广播接收器类publicclassOTPReceiverextendsBroadcastReceiver{@OverridepublicvoidonReceive(Contextcontext,Intentintent){if(intent.getAction().equals("android.provider.Telephony.SMS_RECEIVED")){}} 最佳答案 这解决了我的问题-我没有在运行时明确请求android.Manifest.permission.RECEIVE_SMS

android - 是否有任何解决方案可以使 Android 设备成为 Cast Receiver?

您好,我有一个运行在Android4.4上的androidTVBOX是否可以将此设备设为转换接收器(如chromecast或AndroidTV)?具体来说,是否有任何SDK可以编写自定义应用程序,将在Android4.4上作为转换接收器应用程序运行? 最佳答案 不,没有这样的官方SDK可以做到这一点。请注意,CastSDK发送方会检查以确保他们正在与官方Cast接收方通话。 关于android-是否有任何解决方案可以使Android设备成为CastReceiver?,我们在StackOv

android - 致命异常 : java. lang.IllegalArgumentException : Receiver not registered: android. hardware.camera2.CameraManager

我正在开发一个可以打开/关闭系统巡视的手电筒应用。我在AndroidM(v6.0)上出现崩溃Crashlytics这是问题的详细信息和堆栈跟踪:FatalException:java.lang.IllegalArgumentException:Receivernotregistered:android.hardware.camera2.CameraManager$1@49e5f1batandroid.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:789)atandroid.app.ContextImpl.unregister

android - 改造。 java.net.协议(protocol)异常 : expected * bytes but received *

我正在尝试通过Retrofit2执行多部分POST请求,我在其中将自定义文件上传到API。它随机失败并出现此异常:W/System.err:java.net.ProtocolException:expected154bytesbutreceived634有人能解释一下吗?这是我在界面中的代码:@Multipart@POST("recordings/{id}/{rec_id}/")CalluploadRecording(@Path("id")Stringid,@Path("rec_id")Stringrec_id,@PartMultipartBody.PartbleFile);在构造函数