Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ウェブビューの改善に問題があります。アプリが開いたら、ユーザーが webview が永続的に移動する URL を設定できるページが必要です。とても簡単に聞こえますが、私は苦労しています。
UrlActivity.java を作成し、onCreate で次のことを行います。
でユーザー入力として表示される URL を取りますEditText。
EditText
インテントを次のアクティビティに発火させながら、その URL をインテントの putExtra に設定します。を使用して次のアクティビティでこの余分な文字列を取得します
String url = getIntent.getStringExtra("key of your urlstring");
この URL を webView にロードします。