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?

5 comments
Comment actions Permalink

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.

0
Comment actions Permalink

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?

0
Comment actions Permalink

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?

0
Comment actions Permalink

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

0
Comment actions Permalink

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.

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

---
Original message URL:
http://devnet.jetbrains.net/message/5305429#5305429



0

Please sign in to leave a comment.