The simplest android application
I'm trying to create an android application for the first time. I step through the project wizard according to tutorials for older versions of intelliJ (haven't found one for 10.5) and end up with an application. I set up the runtime configuration and run the app, and all I see is the animated android logo. In theory this is supposed to be a hello world application. The wizard generated the hellworld stuff for me in MyActivity.
Any ideas what I'm doing wrong?
Please sign in to leave a comment.
It worked this time. I didn't change a thing... just clicked the run button again out of frustration after trying it probably 10-12 times.
This time I ran it by opening MyActivity and right clickmenu -> Run MyActivity.
Somehow I have a new runtime configuration called MyActivity (that is greyed out in the list) in the run/debug configurations dialog. It is identical in every way (as far as the gui dialogs show) but when I use it, it shows the hello world message. When I use the other runtime configuration, which is identical except for the name... it shows the Android logo. Could someone shed some light on what is going on?
It stopped working. I added an element to strings.xml and referenced that element with @string/hello in the main.xml file. I ran it again and it just shows the android logo.
I deleted my changes and tried again. Still the android logo. Nothing has changed, but it stopped working. Any guesses?
OK, I guess the android logo represents the emulator booting up. I found the logcat tab that gives me some more info. I'm really new to IntelliJ. Sadly this emulator loads unbearably slowly... is there a way to speed it up? I know I"m crossing into Android SDK territory, but I'm going to stream of conscious on this forum until I figure it all out :p
The emulator is part of the Android SDK; it's not specific to IntelliJ IDEA.
The trick is to leave the emulator running and just redeploy your app to
it each time you want to test a change.