How to getText From Custom ListView

This code segment lets you to get text from your Custom ListView which one you click.

  listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {

                TextView tv = (TextView) view.findViewById(R.id.country_name);
                String country = tv.getText().toString();

            }
        }


I think this is really a simple code segment i think, if you do not understand anything, feel free to ask me :)
Happy Coding :)

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...