diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index eaf9b9e..9a80d8f 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -5,8 +5,8 @@
android:versionName="1.0" >
+ android:minSdkVersion="17"
+ android:targetSdkVersion="19" />
@@ -14,16 +14,19 @@
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
- android:theme="@style/AppTheme" >
+ android:theme="@android:style/Theme.Holo.Light.NoActionBar">
+ android:label="@string/app_name">
+
-
+
diff --git a/bin/AndroidManifest.xml b/bin/AndroidManifest.xml
index eaf9b9e..9a80d8f 100644
--- a/bin/AndroidManifest.xml
+++ b/bin/AndroidManifest.xml
@@ -5,8 +5,8 @@
android:versionName="1.0" >
+ android:minSdkVersion="17"
+ android:targetSdkVersion="19" />
@@ -14,16 +14,19 @@
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
- android:theme="@style/AppTheme" >
+ android:theme="@android:style/Theme.Holo.Light.NoActionBar">
+ android:label="@string/app_name">
+
-
+
diff --git a/bin/classes.dex b/bin/classes.dex
index 22a188a..14dcc73 100644
Binary files a/bin/classes.dex and b/bin/classes.dex differ
diff --git a/bin/classes/com/thunder/simtech/MainActivity$1.class b/bin/classes/com/thunder/simtech/MainActivity$1.class
index e44fa57..4928e2d 100644
Binary files a/bin/classes/com/thunder/simtech/MainActivity$1.class and b/bin/classes/com/thunder/simtech/MainActivity$1.class differ
diff --git a/bin/classes/com/thunder/simtech/MainActivity.class b/bin/classes/com/thunder/simtech/MainActivity.class
index ae7a90c..0c63d0b 100644
Binary files a/bin/classes/com/thunder/simtech/MainActivity.class and b/bin/classes/com/thunder/simtech/MainActivity.class differ
diff --git a/bin/classes/com/thunder/simtech/R$drawable.class b/bin/classes/com/thunder/simtech/R$drawable.class
index a8dde1f..6ecf19e 100644
Binary files a/bin/classes/com/thunder/simtech/R$drawable.class and b/bin/classes/com/thunder/simtech/R$drawable.class differ
diff --git a/bin/classes/com/thunder/simtech/R$id.class b/bin/classes/com/thunder/simtech/R$id.class
index b43dd2a..1336f13 100644
Binary files a/bin/classes/com/thunder/simtech/R$id.class and b/bin/classes/com/thunder/simtech/R$id.class differ
diff --git a/bin/classes/com/thunder/simtech/R$layout.class b/bin/classes/com/thunder/simtech/R$layout.class
index 4aa97e2..459953c 100644
Binary files a/bin/classes/com/thunder/simtech/R$layout.class and b/bin/classes/com/thunder/simtech/R$layout.class differ
diff --git a/bin/classes/com/thunder/simtech/R$menu.class b/bin/classes/com/thunder/simtech/R$menu.class
index e585f61..3cc298d 100644
Binary files a/bin/classes/com/thunder/simtech/R$menu.class and b/bin/classes/com/thunder/simtech/R$menu.class differ
diff --git a/bin/classes/com/thunder/simtech/R$string.class b/bin/classes/com/thunder/simtech/R$string.class
index 1fd5bfa..2bdffc8 100644
Binary files a/bin/classes/com/thunder/simtech/R$string.class and b/bin/classes/com/thunder/simtech/R$string.class differ
diff --git a/bin/classes/com/thunder/simtech/R$style.class b/bin/classes/com/thunder/simtech/R$style.class
index 71006f7..86498de 100644
Binary files a/bin/classes/com/thunder/simtech/R$style.class and b/bin/classes/com/thunder/simtech/R$style.class differ
diff --git a/bin/res/crunch/drawable-hdpi/ab_bottom_solid_dark_holo.9.png b/bin/res/crunch/drawable-hdpi/ab_bottom_solid_dark_holo.9.png
new file mode 100644
index 0000000..42bb366
Binary files /dev/null and b/bin/res/crunch/drawable-hdpi/ab_bottom_solid_dark_holo.9.png differ
diff --git a/bin/res/crunch/drawable-hdpi/ic_menu_forward.png b/bin/res/crunch/drawable-hdpi/ic_menu_forward.png
new file mode 100644
index 0000000..4d9858d
Binary files /dev/null and b/bin/res/crunch/drawable-hdpi/ic_menu_forward.png differ
diff --git a/bin/res/crunch/drawable-mdpi/ab_bottom_solid_dark_holo.9.png b/bin/res/crunch/drawable-mdpi/ab_bottom_solid_dark_holo.9.png
new file mode 100644
index 0000000..c2fef9a
Binary files /dev/null and b/bin/res/crunch/drawable-mdpi/ab_bottom_solid_dark_holo.9.png differ
diff --git a/bin/res/crunch/drawable-mdpi/ic_menu_forward.png b/bin/res/crunch/drawable-mdpi/ic_menu_forward.png
new file mode 100644
index 0000000..1c29c84
Binary files /dev/null and b/bin/res/crunch/drawable-mdpi/ic_menu_forward.png differ
diff --git a/bin/res/crunch/drawable-xhdpi/ab_bottom_solid_dark_holo.9.png b/bin/res/crunch/drawable-xhdpi/ab_bottom_solid_dark_holo.9.png
new file mode 100644
index 0000000..d01fae9
Binary files /dev/null and b/bin/res/crunch/drawable-xhdpi/ab_bottom_solid_dark_holo.9.png differ
diff --git a/bin/res/crunch/drawable-xhdpi/ic_menu_forward.png b/bin/res/crunch/drawable-xhdpi/ic_menu_forward.png
new file mode 100644
index 0000000..af91864
Binary files /dev/null and b/bin/res/crunch/drawable-xhdpi/ic_menu_forward.png differ
diff --git a/bin/res/crunch/drawable-xxhdpi/ab_bottom_solid_dark_holo.9.png b/bin/res/crunch/drawable-xxhdpi/ab_bottom_solid_dark_holo.9.png
new file mode 100644
index 0000000..1cb9235
Binary files /dev/null and b/bin/res/crunch/drawable-xxhdpi/ab_bottom_solid_dark_holo.9.png differ
diff --git a/bin/res/crunch/drawable-xxhdpi/ic_menu_forward.png b/bin/res/crunch/drawable-xxhdpi/ic_menu_forward.png
new file mode 100644
index 0000000..b523bf6
Binary files /dev/null and b/bin/res/crunch/drawable-xxhdpi/ic_menu_forward.png differ
diff --git a/bin/resources.ap_ b/bin/resources.ap_
index 01411a9..78dabb9 100644
Binary files a/bin/resources.ap_ and b/bin/resources.ap_ differ
diff --git a/bin/simtech-thunder.apk b/bin/simtech-thunder.apk
index b03633f..e6613d4 100644
Binary files a/bin/simtech-thunder.apk and b/bin/simtech-thunder.apk differ
diff --git a/gen/com/thunder/simtech/R.java b/gen/com/thunder/simtech/R.java
index a55e9d4..91d95d7 100644
--- a/gen/com/thunder/simtech/R.java
+++ b/gen/com/thunder/simtech/R.java
@@ -21,12 +21,13 @@ public final class R {
public static final int activity_vertical_margin=0x7f040001;
}
public static final class drawable {
- public static final int ic_launcher=0x7f020000;
+ public static final int ab_bottom_solid_dark_holo=0x7f020000;
+ public static final int ic_launcher=0x7f020001;
+ public static final int ic_menu_forward=0x7f020002;
}
public static final class id {
- public static final int action_settings=0x7f080002;
- public static final int editText=0x7f080001;
- public static final int webView=0x7f080000;
+ public static final int editText=0x7f080000;
+ public static final int webView=0x7f080001;
}
public static final class layout {
public static final int activity_main=0x7f030000;
@@ -35,9 +36,7 @@ public final class R {
public static final int main=0x7f070000;
}
public static final class string {
- public static final int action_settings=0x7f050001;
public static final int app_name=0x7f050000;
- public static final int hello_world=0x7f050002;
}
public static final class style {
/**
diff --git a/res/drawable-hdpi/ab_bottom_solid_dark_holo.9.png b/res/drawable-hdpi/ab_bottom_solid_dark_holo.9.png
new file mode 100644
index 0000000..769463b
Binary files /dev/null and b/res/drawable-hdpi/ab_bottom_solid_dark_holo.9.png differ
diff --git a/res/drawable-hdpi/ic_menu_forward.png b/res/drawable-hdpi/ic_menu_forward.png
new file mode 100644
index 0000000..b1b0c89
Binary files /dev/null and b/res/drawable-hdpi/ic_menu_forward.png differ
diff --git a/res/drawable-mdpi/ab_bottom_solid_dark_holo.9.png b/res/drawable-mdpi/ab_bottom_solid_dark_holo.9.png
new file mode 100644
index 0000000..b229367
Binary files /dev/null and b/res/drawable-mdpi/ab_bottom_solid_dark_holo.9.png differ
diff --git a/res/drawable-mdpi/ic_menu_forward.png b/res/drawable-mdpi/ic_menu_forward.png
new file mode 100644
index 0000000..4a0b6ef
Binary files /dev/null and b/res/drawable-mdpi/ic_menu_forward.png differ
diff --git a/res/drawable-xhdpi/ab_bottom_solid_dark_holo.9.png b/res/drawable-xhdpi/ab_bottom_solid_dark_holo.9.png
new file mode 100644
index 0000000..5753346
Binary files /dev/null and b/res/drawable-xhdpi/ab_bottom_solid_dark_holo.9.png differ
diff --git a/res/drawable-xhdpi/ic_menu_forward.png b/res/drawable-xhdpi/ic_menu_forward.png
new file mode 100644
index 0000000..6463e7a
Binary files /dev/null and b/res/drawable-xhdpi/ic_menu_forward.png differ
diff --git a/res/drawable-xxhdpi/ab_bottom_solid_dark_holo.9.png b/res/drawable-xxhdpi/ab_bottom_solid_dark_holo.9.png
new file mode 100644
index 0000000..8358392
Binary files /dev/null and b/res/drawable-xxhdpi/ab_bottom_solid_dark_holo.9.png differ
diff --git a/res/drawable-xxhdpi/ic_menu_forward.png b/res/drawable-xxhdpi/ic_menu_forward.png
new file mode 100644
index 0000000..ca7eff9
Binary files /dev/null and b/res/drawable-xxhdpi/ic_menu_forward.png differ
diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml
index 29770f3..d5f02ed 100644
--- a/res/layout/activity_main.xml
+++ b/res/layout/activity_main.xml
@@ -4,34 +4,42 @@
android:layout_height="fill_parent"
android:orientation="vertical" >
-
-
+ android:background="@drawable/ab_bottom_solid_dark_holo"
+ android:gravity="top" >
+ android:inputType="textUri"
+ android:textColor="#ffffff">
-
+ android:src="@drawable/ic_menu_forward"
+ android:onClick="onGo"
+ android:contentDescription="Go!"
+ style="?android:attr/borderlessButtonStyle" />
+
+
+
+
+
\ No newline at end of file
diff --git a/res/menu/main.xml b/res/menu/main.xml
index c002028..582382e 100644
--- a/res/menu/main.xml
+++ b/res/menu/main.xml
@@ -1,9 +1,7 @@
-
+
+
\ No newline at end of file
diff --git a/res/values/colors.xml b/res/values/colors.xml
new file mode 100644
index 0000000..55344e5
--- /dev/null
+++ b/res/values/colors.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/res/values/strings.xml b/res/values/strings.xml
index a39d5cd..783be1c 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1,8 +1,5 @@
- Simtech <thunder>
- Settings
- Hello world!
-
+ Simtech <thunder>
diff --git a/src/com/thunder/simtech/MainActivity.java b/src/com/thunder/simtech/MainActivity.java
index e2dae60..f5b7700 100644
--- a/src/com/thunder/simtech/MainActivity.java
+++ b/src/com/thunder/simtech/MainActivity.java
@@ -11,41 +11,28 @@ import android.webkit.WebViewClient;
import android.widget.EditText;
public class MainActivity extends Activity {
-
- // The onCreate method is called when the Activity is created. Code to instantiate the UI should be placed here.
- @Override
+ @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
-
- // This call tells the system to inflate the user interface defined in main.xml as the User Interface for this Activity.
- setContentView(R.layout.activity_main);
-
- // The WebView needs to use a modified WebViewClient that does not delegate the URL to the default browser.
+ setContentView(R.layout.activity_main);
final WebView webView = (WebView) findViewById(R.id.webView);
webView.setWebViewClient(new WebViewClient() {
public boolean shouldOverrideUrlLoading(WebView view, String url){
view.loadUrl(url);
-
- // Gets the editText
EditText editText = (EditText) findViewById(R.id.editText);
- // Updates the URL
editText.setText(webView.getUrl());
-
- // Hides the soft keyboard
editText.clearFocus();
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(editText.getWindowToken(), 0);
-
- return false; // Tells the system not to continue propagating the event.
+ return false;
}
});
- webView.loadUrl("http://beta.typega.me:4006/dl/");
+ webView.loadUrl("http://www.google.com/");
// You can add other code here if you want.
+
}
-
- // Tell the Button you create to call this method, by setting the android:onCreate attribute.
public void onGo(View view){
WebView webView = (WebView) findViewById(R.id.webView);
EditText editText = (EditText) findViewById(R.id.editText);
@@ -53,12 +40,6 @@ public class MainActivity extends Activity {
if (editText.getText()==null)return;
String url = editText.getText().toString();
-// if (url.equals("man man")) {
-// Intent i = new Intent(this, AboutActivity.class);
-// startActivity(i);
-// return;
-// }
-
if (!url.contains("http://"))url = "http://"+url;
webView.loadUrl(url);
Log.i("AndroidDemo", "Visiting: "+url);