How to Fix Exception Error: BinderProxy@45d459c0 is not valid

Hey,
If you’re facing this error, you probably trying to show a dialog after execution of a background thread, while your Activity is about destroying.
Fortunately, we can fix this error easily.

if(!((Activity) context).isFinishing())
{
// Your progress dialog is here
}
Just an “if” solution fixed this error. Its logic is so simple, if your activity is not destroying, then show your progress dialog.
So simple right? :)
If you have any question, ask me :)

How to extract filename from Uri?

Now, we can extract filename with and without extension :) You will convert your bitmap to uri and get the real path of your file. Now w...