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. Getting the amount of Audio data buffered in the device

I am trying to write a streaming application. I have my own decoder
and I am playing PCM audio using AudioTrack. At any point in time I
want to know how much data is buffered with the device. I want to use
this so that if the data with the device go below a level, I want to
go into a buffering mode where I will buffer 2-3 seconds of data
before continuing playback again. Can someone please tell me how to do
this?

Thanks in advance
KK

-- 

2. How to come back main activity from child activity

hey i am a beginner...

i'm in a small problem...

i have three activities (suppose A,B,C)

after performing onclick event in activity A, i can go to activity B
and then C...

my question is that is there any way to comeback activity A from
C..here is the code snippet...

  public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button next = (Button) findViewById(R.id.Button01);
        next.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(),
Activity2.class);
                startActivityForResult(myIntent, 0);
            }

        });
    }
___________________________________________________________________

         public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main2);

                Button next = (Button) findViewById(R.id.Button02);
                next.setOnClickListener(new View.OnClickListener() {
                    public void onClick(View view) {
                        Intent myIntent = new Intent(view.getContext(),
Activity3.class);
                        startActivityForResult(myIntent, 0);
                    }

                });
            }
__________________________________________________________________

public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main3);

        Button next = (Button) findViewById(R.id.Button03);
        next.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                //Intent i =new Intent();
                //setResult(RESULT_OK,i);
                //finish();

                Intent myIntent = new Intent(view.getContext(),
makboneyp3.class);
                startActivityForResult(myIntent, 0);
                //int pid = android.os.Process.myPid();
                //android.os.Process.killProcess(pid);
            }

        });

   }


though this is working...is there any other way without calling from C

plz help me....

thanks in advance....

-- 

3. Pejing om Putra Abbas

4. How to modify NAND device blocks size from 4096 to 2048 at run-time

5. Not able to access the contact birthday events in Android 1.6

6. OOT : Promosi Telkomflash Unlimited udah abis ya... ??

7. Porting external library