0

I'm working on ADW.Launcher. I'm trying to implement access control, which will specify which apps can or cannot be started (e.g. forbidding the browser.) Currently I can achieve this by checking the package name before starting the activity. However, if an app starts the browser directly:

e.g.

public class OpenBrowserTest extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Intent i = new Intent();
        i.setClassName("com.android.browser", 
                       "com.android.browser.BrowserActivity");
        startActivity(i);
    } 
}

my access control will be compromised.

Is there any way for the launcher to know whenever an activity is started?

Chilledrat
  • 2,593
  • 3
  • 28
  • 38
user538565
  • 513
  • 1
  • 6
  • 21

1 Answers1

0

Is there any way for the launcher to know whenever an activity is started ?

There are no broadcast Intents for this event.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491