I am trying to save a file on both internal and external sd card .. basically I want to give user an option to save file on internal or external cards This is how I am creating file in Internal SD card
File file = new File(Environment.getExternalStorageDirectory()
+ "/Tnt_input/register.html");
but how to create this file in External SD card
...?
I can see two storage in DDMS
1) sdCard0
2) extSdCard
by using above code its creating this file in sdCard0