I think in your PlayActivity you maybe write this code get the songIndex in your function onActivityResult(...)
Intent in = data;
int songIndex = in.getIntExtra("songIndex", -1);
So you can pass this songIndex to the formatActivity by Intent ,I think you maybe use the String[] filePath to find the file the filePath[songIndex] find the file in Sdcard
in formatActivity So you can Format it.
hope this will solve your problem.
---------------------------------------------------------
by the way.
find a job in New York.
I have 3 year Experience about andorid.
And have few Experience about game server
in MS 2005 server C++.
Thanks.
----------------------------------------------------------