Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old January 31st, 2012, 10:26 AM   #1 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Security Policies

Can an Android application be programmed to set up a security policy on android OS?

Security policy example that i want:
app1 needs to be running to be able to run app2 or app3.

And then let app1 detect if app2 or app3 is being started.
If yes then: pop up on screen and ask for authentication.

(the policy should only be editable with the pin code of the user.)

B3nny is offline  
Reply With Quote
Sponsors
Old January 31st, 2012, 02:28 PM   #2 (permalink)
Premium Member
 
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
 
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
Default

An app can always "run" another app. It's just a question of starting an Intent that can be fulfilled by the other app.

If you haven't written the other apps, I don't know about being able to intercepting the startup of another app. At best you might be able to listen for a broadcast that an app is starting. I haven't investigated this.
jiminaus is offline  
Reply With Quote
Old February 1st, 2012, 08:49 AM   #3 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, I have not written the other apps. to give you an image: examples for the other apps can be Facebook/Twitter.

The problem is: smartphone users don't want always to enter their password for apps like facebook/twitter. Therefore they use the remember password option, but this obsoletes the security aspect.

I want to create application that gives users the ability to choose a different way of authenticating an user. (for example: facial recognition)


So when an user starts facebook. Then my app will sort of lock the phone until it has the correct authentication. (Users face infront of the camera)
And in the background, facebook can do the login proces with the rememberd password option enabled.

Is this possible for an android app? and how? or where can i find the solution? =)
B3nny is offline  
Last edited by B3nny; February 1st, 2012 at 08:54 AM.
Reply With Quote
Old February 2nd, 2012, 03:16 PM   #4 (permalink)
Senior Member
 
Join Date: Jul 2010
Posts: 977
 
Device(s): Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Thanks: 52
Thanked 199 Times in 144 Posts
Default

The Android OS does not broadcast any intents on app startup. FOr security purposes, one app cannot interact with another app unless both apps are explicitly programmed to provide such functionality.

In other words, if you didn't program the other app, you can't do what you wish to do.
jonbonazza is online now  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 08:25 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo