Вопрос

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??

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top