×
Namespaces

Variants
Actions
(Difference between revisions)

Como mandar um MIDlet para o segundo plano

From Nokia Developer Wiki
Jump to: navigation, search
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:
Original: [[How to send MIDlet to background]]
+
{{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:TK2000]]
 +
|translated-from-title=How to send MIDlet to background
 +
|translated-from-id=115282 <!-- automated guess -->
 +
|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=TK2000
 +
|author=[[User:Aleksi]]
 +
}}
 +
 
  
 
==  ==
 
==  ==
Line 16: Line 39:
 
[[Category:Code Examples]]
 
[[Category:Code Examples]]
 
[[Category:Lang-Portuguese]]
 
[[Category:Lang-Portuguese]]
 +
<!-- Translation --> [[en:How to send MIDlet to background]]

Revision as of 07:48, 9 December 2011

Article Metadata

Compatibilidade
Plataforma(s):
Symbian

Artigo
Tradução:
Por TK2000
Última alteração feita por hamishwillee em 09 Dec 2011


O código a seguir pode ser usado para fazer com que o MIDlet execute em segundo plano (background):

Display display = Display.getDisplay(myMIDletClass);
display.setCurrent(null);

O método setCurrent(null) não define a exibiçãoc como vazia, mas é usada em implementações Java ME que permitem várias aplicações sendo executadas ao mesmo tempo como o S60, enviando a aplicação de primeiro plano para segundo plano. A aplicação exibida é a última que estava sendo exibida antes do MIDlet ser chamado. Por exemplo, se o usuário abrir o MIDlet de uma aplicação shell a aplicação shell é que será exibida após a chamada do MIDlet.

102 page views in the last 30 days.
×