android - How to send a WifiP2pManager object though a Parcelable interface to another activity -


as title says, how can send wifip2pmanager , channel objects activity, if possible via parcelable interface.

i not fluent java , android sdk example code helpful.

thanks.

in case need share instance of p2p manager & channel activities, suggest think better ways on achieving task sending over.

one way done implement shared parts in other class can used in activities, example create new class extends application. implement wifip2pmanager , channel handling in it, mark application in manifest.

then in activity use getapplicationcontext() , cast class , use public functions fetch wifip2pmanager , channel objects.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -