OSDN Git Service

1st commit
authorace <ace@momiage.org>
Wed, 13 Feb 2013 16:09:20 +0000 (01:09 +0900)
committerace <ace@momiage.org>
Wed, 13 Feb 2013 16:09:20 +0000 (01:09 +0900)
31 files changed:
.classpath [new file with mode: 0644]
.project [new file with mode: 0644]
AndroidManifest.xml [new file with mode: 0644]
bin/AndroidManifest.xml [new file with mode: 0644]
bin/classes/org/momiage/andcw/BuildConfig.class [new file with mode: 0644]
bin/classes/org/momiage/andcw/MainActivity.class [new file with mode: 0644]
bin/classes/org/momiage/andcw/R$attr.class [new file with mode: 0644]
bin/classes/org/momiage/andcw/R$drawable.class [new file with mode: 0644]
bin/classes/org/momiage/andcw/R$id.class [new file with mode: 0644]
bin/classes/org/momiage/andcw/R$layout.class [new file with mode: 0644]
bin/classes/org/momiage/andcw/R$menu.class [new file with mode: 0644]
bin/classes/org/momiage/andcw/R$string.class [new file with mode: 0644]
bin/classes/org/momiage/andcw/R$style.class [new file with mode: 0644]
bin/classes/org/momiage/andcw/R.class [new file with mode: 0644]
gen/org/momiage/andcw/BuildConfig.java [new file with mode: 0644]
gen/org/momiage/andcw/R.java [new file with mode: 0644]
ic_launcher-web.png [new file with mode: 0644]
libs/android-support-v4.jar [new file with mode: 0644]
proguard-project.txt [new file with mode: 0644]
project.properties [new file with mode: 0644]
res/drawable-hdpi/ic_launcher.png [new file with mode: 0644]
res/drawable-ldpi/ic_launcher.png [new file with mode: 0644]
res/drawable-mdpi/ic_launcher.png [new file with mode: 0644]
res/drawable-xhdpi/ic_launcher.png [new file with mode: 0644]
res/layout/activity_main.xml [new file with mode: 0644]
res/menu/activity_main.xml [new file with mode: 0644]
res/values-v11/styles.xml [new file with mode: 0644]
res/values-v14/styles.xml [new file with mode: 0644]
res/values/strings.xml [new file with mode: 0644]
res/values/styles.xml [new file with mode: 0644]
src/org/momiage/andcw/MainActivity.java [new file with mode: 0644]

diff --git a/.classpath b/.classpath
new file mode 100644 (file)
index 0000000..a4f1e40
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<classpath>\r
+       <classpathentry kind="src" path="src"/>\r
+       <classpathentry kind="src" path="gen"/>\r
+       <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>\r
+       <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>\r
+       <classpathentry kind="output" path="bin/classes"/>\r
+</classpath>\r
diff --git a/.project b/.project
new file mode 100644 (file)
index 0000000..9dd5b8d
--- /dev/null
+++ b/.project
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<projectDescription>\r
+       <name>AndCW</name>\r
+       <comment></comment>\r
+       <projects>\r
+       </projects>\r
+       <buildSpec>\r
+               <buildCommand>\r
+                       <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
+               <buildCommand>\r
+                       <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.jdt.core.javabuilder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
+               <buildCommand>\r
+                       <name>com.android.ide.eclipse.adt.ApkBuilder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
+       </buildSpec>\r
+       <natures>\r
+               <nature>com.android.ide.eclipse.adt.AndroidNature</nature>\r
+               <nature>org.eclipse.jdt.core.javanature</nature>\r
+       </natures>\r
+</projectDescription>\r
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
new file mode 100644 (file)
index 0000000..06b56f3
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"\r
+    package="org.momiage.andcw"\r
+    android:versionCode="1"\r
+    android:versionName="1.0" >\r
+\r
+    <uses-sdk\r
+        android:minSdkVersion="8"\r
+        android:targetSdkVersion="17" />\r
+\r
+    <application\r
+        android:allowBackup="true"\r
+        android:icon="@drawable/ic_launcher"\r
+        android:label="@string/app_name"\r
+        android:theme="@style/AppTheme" >\r
+        <activity\r
+            android:name="org.momiage.andcw.MainActivity"\r
+            android:label="@string/app_name" >\r
+            <intent-filter>\r
+                <action android:name="android.intent.action.MAIN" />\r
+\r
+                <category android:name="android.intent.category.LAUNCHER" />\r
+            </intent-filter>\r
+        </activity>\r
+    </application>\r
+\r
+</manifest>
\ No newline at end of file
diff --git a/bin/AndroidManifest.xml b/bin/AndroidManifest.xml
new file mode 100644 (file)
index 0000000..06b56f3
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"\r
+    package="org.momiage.andcw"\r
+    android:versionCode="1"\r
+    android:versionName="1.0" >\r
+\r
+    <uses-sdk\r
+        android:minSdkVersion="8"\r
+        android:targetSdkVersion="17" />\r
+\r
+    <application\r
+        android:allowBackup="true"\r
+        android:icon="@drawable/ic_launcher"\r
+        android:label="@string/app_name"\r
+        android:theme="@style/AppTheme" >\r
+        <activity\r
+            android:name="org.momiage.andcw.MainActivity"\r
+            android:label="@string/app_name" >\r
+            <intent-filter>\r
+                <action android:name="android.intent.action.MAIN" />\r
+\r
+                <category android:name="android.intent.category.LAUNCHER" />\r
+            </intent-filter>\r
+        </activity>\r
+    </application>\r
+\r
+</manifest>
\ No newline at end of file
diff --git a/bin/classes/org/momiage/andcw/BuildConfig.class b/bin/classes/org/momiage/andcw/BuildConfig.class
new file mode 100644 (file)
index 0000000..018d85a
Binary files /dev/null and b/bin/classes/org/momiage/andcw/BuildConfig.class differ
diff --git a/bin/classes/org/momiage/andcw/MainActivity.class b/bin/classes/org/momiage/andcw/MainActivity.class
new file mode 100644 (file)
index 0000000..0f24570
Binary files /dev/null and b/bin/classes/org/momiage/andcw/MainActivity.class differ
diff --git a/bin/classes/org/momiage/andcw/R$attr.class b/bin/classes/org/momiage/andcw/R$attr.class
new file mode 100644 (file)
index 0000000..9aaffb5
Binary files /dev/null and b/bin/classes/org/momiage/andcw/R$attr.class differ
diff --git a/bin/classes/org/momiage/andcw/R$drawable.class b/bin/classes/org/momiage/andcw/R$drawable.class
new file mode 100644 (file)
index 0000000..372fb09
Binary files /dev/null and b/bin/classes/org/momiage/andcw/R$drawable.class differ
diff --git a/bin/classes/org/momiage/andcw/R$id.class b/bin/classes/org/momiage/andcw/R$id.class
new file mode 100644 (file)
index 0000000..cdffec4
Binary files /dev/null and b/bin/classes/org/momiage/andcw/R$id.class differ
diff --git a/bin/classes/org/momiage/andcw/R$layout.class b/bin/classes/org/momiage/andcw/R$layout.class
new file mode 100644 (file)
index 0000000..c1b7a5a
Binary files /dev/null and b/bin/classes/org/momiage/andcw/R$layout.class differ
diff --git a/bin/classes/org/momiage/andcw/R$menu.class b/bin/classes/org/momiage/andcw/R$menu.class
new file mode 100644 (file)
index 0000000..dfcd426
Binary files /dev/null and b/bin/classes/org/momiage/andcw/R$menu.class differ
diff --git a/bin/classes/org/momiage/andcw/R$string.class b/bin/classes/org/momiage/andcw/R$string.class
new file mode 100644 (file)
index 0000000..ef0298d
Binary files /dev/null and b/bin/classes/org/momiage/andcw/R$string.class differ
diff --git a/bin/classes/org/momiage/andcw/R$style.class b/bin/classes/org/momiage/andcw/R$style.class
new file mode 100644 (file)
index 0000000..d2dc8e6
Binary files /dev/null and b/bin/classes/org/momiage/andcw/R$style.class differ
diff --git a/bin/classes/org/momiage/andcw/R.class b/bin/classes/org/momiage/andcw/R.class
new file mode 100644 (file)
index 0000000..a881ac5
Binary files /dev/null and b/bin/classes/org/momiage/andcw/R.class differ
diff --git a/gen/org/momiage/andcw/BuildConfig.java b/gen/org/momiage/andcw/BuildConfig.java
new file mode 100644 (file)
index 0000000..eab084a
--- /dev/null
@@ -0,0 +1,6 @@
+/** Automatically generated file. DO NOT MODIFY */
+package org.momiage.andcw;
+
+public final class BuildConfig {
+    public final static boolean DEBUG = true;
+}
\ No newline at end of file
diff --git a/gen/org/momiage/andcw/R.java b/gen/org/momiage/andcw/R.java
new file mode 100644 (file)
index 0000000..345f75a
--- /dev/null
@@ -0,0 +1,58 @@
+/* AUTO-GENERATED FILE.  DO NOT MODIFY.\r
+ *\r
+ * This class was automatically generated by the\r
+ * aapt tool from the resource data it found.  It\r
+ * should not be modified by hand.\r
+ */\r
+\r
+package org.momiage.andcw;\r
+\r
+public final class R {\r
+    public static final class attr {\r
+    }\r
+    public static final class drawable {\r
+        public static final int ic_launcher=0x7f020000;\r
+    }\r
+    public static final class id {\r
+        public static final int menu_settings=0x7f070000;\r
+    }\r
+    public static final class layout {\r
+        public static final int activity_main=0x7f030000;\r
+    }\r
+    public static final class menu {\r
+        public static final int activity_main=0x7f060000;\r
+    }\r
+    public static final class string {\r
+        public static final int app_name=0x7f040000;\r
+        public static final int hello_world=0x7f040001;\r
+        public static final int menu_settings=0x7f040002;\r
+    }\r
+    public static final class style {\r
+        /** \r
+        Base application theme, dependent on API level. This theme is replaced\r
+        by AppBaseTheme from res/values-vXX/styles.xml on newer devices.\r
+    \r
+\r
+            Theme customizations available in newer API levels can go in\r
+            res/values-vXX/styles.xml, while customizations related to\r
+            backward-compatibility can go here.\r
+        \r
+\r
+        Base application theme for API 11+. This theme completely replaces\r
+        AppBaseTheme from res/values/styles.xml on API 11+ devices.\r
+    \r
+ API 11 theme customizations can go here. \r
+\r
+        Base application theme for API 14+. This theme completely replaces\r
+        AppBaseTheme from BOTH res/values/styles.xml and\r
+        res/values-v11/styles.xml on API 14+ devices.\r
+    \r
+ API 14 theme customizations can go here. \r
+         */\r
+        public static final int AppBaseTheme=0x7f050000;\r
+        /**  Application theme. \r
+ All customizations that are NOT specific to a particular API-level can go here. \r
+         */\r
+        public static final int AppTheme=0x7f050001;\r
+    }\r
+}\r
diff --git a/ic_launcher-web.png b/ic_launcher-web.png
new file mode 100644 (file)
index 0000000..424f260
Binary files /dev/null and b/ic_launcher-web.png differ
diff --git a/libs/android-support-v4.jar b/libs/android-support-v4.jar
new file mode 100644 (file)
index 0000000..6080877
Binary files /dev/null and b/libs/android-support-v4.jar differ
diff --git a/proguard-project.txt b/proguard-project.txt
new file mode 100644 (file)
index 0000000..f2fe155
--- /dev/null
@@ -0,0 +1,20 @@
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+#   http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+#   public *;
+#}
diff --git a/project.properties b/project.properties
new file mode 100644 (file)
index 0000000..a3ee5ab
--- /dev/null
@@ -0,0 +1,14 @@
+# 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 edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=android-17
diff --git a/res/drawable-hdpi/ic_launcher.png b/res/drawable-hdpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..0e79b18
Binary files /dev/null and b/res/drawable-hdpi/ic_launcher.png differ
diff --git a/res/drawable-ldpi/ic_launcher.png b/res/drawable-ldpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..ebfac7d
Binary files /dev/null and b/res/drawable-ldpi/ic_launcher.png differ
diff --git a/res/drawable-mdpi/ic_launcher.png b/res/drawable-mdpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..1183441
Binary files /dev/null and b/res/drawable-mdpi/ic_launcher.png differ
diff --git a/res/drawable-xhdpi/ic_launcher.png b/res/drawable-xhdpi/ic_launcher.png
new file mode 100644 (file)
index 0000000..c8ab2a1
Binary files /dev/null and b/res/drawable-xhdpi/ic_launcher.png differ
diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml
new file mode 100644 (file)
index 0000000..432a8c6
--- /dev/null
@@ -0,0 +1,14 @@
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"\r
+    xmlns:tools="http://schemas.android.com/tools"\r
+    android:layout_width="match_parent"\r
+    android:layout_height="match_parent"\r
+    tools:context=".MainActivity" >\r
+\r
+    <TextView\r
+        android:layout_width="wrap_content"\r
+        android:layout_height="wrap_content"\r
+        android:layout_centerHorizontal="true"\r
+        android:layout_centerVertical="true"\r
+        android:text="@string/hello_world" />\r
+\r
+</RelativeLayout>
\ No newline at end of file
diff --git a/res/menu/activity_main.xml b/res/menu/activity_main.xml
new file mode 100644 (file)
index 0000000..c46abce
--- /dev/null
@@ -0,0 +1,9 @@
+<menu xmlns:android="http://schemas.android.com/apk/res/android" >\r
+\r
+    <item\r
+        android:id="@+id/menu_settings"\r
+        android:orderInCategory="100"\r
+        android:showAsAction="never"\r
+        android:title="@string/menu_settings"/>\r
+\r
+</menu>
\ No newline at end of file
diff --git a/res/values-v11/styles.xml b/res/values-v11/styles.xml
new file mode 100644 (file)
index 0000000..9643ba1
--- /dev/null
@@ -0,0 +1,11 @@
+<resources>\r
+\r
+    <!--\r
+        Base application theme for API 11+. This theme completely replaces
+        AppBaseTheme from res/values/styles.xml on API 11+ devices.\r
+    -->\r
+    <style name="AppBaseTheme" parent="android:Theme.Holo.Light">\r
+        <!-- API 11 theme customizations can go here. -->\r
+    </style>\r
+\r
+</resources>
\ No newline at end of file
diff --git a/res/values-v14/styles.xml b/res/values-v14/styles.xml
new file mode 100644 (file)
index 0000000..50251a1
--- /dev/null
@@ -0,0 +1,12 @@
+<resources>\r
+\r
+    <!--\r
+        Base application theme for API 14+. This theme completely replaces
+        AppBaseTheme from BOTH res/values/styles.xml and
+        res/values-v11/styles.xml on API 14+ devices.\r
+    -->\r
+    <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">\r
+        <!-- API 14 theme customizations can go here. -->\r
+    </style>\r
+\r
+</resources>
\ No newline at end of file
diff --git a/res/values/strings.xml b/res/values/strings.xml
new file mode 100644 (file)
index 0000000..cc29596
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>\r
+\r
+    <string name="app_name">AndCW</string>\r
+    <string name="hello_world">Hello world!</string>\r
+    <string name="menu_settings">Settings</string>\r
+\r
+</resources>
\ No newline at end of file
diff --git a/res/values/styles.xml b/res/values/styles.xml
new file mode 100644 (file)
index 0000000..79a39af
--- /dev/null
@@ -0,0 +1,20 @@
+<resources>\r
+\r
+    <!--\r
+        Base application theme, dependent on API level. This theme is replaced
+        by AppBaseTheme from res/values-vXX/styles.xml on newer devices.\r
+    -->\r
+    <style name="AppBaseTheme" parent="android:Theme.Light">\r
+        <!--\r
+            Theme customizations available in newer API levels can go in
+            res/values-vXX/styles.xml, while customizations related to
+            backward-compatibility can go here.\r
+        -->\r
+    </style>\r
+\r
+    <!-- Application theme. -->\r
+    <style name="AppTheme" parent="AppBaseTheme">\r
+        <!-- All customizations that are NOT specific to a particular API-level can go here. -->\r
+    </style>\r
+\r
+</resources>
\ No newline at end of file
diff --git a/src/org/momiage/andcw/MainActivity.java b/src/org/momiage/andcw/MainActivity.java
new file mode 100644 (file)
index 0000000..ff4711d
--- /dev/null
@@ -0,0 +1,22 @@
+package org.momiage.andcw;\r
+\r
+import android.os.Bundle;\r
+import android.app.Activity;\r
+import android.view.Menu;\r
+\r
+public class MainActivity extends Activity {\r
+\r
+       @Override\r
+       protected void onCreate(Bundle savedInstanceState) {\r
+               super.onCreate(savedInstanceState);\r
+               setContentView(R.layout.activity_main);\r
+       }\r
+\r
+       @Override\r
+       public boolean onCreateOptionsMenu(Menu menu) {\r
+               // Inflate the menu; this adds items to the action bar if it is present.\r
+               getMenuInflater().inflate(R.menu.activity_main, menu);\r
+               return true;\r
+       }\r
+\r
+}\r