In the main activity, should I place the EULA check at the very
top, before the license check? Or should I place it after the
license check, in what would normally have been in that spot
without the license check, i.e., the beginning of the app's
actual start-up code?
In other words, given the following:
public class DroidGrainDB extends Activity implements OnItemClickListener {
private static final String BASE64_PUBLIC_KEY = ".......";
private static final byte[] SALT = new byte[] { ...... };
private TextView mStatusText;
private Button mCheckLicenseButton;
private LicenseCheckerCallback mLicenseCheckerCallback;
private LicenseChecker mChecker;
// A handler on the UI thread.
private Handler mHandler;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// SHOULD "Eula.show(this);" GO HERE, BEFORE THE LICENSE CHECK?
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.main);
// LOTS OF CODE TO CHECK THE LICENSE
@Override
public void onItemClick(AdapterView arg0, View v, int idx, long arg3) {
int position;
// OR, SHOULD "Eula.show(this);" GO HERE, AFTER THE LICENSE CHECK?
// (assuming the license check ever decides not to just sit there
// and display "Check license" forever like it's doing now.....)
switch(idx) {
// AND SO ON, TO THE END OF THE DroidGrainDB Activity
Which of the two places I marked above does it belong in? I currently
have it at the top, but should I move it to after the license is
verified (again, that's assuming that the license check ever decides
not to just sit there forever, displaying "Check license" forever,
like it's doing now)?
Thanks,
--jim
--
73 DE N5IAL (/4) MiSTie #49997 < Running FreeBSD 7.0 >
[email protected] ICBM/Hurr.: 30.44406N 86.59909W
Point Lobos Photography Set 1 (Photo-posters): http://jdgapps.com
Saw something on TV about Psych-os.
Hmmmm, Psych OS. Perhaps the next freeware OS.... --me
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en