Hi Siva,
Let your main activity is Activity1.
You want first time Registration Activity.
Create a pseudo Activity2 (which is your main and launcher activity), check
the validation.
if(BooleanReigstraitonActivity completed)
{
startActivity(Activity1)
}
else
{
startAcitivity(RegistrationActivity)
}
And at RegistrationActivity, on save/submit button create a static variable
boolean BooleanReigstraitonActivity set it to true
thats it.
On Mon, Apr 18, 2011 at 10:58 AM, Siva Kannabiran <[email protected]>wrote:
> i have created an app, there i have an activity for registration purpose. I
> want the particular activity to be shown for the the first time when the app
> is been launched in a device and in the next time of use the activity should
> not be viewed. How to do this, please help me with an example code....
>
> --
> Siva Shankar K
>
> --
> 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
--
Thanks & Regards
Rakesh Kumar Jha
Software Developer
Symphony Services Corp (India) Pvt Ltd
Bangalore
(O) +918030274295
(R) +919886336619
--
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