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

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -