WebView pauseTimers()

by Dan » Thu, 13 Jan 2011 06:28:28 GMT

Sponsored Links
 Hello All,

I am working on a an application that it trying to use the
WebView.pauseTimers() API. I am still getting console messages from my
JavaScript setInterval method after calling pauseTimers(). I was
wondering if this is a known problem, could I be missing a step, or an
alternative API that will suspend the setInterval timer.

Thank you,


Re: WebView pauseTimers()

by Dan » Fri, 14 Jan 2011 07:51:01 GMT

 I have completed a demo app and have verified that JavaScript timers
are not paused for either setTimeout() or setInterval().


Sponsored Links

Re: WebView pauseTimers()

by Dan » Fri, 14 Jan 2011 08:44:39 GMT

Other Threads

1. Adding images into my List view

Hi all. I currently start my app with a ListView, where each row in
the list contains two TextViews. The content for these are retrieved
from SQLite - a text description, followed by a content URI to an
image. Example:

Description1      content://media/external/images/media1
Description2      content://media/external/images/media2

Here's the relevant code:

String[] from = new String[] { MyDbAdapter.KEY_DESC,
MyDbAdapter.KEY_IMAGE };
int[] to = new int[] { R.id.desc, R.id.imageUri };
ListAdapter myList = new SimpleCursorAdapter(this, R.layout.my_row, c,
from, to);


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/

   <TextView android:id="@+id/desc"
    ...more options

  <TextView android:id="@+id/imageUri"
    ...more options



So far this is just a test. What I really want is the actual image
itself displayed as a thumbnail next to the description. I'm not quite
sure what to do next. I assume the second TextView has to become an
ImageView but after some playing around I haven't achieved what I'm

Any help greatly appreciated.

2. How to split a screen into two? One running with an application and the other with another application?

There is no need to use SurfaceView for that, just make your own activity
transparent such as with Theme.Translucent.
Anyway, the UI model is designed around having one main fullscreen activity
visible to the user (any number of non-fullscreen or translucent activities
can be stacked on top of it).  There is no way to have two running
side-by-side without significant deep cooperation between the two apps.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


3. How to Force browser activity to close after passing control

4. Logical keypad in Landscape mode

5. How to scroll Gallery all the way to the left?

6. OnItemClickListener onItemClick in custom adapter not firing

7. Building and booting kernel