How to dismiss the single select dialog in AlertDialog

by mercury xu » Sun, 15 Mar 2009 13:13:01 GMT

Sponsored Links
 i Vincent

That a good idea , as we know, if we build an alterDlg need following

//modify by mercury xu 20090314 in the new sdk
//they don't support this function as showAlert!

new AlertDialog.Builder(loginScreen.this)
.setTitle("Login Data")
.setMessage("Login :" + usrTxt + "\n"+ "PassWords : " + pwdTxt)
.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
.setNegativeButton("No", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {

maybe you can try to change the setPositiveButton and setNegativeButton
as Not visible or comment them, and add following code for keyup or keydown

OnClickListener as setResult(RESULT_OK);

you can get some useful infomation from

key was pressed down.
key was released.

those two founction I hope that is your need.

Wish good luck and best regards!


2009/3/15 vincent Kor <>


Other Threads

1. Remove attention box while activating softkeyboard

How are you all

I am developing android applications. currently I have customized the
sample softkeyAndroid project to include amharic language (Ethiopian
language). The keyboard works well. But when I try to activate it from
the setting (Local & Text) option, it displays some warning message
that says
"This input method may be able to collect all the text you type,
including personal data like password and credit card numbers. ....".

I think this text is include for security purpose. But users may not
be interested to use the keyboard.

So my question is How can I remove this warning message to make the
keyboard available for users (without payment).

or is there anything that I have to consider while developing the

Please help me.

Thank you in advance.



2. updating app on android market using different name


I believe only the package name have a significance.

You can just change the name of your app (eg. /res/strings.xml/
appname), and resubmit it.

Beside in the market you have a field for the AppName, which I believe
is the name used when browsing the market.

Anyway, the submit process won't let you mess with it, you can try and
upload your new app with a new name and the same package name on top
of your old one. If it is not allowed the market will tell you and
refuse your new version.

You can also try with a dummy app you make just for testing purpose.
You simply won't publish it and remove it afterwards.

I say that from the top of my head, so please come back afterward and
tell us how you did.

Good luck.



3. How to launch YouTube with specified keywords?

4. permisi..

5. Questions to comic contents developer

6. (WTA) How to Rename Shortcut?

7. Ghost radar