I want to automate some 3rd party apps along with my app. So i don't the
code for 3rd party apps to get the element/ui ids.

 Anyways HierarchyViewer tools solved my problem. No need of decompiling
the apk to intercept the R.class file to get the ids.

On Wed, Oct 17, 2012 at 2:23 AM, Mike Wolfson <[email protected]> wrote:

> I kind of doubt you can do that.  You could decompile the APK, and
> introspect the R.class file, which may point you to your button.  You
> likely have access to the APK (if it is installed on your device, you can
> retrieve it from there).
>
> I would think this could be a security risk.  You could "press" a button
> in another app, without actually having access to the code.
>
> My guess is you cannot do this, and I am not really clear why you would
> want to. Not sure why you would want to access a button from another app
> (that you don't have the original source for).
>
>
> On Tuesday, October 16, 2012 3:50:43 AM UTC-7, 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 Discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/android-discuss/-/rKMKHJeYxrwJ.
>
> 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-discuss?hl=en.
>



-- 
Thanks & Regards,
M.Srikanth Kumar.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" 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-discuss?hl=en.

Reply via email to