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. Paging All Id Android Members in Jogja

Berhubung miring kemarin sukses dengan satu anggota saja yang datang,
pada mau mengulang kesuksesan dengan nambah orang yang dateng besok
Jumat ngga? Tempat dan waktu sama ya. Ditunggu replynya

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

2. mohon bantuan update frf91 di nexus one

salam buat para suhu dan temen2
saya dah 2 kali dapat info update dari google dan selalu gagal updatenya
kondisi rom saya pake frf50 yg signed with radio.
saya dah download frf91 tapi selalu gagal waktu updatenya
saya mohon bantuan link utk frf91.., serta petunjuknya.
mohon mohon mohon

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

3. How to detect the end of a scroll

4. does the backup service on Froyo backup the data of a specific user

5. Disable the screen lock when the Android OS startup

6. CTS install_failed_insufficient_storage error

7. Starting the emulator in QVGA screen size produces a skewded DatePicker in default Android settings