示例#1
0
        public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j)
            throws RemoteException
        {
            switch (i)
            {
            default:
                return super.onTransact(i, parcel, parcel1, j);

            case 1598968902: 
                parcel1.writeString("com.google.android.gms.location.ILocationListener");
                return true;

            case 1: // '\001'
                parcel.enforceInterface("com.google.android.gms.location.ILocationListener");
                break;
            }
            if (parcel.readInt() != 0)
            {
                parcel = (Location)Location.CREATOR.createFromParcel(parcel);
            } else
            {
                parcel = null;
            }
            onLocationChanged(parcel);
            return true;
        }
 public boolean onTransact(
     int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2) {
   switch (paramInt1) {
     default:
       return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2);
     case 1598968902:
       paramParcel2.writeString("com.google.android.gms.location.ILocationListener");
       return true;
   }
   paramParcel1.enforceInterface("com.google.android.gms.location.ILocationListener");
   if (paramParcel1.readInt() != 0) {}
   for (paramParcel1 = (Location) Location.CREATOR.createFromParcel(paramParcel1);
       ;
       paramParcel1 = null) {
     onLocationChanged(paramParcel1);
     return true;
   }
 }
 @Override
 public LocationAdapterData createFromParcel(Parcel p) {
   Location loc = Location.CREATOR.createFromParcel(p);
   String address = p.readString();
   return new LocationAdapterData(loc, address);
 }