Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
5 votes
1 answer
334 views

Parse and format date

I have the following code for taking a date in the form of a string yyyy-MM-dd HH:mm:ss (UTC timezone) and turning it into ...
Dan's user avatar
  • 385
2 votes
0 answers
426 views

Few DatePickers and TimePickers in Android activity

I'm developing an Android activity which asks user to enter start and end dates and times in order to know a certain period of time. After picking start date, user picks start time, and then he/she ...
apex39's user avatar
  • 322
3 votes
0 answers
1k views

Map Events From calendar provider to dates in gridview

I working on a calendar app on Android, using roomaorama, which is nice. I am fetching all the events from Events table in Calendar provider once which seems not good performance wise. The library ...
Raghunandan Kavi's user avatar
3 votes
5 answers
2k views

Checking that an entered date is before the current date

I want to write a function which returns true if a selected date is smaller than the current date, else return false. This function is working as expected but I want to know the best possible way to ...
DCoder's user avatar
  • 145
16 votes
4 answers
28k views

Integer seconds to formated string mm:ss

I have a String like "Time left (XX)" or "You need stay here for (XX)" and int as second. I use those two variables to format ...
Błażej's user avatar
  • 589
6 votes
2 answers
2k views

Calculating months elapsed since a given date

I am using traceview and DDMS to analyse my operation. The following is my traceview as displayed in DDMS: According to the above, the LoaderClass.months() ...
Junaid's user avatar
  • 217
7 votes
1 answer
670 views

Clock View in Android

So I have built a clock widget. It basically has 2 hands and displays a time, either the current time or a selected time. There is another option which tells the clock if it should move around as the ...
jiduvah's user avatar
  • 433
3 votes
2 answers
741 views

Searching database, filtering results, adding longs

My needs outpace my abilities. This code (mostly) works, but it is really ugly, doesn't always add correctly, and is in desperate need of some help refactoring. I can't wrap my head around what ...
nexus_2006's user avatar
2 votes
1 answer
3k views

A Widget Clock with seconds

I just finished a widget clock that displays the actual seconds and changes an ImageView each 15 minutes. I have used a ...
user avatar
5 votes
1 answer
1k views

Building 30 day alarm

I'm building an alarm set to reoccur every 30 days. I was wondering if I could get a few extra sets of eyes to look things over and see if you can notice anything I may have done wrong. Any/all ...
Amani Swann's user avatar