Sharable Custom UI components

by SAM » Wed, 11 Aug 2010 16:04:55 GMT

Sponsored Links
 Hi All,
I want to develop and distribute some custom UI components for
apps. This custom component can do some network communicatioon too
with my server.

So by this I want to hide the communication protocol from my
users, and will show the content as provided by my control eg sponsor
ads. This concept is same as Apple's iAD.

1. I want to hide my custom component code from its users so that
just need to include it in their antivity rest its upto me.

2. I have not implemented but sure that a UI component can do network



Sharable Custom UI components

by Joseph Earl » Thu, 12 Aug 2010 05:26:33 GMT

 > 1. I want to hide my custom component code from its users so that

You can create a custom View. Then the developer can just include the
needed class(es) (or library) and create instances of your view either
from within Java or an XML layout file.

E.g. if you created a new custom View called MyCustomView in the
package com.example.view and the developer includes your class in
their project then they would just have to enter something like the
following in their XML layout file:


and they'd have an instance of your widget in their app without ever
having to look at your code.

Android does not currently have compiled components/widgets to my
knowledge, so as far as I am aware you cannot hide your code from them
- there will be no need for them to look at it or understand it, but
if they wish to they can.


Sponsored Links

Other Threads

1. stale intent extras from notification?

I am using a pending intent to launch an intent from a notification
(so it will launch when a user clicks).  I am passing extras to the
intent in its bundle.  Everything works great the first time I launch
the intent but on the second notification my activity seems to be
getting the same extras as were in the first intent, not what was put
in the second intent.  Anyone know what I am doing wrong?  Do I have
to clear the intent somehow or destroy the activity?


2. android' is not recognized as an internal or external command,

The "android" tool was added in SDK 1.5, so it's not part of previous


3. sharedpreferences widget

4. ION kernel source

5. How to collect unhandled exception message in the app?

6. Recording mic audio during a call

7. Mic audio capture is of poor quality