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

The following examples show how to use android.os.Parcel#createCharArray() . 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
Source Project: paperparcel   File: StaticAdapters.java    License: Apache License 2.0 4 votes vote down vote up
@Nullable @Override public char[] readFromParcel(@NonNull Parcel source) {
  return source.createCharArray();
}
 
Example 2
Source Project: parceler   File: NonParcelRepository.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public Character nullSafeFromParcel(Parcel parcel) {
    return parcel.createCharArray()[0];
}