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 »

Detect Outlier values in Java Using BoxPlot formula and Apache Commons Math Library

References https://www.shmoop.com/basic-statistics-probability/box-whisker-plots.html http://www.baeldung.com/apache-commons-math https://stackoverflow.com/questions/22888902/get-median-from-number-series-using-apache-commons-math

Continue reading »

Guide to Guava’s EventBus in Java

Setup

Creating Listeners

Registering Listeners

Unregistering Listeners

Posting Events

Posting Custom Events

Handling an Unsubscribed Event

[…]

Continue reading »

Android Notifications

or start foreground service

References http://www.vogella.com/tutorials/AndroidNotifications/article.html https://questdot.com/android-foreground-service/

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 »
1 2 3 67