Android examples for android.os:Bundle
get Double from a list of Bundle
import android.os.Bundle; import android.os.Parcelable; import java.util.ArrayList; public class Main{ public static Double getDouble(String key, Bundle... bundles) { if (bundles != null) { for (Bundle bundle : bundles) { if (bundle != null && bundle.containsKey(key)) { return bundle.getDouble(key); }/*from w w w. j a v a2s .com*/ } } return null; } }