Hello !

I want to make a loading screen, so I follow a java tutorial but I don't
know how can I use thread with Monodroid. This is the java code :

private void traitementDesDonnees()
        {
            new System.Threading.Thread(new Runnable(){
                public override void run(){
                    // Boucle de 1 a 10
                    for (int i = 0; i < 10; i++)
                    {
                        try
                        {   
                            // Attends 500 millisecondes
                            System.Threading.Thread.Sleep(500);
                        }
                        catch (Exception e)
                        {}
                    }
                }
            }
        }

Apparently, it doesn't recognize Runnable()...

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Make-loading-screen-tp4520263p4520263.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to