草庐IT

system-services

全部标签

android - Android 2.2 上的 GCM SERVICE_NOT_AVAILABLE

我在Android2.2设备上调用GoogleCloudMessaging.register()时收到错误“SERVICE_NOT_AVAILABLE”。我正在使用新的GooglePlay服务编写一个使用GoogleCloudMessaging的应用程序。我使用Android网站上提供的指南实现了它,我的源代码包含许多错误检查和处理代码,例如确保安装或更新GooglePlay服务。GCM注册代码还按照google的建议实现了指数退避,以实现处理SERVICE_NOT_AVAILABLE错误。我已经在各种设备上测试了我的应用程序,包括ICS、JB、HoneyComb甚至2.3.x设备。G

android - kitkat android 4.4 上的/system/lib/libwebviewchromium.so native 崩溃

对于android4.4+,我多次收到“/system/lib/libwebviewchromium.so的native崩溃”错误。4.4之前没有这个问题。************************************************Buildfingerprint:'samsung/ja3gxx/ja3g:4.4.2/KOT49H/I9500XXUFNB4:user/release-keys'Revision:'10'pid:32504,tid:32595,name:xxx.yyy>>>com.xxx.yyy当我尝试播放mp4视频时,我只能在genymotion模拟

android - kitkat android 4.4 上的/system/lib/libwebviewchromium.so native 崩溃

对于android4.4+,我多次收到“/system/lib/libwebviewchromium.so的native崩溃”错误。4.4之前没有这个问题。************************************************Buildfingerprint:'samsung/ja3gxx/ja3g:4.4.2/KOT49H/I9500XXUFNB4:user/release-keys'Revision:'10'pid:32504,tid:32595,name:xxx.yyy>>>com.xxx.yyy当我尝试播放mp4视频时,我只能在genymotion模拟

安卓模拟器 : This app won't run without Google Play services

从Android4.2.2开始,可以在Android模拟器上运行Google服务。我目前正在制作一个Android应用程序并制作了一个测试项目,看看我是否可以让Google+登录和退出工作。我遵循了以下教程:http://www.androidhive.info/2014/02/android-login-with-google-plus-account-1/使用以下教程/网站的额外信息:https://developers.google.com/+/mobile/android/getting-startedhttps://developers.google.com/+/mobile

安卓模拟器 : This app won't run without Google Play services

从Android4.2.2开始,可以在Android模拟器上运行Google服务。我目前正在制作一个Android应用程序并制作了一个测试项目,看看我是否可以让Google+登录和退出工作。我遵循了以下教程:http://www.androidhive.info/2014/02/android-login-with-google-plus-account-1/使用以下教程/网站的额外信息:https://developers.google.com/+/mobile/android/getting-startedhttps://developers.google.com/+/mobile

system.import在构建后不搜索文件(Angular2)

目前,我正在使用System.Import在运行时动态加载文件以更改我的环境变量。当我仅使用NG服务时,这正常工作。我转到文件,更改那里的环境变量,在刷新页面后,它已更改我的APIURL。现在,我试图将其与Tomcat一起使用。我构建我的应用程序并将其部署到Tomcat。它找到了文件并构建正常,但是当我以后更改文件时,它不再像我在本地使用NGServe一样更新。我的代码:app.component.tsngOnInit(){this.loadApiLinks();}loadApiLinks(){System.import('../../../deployment.ts').then(deplo

android - 我可以使用 greenrobot EventBus 在 Activity 和 Service 之间进行通信吗?

EventBus我可以使用这个库进行Activity到Service的通信吗?我在我的应用程序中尝试过如下:@OverrideprotectedvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);EventBus.getDefault().register(this);setContentView(R.layout.activity_music_player);IntentserviceIntent=newIntent(MusicPlayerActivityTest.this,MusicPl

android - 我可以使用 greenrobot EventBus 在 Activity 和 Service 之间进行通信吗?

EventBus我可以使用这个库进行Activity到Service的通信吗?我在我的应用程序中尝试过如下:@OverrideprotectedvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);EventBus.getDefault().register(this);setContentView(R.layout.activity_music_player);IntentserviceIntent=newIntent(MusicPlayerActivityTest.this,MusicPl

android - 如何区分给定的 Context 对象是 Activity 还是 Service Context?

我想知道我给定的Context对象是来自Activity、Service还是Application。或者换句话说,如果我的代码在后台或前台执行。(前台指的是由Activity创建的Activity代码和线程。) 最佳答案 您应该能够使用“instanceof”测试对象是否是特定类if(contextinstanceofActivity){//handleactivitycase}elseif(contextinstanceofService){//handleservicecase} 关

android - 如何区分给定的 Context 对象是 Activity 还是 Service Context?

我想知道我给定的Context对象是来自Activity、Service还是Application。或者换句话说,如果我的代码在后台或前台执行。(前台指的是由Activity创建的Activity代码和线程。) 最佳答案 您应该能够使用“instanceof”测试对象是否是特定类if(contextinstanceofActivity){//handleactivitycase}elseif(contextinstanceofService){//handleservicecase} 关