Ulf Dittmer wrote:Your code is incomplete - it would take anyone of us a long time to make an app out of it to install on the phone. Nobody is going to do that. But I already told you what to look for.
Also, I'm certain that Eclipse can connect to your phone. And even if it can't for some reason, the command line version of adb can, so you can proceed on your own.
Paul Clapham wrote:When you say "doesn't work", what does that mean? Read our FAQ entry ItDoesntWorkIsUseless, which should tell you what kind of information would be useful to somebody who wanted to help you out.
(And in particular, does this line of code run:
and what does it output?)