Hi TreKing,
I m using this in onCreate method, but it show me error Force to
close every time when the activity start, but if i use it at the end of
onCreate it executed but also show force to close. what's the resone,
here the code i m using.
settings = getSharedPreferences("shared_pr", 0);
if (preferenceIsSet())
{
Intent intent = new Intent(RegistrationActivity.this,
VideoComponent.class);
startActivity(intent);
finish();
}
Thanks and regards,
umer
From: [email protected]
Date: Thu, 22 Mar 2012 15:31:17 -0500
Subject: Re: [android-developers] one time Registration after installation of
an application??
To: [email protected]
On Thu, Mar 22, 2012 at 3:07 PM, Muhammad UMER <[email protected]>
wrote:
My registration activity show only one time, how can i hide this activity
after when the user registered to the application mean this activity will not
show to user.
Save a preference to indicate whether to show it or not. Then,
if (preferenceIsSet()){ startNewActivity();
finish();}
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
--
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
--
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