WebView wait for images

by Mark Murphy » Fri, 23 Apr 2010 05:16:54 GMT


Sponsored Links
 


At least for your initial page, you can make it invisible to start, then
use a WebViewClient and onPageFinished() to find out when the page is
fully-loaded, then make it visible. I've used this in conjunction with a
custom RotateAnimation progress indicator, for example.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Consulting:  http://commonsware.com/consulting 

--



WebView wait for images

by Maps.Huge.Info (Maps API Guru) » Fri, 23 Apr 2010 05:27:15 GMT


 Have you tried using the onPageFinished test?

Additionally, if you have control over the page you're loading, you
can test for images directly in the JavaScript easily enough.

-John Coryat

"Radar Now!"

"What Zip Code?"

--


Sponsored Links


Other Threads

1. How to pass User created object between two Activity in same Application?

This concept comes from the book* Unlocking Android*.
http://www.manning.com/ableson/
Create an object for your your application that extends the
android.app.Application class

*import android.app.Application;
public class MyApplication extends Application {
...
}
*
Provide access to ClassA in the MyApplication class.
Set and Get ClassA from your activities.

*   MyApplication  application = (MyApplication) getApplication();
   ClassA local=application.getClassA();*


The android.app.Application class

The android.app.Application is a base class for those who need to maintain
global application state. It can be accessed via getApplication() from any
Activity or Service. It has a couple of life-cycle methods and will be
instantiated by Android automatically if your register it in
AndroidManifest.xml.

Carmen

http://twitter.com/CarmenDelessio

http://www.talkingandroid.com

On Tue, Jul 14, 2009 at 9:22 PM, Mapara,Harshit Nitinkumar <




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

2. Issue creating new service as part of framework

I am creating a new Service as part of the android framework
(frameworks/base/core). I have added the following in frameworks/base/
core/res/AndroidManifest.xml
         <service android:name="com.android.server.MyService"
            android:exported="true" />

I have a wrapper class in the same package with the following
function-
class Wrapper{
..
void bindTargetToService(Activity target) {
                mServicedBindTarget = target.bindService(new Intent
(target.getApplicationContext(), MyService.class),
m_connectionTarget, Context.BIND_AUTO_CREATE);
}
}

When I create an application/activity that creates an instance of the
Wrapper and calls bindTargetToService(this), DDMS reports that
com.android.server.MyService: not found.
The PackageBrowser in SpareParts shows that MyService is part of the
package.

Is there any else that needs to be done to "register" my service?


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

3. URL commands when calling Youtube through Intent

4. Activity lifecycle and static variables ....

5. Activity lifecycle and static variables ....

6. How to run the program on the new SAMSUNG GALAXY under windows XP

7. Wow. Why isn't the 1.5 emulator working...