インテントを使用してURLを開く方法を知っています。
Intent browserIntent = new Intent("android.intent.action.VIEW", Uri.parse("http://www.lala.com"));
startActivity(browserIntent);
しかし、どうすれば新しいウィンドウ/タブでそれぞれ複数のURLを開くことができますか?
複数のインテントを作成し、それぞれを異なるstartActivityで開いてみましたが、リストの最後のインテントを開くだけです。
code code code
startActivity(Intent1); startActivity(Intent2); startActivity(Intent3); -> only Intent3 is opened eventually (which of course make sense :)).
助けに感謝します!
更新:まだ答えを探しています:/
私は可能な解決策を考え出しました。それは確かに新しいウィンドウでURLを開きます。
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("http://www.go.com"));
Bundle b = new Bundle();
b.putBoolean("new_window", true); //sets new window
intent.putExtras(b);
startActivity(intent);
どういうわけか、一度に複数のURLを開くアクティビティを開始する方法はありますか?setResult()とstartActivityForResult()で何か?