commit 95342a989706a16b8604118b81e7b34ae98401f8
Author: dankert <devnull@localhost>
Date: Fri, 9 Sep 2011 01:47:08 +0200
Initiale Befüllung...
Diffstat:
16 files changed, 222 insertions(+), 0 deletions(-)
diff --git a/.classpath b/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/.project b/.project
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>HM-Lok</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="de.jandankert.hansemerkur"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <application android:theme="@style/HMDesign" android:icon="@drawable/mini" android:label="@string/app_name">
+ <activity android:name=".HM"
+ android:label="@string/app_name">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+
+ </application>
+
+
+
+<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
+<uses-permission android:name="android.permission.INTERNET"></uses-permission>
+<!-- Android 1.6 -->
+<uses-sdk android:minSdkVersion="4"></uses-sdk>
+</manifest> +
\ No newline at end of file
diff --git a/default.properties b/default.properties
@@ -0,0 +1,13 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "build.properties", and override values to adapt the script to your
+# project structure.
+
+# Indicates whether an apk should be generated for each density.
+split.density=false
+# Project target.
+target=android-4
diff --git a/res/drawable-hdpi/icon.png b/res/drawable-hdpi/icon.png
Binary files differ.
diff --git a/res/drawable-ldpi/icon.png b/res/drawable-ldpi/icon.png
Binary files differ.
diff --git a/res/drawable-mdpi/icon.png b/res/drawable-mdpi/icon.png
Binary files differ.
diff --git a/res/drawable/hm_logo_klein.jpg b/res/drawable/hm_logo_klein.jpg
Binary files differ.
diff --git a/res/drawable/mini.ico b/res/drawable/mini.ico
Binary files differ.
diff --git a/res/drawable/text_logo.gif b/res/drawable/text_logo.gif
Binary files differ.
diff --git a/res/layout/main.xml b/res/layout/main.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical" android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+
+ <TextView android:layout_width="fill_parent"
+ android:layout_height="wrap_content" android:text="@string/hello" />
+ <ImageView android:src="@drawable/text_logo"
+ android:background="#B9DCCA" android:layout_width="fill_parent"
+ android:layout_height="wrap_content" />
+
+ <Button android:id="@+id/button_pvo" android:text="@string/pvo"
+ android:layout_width="fill_parent" android:layout_height="wrap_content" />
+ <Button android:id="@+id/button_www" android:text="@string/website"
+ android:layout_width="fill_parent" android:layout_height="wrap_content" />
+
+</LinearLayout>
diff --git a/res/menu/menu.xml b/res/menu/menu.xml
@@ -0,0 +1,3 @@
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@+id/item01" android:title="@string/end"></item>
+</menu>
diff --git a/res/menu/start.xml b/res/menu/start.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@+id/item01" android:title="@string/pvo"></item>
+ <item android:title="@string/website" android:id="@+id/item02"></item>
+</menu>
diff --git a/res/values/strings.xml b/res/values/strings.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="hello">HanseMerkur Versicherungsgruppe</string>
+ <string name="app_name">HanseMerkur</string>
+ <string name="end">Beenden</string>
+ <string name="pvo">Partner vor Ort</string>
+ <string name="website">Webseite</string>
+
+</resources>
diff --git a/res/values/styles.xml b/res/values/styles.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <style name="HMDesign">
+ <item name="android:textSize">18sp</item>
+ <item name="android:textColor">#006633</item>
+ <item name="android:colorBackground">#B9DCCA</item>
+ <item name="android:background">#B9DCCA</item>
+ <!--
+ <item name="windowFrame"> @drawable/scr_sm_hintergrund</item>
+ -->
+
+<!--
+ <item name="panelForegroundColor">
+ #FF000000
+</item>
+ -->
+ <!--
+ <item name="panelTextColor"> ?panelForegroundColor </item>
+ -->
+ </style>
+</resources>+
\ No newline at end of file
diff --git a/src/de/jandankert/hansemerkur/HM.java b/src/de/jandankert/hansemerkur/HM.java
@@ -0,0 +1,88 @@
+package de.jandankert.hansemerkur;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.net.Uri;
+import android.os.Bundle;
+import android.view.Menu;
+import android.view.MenuInflater;
+import android.view.MenuItem;
+import android.view.View;
+import android.view.View.OnClickListener;
+import android.widget.Button;
+
+public class HM extends Activity
+{
+ private Button websiteButton;
+ private Button pvoButton;
+
+ /** Called when the activity is first created. */
+ @Override
+ public void onCreate(Bundle savedInstanceState)
+ {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.main);
+
+ this.websiteButton = (Button) this.findViewById(R.id.button_www);
+ this.websiteButton.setOnClickListener(new OnClickListener()
+ {
+ @Override
+ public void onClick(View v)
+ {
+ final String url = "http://www.hansemerkur.de/partner-vor-ort";
+ Intent i = new Intent(Intent.ACTION_VIEW);
+ i.setData(Uri.parse(url));
+ startActivity(i);
+ }
+ });
+
+ this.pvoButton = (Button) this.findViewById(R.id.button_pvo);
+ this.pvoButton.setOnClickListener(new OnClickListener()
+ {
+ @Override
+ public void onClick(View v)
+ {
+ final String url = "http://www.hansemerkur.de/service/kontakt/partner";
+ Intent i = new Intent(Intent.ACTION_VIEW);
+ i.setData(Uri.parse(url));
+ startActivity(i);
+ }
+ });
+
+
+ }
+
+ public boolean onCreateOptionsMenu(Menu menu)
+ {
+ super.onCreateOptionsMenu(menu);
+ MenuInflater mi = new MenuInflater(getApplication());
+ mi.inflate(R.menu.menu, menu);
+
+ // getMenuInflater().inflate( R.menu.start, menu);
+
+ return true;
+ }
+
+ public boolean onOptionsItemSelected(MenuItem item)
+ {
+ switch (item.getItemId())
+ {
+ case R.id.item01:
+ super.finish();
+ break;
+ // case R.id.button_www:
+ // final String url = "http://www.hansemerkur.de/";
+ // Intent i = new Intent(Intent.ACTION_VIEW);
+ // i.setData(Uri.parse(url));
+ // startActivity(i);
+ // break;
+ // case R.id.button_pvo:
+ // break;
+ case R.id.item02:
+ default:
+
+ }
+ return true;
+ }
+
+}+
\ No newline at end of file