Code example for Parcel

Methods: readIntreadSerializablereadString

0
        context = _context;
    } 
     
    public Task(Parcel in) {
        context = null;
        name = in.readString();
        description = in.readString();
        due_time = (Date) in.readSerializable();
        if (in.readInt() == 1)
            has_due_time = true;
        else  
            has_due_time = false;
        location_name = in.readString();
        int lat = in.readInt();
        int lon = in.readInt();
        location = new GeoPoint(lat, lon);
        if (in.readInt() == 1)
            has_location = true;
        else  
            has_location = false;
        remind_time = in.readLong();
        remind_distance = in.readInt();
        task_id = in.readInt();
    } 
     
    public void set_context(Context _context) {
        context = _context;
    } 
Experience pair programming with AI  Get Codota for Java
4
CodeRank