Need Help in Webview Highlight

by brijesh masrani » Mon, 12 Apr 2010 12:17:56 GMT

Sponsored Links
 Hello Everyone,

I want to select text from Webview and than Highlight it.

 I am able to get the selected text using *emulateshiftHeld() *method but If
i try to search it in file and than Underline it the problem is that it
doesn't know the position of text so it underlines that word in whole file
as many time it is repeated.

So i want to find the position of that text (which will be known only at
runtime) in webview. Can anyone please help me??

Awaiting for a positive reply..

Brijesh Masrani.


Need Help in Webview Highlight

by Adriano » Tue, 31 Aug 2010 01:47:49 GMT


Did you find the solution ?




Sponsored Links

Need Help in Webview Highlight

by Maps.Huge.Info (Maps API Guru) » Tue, 31 Aug 2010 04:10:11 GMT

 emulateshiftHeld is not a documented function. I would recommend
finding another way. The problem with using undocumented features is
the have a nasty habit of going away, changing or suddenly doing
something you didn't expect. If you want your app to not break
unexpectedly, use documented features only.

-John Coryat


Other Threads

1. SoundPool.stop(streamId) intermittently never returns (freezes) on Android 1.5 on G1

I've been using SoundPool since Android 1.0 and have always used
workarounds to keep it from crashing.  In 1.5 it became officially
supported so I stopped using my hacks and instead used proper
playSound and stop() for loops.

As it turns out, when the number of streams is less than or equal to
the number of sounds being played concurrently, calling stop() on a
stream which is currently playing causes a freeze.  It never returns.

I found this out on my noisiest level of Light Racer 3D which, when
played with 3 players has:

3 Looping engine sounds
up to 4 charging sounds followed by up to 4 looping electricity sounds
up to 2 power-up sounds
up to 2 explosion sounds

Realistically, the most concurrent sounds being played would 9.  I
have my streams set to 10 to make sure that it's at the lowest setting
that supports everything.  I also use priorities on the samples, just
in case one is cut out.

After releasing the update to my game, I received feedback that on
that level sometimes the game would freeze.  I debugged it down to
that call to SoundPool.stop().

I know that in the past, I've seen SoundPool be sensitive to certain
OGGs that I've thrown at it.  Just re-encoding with a different
setting or a different encoding lib seemed to make a difference.

Either way, I found that SoundPool in its current state on 1.5 is not
bullet proof.  It can still freeze your application.

My workaround for stopping looping sounds is to setLoop(streamId, 0)
and setVolume(streamId, 0,0).  This seems to work fine.  I ran a
longevity test overnight last night, running the same level over and
over with the same soundpool.  It ran for 8 hours like that with no

If the soundpool developer (sorry, I forgot your name) needs help in
reproducing this problem, I'd be happy to set up a project that very
quickly causes the error.

Another problem is that when an app running an infinitely looping (-1)
sound crashes, SoundPool will continue to play/loop that sound until
the phone is restarted.  Just thought I'd throw that out there.


2. about Intent.createChooser

Hi, i am new from this field.
Recently i learned about createChooaer from " Launcher "

Intent intent = new Intent(Intent.ACTION_SET_WALLPAPER);
startActivity(Intent.createChooser(intent, "Select Wallpaper"));

is it possible if i would like to add other selection in this chooser?
or "Picture" & "Wallpaper gallery" is the fixed selection???

if i would like to add another selection what should i do?
please kindly give me some advice.

Many thanks for your help


3. for adc2 only: help the most

4. augmented reality frustum

5. XML Menu

6. costraint mis match

7. last modification time of contact