Commit c1955619 authored by RAHUL SHARMA's avatar RAHUL SHARMA

Modified CreateEvent

parent 6ffbab0d
......@@ -100,10 +100,6 @@ public class CreateEventActivity extends AppCompatActivity {
// createNewEvent(name,venue,date,time,description,going,interested,id,parent,url);
createNewEvent(name,venue,date,time,description,going,interested,id,parent);
uploadImage(name);
// String url = fetchUrl(name);
// System.out.println("*********************bahar***********************************");
// System.out.println(url);
// System.out.println("********************************************************");
}
});
......@@ -115,13 +111,6 @@ public class CreateEventActivity extends AppCompatActivity {
}
});
// uploadImage.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
//
// }
// });
}
@Override
......@@ -138,7 +127,11 @@ public class CreateEventActivity extends AppCompatActivity {
ref.putFile(filePath).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {
@Override
public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
System.out.println("*****************************************************");
System.out.println("*****************************************************");
System.out.println(taskSnapshot);
System.out.println("****************************************************");
System.out.println("*****************************************************");
}
})
.addOnFailureListener(new OnFailureListener() {
......
......@@ -45,21 +45,21 @@ public class EventDescriptionActivity extends AppCompatActivity {
setContentView(R.layout.activity_event_description);
// Toast.makeText(getApplicationContext(),getIntent().getStringExtra("eventNameClicked"), Toast.LENGTH_SHORT).show();
eventNameClicked = getIntent().getStringExtra("eventNameClicked");
initRecyclerView();
// initRecyclerView();
fetchEventDescription();
// displayEventDescription();
}
private void initRecyclerView() {
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
recyclerView.setLayoutManager(linearLayoutManager);
// myEventAdapter = new MyEventAdapter();
// recyclerView.setAdapter(myEventAdapter);
setSupportActionBar(findViewById(R.id.toolbar));
setTitle("Clicked Event");
}
// private void initRecyclerView() {
// LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
// recyclerView.setLayoutManager(linearLayoutManager);
//// myEventAdapter = new MyEventAdapter();
//// recyclerView.setAdapter(myEventAdapter);
//
// setSupportActionBar(findViewById(R.id.toolbar));
// setTitle("Clicked Event");
// }
private void displayEventDescription() {
System.out.println("************************************************");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment