android - ProgressDialog loading animation stuck/frozen after 2-3 spins -
i've been trying set-up progressdialog (which works), seems freeze (the animation of little wheel thing) after 2-3 spins. data load, , progresssdialog gets dismissed - so, works fine, other fact freezes after 2-3 spins.
here's snip of code:
// setting loader summaryloader = progressdialog.show(summaryview.this, "", "loading summary...", false, true); // settings , starting helper thread that's going load summery data thread t = new thread() { @override public void run() { _populatesummary(); } }; t.start();
i'm running on entourage edge running android 1.6.
i did read issues 1.6 , animation freezing, thought i'd give shot , see if here has ideas.
i think though runs on thread still takes considerable amount of cpu usage.you can try setting priority thread before start , see if solves problem though have impact on execution speed.
t.setpriority(thread.min_priority);
else try using async task
android async task progressdialog isn't showing until background thread finishes
Comments
Post a Comment