FileNotFoundException only in android app?

This is this in this part of your code: File randomContactsFile = new File(("C://test//randomcontacts. Txt")) C://test//randomcontacts. Txt is not in unix path format If your developing for a phone/tablet you should use something like mnt/sdcard/test/randomcontacts.

Txt or better: File rootPath=Environment. GetExternalStorageDirectory(); File randomContactsFile = new File(rootPath.getPath()+"/test/randomcontacts. Txt").

This is this in this part of your code: File randomContactsFile = new File(("C://test//randomcontacts. Txt")); C://test//randomcontacts. Txt is not in unix path format.

If your developing for a phone/tablet you should use something like /mnt/sdcard/test/randomcontacts. Txt or better: File rootPath=Environment. GetExternalStorageDirectory(); File randomContactsFile = new File(rootPath.getPath()+"/test/randomcontacts.

Txt").

There is probably no C: drice on your android phone. You can use for your external drive: Environment. GetExternalStorageDirectory() + /* file.

– michelle Oct 5 at 8:08 you could use external drives, but android would not recognize it as your "C" drive, you must search for it first. – Xavjer Oct 5 at 8:10 ok thank you. Solved my prob – michelle Oct 5 at 8:11 I updated my post.

– MasterCassim Oct 5 at 8:12.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions