Regular Emulator Runs... but not my Program (got past the scrolling red bar)

by robertlee42 » Sun, 29 Jun 2008 20:47:31 GMT


Sponsored Links
 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

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Google IO 2011

Anyone else going?

Registration to the public on February 7

Early Bird Price (until 4/16/11) $450

List Price (starting 4/17/11)   $550

Academia (student, faculty) $150

BootCamp $100 (all registration types)

I haven't seen this on a blog yet but it probably has been listed
somewhere.

-John Coryat

-- 
.

2. EditText causes app to crash

I have been breaking my head over this for the past 1 month over this
error I am having on certain HTC models. The app runs fine on other
phones but crashes with a long list of exceptions. This is what I got
from the market:

java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.vtcreator.android360/com.myapp.MyActivity}:
android.view.InflateException: Binary XML file line #16: Error
inflating class android.widget.EditText
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2838)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2859)
at android.app.ActivityThread.access$2300(ActivityThread.java:136)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
2179)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:5073)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #16:
Error inflating class android.widget.EditText
at android.view.LayoutInflater.createView(LayoutInflater.java:513)
at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:
56)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:
563)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
217)
at android.app.Activity.setContentView(Activity.java:1701)
at
com.vtcreator.android360.activities.SelectUsernameActivity.onCreate(SelectUsernameActivity.java:
24)
at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1088)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2802)
... 11 more
Caused by: java.lang.reflect.InvocationTargetException
at android.widget.EditText.<init>(EditText.java:53)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
at android.view.LayoutInflater.createView(LayoutInflater.java:500)
... 23 more
Caused by: java.lang.NullPointerException
at
com.htc.textselection.TextSelectionMethodImpl.initAnchorAndMagnifier(TextSelectionMethodImpl.java:
310)
at
com.htc.textselection.TextSelectionMethodImpl.initialize(TextSelectionMethodImpl.java:
297)
at android.widget.TextView.setText(TextView.java:2743)
at android.widget.TextView.setText(TextView.java:2623)
at android.widget.EditText.setText(EditText.java:82)
at android.widget.TextView.<init>(TextView.java:924)
at android.widget.EditText.<init>(EditText.java:57)
... 27 more


The same thing happens with an EditTextPreference item. I have no idea
how to solve this, and whatever I have tried has failed. Have posted
this as a bug on the Android bug list as well as on StackOverflow.

http://code.google.com/p/android/issues/detail?id=16640&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
http://stackoverflow.com/questions/5500609/app-crashing-in-desire-hd

-- 

3. Is it true, Paid Aandroid apps from indian origin can not be published?

4. How to reverse camera view?

5. add overlay at my current location

6. facebook sdk login not working on Samsung 9003 but working on htc

7. Logcat not working on eclipse