Is Android clock, which is in the destop, a widget or application (Activity)?

by Dianne Hackborn » Wed, 29 Apr 2009 12:22:34 GMT


Sponsored Links
 Thank-you for your definition of what a widget is.  The current API is what
we have for now.

2009/4/28 caijing <jcai2...@gmail.com>





-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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



Other Threads

1. Size 0kb for all transferred images to sdcard (Android Emulator)

Hey Android community, I'm actually new here, so I would like to ask
for some guidance.

I recently just setup the Android SDK and got the emulator to be up
and running. However, right now I'm not able to add files into the
sdcard.img for some strange reasons.

I entered the following command:
adb push test.jpg /sdcard/test.jpg

What happens is the file shows up inside the image, but it reports
that the file has the size 0kb which is what I don't know where to
approach.

My end goal is to get the image to pop up within the gallery, but
apparently it always show "No media found" in which i suppose it came
from the 0kb in size.

Any help or suggestions would be greatly appreciated. Thank you in
advance.

2. Trouble using NPN_PluginThreadAsyncCall and NPN_InvokeDefault to call back the browser from a native thread

I am developing an NPAPI plugin to process browser script.  Platform
is a build of the 1.6 Android source on Ubuntu, target is the browser
on the emulator supplied with the SDK.

Some of the JavaScript functions are asynchronous, passing in success/
failure callback functions as parameters. These are to be called back
by us when an async process has completed.

To achieve this we use the following code:

browser->invokeDefault(NP context, NPObject* onSuccessCbObject,
NPVARIANT args[] , int numargs, NPVARIANT * retVal);

This works well when called in the main plugin thread - the script
runs in the browser as expected.

However we need to implement this as an asynchronous callback. Firstly
we tried spawning a new pThread to run the above code - which
invariably crashed the browser.

So I tried using the NPN_PluginThreadAsyncCall function which seems to
allow a worker thread to run a function in the main browser UI thread.
This is called as follows:

browser->pluginthreadasynccall(  void (*func)(void *) , void *
userData)

The function we pass to this API contains the call to invokeDefault as
described above. When this is called the browser crashes immediately
(signal 11).

I am sure that all data passed to the function is valid, and the
lifetime of objects passed between threads are protected by reference
counting to ensure nothing is deleted prematurely. remove the call to
invokeDefault from the thread function, and everything completes and
cleans up as expected. But as soon as invokeDefault is called the
program crashes straight away.

Any ideas what might be going on?  Is there something else I should be
doing, or a preferred way to implement callbacks to a browser.

Many thanks - Julian.

3. Support for multiple monitors

4. android create avd -target xxx -name my_avd

5. Is it possible to do automatic installations of the Android SDK?

6. dx --junit

7. Android Developer needed