Code example for RemoteViews

Methods: writeToParcel

0
try { 
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(appWidgetId);
if ((views!=null)) {
_data.writeInt(1);
views.writeToParcel(_data, 0);
} 
else { 
_data.writeInt(0);
} 
mRemote.transact(Stub.TRANSACTION_updateAppWidget, _data, null, IBinder.FLAG_ONEWAY);
} 
finally { 
_data.recycle();
} 
} 
public void providerChanged(int appWidgetId, android.appwidget.AppWidgetProviderInfo info) throws android.os.RemoteException
{ 
android.os.Parcel _data = android.os.Parcel.obtain();
try { 
Contextual code suggestions in your IDE  Get Codota for Java