On Wed, Jun 1, 2011 at 6:45 PM, Spooky <[email protected]> wrote:
> Ok, maybe that didn't make sense.... What I'm looking for, *IF* it
> exists for Android/Java, is
> some way to open up, say, a console
adb shell
> load the code
What is "the code"?
> and check the
> value returned by some
> line in the code without having to use the AVD (which doesn't work on
> my system) or build,
> install on my phone, and view that way?
Java is a compiled programming language. The flow you are describing
fits for an interpreted language, like Ruby.
If you package your application code in a JAR, you can load that JAR
into a JVM interpreter (JRuby, BeanShell, etc.), and try calling it.
You might be able to do this via SL4A, or possibly via the shell as
mentioned above.
That being said, this may take more time and headache than simply
creating a unit test suite, in large part because you may not have
access to enough of Android via whatever interpreter you use. JRuby
with Ruboto *may* give you enough scaffolding to try to do meaningful
experiments this way, and even that may only give you an Activity.
IOW, the sorts of things you are trying to test this way ("examples in
the reference page") are the least likely things you will be able to
actually test this way.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training in Oslo: http://bit.ly/fjBo24
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en