I have application that will search for song on external storage and play it by clicking a button. I use String path = getFullFilePath(getApplicationContext(), "FILENAME");
and it works fine if i type something like song.mp3...I tried to use EditText.getText().toString();
except "FILENAME" and it doesnt work. This is my code in OnCreate:
EditText et = (EditText) findViewById(R.id.et1);
String string = et.getText().toString();
sp = new SoundPool(5, AudioManager.STREAM_MUSIC, 0);
String path = getFullFilePath(getApplicationContext(), string);
mSoundId = sp.load(path, 1);
And LogCat says `11-07 14:26:39.909: W/SoundPool(12627): sample 1 not READY
BUT if I input et.setText("SongName");
it works fine.. I want to type something in edittext and then use it as filename!
Thanks
`