Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Is there a Gadget API for the new home screen?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peli  
View profile  
 More options Aug 19 2008, 4:07 am
From: Peli <peli0...@googlemail.com>
Date: Tue, 19 Aug 2008 01:07:42 -0700 (PDT)
Local: Tues, Aug 19 2008 4:07 am
Subject: Is there a Gadget API for the new home screen?
The new home screen features a clock and a Google search box if one
scrolls to the left or right.

Also application icons can be placed on the home screen by long-
clicking them.

Question:
Is it possible for us to write custom gadgets for the home screen like
the clock or the Google search box? Is there a public API for this
purpose?

Peli


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Romain Guy  
View profile  
 More options Aug 19 2008, 4:08 am
From: "Romain Guy" <romain...@google.com>
Date: Tue, 19 Aug 2008 01:08:52 -0700
Local: Tues, Aug 19 2008 4:08 am
Subject: Re: [android-developers] Is there a Gadget API for the new home screen?
No, such an API does not exist and won't exist in 1.0.

--
Romain Guy
www.curious-creature.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peli  
View profile  
 More options Aug 19 2008, 4:12 am
From: Peli <peli0...@googlemail.com>
Date: Tue, 19 Aug 2008 01:12:44 -0700 (PDT)
Local: Tues, Aug 19 2008 4:12 am
Subject: Re: Is there a Gadget API for the new home screen?
Ok thanks.

Would it in principle be possible to write a new home screen that
offers a gadget API?
(i.e. do you see a technical possibility or possible problems
combining views from different apks in a single activity?)
What would be the best way to tackle this?

Peli

On 19 Aug., 10:08, "Romain Guy" <romain...@google.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Romain Guy  
View profile  
 More options Aug 19 2008, 4:17 am
From: "Romain Guy" <romain...@google.com>
Date: Tue, 19 Aug 2008 01:17:42 -0700
Local: Tues, Aug 19 2008 4:17 am
Subject: Re: [android-developers] Re: Is there a Gadget API for the new home screen?
I don't know if there is enough support in the platform to let your
application load widgets from other apks. Theoretically you could,
but:
- We do plan on having such an API in future versions
- Your API would work only for your Home screen
- There are some serious security concerns with this

The first two can be tackled once Android is open source but the last
point is more difficult. Home usually runs with many permissions and
widgets are basically foreign pieces of code that run in your process
which can lead to a great amount of security issues.

If you are motivated, I encourage you to pursue this idea, but I don't
think it is a trivial task.

--
Romain Guy
www.curious-creature.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peli  
View profile  
 More options Aug 19 2008, 4:42 am
From: Peli <peli0...@googlemail.com>
Date: Tue, 19 Aug 2008 01:42:25 -0700 (PDT)
Local: Tues, Aug 19 2008 4:42 am
Subject: Re: Is there a Gadget API for the new home screen?

> Home usually runs with many permissions and
> widgets are basically foreign pieces of code that run in your process
> which can lead to a great amount of security issues.

Indeed, ideally widgets should probably run as separate processes with
their own limited permissions - maybe as a service? The question is
how they could display themselves and interact with the user - maybe
through AIDL calls? Would this make sense?

> If you are motivated, I encourage you to pursue this idea, but I don't
> think it is a trivial task.

Indeed, and given your point 1 (you plan one for future versions) it
is questionable whether the effort would pay.. If at all, and if I
find other interested developers, it could be an OpenIntents
project :-)

Peli
http://code.google.com/p/openintents/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hackbod  
View profile  
 More options Aug 19 2008, 11:33 pm
From: hackbod <hack...@gmail.com>
Date: Tue, 19 Aug 2008 20:33:47 -0700 (PDT)
Local: Tues, Aug 19 2008 11:33 pm
Subject: Re: Is there a Gadget API for the new home screen?
On Aug 19, 1:42 am, Peli <peli0...@googlemail.com> wrote:

> Indeed, ideally widgets should probably run as separate processes with
> their own limited permissions - maybe as a service? The question is
> how they could display themselves and interact with the user - maybe
> through AIDL calls? Would this make sense?

I expect we will add platform-level support for this in the future.
The main piece of work needed is a facility to distribute view
hierarchies across processes.  With that in place, ActivityGroup/
LocalActivityManager could grow to allow you to instantiate activities
running in other processes, and embed their UI into the parent
activity's view hierarchy.

It's a non-trivial amount of work, but certainly possible at the
platform level.  Trying to implement such a thing without modifying
the platform would be much more dicey.  You could probably do
something simple with a service and sending bitmaps from it back to
the container...  but that would be less than ideal. :}


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peli  
View profile  
 More options Aug 20 2008, 8:07 am
From: Peli <peli0...@googlemail.com>
Date: Wed, 20 Aug 2008 05:07:26 -0700 (PDT)
Local: Wed, Aug 20 2008 8:07 am
Subject: Re: Is there a Gadget API for the new home screen?

> The main piece of work needed is a facility to distribute view
> hierarchies across processes.  

Indeed, this would ideally be handled by the platform. So your work
after 1.0 will not be finished :-)

> You could probably do
> something simple with a service and sending bitmaps from it back to
> the container...  but that would be less than ideal. :}

Good idea! Widgets usually don't update frequently (unless it is
something like a stop watch), so even if it is less than ideal, it
could be a simple start...
(At first I thought of passing all graphics primitives, but that would
probably be overkill... sending the whole bitmap seems possible)

Peli


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »