Skip to content
Browse files

Initial commit

  • Loading branch information...
0 parents commit 13d4440a66ccf6dff62567fd1dff0bcaa2459333 @fkautz fkautz committed Nov 1, 2011
7 .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>
2 .gitignore
@@ -0,0 +1,2 @@
+bin/
+gen/
33 .project
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>Hacker Dojo</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>
19 AndroidManifest.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.hackerdojo.android.infoapp"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <uses-sdk android:minSdkVersion="10" />
+
+ <application android:icon="@drawable/icon" android:label="@string/app_name">
+ <activity android:name=".HackerDojoActivity"
+ android:label="@string/app_name"
+ android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+
+ </application>
+</manifest>
11 default.properties
@@ -0,0 +1,11 @@
+# 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.
+
+# Project target.
+target=android-10
40 proguard.cfg
@@ -0,0 +1,40 @@
+-optimizationpasses 5
+-dontusemixedcaseclassnames
+-dontskipnonpubliclibraryclasses
+-dontpreverify
+-verbose
+-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
+
+-keep public class * extends android.app.Activity
+-keep public class * extends android.app.Application
+-keep public class * extends android.app.Service
+-keep public class * extends android.content.BroadcastReceiver
+-keep public class * extends android.content.ContentProvider
+-keep public class * extends android.app.backup.BackupAgentHelper
+-keep public class * extends android.preference.Preference
+-keep public class com.android.vending.licensing.ILicensingService
+
+-keepclasseswithmembernames class * {
+ native <methods>;
+}
+
+-keepclasseswithmembers class * {
+ public <init>(android.content.Context, android.util.AttributeSet);
+}
+
+-keepclasseswithmembers class * {
+ public <init>(android.content.Context, android.util.AttributeSet, int);
+}
+
+-keepclassmembers class * extends android.app.Activity {
+ public void *(android.view.View);
+}
+
+-keepclassmembers enum * {
+ public static **[] values();
+ public static ** valueOf(java.lang.String);
+}
+
+-keep class * implements android.os.Parcelable {
+ public static final android.os.Parcelable$Creator *;
+}
BIN res/drawable-hdpi/hacker_dojo_logo_transparent.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN res/drawable-hdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN res/drawable-ldpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN res/drawable-mdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 res/layout/entry.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:padding="10dp"
+ android:textSize="16sp"
+ android:textColor="@android:color/black"
+ >
+</TextView>
39 res/layout/main.xml
@@ -0,0 +1,39 @@
+<?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"
+ android:background="@android:color/white"
+ >
+ <ImageView
+ android:id="@+id/imageView1"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:layout_marginTop="10px"
+ android:src="@drawable/hacker_dojo_logo_transparent"
+ />
+ <TextView
+ android:id="@+id/header"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textSize="16pt"
+ android:gravity="center_vertical|center_horizontal"
+ />
+
+ <ListView
+ android:id="@android:id/list"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"
+ android:divider="@android:color/darker_gray"
+ android:dividerHeight="1px"
+ android:cacheColorHint="#00000000"
+ />
+ <TextView
+ android:id="@android:id/empty"
+ android:text="@string/emptyEvents"
+ android:layout_height="fill_parent"
+ android:layout_width="fill_parent"
+ android:gravity="center_vertical|center_horizontal"
+ android:textSize="16pt"
+ />
+</LinearLayout>
6 res/values/strings.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="hello">Hello World, HackerDojoActivity!</string>
+ <string name="app_name">Hacker Dojo</string>
+ <string name="emptyEvents">No events scheduled</string>
+</resources>
33 src/com/hackerdojo/android/infoapp/HackerDojoActivity.java
@@ -0,0 +1,33 @@
+package com.hackerdojo.android.infoapp;
+
+import android.app.ListActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.view.View.OnClickListener;
+import android.widget.ArrayAdapter;
+import android.widget.TextView;
+
+public class HackerDojoActivity extends ListActivity implements OnClickListener {
+ /** Called when the activity is first created. */
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.main);
+
+ TextView header = (TextView) findViewById(R.id.header);
+ header.setText("Events");
+
+ String[] s = {"Wednesday: Nov 2, 2011", "6:00 pm - Example Meetup", "6:30 pm - Dojo Hacking", "Friday: Nov 4, 2011", "6:00 pm - Dojo Hour",
+ "Wednesday: Nov 9, 2011", "6:00 pm - Example Meetup", "6:30 pm - Dojo Hacking", "Friday: Nov 11, 2011", "6:00 pm - Dojo Hour",
+ "Wednesday: Nov 16, 2011", "6:00 pm - Example Meetup", "6:30 pm - Dojo Hacking", "Friday: Nov 18, 2011", "6:00 pm - Dojo Hour",
+ "Wednesday: Nov 23, 2011", "6:00 pm - Example Meetup", "6:30 pm - Dojo Hacking", "Friday: Nov 25, 2011", "6:00 pm - Dojo Hour",
+ "Wednesday: Nov 30, 2011", "6:00 pm - Example Meetup", "6:30 pm - Dojo Hacking", "Friday: Dec 2 , 2011", "6:00 pm - Dojo Hour"};
+ ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.entry, s);
+ setListAdapter(adapter);
+ }
+
+ @Override
+ public void onClick(View v) {
+
+ }
+}

0 comments on commit 13d4440

Please sign in to comment.
Something went wrong with that request. Please try again.