Pages

Tuesday 2 August 2011

Update or use of thread in android

   
   
    // Checking for update result
private void getSearchedItems(){
       
        Thread _thread = new Thread(){
           
            public void run() {
           
                String _url="http://www.bestbusinessplaces.com/photoshare/showMessageXml.php?user_id=4";
                _conn = new Connection(_url);
                messagesAL =_conn.getmessagedata();
                Message _msg = new Message();
                _msg.what = _updataResult;
               
                Messagelist.this._uicallback.sendEmptyMessage(_msg.what);
               
            };
        };
        _thread.start();
    }
   
By: Parmil.S & VkHooda

No comments:

Post a Comment