Pregunta

Is It Possible To open 2 url At a time from android app without opening the layout. I can open these two in two different activity or using two button in same activity.

Uri uri = Uri.parse("http://www.facebook.com");
        startActivity(new Intent(Intent.ACTION_VIEW, uri));

Uri uri = Uri.parse("http://www.gmail.com");
        startActivity(new Intent(Intent.ACTION_VIEW, uri));

Is it possible to open them from same activity directly as the application start??

¿Fue útil?

Solución

AFAIK You can not open two links at the same time and view in activity.As you can have access to the single activity at a time in android, So browser is a kind of activity which you are requesting for opening url. You can not show two different links at a same time.

But yes its possible to open link directly at the start up of application.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top