Single point of entry into application ?

by SLY » Sun, 08 Mar 2009 22:48:00 GMT


Sponsored Links
 Hi,
I have a major doubt regarding this.
Here is the scenario. My application has a password verification
screen to begin with , ie when the application is started this
activity is called first. Below is the androidmanifest entry for this
activity.

<application android:icon="@drawable/icon" android:label="@string/
app_name">
        <activity android:name=".VerifyPassword"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
.
.
.
more activities here
</application>

Suppose after entering the valid password the user is taken to the
homescreen [the password activity does a finish() , since if I dont
finish this activity the user can navigate back to this screen by
pressing the BACK key] of the app and then moves on to other
activities in the application. If the user now presses the HOME key
the application is paused. If the user navigates back to the
application by Longpressing the HOME key and clicking on the
application icon on the most recent apps, he is taken not to the
Password verification activity but the last screen i was in before
pressing the HOME key.

So please help me regarding this. What I want is to make sure that the
user is given entry into the application only through the Password
verification activity. So is there anyway to make sure that all the
activities except the password activity is finished when the user
presses the HOME key ???

Any kinda of information would really help me. I am very much stuck
with this.
Thanks anyways
--~--~---------~--~----~------------~-------~--~----~



Single point of entry into application ?

by SLY » Sun, 08 Mar 2009 22:49:22 GMT


 Hi,
I have a major doubt regarding this.
Here is the scenario. My application has a password verification
screen to begin with , ie when the application is started this
activity is called first. Below is the androidmanifest entry for this
activity.

<application android:icon="@drawable/icon" android:label="@string/
app_name">
        <activity android:name=".VerifyPassword"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
.
.
.
more activities here
</application>

Suppose after entering the valid password the user is taken to the
homescreen [the password activity does a finish() , since if I dont
finish this activity the user can navigate back to this screen by
pressing the BACK key] of the app and then moves on to other
activities in the application. If the user now presses the HOME key
the application is paused. If the user navigates back to the
application by Longpressing the HOME key and clicking on the
application icon on the most recent apps, he is taken not to the
Password verification activity but the last screen i was in before
pressing the HOME key.

So please help me regarding this. What I want is to make sure that the
user is given entry into the application only through the Password
verification activity. So is there anyway to make sure that all the
activities except the password activity is finished when the user
presses the HOME key ???

Any kinda of information would really help me. I am very much stuck
with this.
Thanks anyways
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. listen for when my app is installed

On Wed, Oct 28, 2009 at 4:45 PM, Jeffrey Blattman <



Could you not just check for their existence on the SD card before copying
them over?

Otherwise, when the user changes their SD card, your app will no longer have
these files available. Your app will be dependent on the SD card that was
plugged in when it was installed... There may also be compatibility issues
with backup/restore programs.

--~--~---------~--~----~------------~-------~--~----~

2. Android RSS Reader, Please Help

Hix, I tried following the tutorial below: ( RSS Reader Tutorial)
http://www.helloandroid.com/node/110#comment-6819
Because of the differences between the version of SDK that tutorial
using (M3 - I dont' know this version, maybe too old ) and of mine
( android-sdk-windows-1.5_r2), so it appeared many errors.
I tried to fix all of it, althought i printed to logcat the right
results but still have some problem with database so i can't put the
result to the database.
( My project  : http://www.mediafire.com/download.php?wjzqnztmdml)

Is anyone finished the  tutorial above (http://www.helloandroid.com/
node/110#comment-6819) , please show me or send the sourcecode to me
via email ( thong.dom...@gmail.com ).
I realy thanks in advance!

Regards,
thongdm

--~--~---------~--~----~------------~-------~--~----~

3. Make Fade-in and Fade-Out Effec

4. How to "hide" activity on BACK key without onDestroy?

5. How to "hide" activity on BACK key without onDestroy?

6. NFC support on adroid platform and available devices

7. Dynamic linking error in MacOS 10.4.11?