You mentioned you don't have the source, so we assume it's not your APK, 
then Instrumentation won't work because both packages must be signed by the 
same key otherwise you'll receive a SecurityException.
I don't know what do you want the id for, but using AndroidViewClient 
[https://github.com/dtmilano/AndroidViewClient] you can easily get the dump 
of the View tree and get Ids an other properties.


On Wednesday, 17 October 2012 06:48:47 UTC-4, srikanth wrote:
>
> Hi Kris, 
> How you will do/get these things via instrumentation? 
>
> On Wed, Oct 17, 2012 at 7:40 AM, Kristopher Micinski 
> <[email protected]<javascript:>
> > wrote:
>
>> Umm....
>>
>> slight disagree....
>>
>> I do this all the time in instrumentation.
>>
>> kris
>>
>> On Tue, Oct 16, 2012 at 8:14 AM, Dhruv Kumar 
>> <[email protected]<javascript:>> 
>> wrote:
>> > Without Application you can't get the id . By the way you can get id e.g
>> > text = (TextView)findViewById(R.id.text); where id mention in xml file.
>> >
>> >
>> > On Tuesday, October 16, 2012 6:55:11 AM UTC-4, srikanth wrote:
>> >>
>> >> Hi,
>> >>
>> >> I want to get the element/button id in an app(I don't have the apk).. 
>> can
>> >> any one please tell me on how to get the id?
>> >>
>> >> Thanks
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to 
>> > [email protected]<javascript:>
>> > To unsubscribe from this group, send email to
>> > [email protected] <javascript:>
>> > 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 
>> [email protected]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> -- 
> Thanks & Regards,
> M.Srikanth Kumar.
>  

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to