diff options
author | David Walter Seikel | 2014-06-11 01:25:53 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-06-11 01:25:53 +1000 |
commit | faabf404ec6064956a08e825bed5d91e51fbdbbb (patch) | |
tree | 4aee2014b62efc93c5ab46fd73dcde8d250d9aa0 /src | |
parent | Added .gitignore and LICENSE files. (diff) | |
download | toyboxInstaller-faabf404ec6064956a08e825bed5d91e51fbdbbb.zip toyboxInstaller-faabf404ec6064956a08e825bed5d91e51fbdbbb.tar.gz toyboxInstaller-faabf404ec6064956a08e825bed5d91e51fbdbbb.tar.bz2 toyboxInstaller-faabf404ec6064956a08e825bed5d91e51fbdbbb.tar.xz |
Roughed out a skeleton of the UI.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/onefang/toyboxInstaller/MainActivity.java | 37 |
1 files changed, 37 insertions, 0 deletions
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 @@ | |||
1 | package net.onefang.toyboxInstaller; | ||
2 | |||
3 | import android.app.*; | ||
4 | import android.os.*; | ||
5 | import android.view.*; | ||
6 | import android.widget.*; | ||
7 | import java.lang.System.*; | ||
8 | |||
9 | public class MainActivity extends Activity | ||
10 | { | ||
11 | /** Called when the activity is first created. */ | ||
12 | @Override | ||
13 | public void onCreate(Bundle savedInstanceState) | ||
14 | { | ||
15 | super.onCreate(savedInstanceState); | ||
16 | setContentView(R.layout.main); | ||
17 | |||
18 | TextView version = (TextView) findViewById(R.id.version); | ||
19 | String VERSION = getString(R.string.version); | ||
20 | TextView cpu = (TextView) findViewById(R.id.cpu); | ||
21 | String CPU = getString(R.string.cpu); | ||
22 | TextView path = (TextView) findViewById(R.id.path); | ||
23 | String PATH = getString(R.string.path); | ||
24 | String pathSep = java.lang.System.getProperty("path.separator"); | ||
25 | TextView folder = (TextView) findViewById(R.id.folder); | ||
26 | String FOLDER = getString(R.string.folder); | ||
27 | |||
28 | version.setText(VERSION + " " + "unknown" + ".\n"); | ||
29 | cpu.setText(CPU + " " + java.lang.System.getProperty("os.arch") + ".\n"); | ||
30 | path.setText(PATH + " " + java.lang.System.getenv("PATH") + "\n"); | ||
31 | folder.setText(FOLDER + " " + "" + "\n"); | ||
32 | } | ||
33 | |||
34 | public void installToybox(View view) | ||
35 | { | ||
36 | } | ||
37 | } | ||