Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
多个Android IntentService可以同时运行吗?
据我了解 一个IntentService一次只能处理一个 Intent 因为它共享一个工作线程来完成所有工作 但如果我有多个IntentService在我的应用程序中 它们可以并行运行 还是都共享单个工作线程 但是如果我的应用程序中有多个
Android
androidintent
service
androidintentservice
/system/lib/libart.so 中的本机崩溃
我在 Play 商店中有一个应用程序 它有一个IntentService当应用程序启动时 它会做一些工作 并且会导致 Android 5 0 上的本机崩溃 该服务仅扫描资产文件夹以进行应用程序更新 具体来说 这次崩溃似乎发生在升级到 Lol
Android
Native
galaxy
androidintentservice
ResultReceiver 给出 Nullpointer 异常
我正在使用地理编码来检索纬度 经度值的地址 我在扩展 IntentService 的单独类中实现此地理编码 当我检索地址时 我想将其发送回原始主要活动 为此我使用 ResultReciever 并实际上遵循tutorial https de
Android
androidintentservice
Android 设计模式,用于 UI 和非 UI 模式的后台操作
我有一个后台操作 我希望能够以两种模式运行 UI mode 由用户启动 在整个生命周期内为用户提供操作状态的精确反馈 非用户界面模式 由AlarmManager并在其生命周期结束时向用户提供操作摘要 自然的设计选择只为实现UI mode将会
Android
androidasynctask
androidintentservice
JobIntentService 和 IntentService 有什么区别?
我不明白这两个 API 之间有什么区别 我的意思是何时使用第一个 为什么会有 JobIntentService 提前致谢 我建议阅读这篇文章 解释两者之间的区别意向服务和求职意向服务 https medium com hupareshubh
Java
Android
backgroundprocess
androidintentservice
jobintentservice
IntentService 中未调用 OnHandleIntent()
我知道这个问题以前曾被问过 但我已经浏览了所有我能找到的答案 但仍然无法解决问题 问题是当 BroadcastReceiver 启动时 不会调用 IntentService onHandleIntent 奇怪的是 构造函数确实运行了 正如我
Java
Android
androidintent
androidservice
androidintentservice
如何在应用程序暂停或销毁时停止服务,但在切换到新活动时不停止服务?
目前我有一个Service我用它在应用程序打开时在后台播放声音文件 public class BackgroundSoundService extends Service MediaPlayer player public IBinder
Android
service
androidmediaplayer
onpause
androidintentservice
地理围栏:通过后台服务发送时 HTTP 请求失败。给出 UnknownHostException
我在android应用程序中实现了地理围栏 我跟着this https developer android com training location geofencing html在应用程序中实施 地理围栏 的链接 我正在使用 Retro
Java
Android
http
geofencing
androidintentservice
android 设计注意事项:AsyncTask 与 Service(IntentService?)
我正在设计一个 Android 应用程序 需要执行以下步骤 用户按下按钮或以其他方式指示 同步数据 同步过程将使用 REST Web 服务将数据移入和移出服务器 数据将存储在本地 SQLite 数据库中 同步过程应向 UI 提供状态更新 消
Android
androidasynctask
backgroundprocess
androidintentservice
在 IntentService 中获取部分唤醒锁
我的 IntentService 从两个地方被触发 要么是由警报 要么是由活动 并且由于持续时间与它需要从网络获取的数据量有关 根据我的理解 我需要保持部分唤醒锁 这是我的实现 Override protected void onHandl
Android
wakelock
androidintentservice
androidwakelock
我应该为我的 Android 应用程序使用 Service 还是 IntentService?
如果我错了 请纠正我 1 A Service用于在后台执行长时间任务 服务在 UI 线程中运行 因此如果任务很长 它可能会冻结我们的 UI 只要我们告诉服务停止 服务就会继续独立于应用程序运行 2 An 意向服务另一方面用于在单独的线程中执
Android
androidservice
androidintentservice
Oreo,默认短信应用程序和 ACTION_RESPOND_VIA_MESSAGE
针对 Android O 的应用程序在使用服务时有一些新规则 其中之一是当应用程序处于后台时我们无法启动服务 成为默认 SMS 应用程序的要求之一是 来自 Telephony java javadoc li In a service inc
Java
Android
androidintent
service
androidintentservice
Android IntentService 以空意图触发
我在 Crashlytics 中看到崩溃 致命异常 java lang NullPointerException 尝试调用 虚方法 int android content Intent getIntExtra java lang Strin
Android
androidintent
androidservice
androidintentservice
在服务或应用程序类中实现蓝牙连接,而不会丢失与设备的连接
我需要一些帮助 您能否向我解释一下如何将应用程序中的蓝牙连接实现到我的迷你热敏打印机设备中 场景是这样的 我已经将我的应用程序连接到设备 但是当活动销毁时 连接也断开了 是的 我知道当活动销毁时 活动中的所有任务都会受到影响 该设备有自己的
Android
service
Bluetooth
androidbluetooth
androidintentservice
意图服务在打瞌睡模式下不工作
我的一位同行开发人员写了一篇intent service进行 API 调用 然后休眠 2 分钟 醒来后 再次发送 下面是代码 public class GpsTrackingService extends IntentService Ove
Android
android60marshmallow
androidintentservice
androiddoze
onServicesDiscovered(BluetoothGatt gatt, int status) 永远不会被调用
我有一个从 IntentService 调用的 BluetoothLeService BLEService 在连接之前工作正常 与 iBeacon 建立连接后 它调用 public void onConnectionStateChange
Android
Bluetooth
bluetoothlowenergy
androidintentservice
如何等待齐射响应完成其在intentservice内的工作?
与intentservice合作 在后台使用 Google Volley 获取7个Rss Feed链接的数据 并使用ResultReceiver获取结果 但我无法配置如何等待volley响应来完成触发标志的工作ResultReceiver显
Android
RSS
androidvolley
IntentService
androidintentservice
停止活动中的服务
我正在使用以下代码来停止我的服务 Intent intent new Intent MainActivity this UsageRecorderService class stopService intent 这是我的无限期服务 publ
Android
service
androidintentservice
如何在Android中使用intentservice同时下载多个文件?
我想创建一项与此类似的服务 参考来自Here 在 Android 中异步下载多个文件 public static class DownloadingService extends IntentService public static St
Java
Android
Multithreading
androiddownloadmanager
androidintentservice
IntentService调用AsyncTask的问题
我创造了IntentService课堂和表演asyncTask但出现异常时onPreExecute 在此代码行调用pDialog show AsyncHandlerService类 public class AsyncHandlerServ
Android
androidasynctask
androidservice
androidintentservice
1
2
»