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. DatagramSocket and Receive

I am working with UDP and DatagramSocket. I verified that the Receive
function clear all data more of setLength of DatagramPacket. My
packets have a variable len. I use first two bytes to understand the
len packet.

public void run() {

    byte []buff = new byte[1024];


}


private int ReadData(byte []byBuff, int iSize) throws IOException{

                _datagram.setData(byBuff);
                _datagram.setLength(iSize);
                _socket.receive(_datagram);
                int iRet = _datagram.getLength();
                return iRet;
        }

-- 

2. broadcastreceiver never died?

hi,
i created application with name Test, and has a class that extends
broadcastreceiver that listen for PACKAGE_RESTARTED.
i use Advanced Task Killer, and killed the Test application. but when
i kill another application, for example gmail, the Test's
broadcastreceiver got the intent (i logged it).

Does it means that broadcastreceiver will never died?

Thanks :)

-- 

3. Units for Paint.setTextSize() ?

4. How can I change the color of the "Search" button on Searchable Activity?

5. RemoteService and RemoteServiceBinding - Different package (apk) - Problem

6. Updating SDK through AVD

7. loop sound