Android examples for android.os:Bundle
Check if Bundle contains key by Indexes
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; } }