android - Integrate "adb uninstall" to eclipse -
i want integrate "adb uninstall" eclipse. switch
- "external tools configurations"->"new launch configuration"
- (right tab)"location" set "path/to/adb.exe"
- "working directory" leave empty
- "arguments" set "uninstall ${project_name}"
${project_name}
doesn't returns com.my.project.
variable need specify in second argument instead of ${project_name}
?
from command line looks "adb uninstall com.my.project
"
its actually
adb uninstall packagename
in android, each application uniquely identified package name, hence specify packagename here.
but not sure how packagename in configurations. in code, from
getpackagemanager().getpackageinfo(getpackagename(), 0).packagename
Comments
Post a Comment