suppress Force Close/Wait

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

suppress Force Close/Wait

Postby prodeveloper » Tue May 04, 2010 4:18 am

Hi everyone. Right now I'm working on an application that retrieves a lot of pictures from the web, so it takes some time. In fact, in some cases, it takes several seconds so that a "Force Close/Wait" message box pops up, though the images are always retrieved eventually without any problem. Is there any way to suppress this message box from appearing? Thanks.
prodeveloper
Freshman
Freshman
 
Posts: 6
Joined: Sun Apr 11, 2010 1:47 am

Top

Postby BlackDragonBE » Fri May 07, 2010 7:54 pm

Have you tried running the retrieving code in another Thread?

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. private Thread GetImages = new Thread() {
  3.  
  4.         public void run() {
  5.  
  6.             LoadUpImages();
  7.  
  8.         }
  9.  
  10. }
  11.  
  12.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
BlackDragonBE
Freshman
Freshman
 
Posts: 3
Joined: Wed Jan 20, 2010 9:47 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests