문제

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