android - Integrate "adb uninstall" to eclipse -


i want integrate "adb uninstall" eclipse. switch

  1. "external tools configurations"->"new launch configuration"
  2. (right tab)"location" set "path/to/adb.exe"
  3. "working directory" leave empty
  4. "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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -