本文整理了Java中android.content.Intent.writeToParcel()
方法的一些代码示例,展示了Intent.writeToParcel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Intent.writeToParcel()
方法的具体详情如下:
包路径:android.content.Intent
类名称:Intent
方法名:writeToParcel
暂无
代码示例来源:origin: Marswin/MarsDaemon
mServiceData.writeStrongBinder(null);
intent.writeToParcel(mServiceData, 0);
mServiceData.writeString(null);
代码示例来源:origin: Marswin/MarsDaemon
mServiceData.writeStrongBinder(null);
intent.writeToParcel(mServiceData, 0);
mServiceData.writeString(null);
代码示例来源:origin: Marswin/MarsDaemon
intent.writeToParcel(mBroadcastData, 0);
mBroadcastData.writeString(intent.resolveTypeIfNeeded(context.getContentResolver()));
mBroadcastData.writeStrongBinder(null);
代码示例来源:origin: stackoverflow.com
Intent intent = ....
... do your intent and fill with the URI data.
Parcel parcel = Parcel.obtain();
intent.writeToParcel(parcel, 0);
int size = parcel.dataSize(); // HERE IS THE NUMBER YOU WANT TO CHECK
parcel.recycle(); // don't forget to return the parcel to the system
parcel = null;
代码示例来源:origin: msdx/AndroidSnippet
public void writeToParcel(Parcel dest, int parcelableFlags) {
super.writeToParcel(dest, parcelableFlags);
}
代码示例来源:origin: klinker24/Android-Blur-Launcher
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(requestCode);
dest.writeInt(resultCode);
if (data != null) {
dest.writeInt(1);
data.writeToParcel(dest, flags);
} else {
dest.writeInt(0);
}
}
代码示例来源:origin: klinker24/launcher3
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(requestCode);
dest.writeInt(resultCode);
if (data != null) {
dest.writeInt(1);
data.writeToParcel(dest, flags);
} else {
dest.writeInt(0);
}
}
代码示例来源:origin: enricocid/LaunchEnr
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(requestCode);
dest.writeInt(resultCode);
if (data != null) {
dest.writeInt(1);
data.writeToParcel(dest, flags);
} else {
dest.writeInt(0);
}
}
代码示例来源:origin: MoMoWait/LeanbackLauncher
public void writeToParcel(Parcel out, int flags) {
out.writeString(this.mAccount);
out.writeString(this.mCredentialsString);
if (this.mCredentialsIntent != null) {
out.writeInt(1);
this.mCredentialsIntent.writeToParcel(out, 0);
return;
}
out.writeInt(0);
}
代码示例来源:origin: derry/delion
/**
* Returns how large the Intent will be in Parcel form, which is helpful for gauging whether
* Android will deliver the Intent instead of throwing a TransactionTooLargeException.
*
* @param intent Intent to get the size of.
* @return Number of bytes required to parcel the Intent.
*/
public static int getParceledIntentSize(Intent intent) {
Parcel parcel = Parcel.obtain();
intent.writeToParcel(parcel, 0);
return parcel.dataSize();
}
代码示例来源:origin: xfmax/BasePedo
mServiceData.writeStrongBinder(null);
intent.writeToParcel(mServiceData, 0);
mServiceData.writeString(null);
代码示例来源:origin: xfmax/BasePedo
mServiceData.writeStrongBinder(null);
intent.writeToParcel(mServiceData, 0);
mServiceData.writeString(null);
代码示例来源:origin: stephen8341/KeepProcLive
mServiceData.writeStrongBinder(null);
intent.writeToParcel(mServiceData, 0);
mServiceData.writeString(null);
代码示例来源:origin: stephen8341/KeepProcLive
mServiceData.writeStrongBinder(null);
intent.writeToParcel(mServiceData, 0);
mServiceData.writeString(null);
代码示例来源:origin: xfmax/BasePedo
intent.writeToParcel(mBroadcastData, 0);
mBroadcastData.writeString(intent.resolveTypeIfNeeded(context.getContentResolver()));
mBroadcastData.writeStrongBinder(null);
代码示例来源:origin: stephen8341/KeepProcLive
intent.writeToParcel(mBroadcastData, 0);
mBroadcastData.writeString(intent.resolveTypeIfNeeded(context.getContentResolver()));
mBroadcastData.writeStrongBinder(null);
内容来源于网络,如有侵权,请联系作者删除!