updatePeriodMillis not working for widget on 1.6

by nisha.devit » Fri, 23 Oct 2009 18:50:12 GMT

Sponsored Links
 Is it possible to set the width of a spinner dropdown list in code?
I have a spinner populated with integers, and it does not look good
with the list expanding to full width.
Can I set the width to wrap the content somehow?

I tried this..
Spinner hSpinner = (Spinner) timerView.findViewById(R.id.timer_hour_spinner);
ArrayList<Integer> hList = new ArrayList<Integer>(21);

for (int i = 0; i <= 20; i++) { hList.add(i); }

ArrayAdapter hAdapter = new ArrayAdapter(RemindMe.this,
android.R.layout.simple_spinner_item, hList);


But still showing the full width. What will be the solution?--



updatePeriodMillis not working for widget on 1.6

by Tom Gibara » Fri, 23 Oct 2009 21:36:32 GMT

 But presumably the alarm for updatePeriodMillis will be owned by a system
process and will therefore be immune to the task killers.



Sponsored Links

updatePeriodMillis not working for widget on 1.6

by Sterling Udell » Fri, 23 Oct 2009 21:40:53 GMT


In my experience, that's exactly right, hence its usefulness as a
backup for my own alarm.

Sterling Udell
- Beginning Google Maps Mashups,  http://apress.com/book/view/9781430216209 
- Pro Web Gadgets,  http://apress.com/book/view/1430225513 


updatePeriodMillis not working for widget on 1.6

by Mark Murphy » Fri, 23 Oct 2009 21:45:59 GMT


Aaaaaaaaah. Good point.

Clearly, therefore, we need to create an app widget that is a task
killer killer... ;-)

Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Development Wiki:  http://wiki.andmob.org 


updatePeriodMillis not working for widget on 1.6

by Dianne Hackborn » Sat, 24 Oct 2009 09:17:08 GMT



Other Threads

1. SurfaceComposerClient: using an invalid surface id

I'm making a game, using GLSurfaceView, and I keep getting this error
message when returning to my game after pressing Home:

"using an invalid surface id=[some integer], identity=[some integer],
should be [some integer]"

Then it takes a few seconds before the GLSurfaceView is drawn again,
even if requestRender() is called.

I have not encountered much info on the net as to what that error
message means, or how to avoid it. Is there any documentation I could
look into?



2. Simple Cursor Adapter - List View

I have table with 3 columns which is binded to an XML document with
three text views.

String[] from = new String[]{A,B,C};

int [] to = new int[] {R.id.a,R.id.b,R.id.c};

Where R.id.a, R.id.b, R.id.c -> TextView

Depending on the value store in the third column, I want to change the
text color in R.id.c

How should, I go about with this.

This is what I have so far :

SimpleCursorAdapter entry = new SimpleCursorAdapter(this,
R.layout.addrow, vCursor , from , to);


If you can provide me an example, that would be really helpful.

3. Null canvas being passed to onDraw(Canvas canvas)

4. Diffrece Between Android Kernel and Linux Kernel

5. draw hands on canvas

6. Compose email japri

7. Samsung Epic 4G will be Sprint's second WiMAX phone with Android