HOW TO BUILD A SWITCH

+1 SK KS · November 12, 2015
Any ideas on how to build a switch that makes functionality build in app to turn off and on? For example you buy credit and you can use that credit for 30 days and after 30 days you lose the ability to use credit. Other example, you buy credit and when the credit is gone you cant use the service. Any ideas where to look for code? 

Post a Reply

Replies

Oldest  Newest  Rating
0 Milan Obrenovic · November 12, 2015
yeah, try looking for the code in your brain.
0 Gary Whitney · November 13, 2015
Try using the built in Shared Preferences, to store cookie like information. Then have your app check the preference on startup.
Check out Bucky's videos 65 and 66 to get you started.
0 SK KS · November 14, 2015
Gary Whitney, does that mean if application is always on, the functionality will run indefinitely?
  • 1

Java / Android Development

107,103 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator