Manage a popup spawning during the launch activity

Hello,
I currently working on a project of test automate. But one app I’m using for testing, a popup spawn for define the parameter of the app or exit. So I try to use “–app-wait-activity” for waiting during a manual configuration, but I think wait activity was only for manage activity like spashscreen.
So I’m asking you if there have a solution (I 'm using Appium 1.3.4.1 but i can update) to launch the start activity but wait the end of app configuration ?
Thank you !

EDIT: I find a backup solution. I set the autoLaunch to false and in my test scenario I launch the activity throught adb.

adb shell "am start -n *activity*"