Java Code Examples for android.os.Parcel#writeCharArray()

The following examples show how to use android.os.Parcel#writeCharArray() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
@Override
public void toParcel(char[] array, Parcel parcel) {
    if (array == null) {
        parcel.writeInt(NULL);
    } else {
        parcel.writeInt(array.length);
        parcel.writeCharArray(array);
    }
}
 
Example 2
Source Project: paperparcel   File: StaticAdapters.java    License: Apache License 2.0 4 votes vote down vote up
@Override public void writeToParcel(@Nullable char[] value, @NonNull Parcel dest, int flags) {
  dest.writeCharArray(value);
}
 
Example 3
Source Project: parceler   File: NonParcelRepository.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void nullSafeToParcel(Character input, Parcel parcel) {
    parcel.writeCharArray(new char[]{input});
}
 
Example 4
Source Project: TokenAutoComplete   File: Tag.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeCharArray(new char[]{prefix});
    dest.writeString(this.value);
}