Como capturar o nome do arquivos instantaneamente em Java ME
hamishwillee
(Talk | contribs) m (Hamishwillee - Automated change of category from Lang-PT to Unlikely Category. (Moving)) |
hamishwillee
(Talk | contribs) m (Hamishwillee - Bot addition of Template:ArticleMetaData) |
||
| Line 1: | Line 1: | ||
| − | [[Category:Java ME]][[Category:Lang-Portuguese]][[Category:Code Examples]] | + | {{ArticleMetaData |
| + | |sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] --> | ||
| + | |installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) --> | ||
| + | |devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') --> | ||
| + | |sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) --> | ||
| + | |platform= <!-- Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later --> | ||
| + | |devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) --> | ||
| + | |dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 --> | ||
| + | |signing=<!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer --> | ||
| + | |capabilities=<!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. --> | ||
| + | |keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase --> | ||
| + | |id= <!-- Article Id (Knowledge base articles only) --> | ||
| + | |language=Lang-Portuguese | ||
| + | |translated-by= <!-- [[User: XXXXX]] --> | ||
| + | |translated-from-title=<!-- Title only --> | ||
| + | |translated-from-id= <!-- Id of translated revision --> | ||
| + | |review-by=<!-- After re-review: [[User:username]] --> | ||
| + | |review-timestamp=<!-- After re-review: YYYYMMDD --> | ||
| + | |update-by=<!-- After significant update: [[User:username]]--> | ||
| + | |update-timestamp=<!-- After significant update: YYYYMMDD --> | ||
| + | |creationdate=20090911 | ||
| + | |author=[[User:Maiconherverton]] | ||
| + | }}[[Category:Java ME]][[Category:Lang-Portuguese]][[Category:Code Examples]] | ||
Original: [[How to get full filename of the snapshot taken in JSR 234]] (Inglês) | Original: [[How to get full filename of the snapshot taken in JSR 234]] (Inglês) | ||
Revision as of 07:26, 10 November 2011
Dados do artigo
Artigo
Criado por maiconherverton
em 11 Sep 2009
Última alteração feita por hamishwillee
em 10 Nov 2011
Original: How to get full filename of the snapshot taken in JSR 234 (Inglês)
Embora tendo snapshot usando a JSR-234, o nome do arquivo da imagem salva no sistema de arquivos do telefone é gerado pelo JSR-SE em uma sequência. O MIDlet não tem qualquer controle sobre isso. No entanto, existem casos em que o nome exato é necessário para acessar o arquivo e fazer o tratamento. Neste caso siga este caminho:
1. pasta padrão definida para salvar a imagem
snapshotControl.setDirectory("c:/pictures/temp/");
2. definir um prefixo de arquivo
snapshotControl.setFilePrefix("xyz");
Então, depois de abrir um arquivo de conexão com o caminho "c:/pictures/temp/"
Procure o arquivo que contém "xyz" em seu nome.
Desta forma, podemos buscar o arquivo para o tratamento, se necessário.

