How to hide alert dialog programmatically?

by SteleFreak » Mon, 13 Apr 2009 06:35:23 GMT

Sponsored Links
 Is there a way to hide alert dialog after it has been shown, but
programmatically?? Or is the BACK button only way? Or if i need to
implement a button , what method should I call for alert to be hidden?

How to hide alert dialog programmatically?

by sm1 » Mon, 13 Apr 2009 07:50:22 GMT



all Dialog children have this method.



Sponsored Links

How to hide alert dialog programmatically?

by Ralf » Mon, 13 Apr 2009 10:00:21 GMT #dismissDialog(int)



Other Threads

1. Stored password

How are security credentials/passwords stored on android phones? Are
they encrypted or in other way secured in case of i.e. theft?

For example, if my telephone gets stolen, would it be possible to
easily get access to stored browser passwords, my google password, app
passwords (e.g. login to cloud services)

Are these in some way encrypted and tied to PIN, unlock code or other
are they completely "in the open"? Is it up to the individual app
developer to securely store credentials/passwords/data (if possible)
or does it exist a security framework in Android?

Thanks for any insight, from someone new to Android!


2. Using socket in a service communicating with more activities...


I want to create an application to remote control my PC. For example:
Volume (get actual volume level, increase/decrease/mute volume),
TVtime (start/quit tvtime, get actual channel, toggle fulscreen,
channel up/down, toggle input source, toggle aspect ratio), Amarok
(start/quit amarok, get current song, prev/next song, play/stop/
pause), etc.
The application for the PC is done (in python).
The communication protocol used is very simple. For example:
"volume:get_level", "volume:up", "volume:mute", etc.
Now I'm working on the android application. What I have implemented
till now is to create an activity, with:
- an edittext to enter host:port
- a button to connect/disconnect to/from server
- the onCreate method creates a new thread for socket communication to
send/receive messages to/from PC.
- a textview to display information received from PC (eg. volume
- a button to send command to PC
I'm using handler to communicate between the tcpclient thread and the
main activity. It is working...
But I want to use more than 1 activity. I want to use different
activity for every program controlled. Searching for a solution to
transfer the thread's handler to a new activity I have found that it
is not possible, and I have to use a service.
So, my question is: how to send message from different activities to
the same service, how to send message from service to the actual
activity and how can I check in the service which is the actual

Because the service is running in the same thread as the activities I
suppose that I still have to create a new thread for socket
communication. How can I send the data received by the socket to the

Thanks in advance,

PS. I hope you understand my question and sorry if it is not the right
forum for it


3. How to realize software aut o version updateé”›

4. Phone storage running out after multiple installs

5. submitting app from Egypt

6. Market Server Bug -- Download Error

7. Tiny Flashlight v2.2.3 released! Supports Epic 4G, Incredible 2.2, Streak 2.1 and many more