Re: [android-developers] Hello Everyone, i am developing an android App with Bluetooth.
I'm having a sense of deja vu all over again :)
The issue is in your layout XML.
The first <ListView android:id="@+id/paired_devices">... has children
- a TextView and another ListView. ListView does not allow child views
(other than those it creates itself).
To resolve this, move the TextView and the second ListView from inside
the first ListView to outside.
-- K
16 февраля 2012 г. 20:06 пользователь Soyer <mblackpnk@gmail.com> написал:
> Hello Everyone, i am developing an app on android to catch bluetooth,
> and i am facing an error which i couldn't understand what its source
> can be, the error is on the logcat as the following:
>
> "02-13 13:02:11.538: E/AndroidRuntime(196):
> java.lang.RuntimeException: Unable to start activity
> ComponentInfo{android.mgo.helloandroid/
> android.mgo.helloandroid.BTDdetecetwithV7Activity}:
> java.lang.UnsupportedOperationException: addView(View, LayoutParams)
> is not supported in AdapterView"
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home