Invalidate()?...

by Sasikumar.S » Thu, 03 Dec 2009 18:32:32 GMT


Sponsored Links
 Hi,

What is the use of Invalidate() in android?...

Any one know about these?...

Thanks in advance....

-- 
Thanks & Regards
Sasikumar.S

--



Invalidate()?...

by sathya subbiah » Thu, 03 Dec 2009 18:59:04 GMT


 Invalidate is used for updating the View display. Its like refreshing the
view.

Rgs,
Sathya




>


Sponsored Links


Invalidate()?...

by Sasikumar.S » Thu, 03 Dec 2009 19:12:33 GMT


 Hi,

Thanks for reply...

It will refresh onDraw()?....

On Thu, Dec 3, 2009 at 4:28 PM, sathya subbiah




>>



Invalidate()?...

by UD » Sat, 05 Dec 2009 02:44:30 GMT


 Yes..
invalidate() will call onDraw() internally.

--
Regards,
Udayan Warnekar
Android Application Developer






> >>



Other Threads

1. Wireless settings dialog

Hello, i am checking networking connection using the below code:

public static boolean haveInternet(Context ctx)
{
    NetworkInfo info = (NetworkInfo) ((ConnectivityManager)
ctx.getSystemService(Context.CONNECTIVITY_SERVICE)).getActiveNetworkInfo();

   if (info == null || !info.isConnected()) {
          return false;  // no connection
   }

  return true;   // true if having connection
}

Now, on "no connection" , i am launching "Wireless settings" dialog
using the below code:

    context.startActivity(new
Intent(Settings.ACTION_WIRELESS_SETTINGS));

but, user is being able to "on/off" the wireless, now how do i come to
know whether the user has made "on" the wi-fi or not? what result is
returned by the above intent on the successful wireless connection.
how do i check it ?

-- 

2. Droid 2 & Fast Web Installer

I've seen all the posts claiming the Droid ID is the problem with why
apps cannot push.  However, why is it that I can uninstall apps via
the Appbrain website and they will automatically uninstall on my Droid
2, but I just cannot install apps?

-- 

3. MoPub - Mobile Advertising Platform Private Beta

4. Question about writing Events into Google Calendar in Android

5. Buttons on Scroll bar

6. MoPub - Mobile Advertising Platform

7. The dreaded "error: Error parsing XML: XML or text declaration not at start of entity"