Desktop API of Gears API does not work on Android browser for 1.5

by versae » Thu, 30 Apr 2009 02:05:58 GMT


Sponsored Links
 Since Android 1.5 (API Level 3), if I use the Desktop API of Gears API
in the Android browser, the Javascript flow breaks.

    <script type="text/javascript" src=" http://code.google.com/intl/es/ 
apis/gears/gears_init.js"></script>
    <script type="text/javascript">
    alert("This alert works fine");

    var desktop = google.gears.factory.create('beta.desktop');

    alert("This alert is never shown");
    </script>

No problems with any other API such as Geolocation API or Database
API.

Really I don't know if this issue belongs to Android or Google Gears,
but in previously versions of Android Desktop API worked fine.

Regards.

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



Other Threads

1. cupcake build error

It looks like I'm missing a change even after repo sync. I get:

development/apps/Development/AndroidManifest.xml:74: ERROR Error: String 
types not allowed (at 'configChanges' with value 
'keyboard|keyboardHidden|navigation|orientation').

when building. Searching for configChanges shows several placed that 
they are defined as int fields.

./frameworks/base/core/res/res/values/public.xml:  <public type="attr" 
name="configChanges" id="0x0101001f" />
./frameworks/base/api/2.xml:<field name="configChanges"
./frameworks/base/api/2.xml:<field name="configChanges"
./frameworks/base/api/2.xml:<parameter name="configChanges" type="int">
./frameworks/base/api/1.xml:<field name="configChanges"
./frameworks/base/api/1.xml:<field name="configChanges"
./frameworks/base/api/1.xml:<parameter name="configChanges" type="int">
./frameworks/base/api/current.xml:<field name="configChanges"
./frameworks/base/api/current.xml:<field name="configChanges"
./frameworks/base/api/current.xml:<parameter name="configChanges" 
type="int">
./frameworks/base/api/3.xml:<field name="configChanges"
./frameworks/base/api/3.xml:<field name="configChanges"
./frameworks/base/api/3.xml:<parameter name="configChanges" type="int">


--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. two threads, the main closes the DB but the second is still running and need to use the DB!

I would recommend having a singleton that all of the clients go through,
which takes care of keeping the database open as long as there are clients
of it.






-- 
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.

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

3. Android x86 community website launched!

4. cupcake minor issues

5. Screen Orientation change performance Question

6. Radio button items's text not visible in Dialog

7. Theme on a preferences screen