Creating 3rd party library in Android. Need suggestions!!

Posted by Lalith on Stack Overflow See other posts from Stack Overflow or by Lalith
Published on 2010-12-30T18:05:49Z Indexed on 2010/12/30 18:54 UTC
Read the original article Hit count: 139

Filed under:
|

Hello all, I am planning to create a 3rd party library for android application developers. Also the main concern is I do not want the users to make many changes to their code base. The following are the main things I want to clarify before diving into the project.

1) I want to attach my own event handlers dynamically to the application. As per above limitations I mentioned, I cannot make users put the relevant code in their handlers as I need to support existing applications as well. I found out that we cannot attach more than one event handler per one listener. For example Button.setOnclickListener(somelistener) .. will set one listener. In traditional desktop applications we can add more than one handlers but here if I do one more Button.setOnclickListener(someOtherListener) this one overwrites the previous listener. Is there any way I can attach my own listener along with application's existing listeners dynamically? Also is it really not supported on android yet?

2) Is there any 3rd party alternative that exists already that monitors user's interactions in androidi?

3) If this is not supported now are there any future plans to support this feature?

Please let me know about this as I did not get much feedback on Stackoverflow. Any suggestions and workarounds would really help me continue with this project.

Regards, Lalith

© Stack Overflow or respective owner

Related posts about android

Related posts about 3rd-party-library