android - How to list all the KEYS packed in a bundle? -
i tried below code, still did not find method lists contained keys in bundle.
javacode:
private void unpackbundle() { // todo auto-generated method stub set <string> mbundlekeysset = this.mbundle.keyset(); int size = mbundlekeysset.size(); toast.maketext(getapplicationcontext(), size+" keys",toast.length_long).show(); if ( mbundlekeysset.iterator().hasnext() ) { //here should display list of contained keys //in bundle } }
actually, found answer:
private void unpackbundle() { // todo auto-generated method stub set <string> mbundlekeysset = this.mbundle.keyset(); int size = mbundlekeysset.size(); toast.maketext(getapplicationcontext(), size+" keys",toast.length_long).show(); toast.maketext(getapplicationcontext(), mbundlekeysset.tostring() ,toast.length_long).show();
}
Comments
Post a Comment