Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 889feeca353076186fa4c494466a9b9dc3877792 @ikai committed Nov 23, 2010
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.photoshare"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <application android:icon="@drawable/icon" android:label="@string/app_name">
+ <activity android:name=".Main"
+ 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>
+
+
+</manifest>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,20 @@
+<?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:id="@+id/text_view"
+ android:text="@string/hello"
+ />
+ <Button
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/upload_photo"
+ android:id="@+id/upload_photo"
+ android:onClick="selectPhoto"
+ />
+</LinearLayout>
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="hello">Hello World, Main!</string>
+ <string name="app_name">Android Photoshare</string>
+ <string name="upload_photo">Upload Photo</string>
+</resources>
@@ -0,0 +1,30 @@
+package com.android.photoshare;
+
+import java.util.Date;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.TextView;
+
+public class Main extends Activity {
+
+ Button uploadButton;
+ TextView text;
+ /** Called when the activity is first created. */
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.main);
+ uploadButton = (Button) findViewById(R.id.upload_photo);
+ text = (TextView) findViewById(R.id.text_view);
+ }
+
+ public void selectPhoto(View view) {
+ Date date = new Date();
+ text.setText(date.toString());
+ }
+
+
+}

0 comments on commit 889feec

Please sign in to comment.