Namespaces
Variants
Actions
(Difference between revisions)

Como capturar o nome do arquivos instantaneamente em Java ME

Jump to: navigation, search
m (Hamishwillee - Bot addition of Template:ArticleMetaData)
m (Hamishwillee - Bot update of Template:ArticleMetaData)
Line 12: Line 12:
 
|id= <!-- Article Id (Knowledge base articles only) -->
 
|id= <!-- Article Id (Knowledge base articles only) -->
 
|language=Lang-Portuguese
 
|language=Lang-Portuguese
|translated-by= <!-- [[User: XXXXX]] -->
+
|translated-by=[[User:Maiconherverton]]
|translated-from-title=<!-- Title only -->
+
|translated-from-title=How to get full filename of the snapshot taken in JSR 234
|translated-from-id= <!-- Id of translated revision -->
+
|translated-from-id=51214
 
|review-by=<!-- After re-review: [[User:username]] -->
 
|review-by=<!-- After re-review: [[User:username]] -->
 
|review-timestamp=<!-- After re-review: YYYYMMDD -->
 
|review-timestamp=<!-- After re-review: YYYYMMDD -->
Line 20: Line 20:
 
|update-timestamp=<!-- After significant update: YYYYMMDD -->
 
|update-timestamp=<!-- After significant update: YYYYMMDD -->
 
|creationdate=20090911
 
|creationdate=20090911
|author=[[User:Maiconherverton]]
+
|author=[[User:Senthilat]]
 
}}[[Category:Java ME]][[Category:Lang-Portuguese]][[Category:Code Examples]]
 
}}[[Category:Java ME]][[Category:Lang-Portuguese]][[Category:Code Examples]]
  
Line 37: Line 37:
  
 
Desta forma, podemos buscar o arquivo para o tratamento, se necessário.
 
Desta forma, podemos buscar o arquivo para o tratamento, se necessário.
 +
<!-- Translation --> [[en:How to get full filename of the snapshot taken in JSR 234]]

Revision as of 08:36, 7 December 2011

Dados do artigo

Artigo
Tradução:
Última alteração feita por hamishwillee em 07 Dec 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.

108 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved