Linked Questions

7 votes
5 answers
3k views

AlarmManager alarm fires immediately

I'm testing AlarmManager to use in my app, and it is firing my Broadcast Receiver immediately when I want it to fire after 1 minute. The code is below: public class SetMealTimersActivity extends ...
Ian M's user avatar
  • 587
5 votes
1 answer
4k views

Efficient Background service for tracking user location

I am developing a small android application in which I want to have Geolocation functionality. What I want to code is one service which gives the updated location of a user whether they are using my ...
nilkash's user avatar
  • 7,508
-3 votes
1 answer
22k views

How to set alarm on android studio?

I really need help guys , i'm trying to make a toast appear at a specific time with the alarm manager from android . I made some research and i made this code , but i don't know what isn't ok ... I ...
Radu Ionuţ's user avatar
1 vote
2 answers
4k views

How to make a Button clickable only once in a day

i have a button through which a customer can claim his daily rewards. i want that button to be clicked only once a day. how could i do this? i have no idea how to achieve this functionality i know i ...
Dude's user avatar
  • 173
3 votes
2 answers
3k views

Android: why doesn't AlarmManager work?

I have the following code. which is supposed to send a message in logcat at an interval but is not working. There are a lot of similar posts on stackoverflow but I am not able to figure out the ...
djcharon's user avatar
  • 319
5 votes
2 answers
6k views

how to schedule a task on android

I have a Database which I need to delete at a certain day, how can I perform this task? I found this : timer = new Timer(); timer.scheduleAtFixedRate(new TimerTask() { synchronized public void ...
user avatar
0 votes
1 answer
6k views

How to implement an Android Service in Xamarin.Forms

I'm trying to periodically check with a web service if a new item has been added to a database. If there's a new item a listview that the user sees should be updated. I'm using PCL and I have ...
valeria's user avatar
  • 111
1 vote
3 answers
3k views

Set android notifications from SQLite DB

I am building a reminder application where the user enters an event into an SQLite DB. The main screen lists the title of each reminder and clicking an item shows the details of it. All of this works ...
adohertyd's user avatar
  • 2,689
3 votes
4 answers
3k views

AlarmManager fires twice

I am trying to use Androids AlarmManager. The problem is, it fires twice right after one another. public class ScheduleSomething { public static void schedule(Pojo pojo) throws ...
John Smith's user avatar
0 votes
3 answers
2k views

How to get the current context inside a class in android?

I have the following android code snippet public class Alarm extends BroadcastReceiver { public void makeQuery(String symbol) { RequestQueue queue = Volley.newRequestQueue(Alarm.this); ...
Alex's user avatar
  • 43.3k
1 vote
2 answers
3k views

Android : Run Service Continuously

Hello Techies , I am facing a problem in achieving some task for my personal application. I want to make a service to run continuously once it is started and should not stop even if the ...
Nitin Mesta's user avatar
  • 1,504
0 votes
1 answer
3k views

Android Start task within specific time

I want my task to be started at 12, 3, 6, 9 pm on every day. To these hours, a method should be called. How can I implement such a scenario. If anyone can grant a resource or code example, it is ...
M P Mathugama's user avatar
0 votes
2 answers
2k views

How to make apps keep running in background to receive notification

Hi guys how to make my apps running in background so that it can receive notification although the apps being cleared by RAM clearing feature in our phone?
ALSP's user avatar
  • 102
0 votes
3 answers
1k views

best way to implement location update service

I would like to develop an application - a service - that updates the user location to server, say, every 1 hour. I understand from the Android docs that I have to use "Android Services" and I have ...
user836026's user avatar
1 vote
2 answers
4k views

Android Alarm Manager with Time and Date Picker

I'm working on an app in which I need the user to schedule an event. I am using TimePicker and DatePicker Dialogs to set the time of the event and an AlarmManager with a BroadcastReceiver to execute ...
OHS's user avatar
  • 185

15 30 50 per page
1
2
3 4 5
9