OLD | NEW |
(Empty) | |
| 1 package org.adblockplus.android; |
| 2 |
| 3 import android.app.Activity; |
| 4 import android.content.Intent; |
| 5 import android.net.Uri; |
| 6 import android.os.Bundle; |
| 7 import android.view.View; |
| 8 import android.widget.TextView; |
| 9 |
| 10 public class ConfigurationActivity extends Activity |
| 11 { |
| 12 @Override |
| 13 public void onCreate(Bundle savedInstanceState) |
| 14 { |
| 15 super.onCreate(savedInstanceState); |
| 16 setContentView(R.layout.configuration); |
| 17 int port = getIntent().getIntExtra("port", 0); |
| 18 String msg1 = getString(R.string.msg_notraffic); |
| 19 String msg2 = getString(R.string.msg_configuration, port); |
| 20 ((TextView) findViewById(R.id.message_text)).setText(msg1 + " "
+ msg2); |
| 21 } |
| 22 |
| 23 public void onOk(View view) |
| 24 { |
| 25 finish(); |
| 26 } |
| 27 |
| 28 public void onHelp(View view) |
| 29 { |
| 30 Uri uri = Uri.parse(getString(R.string.configuring_proxy_url)); |
| 31 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); |
| 32 startActivity(intent); |
| 33 finish(); |
| 34 } |
| 35 } |
OLD | NEW |