Skip to content

Commit

Permalink
Create Event works
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayank Jethva committed Jan 15, 2013
1 parent 7b2d0d5 commit 8428360
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-17
android.library.reference.1=../aFileChooser
android.library.reference.2=../../Users/Siddharth/android-sdks/extras/google/google_play_services/libproject/google-play-services_lib
target=android-16
android.library.reference.1=../workspace/team_workspace/aFileChooser
android.library.reference.2=../workspace/team_workspace/google-play-services_lib
24 changes: 12 additions & 12 deletions src/com/example/campusfeed/createEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class createEvent extends Activity
public EditText title, desc, locationDetails;
public Spinner location;
public File poster = null;
public Button upPoster,upHandout;
public File handout = null;
public static Button setTime,setDate;

Expand All @@ -59,8 +60,8 @@ public void onCreate(Bundle savedInstanceState)
locationDetails = (EditText) findViewById(R.id.eventLocationDetails);
setTime = (Button) findViewById(R.id.setTime);
setDate = (Button) findViewById(R.id.setDate);
Button upPoster = (Button) findViewById(R.id.button1);
Button upHandout = (Button) findViewById(R.id.button2);
upPoster = (Button) findViewById(R.id.button1);
upHandout = (Button) findViewById(R.id.button2);
setTime.setOnClickListener(new View.OnClickListener()
{
public void onClick(View v)
Expand Down Expand Up @@ -129,6 +130,7 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data)
{
handout = FileUtils.getFile(uri);
}
upHandout.setText(handout.getName());
}
break;
case 00012:
Expand All @@ -145,8 +147,7 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data)
{
poster = FileUtils.getFile(uri);
}
Toast.makeText(getApplicationContext(), poster.getName(),
Toast.LENGTH_SHORT).show();
upPoster.setText(poster.getName());
}
}
}
Expand Down Expand Up @@ -244,15 +245,14 @@ protected String doInBackground(String... params)
public void onPostExecute(String result)
{

p.setMessage("Finished!");
p.dismiss();
//Intent eventInfo = new Intent(createEvent.this, EventInfo.class);
// eventInfo.putExtra("eventId", result);
//finish();
p.setMessage("Finished!");
p.dismiss();
Intent eventInfo = new Intent(createEvent.this, EventInfo.class);
eventInfo.putExtra("eventId", result);
finish();
startActivity(eventInfo);


Toast.makeText(getApplicationContext(), result, Toast.LENGTH_LONG).show();
Toast.makeText(getApplicationContext(), result, Toast.LENGTH_LONG).show();


}

Expand Down

0 comments on commit 8428360

Please sign in to comment.