GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
Home Key
Home Key
Iniciado por adrianoboller, dez., 06 2014 12:44 AM - 2 respostas
Conecte-se…
adrianoboller
#1
Membro registado
3.659 mensagems
Popularité : +175 (223 votes)
Publicado em dezembro, 06 2014 - 12:44 AM
//Simula o click na Tecla Home do Android
import android.app.Activity
;
import android.content.Intent
;
import java.lang
.
*
;
import android.util
.
*
;
import java.lang.Exception
;
import android.util.Log
;
PUBLIC static
void KeyHome
(
)
{
Intent startMain
=
new
Intent
(
Intent.ACTION_MAIN
)
;
startMain.addCategory
(
Intent.CATEGORY_HOME
)
;
startMain.setFlags
(
Intent.FLAG_ACTIVITY_NEW_TASK
)
;
getActiviteEnCours
(
)
.
startActivity
(
startMain
)
;
}
Denunciar
1
0
popoy
#2
Publicado em dezembro, 06 2014 - 12:02 PM
adriano thank you for this code
But when you provided a java code it is best to choose insert html xml instead WLanguage
it avoids errors in java copy / paste
I wrote here pubic lowercase within 2 insertions
and you notice that is capitalized in WLanguage and remains tiny xml
Thank you in advance.
[code: wl]
public
[/ code]
[code: xml]
public
[/ code]
adriano merci de ce code
Mais quand tu fourni un code java il est préférable de choisir l'insertion en xml html plutôt que WLangage
cela évite les erreurs java lors de copier / coller
ici j'ai écrit pubic en minuscule dans les 2 insertions
et tu remarque qu'il est mis en majuscule en WLangage et reste minuscule en xml
Merci d'avance.
Denunciar
0
0
adrianoboller
#3
Membro registado
3.659 mensagems
Popularité : +175 (223 votes)
Publicado em dezembro, 06 2014 - 7:04 PM
Je ne savais pas
Vous pouvez aussi mettre un bouton sur l'écran en position négative la gauche et chauffez la clé avec le clic avec le bouton droit de la souris et de définir raccourci clavier: ACCUEIL
// Exécute le code, cliquez sur le bouton ==> init Open Window
ExécuteTraitement (BTN_Save, trtClick)
==
I did not know
You can also put a button on the screen to the left negative position and heat the key with the click with the right mouse button and define keyboard shortcut: HOME
// Execute the code, click on the button ==> init Open Window
ExecuteProcess (BTN_Save, trtClick)
Denunciar
0
0
→ Voltar para WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto