Code example for Parcel

Methods: createIntArraycreateStringArrayreadIntreadMap

0
	 * @return The MTKAdapter object which is created from parcel 
	 */ 
	public static MTKAdapter readMTKAdapterOrNullFromParcel(Parcel in)
	{ 
		ArrayList<HashMap<String, Object>> data = new ArrayList<HashMap<String,Object>>();
		int num = in.readInt();
		for(int i=0;i<num;i++)
		{ 
			HashMap<String, Object> map = new HashMap<String, Object>();
			in.readMap(map, MTKAdapter.class.getClassLoader());
			data.add(map);
		} 
		int []r = in.createIntArray();
		String []mFrom = in.createStringArray();
		int []mTo = in.createIntArray();
 
		int resource=in.readInt();
 
		MTKAdapter ret=new MTKAdapter(data,r,mFrom,mTo);		
		return ret;
	} 
 
Connect your IDE to all the code out there  Get Codota for Java