Skip to content
Paul Verest edited this page Apr 15, 2014 · 3 revisions
gradle installDebug
adb shell am start -n yourpackagename/.activityname
task appStart(type: Exec, dependsOn: ':installDebug') {
    // linux 
    commandLine 'adb', 'shell', 'am', 'start', '-n', 'com.example/.MyActivity'

    // windows
    // commandLine 'cmd', '/c', 'adb', 'shell', 'am', 'start', '-n', 'com.example/.MyActivity'      
}

SO questions

Clone this wiki locally