草庐IT

full_messages

全部标签

android - 在 sdk 管理器中未找到适用于 Android 库的 Google Cloud Messaging

我正在尝试为android实现推送通知解决方案。我正在按照以下教程http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/中给出的步骤进行操作但是当我尝试使用androidsdk(我使用的是最新的sdk)安装GoogleCloudMessagingforAndroidLibrary时,我没有找到您在这张图片中看到的附加模块这真的很奇怪。有什么解决办法吗? 最佳答案 在Pa

android - toast "sending message to a Handler on a dead thread"

我正在尝试通过Toast显示一条简单的消息,并收到运行时异常“向死线程上的处理程序发送消息”。试图显示Toast消息的类扩展了IntentService。类(C2DMReceiver)实际上来自C2DM的ChromeToPhone示例。方法如下:/***Calledwhenacloudmessagehasbeenreceived.*/@OverridepublicvoidonMessage(Contextcontext,Intentintent){Log.i(LOG_TAG,"Amessagenotificationhasoccuredwiththecloud.");Log.i(LOG

android - Google Cloud Messaging (GCM) 使用哪个端口和协议(protocol)?

GoogleCloudMessaging(GCM)使用哪个端口和协议(protocol)?我们有时会遇到消息无法通过的情况,并且注意到这取决于我们所在的网络。 最佳答案 设备通过端口5228-5230访问GCM服务器。Note:IfyourorganizationhasafirewallthatrestrictsthetraffictoorfromtheInternet,you'llneedtoconfigureittoallowconnectivitywithGCM.Theportstoopenare:5228,5229,and5

与 Firebase 相关的 Google Play 服务更新后,Android Google Cloud Messaging (GCM) token 生成崩溃

我的Android应用程序今天在为GoogleCloudMessaging(GCM)生成token时开始崩溃。这发生在多种设备和Android版本上。我认为这可能与Google昨天在GoogleIO上宣布的新Firebase功能有关。当这种情况开始发生时,我没有处理与GCM相关的代码,所以这是出乎意料的。如果我从Android系统设置中卸载GooglePlay服务更新,该应用程序将不再崩溃。一旦我重新安装最新版本,应用程序每次都会再次崩溃。FATALEXCEPTION:IntentService[MyGCMRegistrationIntentService]Process:,PID:2

安卓权限。INTERACT_ACROSS_USERS_FULL

我在android中有一个大型应用程序。应用程序有时会因错误不清楚而崩溃。我不知道确切的时间和原因。java.lang.SecurityException:PermissionDenial:get/setsettingforuseraskstorunasuser-2butiscallingfromuser0;thisrequiresandroid.permission.INTERACT_ACROSS_USERS_FULL有什么帮助吗? 最佳答案 java.lang.SecurityException:PermissionDenial

android - 光标窗口 : window is full

我创建了一个由查询返回的数据填充的ListView。它有效,但在LogCat中我收到了消息:CursorWindow:Windowisfull:requestedallocation444bytes,freespace363bytes,windowsize2097152bytes它使用几分钟来加载/可视化ListView。我的查询返回大约3700行String/Int/Double,每行有30列;没有图像或特定数据类型此消息的确切含义是什么,我该如何避免它?您可以通过更改此光标窗口来提高性能吗? 最佳答案 根据我的经验,这意味着查询

android - 权限拒绝 : this requires android. 权限。INTERACT_ACROSS_USERS_FULL

我在Android中遇到了sqlitedb的问题。但是当我在互联网上进行快速研究时,我怀疑问题与sqlite无关,而与系统用户有关。我的应用程序未被识别为访问数据库功能的授权用户。我试图在堆栈溢出中应用可能的建议解决方案,但没有一个有所作为。这是我每次尝试使用db功能时都面临的LogCat。12-1402:35:17.7212953-3355/?E/DatabaseUtils﹕Writingexceptiontoparceljava.lang.SecurityException:PermissionDenial:get/setsettingforuseraskstorunasuser-

android - NullPointerException : println needs a message in android

在我的媒体播放器中,我从sdcard播放一首歌曲。它显示错误为NullPointerException:println需要在android中显示消息e。我尝试了很长时间,但我不知道原因。请帮助我。代码:try{mediaPlayer=newMediaPlayer();mediaPlayer.setDataSource("/sdcard/t1.mp3");seek.setMax(mediaPlayer.getDuration());mediaPlayer.prepare();mediaPlayer.start();mediaPlayer.setOnCompletionListener(t

android - 更新 GUI : Runnables vs Messages

要从其他线程更新GUI,主要有两种方法:将java.lang.Runnable与以下任一方法一起使用:Activity.runOnUiThread(Runnable)View.post(Runnable)View.postDelayed(Runnable,long)Handler.post(Runnable)使用android.os.Message:Handler.sendMessage(Message)/Handler.handleMessage(Message)您也可以使用AsyncTask,但我的问题更侧重于更新一个非常简单的组件的用例。让我们看看如何使用这两种方法来完成:使用R

memory - VS2015 更新 2 消息 : "Low memory detected. Full solution analysis disabled for this solution."

我刚刚使用Update2更新了VisualStudio2015。现在,经过几个小时的正常工作,我收到:“检测到内存不足。对此解决方案禁用了完整的解决方案分析。”出现在我的VS2015编辑器停靠面板的顶部。我看到MicrosoftConnect报告了一个错误.注意事项:我正在使用Resharper。我的解决方案非常大,大约有32个项目。如果有人有解决方法或提示如何解决此问题,请告诉我。更新:我的感受与AndersForsgren几乎相同(第一条评论)。在我看来,这是对情况的一个很好的总结。更新2(2016-04-20)我最近(3天前)对我的Framework.Net安装包(来自“程序和功