Como acionar o browser a partir do Java ME
hamishwillee
(Talk | contribs) m (Hamishwillee - Bot fixing redirect link.) |
hamishwillee
(Talk | contribs) m (Hamishwillee - Bot addition of Template:ArticleMetaData) |
||
| Line 1: | Line 1: | ||
| + | {{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:XXXX]] --> | ||
| + | |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=Dcrocha | ||
| + | |author=[[User:Dcrocha]] | ||
| + | }} | ||
| + | |||
[[Category:Java ME]][[Category:Code Examples]][[Category:Lang-Portuguese]] | [[Category:Java ME]][[Category:Code Examples]][[Category:Lang-Portuguese]] | ||
Latest revision as of 07:08, 9 December 2011
Dados do artigo
O browser default do aparelho pode ser chamado a partir de uma aplicação Java ME através do uso da chamada
javax.microedition.midlet.MIDlet.platformRequest().
Em alguns devices (especialmente Series 40), antes de o browser ser aberto, a aplicação necessitará ser fechada. Isto não acontece nos aparelhos S60, no qual o MIDlet permanece rodando no background. A aplicação pode verificar tal comportanto checando o valor de retorno desta chamada de método. Se for true, isto significa que o MIDlet precisará ser fechado para que a solitação seja executada.
O código a seguir é usado para executar o browser:
String url = "http://www.developer.nokia.com/";
platformRequest(url );

