[android-developers] Alert dialog Adapter

2016-09-27 Thread vikas malviya
i am having a problem using alert dialog adpter..give me examples n explain

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/dd2b8667-494e-4c93-9153-4293ed9634fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Alert dialog streches single button

2013-04-01 Thread JossieKat
when i use builder to build a alertdilaog, setting a single 
button stretches it width to the dialog.
i think it is a design mistake.make a normal sized button in the middle of 
he dialog the windows does?
 or should I use custom dialog.?

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] Alert Dialog Box -Wifi

2012-08-10 Thread TreKing
On Fri, Aug 10, 2012 at 12:53 AM, Meena Rengarajan
meenasoft...@gmail.comwrote:

 When i click Yes button , it automatically should enable WiFi by
 progeammatically and if i click No then aopplication must be closed. What
 should i do here . Please can anyone help me?


http://lmgtfy.com/?q=android+turn+on+wifi+programatically

http://lmgtfy.com/?q=android+close+application

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Alert Dialog Box

2012-08-10 Thread dEEPESH PPM
Hi,


On Fri, Aug 10, 2012 at 11:18 AM, Meena Rengarajan
meenasoft...@gmail.comwrote:

 How to Enable Wifi automatically in Android 2.2 in an alert box ? If i
 click Yes button then it should be enable and if i click no then
 application must be closed. Can anyone tell me this how should i do ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Alert Dialog Box

2012-08-10 Thread dEEPESH PPM
Hi,
   Try this code;
In yes button click
 WifiManager wifiManager =
(WifiManager)this.context.getSystemService(Context.WIFI_SERVICE);
  wifiManager.setWifiEnabled(status); status =true or false
Regards


On Fri, Aug 10, 2012 at 11:18 AM, Meena Rengarajan
meenasoft...@gmail.com wrote:

 How to Enable Wifi automatically in Android 2.2 in an alert box ? If i click 
 Yes button then it should be enable and if i click no then application must 
 be closed. Can anyone tell me this how should i do ?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Alert Dialog Box

2012-08-09 Thread Meena Rengarajan
How to Enable Wifi automatically in Android 2.2 in an alert box ? If i 
click Yes button then it should be enable and if i click no then 
application must be closed. Can anyone tell me this how should i do ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Alert Dialog Box -Wifi

2012-08-09 Thread Meena Rengarajan
This is my Code, Alert box appears here like Yes /No. But what i need is, 
When i click Yes button , it automatically should enable WiFi by 
progeammatically and if i click No then aopplication must be closed. What 
should i do here . Please can anyone help me?


   public void onClick(DialogInterface dialog, int which) {
 Toast.makeText(getApplicationContext(), 'Yes',WiFi Enabled 
Now,Toast.LENGTH_SHORT).show();
// TODO Auto-generated method stub
 }
});
 alertbox.setNegativeButton(No, new DialogInterface.OnClickListener() {
 @Override
public void onClick(DialogInterface dialog, int which) {
Toast.makeText(getApplicationContext(), 'No',WiFi Disabled so application 
is closed, Toast.LENGTH_SHORT).show(); 
 // TODO Auto-generated method stub
 }
});
alertbox.show();

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Alert Dialog present but unable to look(Looks as a layer of dim color is present on screen). On Back Press it disappears.

2012-06-15 Thread Muhammad Rashid
Hi all,

I would like to say that i am using a alarm service and a broad cast
receiver. OnRecieve method i perform an operation that shows a
progressbar and an alert dialog. Alertdialog appears normally when
application  running foreground. But when i press HOME button and
application is now in background. Now i lock the device. When alarm
received and operation performs, and i run the app again, It should
show alart dialog. But it looks alert dialog is present but unable to
view. It shows as a dim layer is present on screen. When i back press,
it disappears. It mean alert dialog is there but not able to view it.

Regards

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Alert Dialog present but unable to look(Looks as a layer of dim color is present on screen). On Back Press it disappears.

2012-06-15 Thread Muhammad Rashid
Hi all,

I would like to say that i am using a alarm service and a broad cast
receiver. OnRecieve method i perform an operation that shows a
progressbar and an alert dialog. Alertdialog appears normally when
application  running foreground. But when i press HOME button and
application is now in background. Now i lock the device. When alarm
received and operation performs, and i run the app again, It should
show alart dialog. But it looks alert dialog is present but unable to
view. It shows as a dim layer is present on screen. When i back press,
it disappears. It mean alert dialog is there but not able to view it.

Regards

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Alert Dialog surface uses relative coordinates on canvas

2012-03-16 Thread Android007
Hi,
I am not sure, but I think my previous post was not published.. so I am 
sending it again.
I have a simple program that opens up an alert dialog whenever a user
presses a button (yes, tis a VERY simple program...).
I can see that whenever the dialog appears a new canvas is created (I
made a few changes to the platform code that notify me whenever this
happens).
So far, whenever a drawing (any drawing) was performed on the canvas,
it was using absolute coordinates , HOWEVER, when the dialog appears,
all canvas operations are performed on relative coordinates (relative
to the dialog box).
I am not sure why this happens. .
- Why is the drawing of a dialog using a different coordinate system
(while buttons, lists etc. don't)?
- How can the canvas instance know that it is now drawing to some
position not relative to the normal screen coordinates?
- I've also noticed that gravity affects the position of the dialog
box. Who is in charge of these gravity calculations (not the canvas
anyway)?
- To what surface does this canvas belong? I could not find any
indication of new surface creation when the dialog was created.


I think that understanding this would finally unveil this major
building brick I am missing in the Android views architecture.

Thanks a lot

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Alert dialog shown but not visible

2011-07-28 Thread Fina Perez
I have an activity where I start the built-in camera using
onActivityResult. After taking a picture, I go back to my application
and show a pop up asking to the user if he wants to take more pictures
or no. It works fine, but after taking the picture, when I press the
save button on the built-in camera app, and inmediatly I press the
home button, If I go back to my application, my activity is visible
but not active and the popup that should be visible is there but I
cannot see it. If I press the back button and cancel the pop up, my
activity is active again, but I dont want to allow the user cancelling
the pop up, so I set my dialog not cancelable. Now, when this extrange
behavior occurs, I cannot use my app, I just have to kill it...

The question is, how can I force to the dialog being always on the top
if it is shown? Cause seems like it is behind the activity, waiting
for the user to interact with it...

Thanks!

PD: I also posted this question in StackOverflow:
http://stackoverflow.com/questions/6858047/alert-dialog-shown-but-not-visible/6858112#comment-8156186

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Alert Dialog Custom View Shows Border

2011-07-26 Thread gaurav gupta
HI Everyone,
m using Alert Dialog to display a login form.
this login form contains one golden border.
M setting a custom view in this alert dialog.
but in Alert dialog one another cornor is also coming.
when i use this line

alert.setInverseBackgroundForced(*true*);



Cornor of alert Dialog becomes white and i set  it false, one transparent
border is coming.

i dont want to show any other border around my alert dialog.

Here is my code , please check.



LayoutInflater factory = LayoutInflater.*from*(*this*);

*final* View textEntryView = factory.inflate(R.layout.*speak_local*, *null*
);

Speak_convert_from=(Spinner)textEntryView.findViewById(R.id.*country_spinner
*);

Word_convert_from=(Spinner)textEntryView.findViewById(R.id.*
select_word_spinner*);

result_box=(EditText)textEntryView.findViewById(R.id.*result_edittext*);

conver_button=(Button)textEntryView.findViewById(R.id.*convert_button*);

Speak_convert_to=(Spinner)textEntryView.findViewById(R.id.*
convert_language_spinner*);

AlertDialog.Builder alert = *new* AlertDialog.Builder(*this*);

alert.setView(textEntryView);

alert.setInverseBackgroundForced(*true*);

AlertDialog *loginPrompt* = alert.create();

alert.show();



Kindly suggest me on this particular issue.

Thanks in Advance.

with Regards

Gaurav Gupta

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] alert dialog with refreshable listview

2011-07-13 Thread kamiseq
hej,
I want to create a simple AlertDialog with ListView. the list contains
all entries in my local db, so in onCreateDialog I created alert
builder and added items to it with onItemClick callback.

AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(R.string.recorded_list_titile)
   .setItems(new CharSequence[]{}, new
DialogInterface.OnClickListener()
   {
   @Override
   public void onClick(DialogInterface
dialogInterface, int index)
   {
//actions
   }
   });
return  builder.create();

but then I realized that list will change any time user adds entry to
db. so I added onPrepareDialog. and now Im lost. I could use adapter
from dialog listView but this adapter operates only on list of names.

my entry from db is mapped to class Entry {id, name}. in order to find
out which id user selected I have to created custom adapter -
CustomAdapterEntry. but adapter expect definition of row layout
which I really dont need because AlertDialog should already create
standard one.

then I probably end writing my own ViewHolder for adapter and
onItemClick callback.

I think this should be a lot simpler!!!

thanks for any help!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] alert dialog with refreshable listview

2011-07-13 Thread TreKing
On Wed, Jul 13, 2011 at 3:53 PM, kamiseq kami...@gmail.com wrote:

 but then I realized that list will change any time user adds entry to db.
 so I added onPrepareDialog.


What I do is use
http://developer.android.com/reference/android/app/Activity.html#removeDialog(int)
after
the dialog is used so it's forced to be recreated with the latest data in
your list.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Alert Dialog - Specified child already has a parent - on 2nd attempt

2011-02-17 Thread Aaron Buckner
The following code seems to work just fine the first time its used in the 
app but when the user goes to hit the button that calls this Alert Dialog a 
second time it creates a Force Close with this as the gist of the logcat 
(full at the bottom): The specified child already has a parent. You must 
call removeView() on the child's parent first.

final AlertDialog.Builder alert = new AlertDialog.Builder(this);
final EditText input = new EditText(this);

alert.setTitle(Mileage);
alert.setMessage(Set your mileage);

alert.setView(input);
alert.setPositiveButton(Ok, new DialogInterface.OnClickListener() 
{

@Override
public void onClick(DialogInterface dialog, int whichButton) {
 String value = input.getText().toString();
SharedPreferences prefs = getSharedPreferences(myDataStorage, 
MODE_PRIVATE);
Editor mEditor = prefs.edit();
mEditor.putString(mileage, value);
mEditor.commit();
UpdateMileage();
dialog.dismiss();
}
});

alert.setNegativeButton(Cancel, new 
DialogInterface.OnClickListener() {  
  
 public void onClick(DialogInterface dialog, int whichButton) {  
 dialog.cancel();
 dialog.dismiss();
 }  
});

//Update Button
ImageButton UpdateBtn = (ImageButton) 
findViewById(R.id.myride_update);
UpdateBtn.setOnClickListener(new View.OnClickListener() {
 public void onClick(View v) { 
 alert.show();
 UpdateMileage();
 return;
 }
});

/ Stack Trace /
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): 
java.lang.IllegalStateException: The specified child already has a parent. 
You must call removeView() on the child's parent first.
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
android.view.ViewGroup.addViewInner(ViewGroup.java:1976)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
android.view.ViewGroup.addView(ViewGroup.java:1871)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
android.view.ViewGroup.addView(ViewGroup.java:1851)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
com.android.internal.app.AlertController.setupView(AlertController.java:365)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
com.android.internal.app.AlertController.installContent(AlertController.java:206)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
android.app.AlertDialog.onCreate(AlertDialog.java:251)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
android.app.Dialog.dispatchOnCreate(Dialog.java:307)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
android.app.Dialog.show(Dialog.java:225)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
android.app.AlertDialog$Builder.show(AlertDialog.java:812)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
com.ceistudios.android.application.Dashboard$14.onClick(Dashboard.java:298)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
android.view.View.performClick(View.java:2501)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
android.view.View$PerformClick.run(View.java:9107)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
android.os.Handler.handleCallback(Handler.java:587)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
android.os.Handler.dispatchMessage(Handler.java:92)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
android.os.Looper.loop(Looper.java:123)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
android.app.ActivityThread.main(ActivityThread.java:3812)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
java.lang.reflect.Method.invokeNative(Native Method)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
java.lang.reflect.Method.invoke(Method.java:507)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
02-17 15:28:09.560: ERROR/AndroidRuntime(2503): at 
dalvik.system.NativeStart.main(Native Method)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Alert Dialog

2010-12-19 Thread Jatin D Patel
Can we set font size of message inside alertdialog?

-- 
Thanks,
Jatin D N Patel
You Got To Think HIGH to RISE.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Alert Dialog

2010-12-19 Thread Mark Murphy
Use setView() on AlertDialog.Builder and supply a TextView that is
formatted however you wish.

On Sun, Dec 19, 2010 at 4:20 PM, Jatin D Patel depo.ja...@gmail.com wrote:
 Can we set font size of message inside alertdialog?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Alert Dialog problem in Froyo

2010-12-16 Thread Rahul Garg
Hi Guys,

In Gallery,if you view any image and in that if you select Menu- Details. 

At the time of display image it shows annunciator bar for a moment and just 
disappear. I dont want this. After analyzing this I found that this is not 
visible when the items in the dialog is limited to 2-3 items. So suggest me 
the solution. It is in the Google Froyo code.


Thanks
Rahul

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Alert Dialog to display across activities?

2010-02-26 Thread Mark Murphy
Sam wrote:
 Does anyone know if it's possible to get a Dialog box to display
 between activities?

If, by this, you mean Activity A opens the Dialog and it stays open
until Activity B is on-screen and dismisses it, I'm fairly certain that
is not possible.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Alert Dialog to display across activities?

2010-02-26 Thread TreKing
On Thu, Feb 25, 2010 at 11:10 PM, Sam samm...@gmail.com wrote:

 Does anyone know if it's possible to get a Dialog box to display
 between activities?


What are you trying to achieve by doing this? Maybe there's another / better
way ...

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Alert Dialog to display across activities?

2010-02-25 Thread Sam
Does anyone know if it's possible to get a Dialog box to display
between activities? I've looked and haven't been able to find a
solution.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Alert Dialog

2010-02-11 Thread Sasikumar.S
Hi,

Pls see the below link  tell how to create a dialog box like that?

http://img.skitch.com/20090708-t6pc3h3jfhrnxj38sr6wi7i9k3.jpg

http://img.skitch.com/20090708-t6pc3h3jfhrnxj38sr6wi7i9k3.jpgThere Dialog
Test is Heading. It should be displayed in Bold.
You clicked button index 2 is text. It should be in ordinary font.
No lines between Heading  Text.
Heading  Text should be in center.

can any one tell about this?..

-- 
Thanks  Regards
Sasikumar.S

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Alert Dialog font issue for Network location provider

2009-12-19 Thread dvp
We see the bigger font for Agree and disagree buttons for the Alert
dialog when the network provider is selected in the  location settings
menu. Any pointers or suggestions which part of the framework code
need to take a look. This dialog is controlled by Networklocation.apk
which is not open source.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Alert Dialog font issue for Network location provider

2009-12-19 Thread Prasad Duggineni
We see the bigger font for Alert dialog agree and disagree buttons when the
network provider is selected from the location settings menu. Any
suggestions or pointers to resolve this issue. Dialog is controlled by
Network location.apk which is not open source.

Attached the screen shot as well.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=enattachment: device.png

[android-developers] Alert Dialog ok button greyed out issue

2009-06-26 Thread sujoydas1...@gmail.com

Hi All,

Does anybody know how to grey out the okay button in  an AlertDialog?

Thanks,

SD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Alert dialog in Android-SDK-1.1-Release 1

2009-03-27 Thread Zhubham

Hi all,

Alert dialogs which were properly displaying the full text (around 15
words) in SDK-1.0 , are trimming down the text to around 5 words in
SDK-1.1.

eg.

SDK1.0 = Welcome. This is an android based application. SDK used is
1.1-Release 1.

SDK1.1 =  Welcome. This is an android based app...

Can someone help me with this??

Thanks in advance.

Regards,
Zhubham.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Alert Dialog not centering vertically

2008-12-12 Thread redhookgroup

Hey everyone,

  I have a few screens where I am using the AlertDialog.Builder to
generate a dialog.  When I do show(), it shows up centered
horizontally but is not centered vertically (seems to be typically
lower than center).  I tried setting the gravity via dialog.getWindow
().setGravity() to CENTER but it seems to have no effect.  Oddly if I
use the gravity of BOTTOM, the dialog appears at the bottom of the
screen (as expected), but if I use gravity TOP, it shows up offset
from the top of the screen by a fair amount.  Has anyone else
encountered this issue (googling it doesn't appear to show anyone else
encountering this).

Any thoughts or suggestions would be greatly appreciated.

Thanks,

Andrew


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Alert Dialog never displayed in when call in the run() method of a separate process.

2008-09-08 Thread CG

Hello,

I am facing a strange issue. I suppose it is due to my bad
understanding of processes and compatibilities with processes.

So here is the behavior I'd like to have :
When I open my map, actions are done in background.
So I use a progress dialog. For that I need an separate thread.
But if an error occurs, I'd like to display a warning pop up. This
popup show request is done inside the run method of the separated
thread.

And the warning dialog is never displayed ! I don't understand why.
Can anyone explain me what is wrong ?
I join my code snippet to give a picture of what i try to do.

I also check the API demo and try to override the method
OnCreateDialog method but with the same result :-(

I suppose the issue is when I call the show().

- Code snippet
public class StationNearActivity extends MapActivity implements
OnClickListener, Runnable {


/** Called when the activity is first created. */
public void onCreate(Bundle icicle) {

pgd = ProgressDialog.show(this, null,
getString(R.string.nearest_station_progress_dialog_wait));

/*
 I create the dialog here
-*/
AlertDialog.Builder builder = new AlertDialog.Builder(this);
 
builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
dlg = builder.create();

/*--
if I display it there then it works ! But it is not the correct
behaviour
dlg.show()
-*/

super.onCreate(icicle);
thisInstance = this;

mapViewFromXML.setClickable(true);
mapViewFromXML.setEnabled(true);

}

Thread threadOfMap = new Thread(this);
threadOfMap.start();
}

public void run() {
Looper.prepare();

try {
Thread.sleep(200);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

// --- Fill the map
try {
setMapCenter();
if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
 mapCenter.getLongitudeE6() == 0)) {


/*--
The progress dialog dismiss works but the dialog show not !
-*/

pgd.dismiss();
dlg.show();
}

Log.d(MAP, add overlay);
   //
mapViewFromXML.postInvalidate();

} catch (Exception e) {
Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
} finally {
pgd.dismiss();
}
}
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---