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. Implicit intent - call to another activity doesnt work if action name is defined as user defined names.

Hi all,

implicit intent with class name as action defined in intentfilter. is
not working.
Only it it is defined as "android.intent.action." it is picked up ? is
it so ?

I have app A with the following in manifest.xml file

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.android.localguide"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/
app_name">
        <activity android:name=".welcomeScreen"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
<activity android:name=".results">
        <intent-filter>
                <action android:name="android.intent.action.GET_RESULT"/>
                <category android:name="android.intent.category.DEFAULT"/>
        </intent-filter>
        <intent-filter>
                <action
android:name="com.android.localguide.intent.action.GET_RESULT"/>
                <category android:name="android.intent.category.DEFAULT"/>
        </intent-filter>
</activity>

<activity android:name=".options"/>
<activity android:name=".information"/>
</application>
<uses-permission android:name="android.permission.INTERNET">
   </uses-permission>

</manifest>

In app B, i tried to call the activity in A using below code.

button.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View v) {
                Intent i = new Intent();
 
i.setAction("com.android.localguide.intent.action.GET_RESULT");
                //i.setAction("android.intent.action.GET_RESULT");  --
                startActivity(i);
            }
        });

Could someone point me why it is not working ? It crashes saying
activity not found.
Note: I run the app A in bckground.

Thanks,
Mani

-- 

2. Styling text with internationalisation

Hi,

I have some text which I would like to style with colour, for example:

"I jump in the red bus."

I would like red to be in red so I'm using:
SpannableStringBuilder

This works really nicely - but I'm guessing that if I want to put red into 
another language, especially one which uses cases, this will become a problem.

By case, I mean the word red might change its spelling based on its use (maybe 
it has the preposition in tacked on the end of "red" or maybe there is an 
ending signifying that "in" is accusative rather than dative (maybe I'm jumping 
within the bus rather than moving into it from outside the bus)).

Is there a standard way to deal with styling text based on different languages?

Regards,
Julius.

-- 

3. SurfaceView resize when the screen is turned off

4. open my ass

5. How to route audio to the wired and wireless headset

6. Pass text style from compound view to child text view?

7. microphone, filters of voice in Android