Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how do i access files residing in gallery  RSS feed

 
chethan kumar venky
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am developing a mms application.so i want to add some images stored in the gallery.
how do i acccess that file.......?
i tried using system.getproperty but i couldn't.........

can anyone please help me out in this..?
 
Gopinath Karyadath
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
import javax.microedition.io* ;

filepath= file:///localhost/foldername/filename

fc = (FileConnection) Connector.open(filepath, Connector.READ);
is = fc.openInputStream();



you can easily get the root ..

Enumeration drives = FileSystemRegistry.listRoots();

while (drives.hasMoreElements()) {
System.out.println( (String) drives.nextElement() ) ;
}







Regards
Gopinath -

for more details please contact me
gopi@c2info.com
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!