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);
hAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);

hSpinner.setAdapter(hAdapter);

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


Regards,
Nisha

--~--~---------~--~----~------------~-------~--~----~



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.

Tom.

--~--~---------~--~----~------------~-------~--~----~


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.

String
--
Sterling Udell
Author:
- 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. Oot: mirink di jiung

Yukkk...udah ditunggu nihhhh....
sent from jave....just normal jave....

-- 
"Indonesian Android Community [id-android]" 

2. VideoView - MediaPlayer : how do they recover from network interruption or handover ?

Use case:

User starts viewing video on current network == WiFi
User moves out of WiFi range.  Evdo network handover happens
successfully.

Observed behavior:

Once buffer runs out user gets "Cannot play this video"


Expected behavior:

Either  MediaPlayer recovers from network error or provides API hooks
to allow programmatic recovery.


Other:

I've implemented MediaPlayer.OnErrorListener as well as a
BroadcastReceiver that listens to
"android.net.conn.CONNECTIVITY_CHANGE"

However, despite experimenting with MediaPlayer.OnErrorListener(),
getCurrentPosition() seekTo() and start(), I've been unable to create
a user experience that maintains the videoview.

Is there any guidance on how to create a MediaPlayer based experience
that can deal with network handovers?

-- 

3. touch down event missing in glsurfaceview.

4. mmcqd 80+% CPU-usage!!

5. How to add Edittext box in a home screen widget

6. storing an array of objects

7. Why add child Activities to TabActivity instead of simply using Views