Android examples for android.os:Bundle
get Float from a list of Bundle
import android.os.Bundle; import android.os.Parcelable; import java.util.ArrayList; public class Main{ public static Float getFloat(String key, Bundle... bundles) { if (bundles != null) { for (Bundle bundle : bundles) { if (bundle != null && bundle.containsKey(key)) { return bundle.getFloat(key); }// w ww . j a v a 2s .c o m } } return null; } }