Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Whats the best way to initialize classes in the activity lifecycle

$
0
0

Hello,
I come from a Desktop background and I think my approach with my android app reflects that.
My App basically consists of one Mainactivity which holds amongst other things a tcp and bluetooth member. The problem is that every time the activity is recreated the members are reset and everything will be restarted. Is there a way to keep my tcp and bluetooth instances through the lifetime of my app and not my activity.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>