android - why I load long text in textView does not show me?¿ -


i use new thread method called oncreate(). info textview().

 new thread(new runnable() {             public void run() {                   info.post(new runnable(){                      public void run() {                         info.settext(panel.getinfo());                      }                   });             }        }).start();  

if info.settext(panel.getinfo()); call without creating thread take 3-4 seconds being blocked application showing it,

then how can show text without being blocked app¿?

 new thread(new runnable() {             public void run() {                   string text = panel.getinfo();                 info.post(new runnable(){                      public void run() {                         info.settext(text);                      }                   });             }        }).start();  

actually taking long panel.getinfo() call. , making call in info.post, you're doing in ui thread.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -