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


 do

  yourAlert.hide();

all Dialog children have this method.

serge



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


Sponsored Links


How to hide alert dialog programmatically?

by Ralf » Mon, 13 Apr 2009 10:00:21 GMT


 


 http://developer.android.com/reference/android/app/Activity.html #dismissDialog(int)

R/


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



Other Threads

1. Access Java based WebService using Android

Hi ,

I developed my own web service for Searching purpose.But i wana to
access it using Android.
i tried some code but it does not work some exception are there as ::

 org.xmlpull.v1.XmlPullParserException: expected: END_TAG {http://
schemas.xmlsoap.org/soap/envelope/}Body (position:END_TAG </{http://
schemas.xmlsoap.org/soap/envelope/}env:Fault>@2:595 in
[EMAIL PROTECTED])

E/AndroidRuntime(  554):        at
org.kxml2.io.KXmlParser.exception(KXmlParser.java:243)

E/AndroidRuntime(  554):        at
org.kxml2.io.KXmlParser.require(KXmlParser.java:1374)

E/AndroidRuntime(  554):        at org.ksoap2.SoapEnvelope.parse(Unknown
Source)

E/AndroidRuntime(  554):        at
org.ksoap2.transport.Transport.parseResponse(Unknown Source)

E/AndroidRuntime(  554):        at
org.ksoap2.transport.AndroidHttpTransport.call(AndroidHttpTransport.java:
82)

E/AndroidRuntime(  554):        at
com.android.i3content.Test.playVideo(Test.java:74)

E/AndroidRuntime(  554):        at com.android.i3content.Test
$1.onClick(Test.java:56)

E/AndroidRuntime(  554):        at android.view.View.performClick(View.java:
1515)

E/AndroidRuntime(  554):        at
android.widget.ImageButton.performClick(ImageButton.java:80)

E/AndroidRuntime(  554):        at android.view.View.onKeyDown(View.java:
2280)

E/AndroidRuntime(  554):        at
android.view.KeyEvent.dispatch(KeyEvent.java:401)

E/AndroidRuntime(  554):        at
android.view.View.dispatchKeyEvent(View.java:2206)

E/AndroidRuntime(  554):        at
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:360)

E/AndroidRuntime(  554):        at
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:360)

E/AndroidRuntime(  554):        at
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:360)

E/AndroidRuntime(  554):        at
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:360)

E/AndroidRuntime(  554):        at
android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:360)

E/AndroidRuntime(  554):        at android.policy.PhoneWindow
$DecorView.superDispatchKeyEvent(PhoneWindow.java:1071)

E/AndroidRuntime(  554):        at
android.policy.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:884)

E/AndroidRuntime(  554):        at
android.app.Activity.dispatchKeyEvent(Activity.java:1377)

E/AndroidRuntime(  554):        at android.policy.PhoneWindow
$DecorView.dispatchKeyEvent(PhoneWindow.java:1058)

E/AndroidRuntime(  554):        at
android.view.ViewRoot.handleMessage(ViewRoot.java:564)

E/AndroidRuntime(  554):        at
android.os.Handler.dispatchMessage(Handler.java:80)

E/AndroidRuntime(  554):        at android.os.Looper.loop(Looper.java:71)

E/AndroidRuntime(  554):        at
android.app.ActivityThread.main(ActivityThread.java:2506)

E/AndroidRuntime(  554):        at
java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(  554):        at
java.lang.reflect.Method.invoke(Method.java:380)

E/AndroidRuntime(  554):        at android.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:1170)

E/AndroidRuntime(  554):        at
android.os.ZygoteInit.main(ZygoteInit.java:1121)

E/AndroidRuntime(  554):        at android.dalvik.NativeStart.main(Native
Method)


I did not understand why these exception occured .can u plz suggest me
tht what can i do to resolve it.....i need suggestion ...
Thank u in advance ....wait for response....
--~--~---------~--~----~------------~-------~--~----~

2. In toast cancel()

i want closed toast view.....
i used
toast.cancel();
but it's didn't closed.....what is reasons behind it???

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

3. Dial to a Number

4. application always persistent?

5. ID Handling between activities

6. I need the sample files for MOCK LOCATION PROVIDER

7. Location Manager Questions w.r.t Evaluation