Search in sources :

Example 16 with Photo

use of com.cmput301w18t05.taskzilla.Photo in project Taskzilla by CMPUT301W18T05.

the class ProfileFragment method editProfileClicked.

/**
 * Switch to EditProfile Activity
 * Send users information to the activity
 */
public void editProfileClicked() {
    Intent intent = new Intent(getActivity(), EditProfileActivity.class);
    intent.putExtra("Name", user.getName());
    intent.putExtra("Email", user.getEmail().toString());
    intent.putExtra("Phone", user.getPhone().toString());
    if (user.getPhoto() == null) {
        user.setPhoto(new Photo(""));
    }
    intent.putExtra("Photo", user.getPhoto().toString());
    startActivityForResult(intent, 1);
}
Also used : Intent(android.content.Intent) Photo(com.cmput301w18t05.taskzilla.Photo)

Aggregations

Photo (com.cmput301w18t05.taskzilla.Photo)12 ColorDrawable (android.graphics.drawable.ColorDrawable)5 ActionBar (android.support.v7.app.ActionBar)5 Intent (android.content.Intent)4 AppColors (com.cmput301w18t05.taskzilla.AppColors)4 LatLng (com.google.android.gms.maps.model.LatLng)4 Bitmap (android.graphics.Bitmap)3 Uri (android.net.Uri)3 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)3 View (android.view.View)3 EditText (android.widget.EditText)3 CustomOnItemClick (com.cmput301w18t05.taskzilla.CustomOnItemClick)3 EmailAddress (com.cmput301w18t05.taskzilla.EmailAddress)3 PhoneNumber (com.cmput301w18t05.taskzilla.PhoneNumber)3 RecyclerViewAdapter (com.cmput301w18t05.taskzilla.RecyclerViewAdapter)3 SupportMapFragment (com.google.android.gms.maps.SupportMapFragment)3 ByteArrayOutputStream (java.io.ByteArrayOutputStream)3 FileNotFoundException (java.io.FileNotFoundException)3 InputStream (java.io.InputStream)3 DialogInterface (android.content.DialogInterface)2