Creating a Custom Expanded View in Code

by roberto » Wed, 30 Mar 2011 02:08:32 GMT

Sponsored Links
 I'm coding an SDK and I want to use a custom expanded view for the
notification area.
Is it possible to do that in Java code, without any reference to any
Resource? (This is because resources cannot be included in an SDK)

A RemoteView is usually created like this:

RemoteViews contentView = new RemoteViews(getPackageName(),

Can I create a RemoteView from I layout that I create with Java code?
Any other solutions?


Other Threads

1. How to know the device state(landscape/portrai) programatically

Out of curiosity, why do you ask?  (If it's only because you want to
have a different layout for landscape, then you should know that you
can specify layouts specifically for landscape in /res/layout-land)

-- PJ


2. Listing on Android Market

We have developed an application in Android, and published the same as
per the guidelines provided in the Android documentation.
The application is currently in use and available in market since 6
months now.
But the application is not being listed in the below:
What has to be done to list our application in the above sites.


3. how to update a ListView in a Tab

4. Keyboard, detect ALT Locked

5. how to set xml attributes in code

6. we are going to the second round

7. Fw: WTS Sprint HTC Hero BNIB Unlocked...