java - How to get external storages path? : I want to get sdcard and internal storage location on my android app.

i am using this code..

	String sdcard = Environment.getExternalStorageDirectory().toString();

it return 'storage/sdcard0'.

and this code also return same

	String sdcard = System.getenv("EXTERNAL_STORAGE");


and I am trying to get phone memory path with this code:

	String internalpath = System.getenv("SECONDARY_STORAGE");


it returns 'storage/emulated/0' . on my android 4.4.2  that I want.  but in a android 6.0 it returns 'null'.


please give me a solution to get the internal storage path like 'storage/emulated/0'.


thanks in advance.