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. Live Wallpaper not Showing up on Market for Moto Droid w/ OTA 2.1

I am pulling out my hair trying to figure out what to do to get my
Live Wallpaper to show up on the Android Market for a Moto Droid with
the 2.1 OTA update.  It shows up and downloads just fine on Nexus One.

I can only think that it has something to do with the
AndroidManifest.xml file contents.  I tried all combinations for
<supports-screens> including not having it at all.  I tried including/
excluding the <uses-feature
android:name="android.software.live_wallpaper" />.

I don't like releasing my app over and over trying to debug this.
Please help out if you can.

Here is the file for reference (in it's current state):
<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.yakloinmobile.lw.physics"
    android:versionCode="104"
    android:versionName="1.04">

    <application
        android:icon="@drawable/icon"
        android:label="@string/app_name">

        <service
            android:label="@string/app_name"
            android:name=".WaterPhysicsToyLiveWallpaper"
            android:enabled="true"
            android:permission="android.permission.BIND_WALLPAPER">
            <intent-filter android:priority="1">
                <action
android:name="android.service.wallpaper.WallpaperService" />
            </intent-filter>
            <meta-data
                android:name="android.service.wallpaper"
                android:resource="@xml/main" />
        </service>

        <activity
            android:label="@string/settings"
            android:name=".WaterPhysicsToySettings"
            android:theme="@android:style/
Theme.Light.WallpaperSettings"
            android:exported="true" />

    </application>

    <uses-sdk android:minSdkVersion="7" />
    <uses-permission android:name="android.permission.VIBRATE" />

</manifest>

-- 

2. Compile and port Android os in MS104-SH4AG board

Any English information, I cannot read japanese.

I've never worked with SH4, and I don't know if android stands for that

But anyway you can start here:

http://android.git.kernel.org/
http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Porting-Android-to-a-new-device/
http://www.mail-archive.com/android-disc...@googlegroups.com/msg10640.html
https://review.source.android.com/#dashboard,1001893




> 

3. how to use jmdns

4. Broadcast receivers

5. Beginner Question: Is it possible to put each class into it's own java file in Eclispe?

6. Could anyone with an HTC Desire/Droid help me

7. Modify strings.xml dynamically