×
Namespaces

Variants
Actions
Revision as of 08:29, 5 June 2009 by tanjaluodes (Talk | contribs)

How to get full filename of the snapshot taken in JSR 234

From Nokia Developer Wiki
Jump to: navigation, search


While taking snapshot using JSR-234, filename of the image saved to the file system of the phone is generated by the JSR itself in a sequence. The MIDlet does not have any control on that. However there are cases where the exact filename is needed to access the fileand do the processing. In that case follow this way:

1. set default folder to save the image

     snapshotControl.setDirectory("c:/pictures/temp/");

2. set a file prefix by

     snapshotControl.setFilePrefix("xyz");

Then after taking snapshot open a file connection the path "c:/pictures/temp/"

Search for the file which contains "xyz" in its name.

In this way we can fetch the file for processing if needed.

51 page views in the last 30 days.