android-service
Problem with getting latitude and longitude of current location
i want to get latitude and longitude by using gps ..my code is works successfully but it works too slow.[详细]
2023-03-15 09:39 分类:问答how to start and Stop GPS by using code in Android
i want enable GPS for 30sec when my application start (whenoncreate() m开发者_如何学JAVAethodcalls ).and after 30 sec it turn to disable mode. Try this code,[详细]
2023-03-14 07:02 分类:问答Android Local Service Sample, bindservice(), and ServiceConnection()
I have a question which 开发者_如何学JAVAis related to this question that was asked by @mnish about a year ago.[详细]
2023-03-14 02:02 分类:问答Android - implementing startForeground for a service?
So I\'m not sure where/how to implement this method to make my service run in the foreground. Currently I start my service by the following in another activity:[详细]
2023-03-13 17:57 分类:问答Need to get a service to talk back to the activity
I need to create an activity that starts a service that monitors the users position and when within a certain zone allow the calling Activity to update its view informing the user.[详细]
2023-03-13 13:12 分类:问答Equivalent of Android's services on iOS
I\'m trying to implement an Alarm clock application for iOS. I have the basics down, like scheduling alarms and the like, but where I\'m stuck is to start executing code in the background as soon as 开[详细]
2023-03-13 12:39 分类:问答Access my own Service methods from Activity
I have a method in a service that I created, and I want to access this method from an Activity that implements a Prog开发者_开发百科ress Dialog. This method simply update my database, and it was retur[详细]
2023-03-13 03:04 分类:问答Android ANR message due to long lasting operation problem
My question in general is - how to make a background service run every \"INTERVAL\" and not get the ANR message(Tried making a service called from alarmManager which initiate a thread to do its job)?[详细]
2023-03-12 20:20 分类:问答How do I stop playing audio when the home button is pressed?
My application always runs a backgro开发者_运维知识库und audio in services. When I click the home button, the control comes back to home screen but the audio keeps on playing.[详细]
2023-03-11 19:10 分类:问答Android media player seekbar
I have a service that creates, plays and handles a mediaplayer (just audio), yet I have a seekbar in the main activity that I want to, naturally, show the progress of the audio file and allow the user[详细]
2023-03-11 00:41 分类:问答