Skip to main content

All Questions

Tagged with
167 votes
13 answers
225k views

How to add calendar events in Android?

I'm just getting up to speed on Android, and today in a project meeting someone said that Android has no native calendar app so users just use whatever calendar app they like. Is this true, and if so ...
Peter Nelson's user avatar
  • 5,937
73 votes
32 answers
190k views

Check if a given time lies between two times regardless of date

I have timespans: String time1 = 01:00:00 String time2 = 05:00:00 I want to check if time1 and time2 both lies between 20:11:13 and 14:49:00. Actually, 01:00:00 is greater than 20:11:13 and less ...
sjain's user avatar
  • 23.3k
36 votes
3 answers
108k views

How to set a reminder in Android?

I am trying to build a calendar app for Android. I am struck in the middle. I have managed to retrieve the information such as time and task from the user. I don't know how to add this into android ...
Andro Selva's user avatar
  • 54.2k
50 votes
19 answers
69k views

Android Days between two dates

I want to compare two dates for my Android application, but I got a really weird issue. For example: If I set the back in the past date to 127 days ago: this.dateEvent = System.currentTimeMillis() -...
Manitoba's user avatar
  • 8,622
-1 votes
1 answer
310 views

Android Studio Convert ISO string to "America/New_York" when adding to event to calendar

I am trying to convert a string "2018-10-17T22:00:00Z" to eastern time zone when adding it as an event to a calendar, but instead of it adding the event time as 6pm it is adding it as 10pm. Any help ...
baskin's user avatar
  • 139
119 votes
12 answers
168k views

Month name as a string

I'm trying to return the name of the month as a String, for instance "May", "September", "November". I tried: int month = c.get(Calendar.MONTH); However, this returns integers (5, 9, 11, ...
Gaby's user avatar
  • 1,369
28 votes
5 answers
79k views

Getting events from calendar

My issue is, I have to make one demo application in which I wants to read the events of the Google calendar, for that I have manually inserted the events like the title of event, the time of events ...
Akash Thakkar's user avatar
18 votes
3 answers
5k views

Add Weekly Event to Calendar

I would like to add an event to native Calendar, here i want to repeat this event on every Tuesday until 31 December 2015: btnWeekly.setOnClickListener(new OnClickListener() { @Override ...
Sun's user avatar
  • 6,848
6 votes
3 answers
22k views

Android Calendar Events

I am just making an operation with Calendar Content Provider, now I am failing at the point to display events for the particular date. I know the Events URI for the < 2.1 version and 2.2 version, ...
Paresh Mayani's user avatar
21 votes
3 answers
53k views

Android - how to set an alarm to a specific date

I have seen a lot of tutorials and been trying for 2 hours now , though something is still wrong. I am very nervous now :) I want to set an alarm e.g. to 16:25 to go off, but nothing happens. I have ...
erdomester's user avatar
  • 11.8k
18 votes
2 answers
32k views

How to get national holidays of selected country

I'm writing an app that allows the user to select a country from a list. When they pick a country, a list of national holidays of that country appears. I've seen CalendarProvider and Google ...
Tai Dao's user avatar
  • 3,427
71 votes
3 answers
50k views

How to save and retrieve Date in SharedPreferences

I need to save a few dates in SharedPreferences in android and retrieve it. I am building reminder app using AlarmManager and I need to save list of future dates. It must be able to retrieve as ...
Isuru Madusanka's user avatar
61 votes
21 answers
69k views

How to convert time to " time ago " in android

My server. It return time : "2016-01-24T16:00:00.000Z" I want 1 : convert to String. 2 : I want it show " time ago " when load it from server. Please. Help me!
anh thang Bui's user avatar
21 votes
7 answers
40k views

How to launch Android Calendar application using Intent (Froyo)

I want to open up the Calendar application from an android application. When i searched online, all i got is to create new events using intent. I could find Intents to open Contacts and Gallery etc. ...
Manu George's user avatar
11 votes
4 answers
13k views

Calendar view for Android GingerBread and before (API<11)

I'm having an HTML table with dates and details. I want to show it in a calendar view. I've found the built-in API 11 CalendarView, but I can't inflate it when I'm using API 8 (which I need...) PS. I ...
RE6's user avatar
  • 2,714

15 30 50 per page
1
2 3 4 5
17