On Nov 16, 11:22 pm, Eldad <pala...@gmail.com> wrote:
> In the Java SDK the methods Thread.suspend() and Thread.resume() are
> deprecated but we can still use them. Also there is the Java debugger
> API which allows one to do that if you connect to the VM as a
> debugger.
>
> Is there some API for android we can use?
>
> Is there a published Java Debugger API we can apply for Android?

The deprecated Thread methods are not implemented in Dalvik.

You could use a standard debugger API to talk to it as a remote
debugger.  That is, no API calls are provided by Dalvik, but it
supports JDWP for remote debugger access.  So if you managed to
connect to the VM through a "local" network connection, you would be
able to make the usual calls.  This is complicated a bit by the use of
the "android ADB" transport, which runs everything through the ADB
daemon on the device (as opposed to the usual dt_socket which just
listens on a TCP socket).  I don't know offhand if you can "loop back"
through adbd.

Now that I've geeked out on what's possible, I'm going to say you
shouldn't do this, because having a debugger attached causes the VM to
switch to the "debug" interpreter, which runs more slowly.  So you're
left with filing a feature request for implementation of deprecated
API calls, which will be prioritized about where you'd expect.

Any chance this can be implemented differently?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to