0

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

Subhalaxmi
  • 5,687
  • 3
  • 26
  • 42

1 Answers1

1

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.

GrIsHu
  • 29,068
  • 10
  • 64
  • 102