[android-developers] Re: About progress dialogs

2010-03-17 Thread LeGeNDuS
On 16 mar, 18:09, TreKing treking...@gmail.com wrote: On Tue, Mar 16, 2010 at 1:05 PM, LeGeNDuS legen...@gmail.com wrote: What happens to it? If this is you exact code, you're running everything in the UI thread, which means the dialog gets shown and subsequently closed before it actually

[android-developers] Re: About progress dialogs

2010-03-17 Thread LeGeNDuS
Ah, ok, thanks, I'll see the example of the documentation. On 16 mar, 18:09, TreKing treking...@gmail.com wrote: On Tue, Mar 16, 2010 at 1:05 PM, LeGeNDuS legen...@gmail.com wrote: What happens to it? If this is you exact code, you're running everything in the UI thread, which means

[android-developers] About progress dialogs

2010-03-16 Thread LeGeNDuS
Hello! I want to use this to put while is doing a heavy operation. Here's the code: ProgressDialog PD = ProgressDialog.show(History.this, , Deleting, please wait); for (int i=0;iidCodesLenght;i++){ db.open(); db.deleteCode(idCodes[i]); db.close(); } loadList(); lv =

[android-developers] Re: Error adding a contact

2010-03-11 Thread LeGeNDuS
UP On 3 mar, 11:44, LeGeNDuS legen...@gmail.com wrote: Hello, I'm trying toadda contact on the phone memory. The code I'm using is:         ContentValues values = new ContentValues();         values.put(Contacts.People.NAME, Dummy Contact);         Uri myUri = getContentResolver().insert

[android-developers] Re: Dialogs on a change orientation

2010-03-09 Thread LeGeNDuS
indicate explicitly to close the previous dialog to force using onCreateDialog at activity.showDialog... is it right? how can I do it? On 8 mar, 17:27, TreKing treking...@gmail.com wrote: On Mon, Mar 8, 2010 at 11:02 AM, LeGeNDuS legen...@gmail.com wrote: When I show it for first time it's showed

[android-developers] Re: Dialogs on a change orientation

2010-03-09 Thread LeGeNDuS
mar, 18:16, TreKing treking...@gmail.com wrote: On Tue, Mar 9, 2010 at 4:48 AM, LeGeNDuS legen...@gmail.com wrote: classcodecategory and classtexout are fields of the class. I suppose that the problem is thatwhen I change the orientation...it only keep the negattive button because

[android-developers] Re: Dialogs on a change orientation

2010-03-09 Thread LeGeNDuS
Maybe I shouldn't use the builder...could it be the problem of the data loosing? :S On 9 mar, 19:25, LeGeNDuS legen...@gmail.com wrote: Thanks! I have been trying onPrepareDialog...and well...what I see is that it put the info for the first time, but when I change the orientation the part

[android-developers] Re: Dialogs on a change orientation

2010-03-09 Thread LeGeNDuS
For the moment... I have the first problem fix thanks to the sharedprefrences and teh second one with removedialog Even so, I would like, if you want it, how I'll should do with that problems...knowing the last messages I have put On 9 mar, 19:36, LeGeNDuS legen...@gmail.com wrote: Maybe I

[android-developers] Re: Dialogs on a change orientation

2010-03-08 Thread LeGeNDuS
and it only supports oneshould I use global variables?... On 5 mar, 16:44, TreKing treking...@gmail.com wrote: On Fri, Mar 5, 2010 at 6:04 AM, LeGeNDuS legen...@gmail.com wrote: is there anyway to fix this?. If you use Activity.showDialog() to show your dialogs, the activity will manage them

[android-developers] Re: Dialogs on a change orientation

2010-03-08 Thread LeGeNDuS
and it only supports oneshould I use global variables?... On 5 mar, 12:04, LeGeNDuS legen...@gmail.com wrote: Hello! I'm doing an APP that shows some dialogs. Those dialogs are Alert dialogs, and when they are being showed if I change theorientationof the mobile I lost them...they are not being

[android-developers] Re: Dialogs on a change orientation

2010-03-08 Thread LeGeNDuS
pass to other activity and come again to this one, I need to show again this dialog, but modified, and it always show the first dialog On 5 mar, 12:04, LeGeNDuS legen...@gmail.com wrote: Hello! I'm doing an APP that shows some dialogs. Those dialogs are Alert dialogs, and when

[android-developers] Progress Dialog

2010-03-05 Thread LeGeNDuS
Hello! I'm App I'm doing I try to do some operations that are not very fast, and I want to add a progress dialog... I have the next code: ProgressDialog progressDialog = ProgressDialog.show(History.this, ,

[android-developers] Dialogs on a change orientation

2010-03-05 Thread LeGeNDuS
Hello! I'm doing an APP that shows some dialogs. Those dialogs are Alert dialogs, and when they are being showed if I change the orientation of the mobile I lost them...they are not being kept on the screen. is there anyway to fix this?. Thank you so much -- You received this message because

[android-developers] Error adding a contact

2010-03-03 Thread LeGeNDuS
Hello, I'm trying to add a contact on the phone memory. The code I'm using is: ContentValues values = new ContentValues(); values.put(Contacts.People.NAME, Dummy Contact); Uri myUri = getContentResolver().insert(People.CONTENT_URI, values); values.clear();

[android-developers] Re: Using ContentResolver to add a contact in the mobile

2010-02-25 Thread LeGeNDuS
UP On 21 feb, 16:56, LeGeNDuS legen...@gmail.com wrote: Hi, thanks for your help, but unfortunatelly it dones't work... in this line:   Uri uri = Contacts.People.createPersonInMyContactsGroup(getContentResolver(), values); I get a Security Exception on the ViewRoot.HandleMessage line

[android-developers] Re: How to save variables, even when I close the APP

2010-02-22 Thread LeGeNDuS
Thank you so much for both answers. Very interesting. Finally I have used the SharedPreferences to do this. It works perfectly...like I want. On 21 feb, 18:27, TreKing treking...@gmail.com wrote: On Sun, Feb 21, 2010 at 11:03 AM, LeGeNDuS legen...@gmail.com wrote: Last one's settings

[android-developers] Re: Using ContentResolver to add a contact in the mobile

2010-02-21 Thread LeGeNDuS
app request permission to write to contacts? On Feb 17, 2010 4:11 AM, LeGeNDuS legen...@gmail.com wrote: Hello, I'm trying this code and it's getting stopped in the getContentResolver statement        ContentValues values = new ContentValues();        values.put

[android-developers] Using ContentResolver to add a contact in the mobile

2010-02-17 Thread LeGeNDuS
Hello, I'm trying this code and it's getting stopped in the getContentResolver statement ContentValues values = new ContentValues(); values.put(People.NAME, hola); Uri uri = getContentResolver().insert(People.CONTENT_URI, values); What am I doing bad? Thanks! --

[android-developers] How to pass a String like input of a Activity

2010-02-17 Thread LeGeNDuS
Hello, I want to pass a String like the input of a new activity, to let this one use the String some operations. The code I try is this... Intent i2 = new Intent(this, SaveContact.class); i2.putExtra(contactcode, result); startActivityForResult(i2, 2); And in the activity I try to recover it:

[android-developers] Re: Using ContentResolver to add a contact in the mobile

2010-02-17 Thread LeGeNDuS
(People.CONTENT_URI, values); On 17 feb, 16:59, Dmitri Plotnikov dplotni...@google.com wrote: Does your app request permission to write to contacts? On Feb 17, 2010 4:11 AM, LeGeNDuS legen...@gmail.com wrote: Hello, I'm trying this code and it's getting stopped in the getContentResolver statement

[android-developers] Re: How to pass a String like input of a Activity

2010-02-17 Thread LeGeNDuS
Thank you so much!, it works perfectly ;) On 17 feb, 18:45, Mark Murphy mmur...@commonsware.com wrote: LeGeNDuS wrote: Hello, I want to pass a String like the input of a new activity, to let this one use the String some operations. The code I try is this... Intent i2 = new Intent

[android-developers] Re: Using ContentResolver to add a contact in the mobile

2010-02-17 Thread LeGeNDuS
of the SDK, what device. On Wed, Feb 17, 2010 at 11:15 AM, LeGeNDuS legen...@gmail.com wrote: Thanks...I have added this permission: uses-permission android:name=android.permission.WRITE_CONTACTS/ And now..it doens't stop, but I don't see the contact anywhere... here's the code

[android-developers] Re: Debugging on mobile 2

2009-12-29 Thread LeGeNDuS
12:16 AM, LeGeNDuS legen...@gmail.com wrote: I had open this one: http://groups.google.com/group/android-developers/browse_thread/threa... But now, I can't asnwer in that post. I says to me that it has been published (my message) But it's not true, because I have tried to put 5 or 6 times

[android-developers] Re: Debugging on mobile 2

2009-12-29 Thread LeGeNDuS
thanks for all!, I have seen why it doesnt work... android:debuggable=true lacked in the manifiest, now it works (I didn't know it was neccesary...) On 29 dic, 18:32, LeGeNDuS legen...@gmail.com wrote: Hello!, thanks for the answers. Yes I have enbled the USB debugging. My device is a HTC

[android-developers] Re: Debugging on mobile

2009-12-28 Thread LeGeNDuS
Yes I have done it, but it doesn't work, it only stops on the breakpoints when I use the emulator, but in the device, it seems like it would be running (run...). On 24 dic, 22:55, Frank Weiss fewe...@gmail.com wrote: Have you set a breakpoint in your code? Double-click in the left margin of the

[android-developers] Debugging on mobile 2

2009-12-28 Thread LeGeNDuS
I had open this one: http://groups.google.com/group/android-developers/browse_thread/thread/f28349946b187bb0/aa829ca9ccb879d9?lnk=gstq=jose+evora#aa829ca9ccb879d9 But now, I can't asnwer in that post. I says to me that it has been published (my message) But it's not true, because I have tried to