Skip to content

Instantly share code, notes, and snippets.

@Red-Folder
Created September 24, 2012 20:29
Show Gist options
  • Save Red-Folder/3778167 to your computer and use it in GitHub Desktop.
Save Red-Folder/3778167 to your computer and use it in GitHub Desktop.
Phonegap Service Tutorial - Part 3 - TwitterService.java - doWork1
@Override
protected JSONObject doWork() {
if (newTweet())
Log.d(TAG, "New Tweet - I'll need to send a notification");
else
Log.d(TAG, "No new Tweets, back to sleep I go");
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment