How to show a loading image or an animation?

by Achanta » Tue, 02 Feb 2010 01:39:54 GMT


Sponsored Links
 I have a search box and a web view in my activity.

I also have a search button which when someone clicks opens a the url
in the webview below the search box.

Everything is working fine except that it remains blank while the page
loads.
I want to show a loading message with a spinning icon/animation while
the page loads. [similar to one in the market app].

please let me know how to do it.
Thank you.

--



How to show a loading image or an animation?

by Temitope Akinwande » Tue, 02 Feb 2010 02:13:27 GMT


 Hi,

You can check this out
 http://developer.android.com/intl/fr/guide/topics/ui/dialogs.html #ProgressDialog
 http://developer.android.com/intl/fr/reference/android/os/AsyncTask.html 

that way you can show your progress dialog.
A search of progress dialog and async task should yield more results
as I'm sure this question has been asked before.

-Tope



>


Sponsored Links


How to show a loading image or an animation?

by Achanta » Tue, 02 Feb 2010 02:41:48 GMT


 Thank you for the reply,

I was also sure that it has been asked before because its a common
task, But searching the web or this group did not give me the
appropriate results.

I may have to but I am not sure. Here I am loading a webpage and this
is happening in the same thread or it appears to be. I can also get
the progress of it from the WebView. I am not doing any background
activity like calculations or downloading stuff, but loading the page
which is on the same thread. So I am a little lost on how to get this
done.

Thanks again.





> >



How to show a loading image or an animation?

by Achanta » Tue, 02 Feb 2010 04:05:32 GMT


 I saw that tutorial earlier and have also tried it.

Yes for now even a progress dialog in that way works for me.
I know i need to use getProgress but do not know how to send the
progress to the thread running the progress dialog.

Thanks again.






> >> >



How to show a loading image or an animation?

by Achanta » Fri, 05 Feb 2010 01:26:41 GMT


 ey Tope,

thank you for posting it.

I could not work on this till now but will start using your code. I
hope it will do what I need.
Thanks again for atleast getting me started on this thing.

Achie.

On Feb 1, 4:35pm, Temitope Akinwande <takinwa...@gmail.com> wrote:
> >> >> >



Other Threads

1. Query in Android Application development

Hi to all!!

         I am Raghav Rajagopalan from Chennai, India. I am a Android
application developer. I am new to this domain. I am working on building a
application. I have few queries. I hope you can help me out in solving my
issue.


My requirements are:

1. I have a Login Screen created. I need to create a SqLite DB to check if
user is a valid one or not.
2. If valid user navigate to my web site.
3. If new user he needs to register first.
3a. To register he needs click on the Register now button in Login screen,
Which will navigate user to my website for registration.
3b. After registeration i need to come back to login screen using a back
button in the Registeration screen(website).

I have designed the layout.

This is my task. I have tried many ways in developing this issue. But hardly
never worked fine for me.


Its my kind request to you to help me out in this issue.

Thanks in advance.


Regards,
Raghav Rajagopalan

-- 

2. [WTA] Restore backup gagal

Dear RR,

niubi mo nanya dan minta saran suhu2 dan senior2 di sini mengenai restore
backup an data (nandroid)...mohon bantuan nya yaq..

jadi gini, kemaren pas iseng2 mau coba rom baru, wa backup rom dulu dari
recovery cwm..setelah selesai, wa boot lagi seperti biasa..karena kapasitas
sdcard masih kecil (2gb, belum sempet beli yg gedean), wa pikir untuk
menghemat space nya, wa copy file backup an nya itu, yg di
/clockworkmod/backup ... ada satu folder sesuai nama file yg wa kasih (sebut
saja backup1)..nah, kemudian folder backup1 itu wa copy semua dan paste ke
harddisk komputer..semua berjalan lancar..

kemudian, setelah puas coba2 rom baru, wa memutuskan ingin kembali saja ke
rom yg sebelum nya..cara yg di tempuh, wa copas lagi 1 folder semua itu
(backup1) ke folder semua ( /clockworkmod/backup/ ) ... kemudia boot ke
recovery..pilih yang 'backup and restroe', kemudian pilih 'restore'.. nah,
cuma ada satu pilihan disana : backup1/ ....

tapi masalah nya setelah pilih restore file itu, muncul error message :

Checking MD5 sums....

MD5 mismatch!!


kira2 masalah nya di mana ya? apa ada file yg hilang atau langkah2 yg
keliru?


mohon saran dan pencerahan dari rekan2 sekalian...


makasih sebelum nya...

-- 
===============

3. [WTI] Penyerahan Dana Partisipasi id-android untuk Bro Rheza Christian.

4. Bluetooth killer availabled in Android ? - WiFi Direct

5. Penyerahan Dana Partisipasi id-android untuk BroRheza Christian.

6. WTPamer : Livehome di juned

7. Finding the ID of the current layout