Mobile capabilities from AJAX

by Jose Mar铆a Gonz谩lez » Wed, 25 Jun 2008 23:51:22 GMT

Sponsored Links
I am interested in develop web pages specials for Android.
I know that the web browser is based on WebKit:
Does this means that the webpages are seen in Safari in the same way
they are seen in Android?

I would like to make a webpage which allows a user to click in some
button or link and launch a call.
Is it possible to access to some mobile expecific capabilities (such
call dialing, messaging, battery status...)  from a web?


Mobile capabilities from AJAX

by Hong » Thu, 26 Jun 2008 02:20:57 GMT

 the webkit supporst full ajax.

as for dialing call, sms, and battery status, it's not supported out of the
box, but u can have an application running with a bridge to the webkit that
provides the system information.

to natively support from ajax, they need to provide something like the
intel's javascript web 2.0 kit, which has battery info. support.

On Wed, Jun 25, 2008 at 11:51 AM, Jose Mara Gonzlez <[EMAIL PROTECTED]>


Sponsored Links

Mobile capabilities from AJAX

by Jose Mar铆a Gonz谩lez » Thu, 26 Jun 2008 20:51:01 GMT

 Thanks Hong, that sounds great.
Could you please provide me with more info. I have no idea hoy to
implement the bridge between my application and the webkit.
Some links will be very helpfull.


Mobile capabilities from AJAX

by Gene Vayngrib » Fri, 27 Jun 2008 13:06:10 GMT


Take a look at  which aims to provide exactly what
you are looking for.
Bhoost is an open source wrapper around Android's WebKit browser. It
offers JavaScript API to native Android capabilities.
To launch native dialer it follows a common technique used on iPhone
and s60 phones - all you need is to have an href starting with tel:
and Bhoost will launch the native dialer.
It also can launch camera to shoot and upload photos, has GPS api,
sensors api and more.
At this moment it does not have battery power and network status APIs,
but you can easily add them yourself.
If you have a problem with this - let me know and we will put this in
our Bhoost project plan.



Other Threads

1. Debugging

During porting of a new gps, how can I debug my new ?
(only by prints/logcat or can I use adb?)



2. ANR in

Hi,  I am getting ANR from camera if I press start/stop recording
continuously . How do I analyze this?
Which thread is creating problem?

ANR Trace:

----- pid 3567 at 2011-05-05 13:02:57 -----
Cmd line:

(mutexes: tll=0 tsl=0 tscl=0 ghl=0 hwl=0 hwll=0)
"main" prio=5 tid=1 NATIVE
  | group="main" sCount=1 dsCount=0 obj=0x4001f180 self=0xce58
  | sysTid=3567 nice=0 sched=0/0 cgrp=default handle=-1345006496
  | monitors held: <none>
  at Method)
  at android.view.View$
  at android.os.Handler.handleCallback(
  at android.os.Handler.dispatchMessage(
  at android.os.Looper.loop(
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(
  at dalvik.system.NativeStart.main(Native Method)

"GLThread 13" prio=5 tid=11 WAIT
  | group="main" sCount=1 dsCount=0 obj=0x40550058 self=0x22cd10
  | sysTid=3585 nice=0 sched=0/0 cgrp=default handle=2077712
  | monitors held:
  >  0x40539720[0] (Landroid/opengl/GLSurfaceView$GLThreadManager;)
  at java.lang.Object.wait(Native Method)
  - waiting on <0x40539720> (a android.opengl.GLSurfaceView
  at java.lang.Object.wait(
  at android.opengl.GLSurfaceView
  at android.opengl.GLSurfaceView$

"android.hardware.SensorManager$SensorThread" prio=5 tid=9 NATIVE
  | group="main" sCount=1 dsCount=0 obj=0x40514528 self=0x2078f8
  | sysTid=3582 nice=-8 sched=0/0 cgrp=default handle=2062968
  | monitors held: <none>
  at android.hardware.SensorManager.sensors_data_poll(Native Method)
  at android.hardware.SensorManager$SensorThread

"CameraHolder" prio=5 tid=10 NATIVE
  | group="main" sCount=1 dsCount=0 obj=0x4058f668 self=0x1f8888
  | sysTid=3576 nice=0 sched=0/0 cgrp=default handle=2066880
  | monitors held: <none>
  at android.os.MessageQueue.nativePollOnce(Native Method)
  at android.os.Looper.loop(

"Binder Thread #2" prio=5 tid=8 NATIVE
  | group="main" sCount=1 dsCount=0 obj=0x40511030 self=0x193470
  | sysTid=3574 nice=0 sched=0/0 cgrp=default handle=607368
  | monitors held: <none>
  at Method)

"Binder Thread #1" prio=5 tid=7 NATIVE
  | group="main" sCount=1 dsCount=0 obj=0x40510f68 self=0x941e8
  | sysTid=3573 nice=0 sched=0/0 cgrp=default handle=606536
  | monitors held: <none>
  at Method)

"Compiler" daemon prio=5 tid=6 VMWAIT
  | group="system" sCount=1 dsCount=0 obj=0x4050d0c0 self=0x1a5980
  | sysTid=3572 nice=0 sched=0/0 cgrp=default handle=1726784
  | monitors held: <none>
  at Method)

"JDWP" daemon prio=5 tid=5 VMWAIT
  | group="system" sCount=1 dsCount=0 obj=0x4050d010 self=0x1a5808
  | sysTid=3571 nice=0 sched=0/0 cgrp=default handle=1726408
  | monitors held: <none>
  at Method)

"Signal Catcher" daemon prio=5 tid=4 RUNNABLE
  | group="system" sCount=0 dsCount=0 obj=0x4050cf50 self=0x191e78
  | sysTid=3570 nice=0 sched=0/0 cgrp=default handle=1646136
  | monitors held: <none>
  at Method)

"GC" daemon prio=5 tid=3 VMWAIT
  | group="system" sCount=1 dsCount=0 obj=0x4050cea8 self=0x191c78
  | sysTid=3569 nice=0 sched=0/0 cgrp=default handle=1652720
  | monitors held: <none>
  at Method)

"HeapWorker" daemon prio=5 tid=2 VMWAIT
  | group="system" sCount=1 dsCount=0 obj=0x4050cdf0 self=0x15cc68
  | sysTid=3568 nice=0 sched=0/0 cgrp=default handle=1197128
  | monitors held: <none>
  at Method)

----- end 3567 -----

Thanks & Regards,


3. Determine if device has only SoftMenu Keys ?

4. adb device naming

5. How to read boot.strace


7. Logcat View fails with "Could not create the view: For input string: "our" "