How to access the class file in Android

advertisements

I want to acess class file from bin folder in android. I was doing it using

File f = new File("/bin/filename.class");

Its working fine in java but in android giving path doesnt work, so please suggest me other way to access class file of any java file in android.


You can't access file like

File f = new File("/bin/filename.class");

from bin folder. Android can't recognize this path.