How to make EditText read/copy but not editable [ Perfect Solution ]

Hey,
I have a perfect solution to make your EditText just read and copy but users cannot edit or delete it.
These two little code segment will let your editText just readable and copyable and not even editable.
<EditText
            android:id="@+id/editText"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:inputType="none"
            android:textIsSelectable="true" />
android:inputType=”none” android:textIsSelectable=”true”
So simple and so useable. If you have a 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...