Profile cover photo
Profile photo
Nithin M Warrier
214 followers
214 followers
About
Nithin M's posts

Post has attachment
Dismiss or Cancel dialog by swipe gesture
Dismiss dialog by all four swipe gestures as swipe right to left, left to right, top to bottom, bottom to top

First, create a inner class in custom dialogFragment class for the the SimpleGestureListener as, class MyGestureDetector extends GestureDetector.S...

Post has attachment
Add Button and onClick on Custom Notification in Android
Add a broadcast receiver with action and
pass the Intent with action to PendingIntent

The code snippet is as follows, Intent intent = new Intent("action.cancel.notification");
PendingIntent pi = PendingIntent.getBroadCast(this, id, intent, PendingIntent.F...

Post has attachment
How to find default sms messaging app
From api level 19 onwards, its just a one line call to get the packageName of default sms application. Telephony.Sms.getDefaultSmsPackage(context) Before API level 19, there is no concept of Default Sms, so what we can do is get the list of messaging apps. ...

Post has attachment
Dsiplay Multiple Notifications in status bar
For showing multiple notifications use unique identifier while creating notification which means use unique id in notify() method. eg: notificationManager.notify(tag, id, notification); Here, id should be unique. Also, in PendingIntent "REQUEST_CODE" should...

Post has attachment
Dsiplay Multiple Notifications in status bar
For showing multiple notifications use unique identifier while creating notification which means use unique id in notify() method. eg: notificationManager.notify(tag, id, notification); Here, id should be unique. Also, in PendingIntent "REQUEST_CODE" should...

Post has attachment
Dsiplay Multiple Notifications in status bar
For showing multiple notifications use unique identifier while creating notification which means use unique id in notify() method. eg: notificationManager.notify(tag, id, notification); Here, id should be unique. Also, in PendingIntent "REQUEST_CODE" should...

Post has attachment
How to find default sms messaging app
http://stackoverflow.com/questions/29471386/how-to-get-the-package-name-of-default-sms-app-in-android-before-kitkat above kitkat from api level 19 onwards, its just a one line call, Telephony.Sms.getDefaultSmsPackage(context) Before API level 19, there is n...

Post has attachment
Snackbar and FloatingButton Behavior
Snackbar is just an extension of Toast. It is an actionable Toast. Snackbar will stay on the screen forever or for a short duration (Snackbar.LENGTH_INDEFINITE, SnackBar.LENGTH_LONG, Snackbar.LENGTH_SHORT) and we can set action as well. One example that is ...

Post has attachment
Snackbar and FloatingButton Behavior
Snackbar is just an extension of Toast. It is an actionable Toast. Snackbar will stay on the screen forever or for a short duration (Snackbar.LENGTH_INDEFINITE, SnackBar.LENGTH_LONG, Snackbar.LENGTH_SHORT) and we can set action as well. One example that is ...

Post has attachment
DialogFragment - Where to use OnDismissListener and OnCancelListener
If you want to use OnCancelListener or OnDismissListener on dialog fragment, use it in onStart() rather than on onCreateDialog(); 
Wait while more posts are being loaded