package adullact.publicrowdfunding;
-import java.util.List;
-
-import adullact.publicrowdfunding.controller.profile.preferences.preferencesFragment;
-import adullact.publicrowdfunding.controller.project.all.ListProjectsFragment;
-import adullact.publicrowdfunding.controller.project.all.MapFragment;
-import adullact.publicrowdfunding.controller.project.details.ProjectPagerFragment;
-import adullact.publicrowdfunding.controller.register.ConnexionFragment;
-import adullact.publicrowdfunding.model.exception.NoAccountExistsInLocal;
-import adullact.publicrowdfunding.model.local.callback.HoldToDo;
-import adullact.publicrowdfunding.model.local.ressource.Account;
-import adullact.publicrowdfunding.model.local.ressource.Funding;
-import adullact.publicrowdfunding.model.local.ressource.Project;
-import adullact.publicrowdfunding.model.local.ressource.Resource;
-import adullact.publicrowdfunding.model.local.ressource.User;
-import adullact.publicrowdfunding.model.local.utilities.Share;
-import adullact.publicrowdfunding.model.server.event.CreateEvent;
-import adullact.publicrowdfunding.views.SimpleLine;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import com.google.android.gms.maps.model.LatLng;
+import java.util.List;
+
+import adullact.publicrowdfunding.controller.profile.preferences.preferencesFragment;
+import adullact.publicrowdfunding.controller.project.add.addProjectFragment;
+import adullact.publicrowdfunding.controller.project.all.ListProjectsFragment;
+import adullact.publicrowdfunding.controller.project.all.MapFragment;
+import adullact.publicrowdfunding.controller.project.details.ProjectPagerFragment;
+import adullact.publicrowdfunding.controller.register.ConnexionFragment;
+import adullact.publicrowdfunding.model.exception.NoAccountExistsInLocal;
+import adullact.publicrowdfunding.model.local.callback.HoldToDo;
+import adullact.publicrowdfunding.model.local.ressource.Account;
+import adullact.publicrowdfunding.model.local.ressource.Funding;
+import adullact.publicrowdfunding.model.local.ressource.Project;
+import adullact.publicrowdfunding.model.local.ressource.User;
+import adullact.publicrowdfunding.model.local.utilities.Share;
+import adullact.publicrowdfunding.model.server.event.CreateEvent;
+import adullact.publicrowdfunding.views.SimpleLine;
+
/**
* @author Ferrand and Nelaupe
*/
.beginTransaction();
// ft.setCustomAnimations(R.anim.enter, R.anim.exit);
- Fragment fragment = new adullact.publicrowdfunding.controller.project.add.addProjectFragment();
+ Fragment fragment = new addProjectFragment();
ft.addToBackStack(null);
ft.replace(R.id.content_frame, fragment);
+ ft.replace(R.id.content_frame, fragment);
ft.commit();
closeDrawer();
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == 1) {
if (resultCode == RESULT_OK) {
+ Toast.makeText(
+ getBaseContext(),
+ "Patientez ...",
+ Toast.LENGTH_SHORT)
+ .show();
// Payement ok !
final String idProject = data.getStringExtra("idProject");
final String somme = data.getStringExtra("somme");
}
- });
+ @Override
+ public void errorAdministratorRequired() {
+ // TODO Auto-generated
+ // method stub
+ }
+ });
} catch (NoAccountExistsInLocal e) {
// TODO Auto-generated catch block
e.printStackTrace();