wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes how do i access files residing in gallery Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "how do i access files residing in gallery" Watch "how do i access files residing in gallery" New topic
Author

how do i access files residing in gallery

chethan kumar venky
Greenhorn

Joined: Oct 30, 2009
Posts: 1
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

Joined: Oct 14, 2009
Posts: 87
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
 
GeeCON Prague 2014
 
subject: how do i access files residing in gallery