Permalink
Browse files

Mailbox starting

  • Loading branch information...
1 parent 1f51105 commit 1d73bc775f0fccea147435e9f7d712e8dacca55c @AndrewHarper041 committed Sep 16, 2012
Showing with 36 additions and 6 deletions.
  1. +36 −6 src/com/pennapps/vnd/ffling/MailboxActivity.java
@@ -2,6 +2,13 @@
import java.util.ArrayList;
+import com.dropbox.client2.DropboxAPI;
+import com.dropbox.client2.DropboxAPI.DropboxFileInfo;
+import com.dropbox.client2.DropboxAPI.Entry;
+import com.dropbox.client2.android.AndroidAuthSession;
+import com.dropbox.client2.exception.DropboxException;
+import com.dropbox.client2.exception.DropboxUnlinkedException;
+
import com.google.android.maps.MapView;
import android.app.Activity;
@@ -13,10 +20,28 @@
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;
+import android.os.Bundle;
+import android.os.IBinder;
+import android.app.Activity;
+import android.content.BroadcastReceiver;
+import android.content.ComponentName;
+import android.content.Context;
+import android.content.Intent;
+import android.content.IntentFilter;
+import android.content.ServiceConnection;
+import android.util.Log;
+import android.view.View;
+import android.view.View.OnClickListener;
+import android.widget.Button;
+import android.widget.Toast;
+
+
public class MailboxActivity extends ListActivity{
ArrayList<Message> inbox;
ListView listView;
+ public DropboxAPI<AndroidAuthSession> mDBApi;
+ private Entry secretList;
@Override
public void onCreate(Bundle savedInstanceState) {
@@ -26,24 +51,29 @@ public void onCreate(Bundle savedInstanceState) {
inbox = new ArrayList<Message>();
inbox.add(new Message("first", "hello world", "Java", "12:12:12", "1"));
inbox.add(new Message("second", "hello world", "Java", "12:12:12", "1"));
- inbox.add(new Message("third", "hello world", "Java", "12:12:12", "1"));
- inbox.add(new Message("fourth", "hello world", "Java", "12:12:12", "1"));
+
setListAdapter(new ArrayAdapter<Message>(this, android.R.layout.simple_expandable_list_item_1, inbox));
selected = (TextView)findViewById(R.id.textViewMail);
}
@Override
- public void onListItemClick(ListView l, View v, int position, long id){
- //open up reader and send over inbox.get(position);
- System.out.println(inbox.get(position) + "\n was clicked");
+ public void onListItemClick(ListView l, View view, int position, long id){
+ view.getId();
+ Intent myIntent = new Intent(view.getContext(), SomethingGoodActivity.class);
+ startActivityForResult(myIntent, 0);
}
public void goToMenu(View view){
Intent intent = new Intent();
setResult(RESULT_OK, intent);
finish();
}
+ public void goTo(View view){
+ Intent myIntent = new Intent();
+ }
+
+
public void goToReader(View view){
-
+
}
}

0 comments on commit 1d73bc7

Please sign in to comment.