Text Invalide question

by Arun » Mon, 03 Aug 2009 04:24:20 GMT


Sponsored Links
 I've a button on my screen, that triggers a backend process that takes
15 secs. I would like to tell the user to wait for 15 secs when they
click, and update the status after the processing is done.

In order to achieve this, in my button OnClick method, I am doing the
following:
TextView tv = (TextView) getTextViewById();

tv.setText("Processing kicked off... Please wait for 15 secs");
tv.invalidate();
//call processor
tv.setText("Process Success");

But, in reality, all I see is the result of last setText call. No
intermediate updates are shown on the screen. Is invalidate the right
method to display the message? Should I be calling something else?

Thanks in advance for your help!
Arun.

--~--~---------~--~----~------------~-------~--~----~



Text Invalide question

by Jack Ha » Mon, 03 Aug 2009 07:34:55 GMT


 This link might help solve your problem:

     http://android-developers.blogspot.com/2009/05/painless-threading.html 

--
Jack Ha
Open Source Development Center
obilestick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Text Invalide question

by peter » Mon, 03 Aug 2009 15:56:10 GMT


 In your code,  the main thread still running when you trigger a new
thread to run in background

obviously, you will see result of last setText call as "Process
Success"

you should callback main thread to reset status after your thread
finished.



--~--~---------~--~----~------------~-------~--~----~



Text Invalide question

by Umair Akbar » Tue, 04 Aug 2009 01:29:18 GMT


 Hey, acquaintances h r u
Break these bogs @ very fascinating
I hope u enjoy this bogs

www.safteytips007.blogspot.com
www.wonderfulbwp.blogspot.com
  www.technicaleducationbwp.blogspot.com








--~--~---------~--~----~------------~-------~--~----~



Text Invalide question

by Umair Akbar » Tue, 04 Aug 2009 01:29:29 GMT


 Hey, acquaintances h r u
Break these bogs @ very fascinating
I hope u enjoy this bogs

www.safteytips007.blogspot.com
www.wonderfulbwp.blogspot.com
  www.technicaleducationbwp.blogspot.com








--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Unofficial SDK 1.5 with media files

Hi,

      Here i'm posting my SDK 1,5, based on Latest Cupcake
  source code, and this SDK includes the media files, that normally
are
 hidden under @hide directive. The emulator are ok in both Linux and
 Windows. Sorry Mac OX Users, i don't have one to build. Apparently,
 the SDK is ok, and the documentation also. The plugin is also there.

http://rapidshare.com/files/193806918/android-eclipse-0.9.0-plugin.zip
http://rapidshare.com/files/193811442/android-sdk_15_windows.zip
http://rapidshare.com/files/193814085/android_sdk_15_linux.zip

 Enjoy!!

Breno T. Minzon
--~--~---------~--~----~------------~-------~--~----~

2. Application label in the manifest

I am sure this is real simple and I am just missing it...  In the
manifest you can specify a label and an icon for your application that
displays in Android Market.

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


However, I have noticed that a number of applications also provide a
2-3 line description of the app as well.  I am not seeing you I set
the description string.  What is the attribute name to set that for
the app?  I am assuming I need to set that in the manifest file as
well.

thanks

--~--~---------~--~----~------------~-------~--~----~

3. R.java file is not getting updated

4. bad packet exception - eclipse debugging

5. Using G1 as modem

6. Read Image with multiple Frames - Animated Gif

7. how to completely wipe out the application data