Mobile capabilities from AJAX

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


Sponsored Links
 Hello,
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?

Thanks.
--~--~---------~--~----~------------~-------~--~----~



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


 Jose,

Take a look at  http://bhoost.com  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.

Gene





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



Other Threads

1. Debugging libgps.so

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

Thanks

-- 

2. ANR in com.android.camera

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: com.android.camera

DALVIK THREADS:
(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 android.media.MediaRecorder.native_stop(Native Method)
  at android.media.MediaRecorder.stop(MediaRecorder.java:606)
  at
com.android.camera.VideoCamera.stopVideoRecording(VideoCamera.java:
1826)
  at
com.android.camera.VideoCamera.stopVideoRecordingAndGetThumbnail(VideoCamera.java:
1735)
  at
com.android.camera.VideoCamera.onStopVideoRecording(VideoCamera.java:
847)
  at
com.android.camera.VideoCamera.onShutterButtonClick(VideoCamera.java:
857)
  at com.android.camera.ShutterButton.performClick(ShutterButton.java:
115)
  at android.view.View$PerformClick.run(View.java:9080)
  at android.os.Handler.handleCallback(Handler.java:587)
  at android.os.Handler.dispatchMessage(Handler.java:92)
  at android.os.Looper.loop(Looper.java:123)
  at android.app.ActivityThread.main(ActivityThread.java:3683)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:507)
  at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:864)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
  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
$GLThreadManager)
  at java.lang.Object.wait(Object.java:358)
  at android.opengl.GLSurfaceView
$GLThread.guardedRun(GLSurfaceView.java:1321)
  at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:
1118)

"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
$SensorThreadRunnable.run(SensorManager.java:446)
  at java.lang.Thread.run(Thread.java:1019)

"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.MessageQueue.next(MessageQueue.java:119)
  at android.os.Looper.loop(Looper.java:110)
  at android.os.HandlerThread.run(HandlerThread.java:60)

"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 dalvik.system.NativeStart.run(Native 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 dalvik.system.NativeStart.run(Native 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 dalvik.system.NativeStart.run(Native 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 dalvik.system.NativeStart.run(Native 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 dalvik.system.NativeStart.run(Native 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 dalvik.system.NativeStart.run(Native 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 dalvik.system.NativeStart.run(Native Method)

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


Thanks & Regards,
Pandi

-- 

3. Determine if device has only SoftMenu Keys ?

4. adb device naming

5. How to read boot.strace

6. SAX PARSER

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