Reputation: 55
I've developed a live wallpaper. Now I want it to connect with the net to get the exact time, so the live wallpaper changes according to it. But, being an amateur, I'm not able to do it. Please help.
Upvotes: 0
Views: 323
Reputation: 2260
Suggest using local system calls; no need to access Internet. Take a look at PolarClock, for example, to see some code using time-related classes: https://android.googlesource.com/platform/packages/wallpapers/Basic/+/master/src/com/android/wallpaper/polarclock/PolarClockWallpaper.java
Edit: There are two good reasons why you do not want to use the Internet to get the time:
Upvotes: 2