Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

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

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

From 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.

103 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×