I’m following this tutorial for adding EULA to my Android application, but i have two problems:
1) My app is based on widget and i would like to show my EULA as soon as widget is started. Is there any “onCreate” method for widgets?
2) If user refuse EULA, i would like to close my app. I’m C# programmer, so i don’t know if there’s any “Exit()” method for Android apps. How to forcefully close my app without user’s action?
I’m following this tutorial for adding EULA to my Android application, but i have
Share
There isn’t an
onCreate()per se, but there is a way to show an activity when your widget is first added. One way of doing this is the following.In your AppWidget provider XML file be sure to add as a property of
appwidget-provider:and don’t forget to declare
your.eula.activityin yourAndroidManifest.xmlAnd in
your.eula.activity‘sonCreate()you should call