Ew, quit blaming the framework for your (somewhat obvious) mistake.
Your list doesn't contain views, you're probably casting to something
which isn't correct.  (I suspect you're looking at the wrong part of
the logcat.)  You've most likely got a classcastexception, from
something which should have been casted to String, not View...

kris

2012/1/5 John Davis <davi...@gmail.com>:
> It looks like a bug
>
> ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord,
> Intent) line: 2661
> ActivityThread.handleLaunchActivity(ActivityThread$ActivityRecord,
> Intent) line: 2679
> ActivityThread.access$2300(ActivityThread,
> ActivityThread$ActivityRecord, Intent) line: 125
> ActivityThread$H.handleMessage(Message) line: 2033
> ActivityThread$H(Handler).dispatchMessage(Message) line: 99
> Looper.loop() line: 123
> ActivityThread.main(String[]) line: 4627
> Method.invokeNative(Object, Object[], Class, Class[], Class, int,
> boolean) line: not available [native method]
> Method.invoke(Object, Object...) line: 521
> ZygoteInit$MethodAndArgsCaller.run() line: 868
> ZygoteInit.main(String[]) line: 626
> NativeStart.main(String[]) line: not available [native method]
>
>
>
> On Thu, Jan 5, 2012 at 1:42 PM, TreKing <treking...@gmail.com> wrote:
>> On Thu, Jan 5, 2012 at 12:39 PM, John Davis <davi...@gmail.com> wrote:
>>>
>>> fooView = (View) theList.getItemAtPosition(i); // raises exception
>>
>>
>> The exception would be?
>> The stack trace would be?
>>
>> -------------------------------------------------------------------------------------------------
>> TreKing - Chicago transit tracking app for Android-powered devices
>>
>> --
>> 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+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> John F. Davis
>
> 独树一帜
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to