I am writing a player application.
For that I am using input stream.
My code looks like this:
Fileconnection fc = (FileConnection)Connector.open(mediafileLoc);
InputStream is = fc.openInputStream();
Player p = Manager.createPlayer(is,null);
its working fine on first time. when I closed and tried to play the same song I got an exception:"File is used by the application".
When closing the player I wrote like this:
is = null;
fc = null;
What might be the problem?
can you please help me.