Using Data from device??
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 14
- Joined: Mon Dec 05, 2011 5:35 pm
Using Data from device??
How do I make an app that uses information already on the iphone or android. For example, if i wanted to make an app that counted down to December 25, what should i put in the code so that the app takes the date and time information from the device, so it knows exactly how many days hours etc til christmas?
Re: Using Data from device??
drumdemon...
I can't be bothered to get into counting down the hours until the next christmas day, but this will get you started...
be well
Dixie
I can't be bothered to get into counting down the hours until the next christmas day, but this will get you started...
Code: Select all
on mouseUp
put the long date into today
put "12/25/2012" into christmas
convert today to seconds
convert christmas to seconds
put "There are" && (christmas - today)/86400 && "days left until Christmas"
end mouseUp
Dixie
-
- Posts: 14
- Joined: Mon Dec 05, 2011 5:35 pm
Re: Using Data from device??
ohh cool thanks =]