Modify Socket parameters of Mqtt Client

Continue reading »

Saving Android Activity state using Save Instance State

References https://stackoverflow.com/questions/151777/saving-android-activity-state-using-save-instance-state

Continue reading »

Dismiss/Cancel the status bar notification in android programmatically

References https://stackoverflow.com/questions/14835335/how-to-dismiss-cancel-the-status-bar-notification-in-android-programmatically

Continue reading »

Android Notification with Sound and Vibratation

References https://stackoverflow.com/questions/15809399/android-notification-sound https://gist.github.com/nieldeokar/e05fffe4d639dfabf0d57e96cb8055e2

Continue reading »

Scheduling of tasks with the Android JobScheduler

The new JobService must be registered in the Android manifest with the BIND_JOB_SERVICE permission.

Create the receiver Create the following utility class.

Create […]

Continue reading »

Android Foreground Service

References https://questdot.com/android-foreground-service/ https://stackoverflow.com/questions/24479860/foreground-service-to-prevent-process-kill

Continue reading »

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