tags:

views:

121

answers:

3

I have been trying to code and run the hello world application but am not able to get the emulator to boot all the way. Plan b is vb.

HELP!

+1  A: 

Unfortunately, you can not run a visual basic application on Android. Maybe if you provide some additional information about the problem you are having with the emulator we can help with that?

dbyrne
When I look at the logCat there are many, many, many errors and warnings. Eventually the emulator disconects and I am left we a none working emulator or the programs I am trying to code are not complete
A: 

Do you mean VB or VB.NET?

The Mono project recently announced VB.NET support, though C# is the preferred language (do yourself a favor and switch!). Since Mono runs on Android (and just about everything else), it should get you going in the right direction.

Update Okay, downvoters: a little lesson in basic math: the transitive property of inequalities states that if a < b, and b < c, then a < c.

So:

  1. If VB.NET can be compiled by Mono,

  2. and Android supports the Mono framework,

  3. Then Vb.Net can be used to write an Android application.

We can get into a discussion about the available features, framework completeness, etc, but the OP asked about compiling "Hello world" in VB for Android.

Or, skip the above references and just consider this: The MS VB compiler produces MSIL/CIL.

Just take the CIL that the compiler produces and throw it into Mono. The Mono compiler will convert this to IR, optimize it and produce the appropriate binary for the target platform.

If you're going to downvote, cite your sources instead of arbitrarily throwing out acronym soup that is irrelevant to the topic at hand.

David Lively
Android is not the same as "Mono runs on ARM". In order to use the Android GUI, you need to interface via JNI to the UI layer, which there are no existing adapters for Mono. Writing one would be possible of course :)
Yann Ramin
No, but VB runs on Mono, and Mono runs on Android, therefore VB runs on Android. Feature availability is an entirely different discussion.
David Lively
Feature availability is implied. Obviously, the question is asked by someone with limited Android experience and the easiest interpretation of your answer is "Mono lets you code in VB for Android".
kiswa
Because Mono **DOES** let you code in VB for Android.
David Lively
A: 

I'll guess at the emulator issue...

Sometimes the emulator can be quite slow. If you are impatient and start clicking on buttons in the emulator before it has finished, it doesn't seem to work properly. I did this when I first started and thought the emulator was broken - but it actually just took several minutes to launch. My clicking on buttons just made sure it never finished.

Try running your helloworld program, but be sure to wait until the emulator is fully ready to go before you interact with it. The good news is, once you have launched the emulator once, you can keep the emulator running while you write and try out your code.

Aurora
Does anyone have a working program I can use to test my installation of the eclipse environment and adt. I need to start troubleshooting at the logCat, I think!What do you think?