Saturday, February 22, 2014
android initialization data when a little more, 20,000 to strip, so just start the application, will be black and white 5,6 seconds, as the investigation at the time of initialization, first do a background of other
android initialization data when a little more, 20,000 to strip, so just start the application, will be black and white 5,6 seconds,
Check if the initialization, a first additional background it
Can not post the code, key code on the line, android initiator, under the guidance of the great God who seek
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
20000 data is a bit much. If it is not necessary to enter the best home batch loaded.
Home General needs to have the welcome screen images and loading progress styles.
Reply:
Ah, I just want to ask, "welcome screen images and loading progress style" how to get this thing. . .
Reply:
You open a thread in which to load onResume not on the line, finished sending a message to the activity, such a simple question you have to ask it?
Reply:
Records or background a little better, so that users such as 5-6 seconds is not very good.
What do you have to look at the data, how to load, go have a reference code.
Reply:
Multi-threaded, you load the data on the UI thread?
Reply:
Give examples do not, because new to android less than 10 days, now hurry to change, to the small sample the best, Thank you very much
Reply:
So powerful, ten days can be made this way, and I'll wait to shame
Reply:
Why not paged?
Reply:
Initialization can be considered a direct copy of the existing batch or db file
Reply:
< br />
There java foundation of it, say the development of small applications do not involve any advanced technology,
This does not, when you first start the program initializes a lot of data, direct insert too slow, do not know where to put the processing
I see a lot of appearances applications are loaded into a first page. .
Just so how to achieve it
Reply:
< br />
Paging mean? This is the first time you start the application needs to load data. . And a lot of data. . To 5,6
Reply:
Insert data into SQL, then it opens in the first activity in the asynchronous thread insert operation, the activity in the first two asynchronous page read, they will not card
Reply:
Paging is select * from xx .. limit 50;
Reply:
Whole a progress bar
Reply:
Both methods
1 Design a page is loaded, the calling thread when downloading data, the data is downloaded, ready to close, the page jumps, load data
2 asynchronous loading, load distribution, such as news list Netease news client.
A combination of both with the effect more.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment