eclipse - I am trying to add a progress bar on my android app to show as the application loads data, using Ecplise, -


i ideally progress bar run pop-up dialogue box - loading bar... user clicks on icon run app... once app loads disappears.

i have been researching ways of doing struggling find working solution... great

you'll want use android progressbar, have 2 choices:

<progressbar     style="@android:attr/progressbarstylelarge"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:indeterminate="true" /> 

this provide spinner loop forever. show , hide required.

the alternative large in scope so. principle however, following:

  • size of data download
  • current speed of client data transfer

to calculate total time remaining download. use handler post periodic updates traditional linear progressbar , give progress bar tracks download. you've seen ms have ever done, calculation tricky connection speeds vary constantly.

hope helps.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -