[android-developers] Re: Why didn't google provide APIs for desktop widgets?

2009-02-24 Thread Fred Grott(shareme)

Plus you have cross scripting accross domains can of worms as well..

Its one reason why even if I am embedding most of my app in web code
via webview I am still using native side to
do the app password and OAUTH permissions at start up to  void such
can of worms





On Feb 24, 12:07 pm, Dianne Hackborn  wrote:
> On Tue, Feb 24, 2009 at 7:47 AM, Al Sutton  wrote:
> > Just to go a bit further on this, I'd hope you'd be implementing at
> > least a subset ofhttp://desktop.google.com/plugins/
> > It's Google code, it'd bring a lot of widgets/gadgets onto Android in a
> > short time frame, and would lessen the learning curve for many people.
>
> I suspect that just blindly supporting HTML-based gadgets in the home screen
> would be less than desirable.  This would mean having (multiple) instances
> of the web browser running in the home screen process, displaying gadgets
> that were designed purely for a desktop environment -- if you look at
> existing gadgets there are very few that will take less than the full size
> of the available screen, if they even fit on the screen at all.  And you can
> be sure that the vast majority aren't going to be very memory efficient,
> running in a web browser in a process that also has a key part of the global
> user interaction so wants to remain running as much as possible.  Plus they
> are designed to be interacted with using a mouse, and would now be running
> in an environment where you use your finger and inside of a container where
> finger gestures are already dedicated to being able to scroll and drag.
>
> So it's not really so straight-forward. :}
>
> --
> 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.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Why didn't google provide APIs for desktop widgets?

2009-02-24 Thread Dianne Hackborn
On Tue, Feb 24, 2009 at 7:47 AM, Al Sutton  wrote:

> Just to go a bit further on this, I'd hope you'd be implementing at
> least a subset of http://desktop.google.com/plugins/
> It's Google code, it'd bring a lot of widgets/gadgets onto Android in a
> short time frame, and would lessen the learning curve for many people.


I suspect that just blindly supporting HTML-based gadgets in the home screen
would be less than desirable.  This would mean having (multiple) instances
of the web browser running in the home screen process, displaying gadgets
that were designed purely for a desktop environment -- if you look at
existing gadgets there are very few that will take less than the full size
of the available screen, if they even fit on the screen at all.  And you can
be sure that the vast majority aren't going to be very memory efficient,
running in a web browser in a process that also has a key part of the global
user interaction so wants to remain running as much as possible.  Plus they
are designed to be interacted with using a mouse, and would now be running
in an environment where you use your finger and inside of a container where
finger gestures are already dedicated to being able to scroll and drag.

So it's not really so straight-forward. :}

-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Why didn't google provide APIs for desktop widgets?

2009-02-24 Thread Al Sutton

I'm starting to see the can of worms. I'd assumed there was already 
something in place for handling permission separation and that access 
was locked down, I hadn't realised that the current home widgets were so 
tightly integrated.

I'm guessing unless the permission model can be brought down to Thread 
level granularity then some form of either providing the widget with a 
Canvas or using IPC calls back from the widget are the only way to go.

Al.

Romain Guy wrote:
>
> No, that's the point. You don't want to run foreign code (the widget) 
> in Home because it would then be able to use Home's multiple 
> permissions. There are several approaches to solve this. One is to 
> rely on remote views, like in the status bar, but it limits what the 
> widgets can do.
>
>> On Feb 24, 2009 9:12 AM, "Al Sutton" > > wrote:
>>
>>
>> Isn't that something that's already solved with the application
>> permissions system and the cross cuts into the framework code which
>> support it?
>>
>> Romain Guy wrote: > That doesn't make it easy to do. The main issue 
>> is security. > > On Tue, Feb 24...
>>
>
> >


-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Why didn't google provide APIs for desktop widgets?

2009-02-24 Thread Al Sutton

Isn't that something that's already solved with the application 
permissions system and the cross cuts into the framework code which 
support it?

Romain Guy wrote:
> That doesn't make it easy to do. The main issue is security.
>
> On Tue, Feb 24, 2009 at 7:38 AM, Al Sutton  wrote:
>   
>> That's been solved many times before on other platforms.
>>
>> Al.
>>
>> Jean-Baptiste Queru wrote:
>> 
>>> Because it's a hard problem.
>>>
>>> JBQ
>>>
>>> On Mon, Feb 23, 2009 at 11:00 PM, quill  wrote:
>>>
>>>   
 Hi, anyone who  knows why? If I want to do this, is it extensive? Only
 change the code in launcher in sdk?

 
>>>
>>>
>>>   
>> --
>>
>> * Written an Android App? - List it at http://andappstore.com/ *
>>
>> ==
>> Funky Android Limited is registered in England & Wales with the
>> company number  6741909. The registered head office is Kemp House,
>> 152-160 City Road, London,  EC1V 2NX, UK.
>>
>> The views expressed in this email are those of the author and not
>> necessarily those of Funky Android Limited, it's associates, or it's
>> subsidiaries.
>>
>>
>> 
>
>
>
>   


-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Why didn't google provide APIs for desktop widgets?

2009-02-24 Thread Romain Guy
No, that's the point. You don't want to run foreign code (the widget) in
Home because it would then be able to use Home's multiple permissions. There
are several approaches to solve this. One is to rely on remote views, like
in the status bar, but it limits what the widgets can do.

On Feb 24, 2009 9:12 AM, "Al Sutton"  wrote:


Isn't that something that's already solved with the application
permissions system and the cross cuts into the framework code which
support it?

Romain Guy wrote: > That doesn't make it easy to do. The main issue is
security. > > On Tue, Feb 24...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Why didn't google provide APIs for desktop widgets?

2009-02-24 Thread Jean-Baptiste Queru

Because it's a hard problem.

JBQ

On Mon, Feb 23, 2009 at 11:00 PM, quill  wrote:
>
> Hi, anyone who  knows why? If I want to do this, is it extensive? Only
> change the code in launcher in sdk?
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Please don't contact me directly.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Why didn't google provide APIs for desktop widgets?

2009-02-24 Thread Romain Guy

That doesn't make it easy to do. The main issue is security.

On Tue, Feb 24, 2009 at 7:38 AM, Al Sutton  wrote:
>
> That's been solved many times before on other platforms.
>
> Al.
>
> Jean-Baptiste Queru wrote:
>> Because it's a hard problem.
>>
>> JBQ
>>
>> On Mon, Feb 23, 2009 at 11:00 PM, quill  wrote:
>>
>>> Hi, anyone who  knows why? If I want to do this, is it extensive? Only
>>> change the code in launcher in sdk?
>>>
>>
>>
>>
>>
>
>
> --
>
> * Written an Android App? - List it at http://andappstore.com/ *
>
> ==
> Funky Android Limited is registered in England & Wales with the
> company number  6741909. The registered head office is Kemp House,
> 152-160 City Road, London,  EC1V 2NX, UK.
>
> The views expressed in this email are those of the author and not
> necessarily those of Funky Android Limited, it's associates, or it's
> subsidiaries.
>
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Why didn't google provide APIs for desktop widgets?

2009-02-24 Thread Al Sutton

Just to go a bit further on this, I'd hope you'd be implementing at 
least a subset of http://desktop.google.com/plugins/

It's Google code, it'd bring a lot of widgets/gadgets onto Android in a 
short time frame, and would lessen the learning curve for many people.

Al.

Al Sutton wrote:
> That's been solved many times before on other platforms.
>
> Al.
>
> Jean-Baptiste Queru wrote:
>   
>> Because it's a hard problem.
>>
>> JBQ
>>
>> On Mon, Feb 23, 2009 at 11:00 PM, quill  wrote:
>>   
>> 
>>> Hi, anyone who  knows why? If I want to do this, is it extensive? Only
>>> change the code in launcher in sdk?
>>> 
>>>   
>>
>>   
>> 
>
>
>   


-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Why didn't google provide APIs for desktop widgets?

2009-02-24 Thread Al Sutton

That's been solved many times before on other platforms.

Al.

Jean-Baptiste Queru wrote:
> Because it's a hard problem.
>
> JBQ
>
> On Mon, Feb 23, 2009 at 11:00 PM, quill  wrote:
>   
>> Hi, anyone who  knows why? If I want to do this, is it extensive? Only
>> change the code in launcher in sdk?
>> 
>
>
>
>   


-- 

* Written an Android App? - List it at http://andappstore.com/ *

==
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---