put Float into Bundle - Android Android OS

Android examples for Android OS:Bundle Put

Description

put Float into Bundle

Demo Code


//package com.book2s;
import android.os.Bundle;

public class Main {
    public static Bundle putFloat(Bundle bundle, String key, float value) {
        if (bundle == null) {
            bundle = new Bundle();
        }/*from  w ww . j  av a2  s. c  o  m*/
        bundle.putFloat(key, value);
        return bundle;
    }
}

Related Tutorials