getInput

postado em 6 de jun de 2012 16:27 por Silvio Garbes

getInput(
 
String title[optional, default SL4A Input]: title of the input box,
 
String message[optional, default Please enter value:]: message to display      
above the input box
)

Queries the user for a text input.

Deprecated in r3! Please use dialogGetInput instead.

Exemplo

<?php
require_once("Android.php");
$droid = new Android();
$name = $droid->getInput("Hi!", "What is your name?");
$droid->makeToast('Hello, ' . $name['result']);
?>
Comments