Java Code Examples for android.os.Bundle.getDouble()

The following are Jave code examples for showing how to use getDouble() of the android.os.Bundle class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: SeafoodBerserker   File: FlyingItem.java   View Source Code Vote up 6 votes
public static FlyingItem create(Bundle bundle) {

        Bitmap bitmap = bundle.getParcelable("mBitmap");
        FlyingItem item2 = new FlyingItem(bitmap);

        item2.mX = bundle.getDouble("mX");
        item2.mXv = bundle.getDouble("mXv");
        item2.mY = bundle.getDouble("mY");
        item2.mYv = bundle.getDouble("mYv");
        item2.mSpinv = bundle.getDouble("mSpinv");
        item2.mSpin = bundle.getDouble("mSpin");
        item2.mBoom = bundle.getBoolean("mBoom");
        item2.mText = bundle.getString("mText");
        item2.fade = bundle.getBoolean("fade");

        item2.mPaint = new Paint();
        item2.mPaint.setColor(bundle.getInt("mPaintColor"));
        item2.mPaint.setAlpha(bundle.getInt("mPaintAlpha"));
        item2.mScale = bundle.getDouble("mScale");
        item2.mHit = bundle.getBoolean("mHit");
        item2.mValue = bundle.getInt("mValue");
        return item2;

    }
 
Example 2
Project: SciChart.Android.Examples   File: FifoChartsFragment.java   View Source Code Vote up 6 votes
@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    if (savedInstanceState != null) {
        t = savedInstanceState.getDouble("time");
        final ISciList<Double> xValues1 = savedInstanceState.getParcelable("xValues1");
        final ISciList<Double> yValues1 = savedInstanceState.getParcelable("yValues1");
        final ISciList<Double> xValues2 = savedInstanceState.getParcelable("xValues2");
        final ISciList<Double> yValues2 = savedInstanceState.getParcelable("yValues2");
        final ISciList<Double> xValues3 = savedInstanceState.getParcelable("xValues3");
        final ISciList<Double> yValues3 = savedInstanceState.getParcelable("yValues3");
        ds1.append(xValues1, yValues1);
        ds2.append(xValues2, yValues2);
        ds3.append(xValues3, yValues3);
    }
}
 
Example 3
Project: SciChart.Android.Examples   File: AnimatingLineChartFragment.java   View Source Code Vote up 6 votes
@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    if (savedInstanceState != null) {
        t = savedInstanceState.getDouble("time");
        yValue = savedInstanceState.getDouble("yValue");

        final double xVisibleRangeMin = savedInstanceState.getDouble("xVisibleRangeMin");
        final double xVisibleRangeMax = savedInstanceState.getDouble("xVisibleRangeMax");
        xVisibleRange.setMinMaxDouble(xVisibleRangeMin, xVisibleRangeMax);

        final ISciList<Double> xValues1 = savedInstanceState.getParcelable("xValues1");
        final ISciList<Double> yValues1 = savedInstanceState.getParcelable("yValues1");
        ds1.append(xValues1, yValues1);
    }
}
 
Example 4
Project: Protestr   File: CreateEventActivity.java   View Source Code Vote up 6 votes
@Override
public void restoreStates(@Nullable Bundle savedInstanceState) {
    Bundle mapViewSavedInstanceState = null;
    if (savedInstanceState != null) {
        eventBitmapIntent = savedInstanceState.getParcelable(EVENT_BITMAP_SAVED_STATE);
        updateEventImage(ImagePicker.getImageFromResult(this,  ImagePicker.PICK_IMAGE_REQUEST_CODE, RESULT_OK, eventBitmapIntent));
        year = savedInstanceState.getInt(YEAR_SAVED_STATE);
        month = savedInstanceState.getInt(MONTH_SAVED_SAVED_STATE);
        dayOfMonth = savedInstanceState.getInt(DAY_OF_MONTH_SAVED_STATE);
        hour = savedInstanceState.getInt(HOUR_SAVED_STATE);
        minutes = savedInstanceState.getInt(MINUTES_SAVED_STATE);
        latitude = savedInstanceState.getDouble(EVENT_LATITUDE_SAVED_STATE);
        longitude = savedInstanceState.getDouble(EVENT_LONGITUDE_SAVED_STATE);
        iso3 = savedInstanceState.getString(EVENT_ISO3_CODE_SAVED_STATE);
        addedUsers = savedInstanceState.getParcelableArrayList(ADDED_USERS_SAVED_STATE);
        mapViewSavedInstanceState = savedInstanceState.getBundle(MAP_VIEW_SAVED_STATE);
    } else {
        addedUsers = new ArrayList<>();
        addedUsers.add(PreferencesUtils.getLoggedUser(this));
    }

    if (mapView != null)
        mapView.onCreate(mapViewSavedInstanceState);

    tvAdmins.setText(getString(R.string.add_admins_with_number, addedUsers.size()));
}
 
Example 5
Project: react-native-leancloud-sdk   File: RNPushNotificationAttributes.java   View Source Code Vote up 6 votes
public RNPushNotificationAttributes(Bundle bundle) {
    id = bundle.getString(ID);
    message = bundle.getString(MESSAGE);
    fireDate = bundle.getDouble(FIRE_DATE);
    title = bundle.getString(TITLE);
    ticker = bundle.getString(TICKER);
    autoCancel = bundle.getBoolean(AUTO_CANCEL);
    largeIcon = bundle.getString(LARGE_ICON);
    smallIcon = bundle.getString(SMALL_ICON);
    bigText = bundle.getString(BIG_TEXT);
    subText = bundle.getString(SUB_TEXT);
    number = bundle.getString(NUMBER);
    sound = bundle.getString(SOUND);
    color = bundle.getString(COLOR);
    group = bundle.getString(GROUP);
    userInteraction = bundle.getBoolean(USER_INTERACTION);
    playSound = bundle.getBoolean(PLAY_SOUND);
    vibrate = bundle.getBoolean(VIBRATE);
    vibration = bundle.getDouble(VIBRATION);
    actions = bundle.getString(ACTIONS);
    tag = bundle.getString(TAG);
    repeatType = bundle.getString(REPEAT_TYPE);
    repeatTime = bundle.getDouble(REPEAT_TIME);
    ongoing = bundle.getBoolean(ONGOING);
}
 
Example 6
Project: JkShoppingCart   File: UseRedEnvelopeActivity.java   View Source Code Vote up 6 votes
/**
 * get intent to update ui
 * @author leibing
 * @createTime 2017/6/13
 * @lastModify 2017/6/13
 * @param
 * @return
 */
private void getIntentUpdateUi() {
    Bundle bundle = getIntent().getExtras();
    int redEnvelopePosition = -1;
    if (bundle != null){
        mData = (ArrayList<UseRedEnvelopeModel>) bundle.getSerializable(PAGE_INTENT_RED_ENVELOPE_LIST);
        originDiscountAmount = bundle.getDouble(PAGE_INTENT_ORIGIN_RED_ENVELOPE_VALUE);
        totalDiscountAmount = originDiscountAmount;
        redEnvelopePosition = bundle.getInt(PAGE_INTENT_RED_ENVELOPE_OPTIMAL_POSITION, -1);
    }
    // 更新数据源
    if (mAdapter != null)
        mAdapter.setData(mData);
    if (redEnvelopePosition != -1){
        itemCheck(redEnvelopePosition, true);
    }
}
 
Example 7
Project: AlarmWithL-T   File: ShowDateDialogFragment.java   View Source Code Vote up 5 votes
private void getDate(Bundle args) {
    mTitle     = args.getString( getString(R.string.key_title) );
    mContent   = args.getString( getString(R.string.key_content) );
    isLocation = args.getBoolean( getString(R.string.key_is_location) );
    mData      = args.getLong( getString(R.string.key_data), 0 );
    if ( isLocation ) {
        mLatitude  = args.getDouble( getString(R.string.key_latitude) );
        mLongitude = args.getDouble( getString(R.string.key_longitude) );
    }
}
 
Example 8
Project: OpenHomeAnalysis   File: OhaEnergyUseBillFragment.java   View Source Code Vote up 5 votes
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Bundle bundle = savedInstanceState != null ? savedInstanceState : this.getArguments();
    this.id = this.getArguments().getInt(PARAM_ID);
    this.fromDate = bundle.getLong(PARAM_FROM_DATE);
    this.toDate = bundle.getLong(PARAM_TO_DATE);
    this.kwhCost = bundle.getDouble(PARAM_KWH_COST);
    this.amountDays = (int) OhaHelper.getAmountDays(this.fromDate, this.toDate);
}
 
Example 9
Project: Rey-MusicPlayer   File: RangeSeekBar.java   View Source Code Vote up 5 votes
/**
 * Overridden to restore instance state when device orientation changes. This method is called automatically if you assign an id to the RangeSeekBar widget using the {@link #setId(int)} method.
 */
@Override
protected void onRestoreInstanceState(Parcelable parcel) {
    final Bundle bundle = (Bundle) parcel;
    super.onRestoreInstanceState(bundle.getParcelable("SUPER"));
    normalizedMinValue = bundle.getDouble("MIN");
    normalizedMaxValue = bundle.getDouble("MAX");
}
 
Example 10
Project: RxRemote   File: RemoteObservable.java   View Source Code Vote up 5 votes
/**
 * Reads and returns the correct type of data from the bundle
 */
@SuppressWarnings("unchecked")
private Object getData(Bundle remoteData, RemoteDataType dataType, String keyPrefix) {
    if (DEBUG) {
        Log.v(TAG, "Parsing datatype " + dataType);
    }
    switch (dataType) {
        case Parcelable:
            return remoteData.getParcelable(RemoteEventManager.REMOTE_DATA_KEY + keyPrefix);
        case Double:
            return remoteData.getDouble(RemoteEventManager.REMOTE_DATA_KEY + keyPrefix);
        case Float:
            return remoteData.getFloat(RemoteEventManager.REMOTE_DATA_KEY + keyPrefix);
        case Integer:
            return remoteData.getInt(RemoteEventManager.REMOTE_DATA_KEY + keyPrefix);
        case Long:
            return remoteData.getLong(RemoteEventManager.REMOTE_DATA_KEY + keyPrefix);
        case Byte:
            return remoteData.getByte(RemoteEventManager.REMOTE_DATA_KEY + keyPrefix);
        case Char:
            return remoteData.getChar(RemoteEventManager.REMOTE_DATA_KEY + keyPrefix);
        case Short:
            return remoteData.getShort(RemoteEventManager.REMOTE_DATA_KEY + keyPrefix);
        case String:
            return remoteData.getString(RemoteEventManager.REMOTE_DATA_KEY + keyPrefix);
        case Boolean:
            return (remoteData.getInt(RemoteEventManager.REMOTE_DATA_KEY + keyPrefix) == 1);
        case Parceler:
            return getParcelerData(remoteData, keyPrefix);
        case Remoter:
            return getRemoterData(remoteData, keyPrefix);
        case List:
            return getListData(remoteData, keyPrefix);

    }
    return null;
}
 
Example 11
Project: FilterBar   File: RangeSeekBar.java   View Source Code Vote up 5 votes
/**
 * Overridden to restore instance state when device orientation changes. This method is called automatically if you assign an id to the RangeSeekBar widget using the {@link #setId(int)} method.
 */
@Override
protected void onRestoreInstanceState(Parcelable parcel) {
    final Bundle bundle = (Bundle) parcel;
    super.onRestoreInstanceState(bundle.getParcelable("SUPER"));
    normalizedMinValue = bundle.getDouble("MIN");
    normalizedMaxValue = bundle.getDouble("MAX");
}
 
Example 12
Project: Rey-MusicPlayer   File: RangeSeekBar.java   View Source Code Vote up 5 votes
/**
 * Overridden to restore instance state when device orientation changes. This method is called automatically if you assign an id to the RangeSeekBar widget using the {@link #setId(int)} method.
 */
@Override
protected void onRestoreInstanceState(Parcelable parcel) {
    final Bundle bundle = (Bundle) parcel;
    super.onRestoreInstanceState(bundle.getParcelable("SUPER"));
    normalizedMinValue = bundle.getDouble("MIN");
    normalizedMaxValue = bundle.getDouble("MAX");
}
 
Example 13
Project: PaoMovie   File: RangeSeekBar.java   View Source Code Vote up 5 votes
/**
 * Overridden to restore instance state when device orientation changes.
 * This method is called automatically if you assign an id to the
 * RangeSeekBar widget using the {@link #setId(int)} method.
 */
@Override
protected void onRestoreInstanceState(Parcelable parcel) {
	final Bundle bundle = (Bundle) parcel;
	super.onRestoreInstanceState(bundle.getParcelable("SUPER"));
	normalizedMinValue = bundle.getDouble("MIN");
	normalizedMaxValue = bundle.getDouble("MAX");
}
 
Example 14
Project: FiveMinsMore   File: DetailDialog.java   View Source Code Vote up 5 votes
@Override
public Dialog onCreateDialog(Bundle values) {
    if (values != null){
        mTitle = values.getString("title");
        mLatLng = new LatLng(values.getDouble("latitude"), values.getDouble("longitude"));
    }

    // See the example: https://developer.android.com/guide/topics/ui/dialogs.html?hl=zh-tw#DialogFragment
    AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());

    LayoutInflater inflater = getActivity().getLayoutInflater();
    LinearLayout detailView = (LinearLayout) inflater.inflate(R.layout.view_cluster_item_detail, null);
    builder.setView(detailView);

    ((TextView) detailView.findViewById(R.id.title)).setText(mTitle);
    String coor_wgs84_d = ProjFuncs.latLng2DString(mLatLng, false);
    ((TextView) detailView.findViewById(R.id.wgs84_d)).setText(coor_wgs84_d);
    String coor_wgs84_dms = ProjFuncs.latLng2DmsString(mLatLng, false);
    ((TextView) detailView.findViewById(R.id.wgs84_dms)).setText(coor_wgs84_dms);
    String coor_twd97 = ProjFuncs.twd2String(ProjFuncs.latlon2twd97(mLatLng), "");
    ((TextView) detailView.findViewById(R.id.twd97)).setText(coor_twd97);
    String coor_twd67 = ProjFuncs.twd2String(ProjFuncs.latlon2twd67(mLatLng), "");
    ((TextView) detailView.findViewById(R.id.twd67)).setText(coor_twd67);

    detailView.findViewById(R.id.download_trk_file).setOnClickListener(this);

    return builder.create();
}
 
Example 15
Project: GitHub   File: Injector.java   View Source Code Vote up 4 votes
public Double getBoxedDouble(Bundle state, String key) {
    if (state.containsKey(key + baseKey)) {
        return state.getDouble(key + baseKey);
    }
    return null;
}
 
Example 16
Project: OpenHomeAnalysis   File: OhaEnergyUseDetailsActivity.java   View Source Code Vote up 4 votes
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_energy_use_details);
    getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
    Bundle bundle = getIntent().getExtras();
    this.beginDateTime = bundle.getLong(PARAM_BEGIN_DATE_TIME, 0);
    this.endDateTime = bundle.getLong(PARAM_End_DATE_TIME, 0);
    this.kwhCost = bundle.getDouble(PARAM_KWH_COST, 0.0);
    this.isShowLog = bundle.getBoolean(PARAM_SHOW_LOG, false);
    this.filterWatts = (FilterWatts) bundle.get(PARAM_FILTER_WATTS);
    this.wattsGreaterEqual = bundle.getDouble(PARAM_WATTS_GREATER_EQUAL);
    this.wattsLessEqual = bundle.getDouble(PARAM_WATTS_LESS_EQUAL);
    this.toolbar = (Toolbar) findViewById(R.id.toolbar);

    //Atualizar o título da tela
    String title = OhaHelper.formatDate(this.beginDateTime, "EEE, dd MMM yyyy");
    this.toolbar.setTitle(OhaHelper.formatCamelCase(title));
    setSupportActionBar(toolbar);
    ActionBar actionBar = getSupportActionBar();
    if (actionBar != null) {
        actionBar.setDisplayHomeAsUpEnabled(true);
    }

    this.titleEnergyUseWhValues = findViewById(R.id.titleEnergyUseWhValues);
    this.swipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipeRefreshLayout);
    this.recyclerView = (RecyclerView) this.findViewById(R.id.recyclerView);
    this.recyclerView.setLayoutManager(new LinearLayoutManager(this));
    //Instanciar o adaptador conforme o paramemto isShowLog
    if (this.isShowLog) {
        this.ohaEnergyUseAdapter = new OhaEnergyUseWattsAdapter(this);
    } else {
        this.ohaEnergyUseAdapter = new OhaEnergyUseWhAdapter(this, this.kwhCost, this);
    }
    this.recyclerView.setAdapter(this.ohaEnergyUseAdapter);

    this.floatingActionButton = (FloatingActionButton) findViewById(R.id.fab);
    this.floatingActionButton.setOnClickListener(this);
    this.swipeRefreshLayout.setOnRefreshListener(this);
    this.ohaEnergyUseLogHelper = new OhaEnergyUseLogHelper(this, this.beginDateTime, this.endDateTime, this.filterWatts, this.wattsGreaterEqual, this.wattsLessEqual);
}
 
Example 17
Project: android-state   File: InjectionHelper.java   View Source Code Vote up 4 votes
public double getDouble(Bundle state, String key) {
    return state.getDouble(key + mBaseKey);
}
 
Example 18
Project: Library-System-Android   File: Confirm.java   View Source Code Vote up 4 votes
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.confirm);

    //Reservations counter
    ArrayList<Transaction> transactions = new ArrayList<>(db.getAllTransactions());
    for(Transaction transaction : transactions){
        if(transaction.getTypeNumber()==1){reservation++;}
    }

    View test = findViewById(R.id.confirm_button);
    test.setOnClickListener(this);

    TextView main = (TextView) findViewById(R.id.main);

    //***GET PASSED INFO***
    Bundle extras= getIntent().getExtras();
    //PickUp
    String pickUpYear = extras.getString("pickUpYear");
    String pickUpMonth = extras.getString("pickUpMonth");
    String pickUpDay = extras.getString("pickUpDay");
    String pickUpHour = extras.getString("pickUpHour");
    String pickUpAmPm = extras.getString("pickUpAmPm");
    //DropOff
    String dropOffYear = extras.getString("dropOffYear");
    String dropOffMonth = extras.getString("dropOffMonth");
    String dropOffDay = extras.getString("dropOffDay");
    String dropOffHour = extras.getString("dropOffHour");
    String dropOffAmPm = extras.getString("dropOffAmPm");
    //Transaction
    String loggedUsername = extras.getString("username");
    String bookTitle = extras.getString("title");
    double rentalTotal = extras.getDouble("rentalTotal");

    //Transaction Date and time for Pickup
    String pickUpDateTime;
    pickUpDateTime = getMonthNumber(pickUpMonth) +"/" + pickUpDay + "/" + pickUpYear+ " (" + pickUpHour +" "+ pickUpAmPm + ")";
    //Transaction Date and time for Dropoff
    String dropOffDateTime;
    dropOffDateTime = getMonthNumber(dropOffMonth) +"/" + dropOffDay + "/" + dropOffYear + " (" + dropOffHour +" "+ dropOffAmPm + ")";


    //Add info for rental into details box
    NumberFormat formatter = NumberFormat.getCurrencyInstance();
    main.setText("");
    main.append("Username: " + loggedUsername + " \n");
    main.append("Pick Up/Date Time: " + pickUpDateTime + " \n");
    main.append("Return/Date Time: " + dropOffDateTime + " \n");
    main.append("Book Title: " + bookTitle + " \n");
    main.append("Reservation Number: " + (reservation+1) + " \n");
    main.append("Total Rental Cost: " + formatter.format(rentalTotal) + " \n");
}
 
Example 19
Project: Library-System-Android   File: Confirm.java   View Source Code Vote up 4 votes
public void onClick(View v) {

        if (v.getId() == R.id.confirm_button) {

            Intent I = new Intent(getApplicationContext(), MainActivity.class);

            ArrayList<Book> books = new ArrayList<>(db.getAllBooks());

            //***GET PASSED INFO***
            Bundle extras= getIntent().getExtras();
            //PickUp
            int pickUpDayOfYear = extras.getInt("pickUpDayOfYear");
            String pickUpYear = extras.getString("pickUpYear");
            String pickUpMonth = extras.getString("pickUpMonth");
            String pickUpDay = extras.getString("pickUpDay");
            String pickUpHour = extras.getString("pickUpHour");
            String pickUpAmPm = extras.getString("pickUpAmPm");
            //DropOff
            int dropOffDayOfYear = extras.getInt("dropOffDayOfYear");
            String dropOffYear = extras.getString("dropOffYear");
            String dropOffMonth = extras.getString("dropOffMonth");
            String dropOffDay = extras.getString("dropOffDay");
            String dropOffHour = extras.getString("dropOffHour");
            String dropOffAmPm = extras.getString("dropOffAmPm");
            //Transaction
            int rentalHours = extras.getInt("rentalHours");
            String loggedUsername = extras.getString("username");
            int loggedId = extras.getInt("id");
            String bookTitle = extras.getString("title");
            double rentalTotal = extras.getDouble("rentalTotal");

            //Transaction Date and time for Pickup
            String pickUpDateTime;
            pickUpDateTime = getMonthNumber(pickUpMonth) +"/" + pickUpDay + "/" + pickUpYear+ " (" + pickUpHour +" "+ pickUpAmPm + ")";
            //Transaction Date and time for Dropoff
            String dropOffDateTime;
            dropOffDateTime = getMonthNumber(dropOffMonth) +"/" + dropOffDay + "/" + dropOffYear + " (" + dropOffHour +" "+ dropOffAmPm + ")";


            //find the book in the array by title
            for(int i=0;i<books.size();i++){
                if(books.get(i).getTitle().equals(bookTitle)){
                    System.out.println("getAll This is the book by Title: " + books.get(i).getTitle());
                    String[] fifteen;

                    fifteen = books.get(i).getFifteen();

                    //Alter the array of the book for the rental days
                    for (int j = pickUpDayOfYear; j < dropOffDayOfYear+1; j++) {

                        fifteen[j] = "1";
                        //Set the string by passing the new array
                        books.get(i).setFifteenString(fifteen);
                    }

                    //Update the book table with the fifteenString
                    db.updateBook(books.get(i));
                }
            }

            //public Transaction(String username, int type, double rentalCost, String title, String date,
            //String time, String pickUpDate, String dropOffDate)

            //Create a timestamp
            TimeStamp timeStamp = new TimeStamp();
            //Create a new transaction
            Transaction transaction = new Transaction(loggedUsername, 1, rentalTotal, bookTitle, timeStamp.getDate(),
                    timeStamp.getTime(), pickUpDateTime, dropOffDateTime, pickUpDayOfYear, dropOffDayOfYear, (reservation+1));
            //System.out.println("TESTTESTTEST" + transaction.toString() + "USER: " + transaction.getUsername());

            //add transaction
            db.addTransaction(transaction);
            startActivity(I);
        }
    }
 
Example 20
Project: react-native-leancloud-sdk   File: RNPushNotificationAttributes.java   View Source Code Vote up 4 votes
/**
 * User to find notifications:
 * <p>
 * https://github.com/facebook/react-native/blob/master/Libraries/PushNotificationIOS/RCTPushNotificationManager.m#L294
 *
 * @param userInfo map of fields to match
 * @return true all fields in userInfo object match, false otherwise
 */
public boolean matches(ReadableMap userInfo) {
    Bundle bundle = toBundle();

    ReadableMapKeySetIterator iterator = userInfo.keySetIterator();
    while (iterator.hasNextKey()) {
        String key = iterator.nextKey();

        if (!bundle.containsKey(key))
            return false;

        switch (userInfo.getType(key)) {
            case Null: {
                if (bundle.get(key) != null)
                    return false;
                break;
            }
            case Boolean: {
                if (userInfo.getBoolean(key) != bundle.getBoolean(key))
                    return false;
                break;
            }
            case Number: {
                if ((userInfo.getDouble(key) != bundle.getDouble(key)) && (userInfo.getInt(key) != bundle.getInt(key)))
                    return false;
                break;
            }
            case String: {
                if (!userInfo.getString(key).equals(bundle.getString(key)))
                    return false;
                break;
            }
            case Map:
                return false;//there are no maps in the bundle
            case Array:
                return false;//there are no arrays in the bundle
        }
    }

    return true;
}