sam liyanage wrote:But it doesn't work.
'Doesn't work' isn't very helpful. What does it do wrong?
And what does this mean?
If you know the answer to that, it might help you find the problem (assuming the problem is what I think it is... big assumption since you didn't tell us the problem). Of course, since you know the id of the view you want, you could find the view by its id. Look through the Activity API to see how.