Como capturar o nome do arquivos instantaneamente em Java ME
(Created page with 'Category:Java ME (Português)Category:Lang-PTCategory: Exemplos de código Java ME (Português) Original: [[How to get full filename of the snapshot taken in JSR 234…') |
hamishwillee
(Talk | contribs) m (Hamishwillee - Automated change of category from Lang-PT to Unlikely Category. (Moving)) |
||
| Line 1: | Line 1: | ||
| − | [[Category:Java ME | + | [[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 08:15, 14 July 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.

