From fe61687b97d55c92bb29bf6aae1288433229353d Mon Sep 17 00:00:00 2001 From: faketruth Date: Sat, 29 Sep 2012 13:41:47 +0000 Subject: Made beds placeable Android: Updated some stuff and set default view distance lower git-svn-id: http://mc-server.googlecode.com/svn/trunk@900 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- Android/src/com/mcserver/MCServerActivity.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Android/src/com/mcserver') diff --git a/Android/src/com/mcserver/MCServerActivity.java b/Android/src/com/mcserver/MCServerActivity.java index 0a686c882..8d3507ca3 100644 --- a/Android/src/com/mcserver/MCServerActivity.java +++ b/Android/src/com/mcserver/MCServerActivity.java @@ -10,7 +10,9 @@ import java.util.ArrayList; import java.util.Enumeration; import android.app.Activity; +import android.content.Intent; import android.graphics.Color; +import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; @@ -55,6 +57,13 @@ public class MCServerActivity extends Activity { } }); + ((Button)findViewById(R.id.configure_server)).setOnClickListener( new View.OnClickListener() { + public void onClick(View v) { + Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://localhost:8081/webadmin/")); + startActivity( myIntent ); + } + }); + ListView lv = (ListView)this.findViewById(R.id.listView1); @@ -162,11 +171,13 @@ public class MCServerActivity extends Activity { ((TextView)findViewById(R.id.server_status_text)).setTextColor(Color.GREEN); ((Button)findViewById(R.id.stop_server)).setEnabled(true); ((Button)findViewById(R.id.start_server)).setEnabled(false); + ((Button)findViewById(R.id.configure_server)).setEnabled(true); } else { ((TextView)findViewById(R.id.server_status_text)).setText(R.string.mcserver_is_not_running); ((TextView)findViewById(R.id.server_status_text)).setTextColor(Color.RED); ((Button)findViewById(R.id.stop_server)).setEnabled(false); ((Button)findViewById(R.id.start_server)).setEnabled(true); + ((Button)findViewById(R.id.configure_server)).setEnabled(false); } } -- cgit v1.2.3