Programmer63
Lurker
I'm a long time Java programmer who would like to develop for phones and tablets. My questions are all so basic and many, e.g. I don't even know how much difference there is between different Android versions, that I probably need to read a book or extensive help website before I can ask sensible questions.
I'm in the UK, if that makes any difference.
Edit: It looks like O'Reilly are releasing an Android book. I've often really benefitted from O'Reilly books, and with it being presumably right up to date, it looks to be a good option. Any comments? http://www.amazon.co.uk/Programming-Android-Generation-Mobile-Devices/dp/1449389694/ref=sr_1_4?ie=UTF8&qid=1310234646&sr=8-4
Edit: I had difficulty trying to install android in a previous attempt. I'm on Mac, and there are only windows and ubuntu help threads above. But, following the ubuntu thread and applying common sense every time something was different seemed to work. I don't generally use Eclipse, and may have an out of date version. But I seem to be able to create an empty WXGA Android application and run it. Now for "Hello World!", at a lower resolution
Edit: Hmmm..... The following "Hello World' code only brings up a black screen, either in WXGA or 640x480, which after a while shows an animated "Android" logo. No sign of the hello world text. Anything wrong?
Edit: Oh, if I wait longer something pops up. Bit difficult to use, but I did get something on my screen which was an icon, the title of my HelloWorld application, and the words "Hello, World!". So, I guess that's working. It's going to be tricky debugging with such a long time between hitting the "run" button and seeing something running.
Edit: Hello? Anyone? I've just managed to work out how to make the emulator reload an application so that I don't have to restart the emulator for every new compile. Or perhaps I should say that I was following the "setting up an emulator" instructions in the sticky thread above and it suddenly started working when it wasn't working above. Now I really need a book or website to start programming. Trial and error, i.e. adding a thread to my application, and expecting it to then be able to regularly change the text in a TextView object doesn't work, my application crashes.
I'm in the UK, if that makes any difference.
Edit: It looks like O'Reilly are releasing an Android book. I've often really benefitted from O'Reilly books, and with it being presumably right up to date, it looks to be a good option. Any comments? http://www.amazon.co.uk/Programming-Android-Generation-Mobile-Devices/dp/1449389694/ref=sr_1_4?ie=UTF8&qid=1310234646&sr=8-4
Edit: I had difficulty trying to install android in a previous attempt. I'm on Mac, and there are only windows and ubuntu help threads above. But, following the ubuntu thread and applying common sense every time something was different seemed to work. I don't generally use Eclipse, and may have an out of date version. But I seem to be able to create an empty WXGA Android application and run it. Now for "Hello World!", at a lower resolution

Edit: Hmmm..... The following "Hello World' code only brings up a black screen, either in WXGA or 640x480, which after a while shows an animated "Android" logo. No sign of the hello world text. Anything wrong?
Code:
package my.package.name;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class FirstAndroidProjectActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText( "Hello World!" );
setContentView(tv);
}
}
Edit: Hello? Anyone? I've just managed to work out how to make the emulator reload an application so that I don't have to restart the emulator for every new compile. Or perhaps I should say that I was following the "setting up an emulator" instructions in the sticky thread above and it suddenly started working when it wasn't working above. Now I really need a book or website to start programming. Trial and error, i.e. adding a thread to my application, and expecting it to then be able to regularly change the text in a TextView object doesn't work, my application crashes.