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,
-Dan

-- 



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. Problems with support from T-mobile/General Question

Hello,

I am having an issue that looks to be a bug on my Tmobile G1,  but T-
mobile isn't helping me resolve or expedite it.  The bug details are
listed here: http://code.google.com/p/android/issues/detail?id=2083.

T-mobile claims that I have the responsibility to troubleshoot Android
and file bugs for a phone they "support" and run on their network.
Humorously enough I went to the Better Business Bureau and so they
finally got back to me after 5 separate calls to support.  They claim
2 things that I am wondering about...

1. Do providers have responsiblity for interfacing with you the
Android team in submitting bugs on behalf of their supported
consumers?  Or does the consumer?

2. Do you have a team within the Android group at Google that works
with the provider networks?

BTW, the particular "senior" customer service manager I spoke with
said that the issue related to the fact that Android was open source.
Being a user, supporter and advocate of FOSS I had to stop and laugh.
xD  I asked him what that had to do with it and I got no response.

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

2. Validating User Input

Hello all,
In my quest to learn android, here is my next conundrum.
I have created a class that provides two EditText boxes in the UI.
I want to then launch one of two different classes, based on whether
or not the two inputs match.....password confirmation.

I have a similar situation in different areas of my program, in both
locations, the code chooses the same one each time, and I cannot get
it to choose the other by varying the input accordingly.

The code is below.  Any help would be greatly appreciated.

Tad

******************************.java
class******************************************************************

package com.toadster.KMH;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class ChngLog2 extends Activity{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.chnglog2);




        EditText newlogin = (EditText) findViewById
(R.id.login_entry_new);
        final String NewLoginEntry = newlogin.getText().toString();


        EditText conflogin = (EditText) findViewById
(R.id.login_entry_conf);
        final String ConfLoginEntry = conflogin.getText().toString();


 /*Find the Buttons from the XML Layout */

        Button k = (Button)this.findViewById(R.id.btn_next);
                k.setOnClickListener(new OnClickListener() {
                public void onClick(View arg0) {

        //Button Click Statements

                        if (NewLoginEntry.equals(ConfLoginEntry))
                                {final String login = NewLoginEntry;
                                Intent l = new Intent( ChngLog2.this,
UpdateConfirm.class);
                                startActivityForResult(l, 0x0341);      }


                        else {
                                        Intent v = new Intent(ChngLog2.this, 
Nomatch.class);
                                        startActivityForResult(v, 0x0347);
                        }


*****************************  .xml
****************************************************************************

  // Beginning of the UI body

    <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textSize = "15sp"
    android:text="Enter NEW 4 Digit Login"
    />

<EditText  android:id = "@+id/login_entry_new"
        android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:password ="true"
    android:hint = "####"
    />

        <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="   "
    />
<TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="   "
    />

  <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textSize = "15sp"
    android:text="Confirm NEW 4 Digit Login"
    />

<EditText  android:id = "@+id/login_entry_conf"
        android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:password ="true"
    android:hint = "####"
    />
    <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="   "
    />

<Button
        android:id="@+id/btn_next"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text = "NEXT"
        />

</LinearLayout>



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

3. DoubleTwist

4. Does android support Google Gear?

5. new version of app - is the user notified?

6. How to set the video display to the horizon or vertical of display panel in video playing

7. Intents and Uris, for Ringtone Picker