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