I\'m searching for a way to password protect my android application on launch, i.e. when launching/resuming an activity belonging to my apk-package a password dialog will be sho
Subclass Application, and set a variable in there on whether the next time something happens in your app, you should prompt a dialog or not.
In your Activity, Service, etc... using the Context you receive, get your Application, if the var is set to show the dialog, from your Activity code (meaning the UI Thread) show your dialog. You'd probably put this in your onResume code.
In onPause, set the variable to show it next time. In onResume, set it as false.