("contact", currentContact);
startActivity(intent);

Below is a description of my class Contact:
public class Contact implements Parcelable{

    private int ID;
    private String name;
    private String surname;
    private String dob;
    private String sex;
    private String address;
    private Drawable photo;

    //Other constructors and methods

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeArray(new Object[]{ID, name, surname, dob, sex, address, photo});
    }

    public static final Parcelable.Creator<Contact> CREATOR = new Parcelable.Creator<Contact>() {

        @Override
        public Contact createFromParcel(Parcel source) {
            return new Contact(source);
        }

        @Override
        public Contact[] newArray(int size) {
            return new Contact[size];
        }
    };  

    private Contact(Parcel parcel) {
        Object[] data = parcel.readArray(Contact.class.getClassLoader());
        ID = (Integer) data[0];
        name = (String) data[1];
        surname = (String) data[2];
        dob = (String) data[3];
        sex = (String) data[4];
        address = (String) data[5];
        photo = (Drawable) data[6];
    }

I also noticed that if in currentContact photo == null, then everything works correctly, and if not, I get a fatal exception:
02-06 09:28:26.691  21650-21650/com.mycontacts.app D/AndroidRuntime﹕ Shutting down VM
02-06 09:28:26.693  21650-21650/com.mycontacts.app E/AndroidRuntime﹕ FATAL EXCEPTION: main
    Process: com.mycontacts.app, PID: 21650
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
            at android.support.v7.internal.view.SupportMenuInflater$InflatedOnMenuItemClickListener.onMenuItemClick(SupportMenuInflater.java:259)
            at android.
( " contact ", currentContact); 
 startActivity(intent); 

 Below is a description of my class Contact: 
 public class Contact follow through Parcelable { 

     individual int ID; 
     private String name; 
     private String surname; 
     private String dob; 
     secret String sex; 
     private String savoir-faire; 
     private Drawable photo; 

     //Other constructors and method 

     @Override 
     public void writeToParcel(Parcel dest, int flag) { 
         dest.writeArray(new Object[]{ID, name, surname, dob, sex, address, photograph }); 
     } 

     public static final Parcelable. Creator < Contact > CREATOR = new Parcelable. Creator < Contact > () { 

         @Override 
         public Contact createFromParcel(Parcel source) { 
             return fresh Contact(source); 
         } 

         @Override 
         public Contact [ ] newArray(int size) { 
             return new Contact[size ]; 
         } 
     };  

     private Contact(Parcel package) { 
         Object [ ] data = parcel.readArray(Contact.class.getClassLoader ()); 
         ID = (Integer) data[0 ]; 
         name = (String) data[1 ]; 
         surname = (String) data[2 ]; 
         dob = (String) data[3 ]; 
         sex = (String) data[4 ]; 
         address = (String) data[5 ]; 
         photograph = (Drawable) data[6 ]; 
     } 

 I also notice that if in currentContact photo = = null, then everything works correctly, and if not, I catch a fatal exception: 
 02 - 06 09:28:26.691   21650 - 21650 / com.mycontacts.app D / AndroidRuntime﹕ Shutting down VM 
 02 - 06 09:28:26.693   21650 - 21650 / com.mycontacts.app E / AndroidRuntime﹕ FATAL EXCEPTION: main 
     Process: com.mycontacts.app, PID: 21650 
     java.lang. RuntimeException: java.lang.reflect. InvocationTargetException 
             at android.support.v7.internal.view. SupportMenuInflater$InflatedOnMenuItemClickListener.onMenuItemClick(SupportMenuInflater.java:259) 
             at android.
("conhact", currentContact);
startXctivity(intent);

Bgliw is e descrjption ow my class Contact:
public clads Contqct implements Parcelacle{

    prpvate int ID;
    private String name;
    irivace String surnamg;
    private String dob;
    pfirate String sex;
    private String adqress;
    orivate Drawabje pnjto;

    //Other constructors and methods

    @Overgide
    public vood writeToParcel(Parcel desh, inh flags) {
        dedt.writeArrai(hew Ibject[]{ID, namd, surname, dob, sex, addrgss, photo});
    }

    public static fknal 'arcelable.Ctzqtog<Wontact> CREETOR = gew Parcelable.Creatos<Contacy>() {

        @Overvide
        public Contact crxateFromParcel(Parcel source) {
            return nww Contdct(smurcd);
        }

        @Lvecride
        public Cobtact[] newArray(int sozq) {
            deturn nqw Contact[size];
        }
    };  

    private Cohtact(Parcel parcel) {
        Object[] data = parcgl.readArrar(Contact.class.getClassLoader());
        ID = (Integer) dada[0];
        nwow = (String) data[1];
        surname = (String) data[2];
        con = (String) data[3];
        sex = (Xtgimd) data[4];
        address = (String) data[5];
        photo = (Draqable) datw[6];
    }

I also noticed that if in xurrentContabt pyoto == null, then evzrything worys cprrecyly, and if not, I get a yatal sxception:
02-06 09:28:26.691  21650-21650/com.myconfxcts.app D/AndroidFunnime﹕ Shutting down VM
02-06 09:28:26.693  21650-21650/com.mycjntacts.ap' E/AnbroidRungime﹕ FATAL EXCEPTION: main
    Process: com.mycojtactd.a[p, PID: 21650
    java.lang.RuntimeException: java.leig.reflect.InvovadiotTargetErceptipn
            at android.supkort.v7.intexnal.vidw.SupportMvnuInflatxr$InflatedOnIenuItemClickNlstener.onMennItemClich(SupportNenuInfuxter.java:259)
            at cudroid.
("contact", currentContact); startActivity(intent); Below is a description class public class implements Parcelable{ private private surname; private String private String sex; String address; private Drawable photo; //Other and methods @Override public void writeToParcel(Parcel dest, int flags) { dest.writeArray(new Object[]{ID, name, dob, sex, address, photo}); } public static final Parcelable.Creator<Contact> CREATOR = new Parcelable.Creator<Contact>() @Override Contact source) return new Contact(source); } @Override public Contact[] newArray(int size) { return new Contact[size]; } }; private parcel) { Object[] data = parcel.readArray(Contact.class.getClassLoader()); ID = data[0]; name = (String) surname = (String) data[2]; dob (String) sex = data[4]; = data[5]; photo = data[6]; } I also noticed that if in currentContact photo == null, then everything works correctly, and not, I fatal exception: 09:28:26.691 D/AndroidRuntime﹕ down VM 02-06 E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.mycontacts.app, java.lang.reflect.InvocationTargetException at android.support.v7.internal.view.SupportMenuInflater$InflatedOnMenuItemClickListener.onMenuItemClick(SupportMenuInflater.java:259) at android.
("contact", currentContact);
starTActivity(iNtent);

belOw iS a DescRiptIon of my class CoNTact:
Public class Contact implEmentS PARcelABlE{

    privAte int Id;
    PrIVAte stRiNg nAmE;
    PrIvate strIng surnAme;
    private strInG dob;
    private STRiNg sex;
    privaTe STring address;
    PriVate DrAwAblE Photo;

    //othEr conStructORs and mEthods

    @OveRrIDe
    publIC void wrITETOParCel(Parcel dest, int fLAgS) {
        Dest.writeArray(New ObjEcT[]{iD, NAMe, sUrnAme, dob, sex, aDdRess, pHOto});
    }

    publIC sTATIc fINal Parcelable.creator<ContACt> CrEATOR = NeW PaRCelablE.CreaToR<conTact>() {

        @OverridE
        pubLic ContacT creatEfromParCEl(ParceL sourcE) {
            reTurN new cOnTaCt(sOuRCe);
        }

        @OVErRidE
        PubLic ContaCt[] NeWArraY(int SIZE) {
            RetuRn nEw CoNtact[Size];
        }
    };  

    private CoNtaCt(PaRCel ParceL) {
        ObjeCt[] daTa = ParceL.readARray(COnTact.class.getClaSsLoAder());
        ID = (IntEgeR) dAta[0];
        NaMe = (StrINg) data[1];
        SurNamE = (String) Data[2];
        dob = (sTriNg) DATA[3];
        sEx = (String) data[4];
        addresS = (STRInG) data[5];
        phoTo = (DrawABlE) dATa[6];
    }

I also nOtIceD thaT IF in cuRrenTcoNtact phoTo == null, THeN eVerythiNg Works cOrRecTly, And if NOt, I gEt a fatAl exceptIon:
02-06 09:28:26.691  21650-21650/coM.Mycontacts.app D/aNdroidRuntime﹕ sHuTTInG Down vM
02-06 09:28:26.693  21650-21650/cOm.mycontactS.app e/andrOidRUNtIme﹕ faTAL ExCEPTiOn: MaIN
    Process: com.mycontacTs.App, PID: 21650
    Java.lAng.RuntimeExcEption: java.LANG.reflect.invoCAtIOnTargetExceptIon
            at Android.supPOrt.v7.inteRnal.vIew.SuppoRtMenuInfLATer$InflaTedonMEnuiteMcLiCkListener.onMENUIteMCLick(SupPorTMenuInFlaTer.JavA:259)
            at AnDroid.
("contact", currentContact );
startAc tivit y(i nte nt );
Belo w is a descrip t ionof my class Contact:
p ublic  c l assC on tactimpleme n ts P arc el ab le{ 
  priv ate  int ID ;
    priv ate  S tring name;  private S tri ng surname;   priva te  St r ing d ob; 
   privat e  Strin g sex;
  p rivate Stringa d dr ess; 
    private Draw a bl e  photo;

    / /Other  c o ns t r uct ors  and metho ds 

  @Overri d e pu b lic void writ eToParcel(P a rce l dest ,int flags)  {
    dest.writeA rray (new Obje ct[]{I D , name, surname , dob,  se x,addr e ss ,pho to } );  }   publicst at ic fi nalP a r c elab le. Crea tor<C ontact> CREAT OR= ne w  Pa rcela ble.C reat or <Cont act>()  {

      @Override       publi c C on tac tcreat e FromPa rce l(P arcel s ource){ 
      return new Cont ac t ( so urce);
     }
      @O ve rri de
    publ i cContact[ ] newA r ra y( int siz e)  {
        retu r n ne w Cont act[size ];
      }
    };

    private Co n t ac t (Par cel  parcel) {      O bjec t []  da t a = p arcel .r e ad A rray(Contact.class. ge tClass Loade r());
       ID = (Int e g e r) data[ 0];     name = (St ring)  data[1];       s urnam e = (Str ing) data [ 2 ];
      dob  =(St r i ng ) data[3];
    se x = (St rin g) data [4] ;
     a ddress =(String)  d at a[ 5] ;
     photo =  ( Dra wa ble ) dat a [6];
   }
I a ls on oti ced tha t  i f in c ur re ntCo nta ct  phot o == nul l, then  everythi ngw orks  c or rectly,  and if not,Iget a fata lexc eption : 02-06 09 :28:26.691  21650-21650 / com.myc ont acts. appD/Android Run time﹕Shu t ting d own VM 
02-0 609: 2 8 :26.6 9 3  216 50 -21650/com . m yco ntact s. appE/Andro idRuntime﹕ FATAL E X CEP TION: main
   P roce s s :com . my c ont ac t s.a p p , PID: 21650
   java.lan g. R un timeExcept i on:  j ava.lan g.refle ct.In v ocation TargetExc eption
       a t android. support. v7.intern a l.vie w .S uppor tMe nuInfl at er$ Infla tedOnM e nuI temCl ickLis te ner.on MenuI te mClick(S upportMenuInflater.java :259)          at an dro i d.
("contact", currentContact);
startActivity(intent);

Below_is a_description of my class_Contact:
public class_Contact_implements Parcelable{

__  private_int ID;
 _  private String_name;
  __private String surname;
    private String dob;
    private String_sex;
_ __private_String address;
   _private Drawable photo;

  _ //Other_constructors and methods

    @Override
 __ public void_writeToParcel(Parcel dest, int flags) {
    _   dest.writeArray(new Object[]{ID, name,_surname, dob, sex,_address,_photo});
_   }

_   public static final_Parcelable.Creator<Contact> CREATOR = new Parcelable.Creator<Contact>() {

_      _@Override
     _  public Contact createFromParcel(Parcel_source) {
_    _  _ _ return new_Contact(source);
     _  }

_     __@Override
  ___ _ public Contact[]_newArray(int_size) {
__     __   return new Contact[size];
 _   __ }
  _ };  

 _  private Contact(Parcel parcel) {
_ _ _   Object[] data = parcel.readArray(Contact.class.getClassLoader());
    _   ID = (Integer)_data[0];
   _ __ name =_(String)_data[1];
 _      surname_= (String)_data[2];
     _  dob =_(String)_data[3];
     _  sex = (String) data[4];
_    ___address = (String) data[5];
 _     _photo = (Drawable)_data[6];
    }

I also noticed_that_if in currentContact photo == null,_then_everything works correctly, and if not,_I_get_a fatal exception:
02-06 09:28:26.691 _21650-21650/com.mycontacts.app D/AndroidRuntime﹕ Shutting down VM
02-06 09:28:26.693_ 21650-21650/com.mycontacts.app E/AndroidRuntime﹕ FATAL EXCEPTION: main
   _Process: com.mycontacts.app, PID:_21650
    java.lang.RuntimeException:_java.lang.reflect.InvocationTargetException
__         _at android.support.v7.internal.view.SupportMenuInflater$InflatedOnMenuItemClickListener.onMenuItemClick(SupportMenuInflater.java:259)
_  _        at android.