User Cancel - ProgressDialog

by Matthew Patience » Tue, 20 Apr 2010 21:00:43 GMT


Sponsored Links
 I started an indeterminate progress dialog in my onCreate method and
then used ASync to download some info and display it to the user.
After that I dismissed the progressdialog. I don't if anyone else has
experienced this but sometimes the progress dialog is stuck in a loop
and it wont download any info. I can tell because the data arrows wont
move. The only way to cancel this is to click the Home or Search key.

I have never been able to figure out how to debug my applications but
I was rather wondering if this is a common problem or if there is a
simple fix.

Thanks

--



User Cancel - ProgressDialog

by polyclefsoftware » Tue, 20 Apr 2010 21:10:53 GMT


 I believe if you use the following method, the back button should
dismiss the progress dialog, without closing the app:

progressDialog.setCancelable(true);

On Apr 20, 8:00am, Matthew Patience <matthewj.patie...@gmail.com>


>


Sponsored Links


User Cancel - ProgressDialog

by Matthew Patience » Thu, 22 Apr 2010 01:00:50 GMT


 Works, thank you. The class documentation isn't all there for some
reason. Found a whole bunch of stuff in the code auto-completion in
Eclipse though.




> >



Other Threads

1. Android 2.2 Froyo Berjalan di Nokia N90

baru baca di 
detik<http://www.detikinet.com/read/2010/06/28/115735/1388210/317/android-22-froyo-berjalan-di-nokia-n900/?i991102105>


OS Android yang berjalan dengan Nokia N900 bukanlah kejutan baru. Hal
tersebut pernah dilakukan grup bernama NTDroid project. Kini mereka pun
berhasil membenamkan versi terbaru Android 2.2 Froyo, dalam N900.

Dikabarkan sebelumnya, berdasarkan uji benchmark oleh Android Police, Froyo
dapat berlari empat kali lebih kencang dibanding Eclair alias Android 2.1.
Apakah ini berarti lebih kencang dari OS Maemo? Ternyata tidak.

Dalam video 
tersebu<http://www.youtube.com/watch?v=U46e_VYANWs&feature=player_embedded>t
diketahui Froyo yang menggunakan *kernel version* *2.6.28-omap1
e-...@maemo-sdk #33,* nampak sedikit lambat ketimbang Maemo.

Selain itu, tak semua fitur Froyo berjalan mulus pada Nokia N900. Dalam demo
video di YouTube, Froyo yang berjalan pada ponsel Maemo tersebut tak mampu
mendeteksi status baterai, nomor ponsel, serta jaringan.

Untuk urusan suara, Froyo sudah dapat berjalan mulus di N900, termasuk saat
menggunakan earphone. Namun untuk opsi setting, rupanya N900 terkesan
'menolak' kehadiran Froyo.

*"Sorry! The Application Settings (process com.android.settings) has stopped
unexpectedly. Please try again,"* tulis pesan yang muncul pada layar ponsel,
saat dicek *detikINET *dalam video tersebut, Senin (28/6/2010). Alhasil N900
tidak bisa disetting lebih lanjut, melalui menu setting
aplikasi. Kesimpulannya Froyo sudah dapat berjalan pada N900. Hanya saja
jalannya kurang 'ikhlas'.

-- 
"Indonesian Android Community [id-android]" 

2. Issue in downloading Android Sourc

Hi all,

I have tried to download the android source in my Ubuntu 9.04 (kernel
version 2.6.28-11-generic). I have followed the steps mentioned in the
site (http://source.android.com/source/download.html) to download. But
when i tried to initialize the 'repo' with the latest version of
repository using the command (repo init -u 
git://android.git.kernel.org/platform/manifest.git),
i am getting the following error.

--------------------------------<Error Msg Snip
begin>--------------------------------------

r...@testpc-linux:~/bin/mydroid#repo init -u 
git://android.git.kernel.org/platform/manifest.git
gpg: keyring `/root/.repoconfig/gnupg/secring.gpg' created
gpg: keyring `/root/.repoconfig/gnupg/pubring.gpg' created
gpg: /root/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 920F5C65: public key "Repo Maintainer
<r...@android.kernel.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1

Getting repo ...
   from git://android.git.kernel.org/tools/repo.git
android.git.kernel.org[0: 204.152.191.45]: errno=Connection timed out
android.git.kernel.org[0: 130.239.17.12]: errno=Connection timed out
android.git.kernel.org[0: 149.20.20.141]: errno=Connection timed out
android.git.kernel.org[0: 199.6.1.176]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
r...@testpc-linux:~/bin/mydroid#

-----------------------------------<Snip
End>----------------------------------------------

I have pinged all the ip address shown in the error message, but it
fails. I would appreciate any help to resolve this problem.

FYI: The steps that i have followed to download the Android Source is
attached inline.

Thanks in advance,
Arun


Steps followed to download the Android source:
======================================

1. Install the Packages (Git, JDK, flex, bison, gperf, libsdl-dev,
libesd0-dev, libwxgtk2.6-dev, build-essential, zip, curl) using the
follwing command
      r...@testpc-linux:~# sudo apt-get install git-core gnupg sun-
java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev
build-essential zip curl libncurses5-dev zlib1g-dev

2. Install Valgrind using the following command.
      r...@testpc-linux:~# sudo apt-get install valgrind

3. Install Repo with the following commands.
      r...@testpc-linux:~# cd ~
      r...@testpc-linux:~# mkdir bin
      r...@testpc-linux:~# echo $PATH
      r...@testpc-linux:~# curl http://android.git.kernel.org/repo >~/
bin/repo
      r...@testpc-linux:~# chmod a+x ~/bin/repo

4. Initialize a Repo client with the following commands
      r...@testpc-linux:~/bin# mkdir mydroid
      r...@testpc-linux:~/bin/mydroid# cd mydroid
      r...@testpc-linux:~/bin/mydroid# repo init -u
git://android.git.kernel.org/platform/manifest.git
                gpg: keyring `/root/.repoconfig/gnupg/secring.gpg' created
                gpg: keyring `/root/.repoconfig/gnupg/pubring.gpg' created
                gpg: /root/.repoconfig/gnupg/trustdb.gpg: trustdb created
                gpg: key 920F5C65: public key "Repo Maintainer
<r...@android.kernel.org>" imported
                gpg: Total number processed: 1
                gpg:               imported: 1

                Getting repo ...
                   from git://android.git.kernel.org/tools/repo.git
                android.git.kernel.org[0: 204.152.191.45]: errno=Connection 
timed
out
                android.git.kernel.org[0: 130.239.17.12]: errno=Connection 
timed out
                android.git.kernel.org[0: 149.20.20.141]: errno=Connection 
timed out
                android.git.kernel.org[0: 199.6.1.176]: errno=Connection timed 
out
                fatal: unable to connect a socket (Connection timed out)
      r...@testpc-linux:~/bin/mydroid#





-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. Issues in downloading android source code(Repo init )

4. Lenovo LePhone

5. OOT: ada yang pernah dapet email seperti ini?

6. How to fetch phone's phone number or unique ID

7. Docstogo