Code example for Parcel

Methods: readInt, readStrongBinder

0
 
    public CursorWindow(Parcel source,int foo) {
    	 
    	super(true); 
    	 
        IBinder nativeBinder = source.readStrongBinder();
        mStartPos = source.readInt();
 
        native_init(nativeBinder);
    } 
 
    /** Get the binder for the native side of the window */ 
    private native IBinder native_getBinder();
 
    /** Does the native side initialization for an empty window */ 
    private native void native_init(boolean localOnly);
 
    /** Does the native side initialization with an existing binder from another process */ 
    private native void native_init(IBinder nativeBinder);
 
    @Override