Ver Mensaje Individual
  #2  
Antiguo 24-02-2021
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is offline
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - Espańa
Posts: 18.286
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Cita:
Empezado por pablocarlos Ver Mensaje
żCómo abrir el browser predeterminado en un movil?
Puedes conseguirlo sin problemas utilizando Intents.
Este código, por ejemplo, funciona sin problemas en 10.3. Abre el navegador con la URL de la constante.

Código Delphi [-]
procedure TForm2.Button1Click(Sender: TObject);
var
  URL: string;
  Intent: JIntent;
begin
  URL := 'https://neftali.clubdelphi.com';
  Intent := TJIntent.JavaClass.init(TJIntent.JavaClass.ACTION_VIEW,
      TJnet_Uri.JavaClass.parse(StringToJString(URL)));
  SharedActivity.startActivity(Intent);
end;
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita