Zoom controls and WebView

by Mike Collins » Thu, 05 Mar 2009 05:44:30 GMT

Sponsored Links
 I can get the zoom controls to appear in a WebView but they
are stuck in one location on the web page.  Zooming in too
far and the controls move off-screen.

Tried this

View zc = m_WebView.getZoomControls();
RelativeLayout.LayoutParams p = new RelativeLayout.LayoutParams
              RelativeLayout.LayoutParams.WRAP_CONTENT );

m_WebView.addView(zc, p);

but doesn't make any difference...any ideas?



Other Threads

1. Parsing HID report using hid class driver

Hi All,

I've a typical requirement for presenter hid device.

[Diagram below]

        User Space
      i/p sub system
      hid class driver
              |----------------- * [Pass hid report
              |                     coming from user space]
         usb driver

My requirments are as follows:
1. In userspace I have hid reports, which needs to be parsed. These
hid reports needs to be sent to android input event manager, via
kernel (strict requirement)

2. Basically once the hid report comes to kernel (via some means,
hiddev interface, char driver interface etc), this needs to be sent to
the hid class driver for parsing

3. Further hid class driver will take care of parsing it and sending
it to user space via i/p subsystem.

In need help to design the module marked * (in the above diagram).


1. What kind of an interface I can have here to get hid reports from
user space.
2. How do I then send this reports to hid class driver for parsing
(register with which module)


unsubscribe: android-kernel+unsubscr...@googlegroups.com

2. Trouble debugging application on device


I'm trying to run/debug the "Hello World" application on my G1 using
Eclipse, and I'm having a little trouble with it.
My phone is attached to my (Windows) machine via USB and it is
recognized by DDMS. Whenever I try to run the application, I would
receive the following messages in Eclipse:

Android Launch!
adb is running normally.
No Launcher activity found!
The launch will only sync the application package on the device!
Performing sync
Automatic Target Mode: Unable to detect device compatibility. Please
select a target device.
Application already deployed. No need to reinstall.
\xxx.apk installed on device

At this point nothing shows up on my phone and DDMS reports a "thread
attach failed" error, which I believe is the cause of the problem.

Are there any way to fix this problem?

Log captured:

D/AndroidRuntime( 1806): CheckJNI is OFF
D/AndroidRuntime( 1806): --- registering native functions ---
D/ddm-heap( 1806): Got feature list request
D/AndroidRuntime( 1806): Shutting down VM
D/dalvikvm( 1806): DestroyJavaVM waiting for non-daemon threads to
D/dalvikvm( 1806): DestroyJavaVM shutting VM down
D/dalvikvm( 1806): HeapWorker thread shutting down
D/dalvikvm( 1806): HeapWorker thread has shut down
E/AndroidRuntime( 1806): ERROR: thread attach failed
I/dalvikvm( 1806): De{*filter*} has detached; object registry had 1
D/dalvikvm( 1806): VM cleaning up
D/dalvikvm( 1806): LinearAlloc 0x0 used 630892 of 5242880 (12%)


3. Stop LBS service programmatically

4. Android eclair 2.1 - problem to get dns through dhcpcd in wifi network

5. Finally published my first app - thanks to this group!

6. Go back to previous screen programmatically

7. YouTube gak mau pla