Permalink
Browse files

commitment

  • Loading branch information...
1 parent 7bee07a commit bd34e2c7d747e2593bd066afe61dd9daf08773f4 @AndrewHarper041 AndrewHarper041 committed Nov 3, 2012
View
@@ -3,6 +3,5 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
- <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
@@ -22,4 +22,7 @@
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET" />
+<uses-permission android:name="android.permission.CAMERA" />
+<uses-feature android:name="android.hardware.camera" />
+<uses-feature android:name="android.hardware.camera.autofocus" />
</manifest>
@@ -22,4 +22,7 @@
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET" />
+<uses-permission android:name="android.permission.CAMERA" />
+<uses-feature android:name="android.hardware.camera" />
+<uses-feature android:name="android.hardware.camera.autofocus" />
</manifest>
View
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
@@ -17,7 +17,9 @@
public static final int ic_launcher=0x7f020003;
}
public static final class id {
- public static final int menu_settings=0x7f070000;
+ public static final int menu_settings=0x7f070002;
+ public static final int postpictures=0x7f070000;
+ public static final int textView1=0x7f070001;
}
public static final class layout {
public static final int activity_main=0x7f030000;
@@ -17,7 +17,9 @@
public static final int ic_launcher=0x7f020003;
}
public static final class id {
- public static final int menu_settings=0x7f070000;
+ public static final int menu_settings=0x7f070002;
+ public static final int postpictures=0x7f070000;
+ public static final int textView1=0x7f070001;
}
public static final class layout {
public static final int activity_main=0x7f030000;
@@ -1,14 +1,17 @@
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:layout_centerVertical="true"
- android:text="@string/app_name"
- tools:context=".MainActivity" />
-
-</RelativeLayout>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+
+ <Button
+ android:id="@+id/postpictures"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_above="@+id/textView1"
+ android:layout_centerHorizontal="true"
+ android:layout_marginBottom="86dp"
+ android:onClick="onClick"
+ android:text="I am the button. Button button whos got the button" />
+
+</RelativeLayout>
@@ -1,49 +1,84 @@
-package com.example.fbhack;
-
-import android.os.Bundle;
-import android.app.Activity;
-import android.content.Intent;
-import android.os.Bundle;
-import com.facebook.android.*;
-import com.facebook.android.Facebook.*;
-import android.app.Activity;
-import android.view.Menu;
-
-public class MainActivity extends Activity {
-
- Facebook facebook = new Facebook("157725621040134");
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
-
-
- facebook.authorize(this, new DialogListener() {
- @Override
- public void onComplete(Bundle values) {}
-
- @Override
- public void onCancel() {
- }
-
- @Override
- public void onError(DialogError e) {
- }
-
- @Override
- public void onFacebookError(FacebookError e) {
- }
-
- });
- }
-
-
-
-
- @Override
- public boolean onCreateOptionsMenu(Menu menu) {
- getMenuInflater().inflate(R.menu.activity_main, menu);
- return true;
- }
-}
+package com.example.fbhack;
+
+import android.os.Bundle;
+import android.app.Activity;
+import android.content.DialogInterface;
+import android.content.DialogInterface.OnClickListener;
+import android.content.Intent;
+import android.os.Bundle;
+import com.facebook.android.*;
+import com.facebook.android.Facebook.*;
+import android.app.Activity;
+import android.view.Menu;
+import android.view.View;
+
+public class MainActivity extends Activity {
+
+ Facebook facebook = new Facebook("157725621040134");
+
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
+
+
+ facebook.authorize(this, new DialogListener() {
+ @Override
+ public void onComplete(Bundle values) {}
+
+ @Override
+ public void onCancel() {
+ }
+
+ @Override
+ public void onError(DialogError e) {
+ }
+
+ @Override
+ public void onFacebookError(FacebookError e) {
+ }
+
+ });
+
+ OnClickListener mCorkyListener = new OnClickListener() {
+
+ public void onClick(View view) {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ // TODO Auto-generated method stub
+
+ }
+ };
+
+
+
+
+
+ }
+
+
+ public void goTo(View view){
+ Intent myIntent = new Intent();
+ switch (view.getId()){
+ case R.id.postpictures: myIntent = new Intent(view.getContext(), PostActivity.class);
+ break;
+
+ }
+ startActivityForResult(myIntent, 0);
+ }
+
+
+
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ getMenuInflater().inflate(R.menu.activity_main, menu);
+ return true;
+ }
+}

0 comments on commit bd34e2c

Please sign in to comment.