Refactoring Android intents, test dialog java launch.