Check if Bundle contains key by Indexes - Android android.os

Android examples for android.os:Bundle

Description

Check if Bundle contains key by Indexes

Demo Code

import android.os.Bundle;

public class Main{

    public static int countIndexes(Bundle bundle, String baseKey) {
        int count = 0;
        while (bundle.containsKey(baseKey + count))
            count++;//from  w  w w. jav a2s .co m
        return count;
    }

}

Related Tutorials