Any way of iterating through all views in a view group without knowing their ids?

by Dianne Hackborn » Fri, 13 Feb 2009 03:58:42 GMT


Sponsored Links
 Yes, that is what they are there for.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



Other Threads

1. Can bind service in a tabspec view activity?

Hi,


I start a service in an entry activity. Then try to bind this service
in a tabspec listview.
But the bindService always return false, and can not get the service
obj.

Then I try to bind the service in an independent listview activity,
and can bind it successfully.

Can I bind a service in a tabspec activity in new SDK, this work in
old SDK I remember.


thanks!

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

2. where to report bugs?

My app crashed when it started a browser window, I don't see where the
app did anything out of the ordinary. This is the trace (I replace the
app name by .... for obvious reasons):

I/ActivityManager(   56): Starting activity: Intent
{ action=android.intent.action.VIEW categories=
{android.intent.category.BROWSABLE} data=http://kurl.nl/45A8 comp=
{com.android.browser/com.android.browser.BrowserActivity} }
D/dalvikvm(  229): GC freed 8272 objects / 692000 bytes in 141ms
W/ActivityManager(   56): Activity pause timeout for HistoryRecord
{434eba58 {com........}}
D/AndroidRuntime(  229): Shutting down VM
E/cache   (  237): disableTransaction is out of sync
W/dalvikvm(  229): threadid=3: thread exiting with uncaught exception
(group=0x40010e28)
E/AndroidRuntime(  229): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  229): java.util.ConcurrentModificationException
E/AndroidRuntime(  229):        at java.util.HashMap
$HashMapIterator.next(HashMap.java:127)
E/AndroidRuntime(  229):        at android.os.Parcel.writeMapInternal
(Parcel.java:467)
E/AndroidRuntime(  229):        at android.os.Parcel.writeMap
(Parcel.java:453)
E/AndroidRuntime(  229):        at android.os.Parcel.writeValue
(Parcel.java:1038)
E/AndroidRuntime(  229):        at android.os.Parcel.writeMapInternal
(Parcel.java:469)
E/AndroidRuntime(  229):        at android.os.Parcel.writeBundle
(Parcel.java:491)
E/AndroidRuntime(  229):        at
android.app.ActivityManagerProxy.activityPaused
(ActivityManagerNative.java:1177)
E/AndroidRuntime(  229):        at
android.app.ActivityThread.handlePauseActivity(ActivityThread.java:
2628)
E/AndroidRuntime(  229):        at android.app.ActivityThread.access
$2000(ActivityThread.java:112)
E/AndroidRuntime(  229):        at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1587)
E/AndroidRuntime(  229):        at android.os.Handler.dispatchMessage
(Handler.java:88)
E/AndroidRuntime(  229):        at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime(  229):        at android.app.ActivityThread.main
(ActivityThread.java:3742)
E/AndroidRuntime(  229):        at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  229):        at java.lang.reflect.Method.invoke
(Method.java:515)
E/AndroidRuntime(  229):        at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:739)
E/AndroidRuntime(  229):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
E/AndroidRuntime(  229):        at dalvik.system.NativeStart.main
(Native Method)
I/Process (   56): Sending signal. PID: 229 SIG: 3
I/dalvikvm(  229): threadid=7: reacting to signal 3
I/dalvikvm(  229): Wrote stack trace to '/data/anr/traces.txt'

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

3. does android phone have a IP address?

4. Download voicemail from Android.

5. Is there a way to fake camera input on the emulator?

6. TextView Changing Text Color

7. Popup Menu Over Dialogs