hey Juan,
Here's my java code:
package Hello;
import android.app.Activity;
import android.os.Bundle;
import android.widget.*;
public class Hello extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
TextView tv = new TextView(this);
tv.setText("Hello");
setContentView(tv);
}
}
here are the xmls:
(main.xml) -
<?xml version="1.0" encoding="utf-8" ?>
- <#> <LinearLayout
xmlns:android="*http://schemas.android.com/apk/res/android*"
android:orientation="*vertical*" android:layout_width="*fill_parent*"
android:layout_height="*fill_parent*">
<TextView android:layout_width="*fill_parent*"
android:layout_height="*wrap_content*" android:text="*Hello World,
Hello*" />
</LinearLayout>
(string.xml) -
<?xml version="1.0" encoding="utf-8" ?>
- <#> <resources>
<string name="*app_name*">Hello</string>
</resources>
Thanks for the help
[EMAIL PROTECTED] wrote:
> Hi roberle.
>
> Can you please post your .java and .xml files? Without those, it´s
> kind of difficult to figure out what´s wrong.
>
> Juan.
>
> [EMAIL PROTECTED] ha escrito:
>
>> Hey guys,
>>
>> I just downloaded Android. I used the tutorial for the HelloWorld, and
>> ran it... the emulator comes up fine but when it loads, the emulator
>> comes up with the homescreen of a phone instead of displaying my
>> HelloWorld.
>>
>> Any ideas?
>>
>> Eclipse shows this:
>>
>> [2008-06-28 23:33:54 - Android_Hello] Android Launch!
>> [2008-06-28 23:33:54 - Android_Hello] adb is running normally.
>> [2008-06-28 23:33:54 - Android_Hello] Launching: Hello.Hello
>> [2008-06-28 23:33:54 - Android_Hello] Automatic Target Mode: launch
>> emulator.
>> [2008-06-28 23:33:54 - Android_Hello] Launching a new emulator.
>> [2008-06-28 23:33:55 - Android_Hello] New emulator found: emulator-
>> tcp-5555
>> [2008-06-28 23:34:00 - Android_Hello] emulator-tcp-5555 disconnected!
>> Cancelling 'Hello.Hello' launch!
>>
>> Thanks,
>> Robert
>>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---