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. I don't have the phone, how can I read reviews?

Hello all,

I posted a demo this morning, I got 2 downloads and 7 reviews (I don't
know how thats possible) but how can I "read" the reviews if you don't
have the phone?

Thanks
--~--~---------~--~----~------------~-------~--~----~

2. Changing IMAP

This code is found in:
src/com/android/email/mail/store/ImapStore.java


Okay, so I have a beef with the E-mail program provided by default and
I see room for change. My problem is that they use the IMAP command
LIST to list each folder, the problem with this is that, if you are
like me, with a large organization, you have a plethora of IMAP
folders. I haven't counted, but I'd estimate that we have around 292
and when I use the IMAP client built in, it loads all these folders,
and it takes it's sweet time.

connection.executeSimpleCommand(String.format("LIST \"\" \"%s*
\"",mPathPrefix == null ? "" : mPathPrefix));

Is the line that the code uses, which has a problem, because it's
telling the imap server it wants to list all the folders, whether you
are subscribed or not...

A simple change to this would be

connection.executeSimpleCommand(String.format("LSUB \"\" \"%s*
\"",mPathPrefix == null ? "" : mPathPrefix));

The LSUB command will only display the folders you are subscribed to,
instead of every folder. A better version would be the

connection.executeSimpleCommand(String.format("LSUB \"\" \"%s%
\"",mPathPrefix == null ? "" : mPathPrefix));

so that it would fold the folders first, then if a user click on it,
it can expand, swapping the % for a *.



If they are worried about not being able to see unsubscribed folders,
a new option can be coded to allow for

connection.executeSimpleCommand(String.format("LIST \"\" \"%s*
\"",mPathPrefix == null ? "" : mPathPrefix));

and simple have the user pick which folders they'd like to subscribe
to, if they have the permissions.


I have not yet git the entire tree and attempted to recompile the
emulator to reflect this change, but I will to test out my change and
I'll let you all know if this works, just wanted to get some feedback
on this problem.

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

3. Developer Available

4. How to build recovery Image separately

5. UI question: TrueType Font rendering bug

6. Looking for Accelerometer Example

7. Eclipse problem with new projects