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. Problems with library projects

I've been looking everywhere and can't find a solution. I am using
Eclipse to develop an Android app which links to two Android Library
Projects in the same workspace. But every time I start eclipse it goes
inactive (grey overlay) and says in the status bar: "Android Library
link creation: (0%)"

They way I found it solves it is by deleting the links manually from
the default.properties file and then adding them. It seems to work but
it's not ideal to have to do that everyday. Anybody knows a solution
for this issue?

Many thanks in advance.

PD: I also found this error in the logs that may have something to do
with this:

org.eclipse.core.runtime.CoreException: Project target not loaded yet.
        at
com.android.ide.eclipse.adt.internal.build.BaseBuilder.stopBuild(Unknown
Source)
        at
com.android.ide.eclipse.adt.internal.build.BaseBuilder.abortOnBadSetup(Unknown
Source)
        at
com.android.ide.eclipse.adt.internal.build.ResourceManagerBuilder.build(Unknown
Source)
        at org.eclipse.core.internal.events.BuildManager
$2.run(BuildManager.java:627)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
170)
        at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
201)
        at org.eclipse.core.internal.events.BuildManager
$1.run(BuildManager.java:253)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at
org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
256)
        at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:
309)
        at
org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
341)
        at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
140)
        at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
238)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

-- 

2. parsing kml

hi all,

i change my kml to xml and place it at Res/xml/test.xml.

I tried this

                XmlResourceParser x = this.getResources().getXml(R.xml.test);

but it return null.

So how do i parse a kml?

I want to display it as listview.

and also ulimately use it on a map.

below is a copy of the kml.http://maps.google.com/maps/ms?
ie=UTF8&hl=en&vps=1&jsv=260d&oe=UTF8&msa=0&msid=106069377598790155454.0004720325247dc0c953a&output=kml

bryan

-- 

3. Verification of a signed apk

4. Do someone know which application controls USB connected notification

5. Disconnect Incoming Call in Android

6. Two buttons side by side to fill width of screen?

7. how do i get xmlresourceparser?