sort a list of objects by a certain value within the object

References https://stackoverflow.com/questions/9109890/android-java-how-to-sort-a-list-of-objects-by-a-certain-value-within-the-object

Continue reading »

Check if service is running on Android

References https://stackoverflow.com/questions/17588910/check-if-service-is-running-on-android

Continue reading »

Color animation using ValueAnimator on Android

References https://stackoverflow.com/questions/2614545/animate-change-of-view-background-color-on-android

Continue reading »

Prevent services of Android app from being killed using Intent.ACTION_TIME_TICK

References https://llin233.github.io/2015/11/16/How-to-prevent-service/ https://developer.android.com/reference/android/content/Intent#action_time_tick https://medium.com/google-developers/who-lives-and-who-dies-process-priorities-on-android-cb151f39044f http://sourabhsoni.com/how-to-use-intent-action_time_tick/

Continue reading »

Android Notifications

References http://www.vogella.com/tutorials/AndroidNotifications/article.html

Continue reading »

Set TextView style bold or italic and preserve previous TypeFace

To keep the previous typeface

References https://stackoverflow.com/questions/6200533/set-textview-style-bold-or-italic

Continue reading »

Keep the screen awake on Android

or

References https://developer.android.com/training/scheduling/wakelock

Continue reading »

Updating the UI from a Timer using Handler on Android

If you want it to stop, you can just call handler.removeCallback(runnable) and it won’t start again, until you tell it to References http://www.mopri.de/2010/timertask-bad-do-it-the-android-way-use-a-handler/

Continue reading »

Right To Left SnackBar on Android

References https://stackoverflow.com/questions/35251791/right-to-left-snackbar

Continue reading »
1 2 3 24