From faabf404ec6064956a08e825bed5d91e51fbdbbb Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 11 Jun 2014 01:25:53 +1000 Subject: Roughed out a skeleton of the UI. --- src/net/onefang/toyboxInstaller/MainActivity.java | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/net/onefang/toyboxInstaller/MainActivity.java (limited to 'src/net') diff --git a/src/net/onefang/toyboxInstaller/MainActivity.java b/src/net/onefang/toyboxInstaller/MainActivity.java new file mode 100644 index 0000000..e6c690f --- /dev/null +++ b/src/net/onefang/toyboxInstaller/MainActivity.java @@ -0,0 +1,37 @@ +package net.onefang.toyboxInstaller; + +import android.app.*; +import android.os.*; +import android.view.*; +import android.widget.*; +import java.lang.System.*; + +public class MainActivity extends Activity +{ + /** Called when the activity is first created. */ + @Override + public void onCreate(Bundle savedInstanceState) + { + super.onCreate(savedInstanceState); + setContentView(R.layout.main); + + TextView version = (TextView) findViewById(R.id.version); + String VERSION = getString(R.string.version); + TextView cpu = (TextView) findViewById(R.id.cpu); + String CPU = getString(R.string.cpu); + TextView path = (TextView) findViewById(R.id.path); + String PATH = getString(R.string.path); + String pathSep = java.lang.System.getProperty("path.separator"); + TextView folder = (TextView) findViewById(R.id.folder); + String FOLDER = getString(R.string.folder); + + version.setText(VERSION + " " + "unknown" + ".\n"); + cpu.setText(CPU + " " + java.lang.System.getProperty("os.arch") + ".\n"); + path.setText(PATH + " " + java.lang.System.getenv("PATH") + "\n"); + folder.setText(FOLDER + " " + "" + "\n"); + } + + public void installToybox(View view) + { + } +} -- cgit v1.1