[android-developers] weird behavior in ContentResolver().insert()

2008-05-06 Thread scimitar
Hi, I'm trying to add a contact to the phone contact list, but apparaently ContentResolver().insert() is not adding it. (The cursor's count() method gives the same result). My code is sth like this: Cursor c = getContentResolver().query( People.CONTENT_URI, null, null,

[android-developers] null uri in getContentResolver().insert()

2008-05-06 Thread scimitar
Hi, I'm always getting null as the return uri for getContentResolver().insert(). Why is this? ContentValues mv = new ContentValues(); mv.put(People.NAME, foo); mv.put(People.NUMBER, 54547); Uri u = getContentResolver().insert(People.CONTENT_URI, mv); thanks,

[android-developers] error with getTextContent()

2008-05-06 Thread scimitar
Hi , I'm trying to parse some XML. I have code something like this: Element fstNmElmnt = (Element) fstNmElmntLst.item(0); String phone = fstNmElmnt.getTextContent(); I also import org.w3c.dom.Element;. But the compiler is complaining that the method

[android-developers] modifying the People content provider

2008-05-05 Thread scimitar
Hi. I want to modify a field of the People(contact list) content provider from my code, but I see that all the strings are static final. Is there a way to do this? thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: dialog user input box

2008-04-28 Thread scimitar
isn't that what i'm doing? On Apr 28, 6:02 am, Hielko [EMAIL PROTECTED] wrote: Do what Dan already suggested: extend thedialogclass. On Apr 28, 11:46 am, scimitar [EMAIL PROTECTED] wrote: Ok. I have the following code: Dialogdl = newDialog

[android-developers] Re: dialog user input box

2008-04-28 Thread scimitar
as to subclassingDialog, I think you should still do that instead of what you are doing. On Apr 28, 3:54 am, scimitar [EMAIL PROTECTED] wrote: isn't that what i'm doing? On Apr 28, 6:02 am, Hielko [EMAIL PROTECTED] wrote: Do what Dan already suggested: extend thedialogclass. On Apr 28, 11:46 am, scimitar

[android-developers] dialog user input box

2008-04-27 Thread scimitar
Hi, I want my application to pop up a dialog box that asks for some user input. The user enters the input and clicks a button. Based on the text that the user has entered, the application then continues it's operations. How should I implement this? thanks

[android-developers] Re: failure to connect to database

2008-04-25 Thread scimitar
application. I think the dx tool will handle converting them to dalvik. Not sure what the licensing is on doing something like that. Might want to read it. On Apr 23, 12:25 pm, scimitar [EMAIL PROTECTED] wrote: Hi, thanks for your reply. But I really have no choice in this matter. Using JDBC

[android-developers] iterating over a contact list

2008-04-24 Thread scimitar
Hi, I have a cursor that gets the contact list stored on the phone: Cursor c = getContentResolver().query( People.CONTENT_URI, null, null, null, null); Now I want to iterate over the contact list, and for each contact print out the associated number. What's a good way

[android-developers] failure to import java.rmi.RemoteException

2008-04-24 Thread scimitar
Hi, When I try 'import java.rmi.RemoteException;', I get the message: 'The import java.rmi.RemoteException cannot be resolved'. Why is this? I really need this to make my app communicate with a webservice. thanks, --~--~-~--~~~---~--~~ You received this

[android-developers] failure to connect to database

2008-04-23 Thread scimitar
Hi, I'm trying to connect to an external mysql database. The code is something like: try { Class.forName(DBCLASS).newInstance(); } catch (Exception e) { Log.i(DataLayer, unable to load jdbc driver); } // Connect to

[android-developers] Re: failure to connect to database

2008-04-23 Thread scimitar
to be problematic, and even if you do get it to work, a lot more overhead than using a server. Remember it's a small embedded device. On Apr 23, 3:38 am, scimitar [EMAIL PROTECTED] wrote: Hi, I'm trying to connect to an external mysqldatabase. The code is something like: try

[android-developers] android service example

2008-04-15 Thread scimitar
Hi, is there an example of an android service in the examples provided. Specifically I'm looking for a service( application component that runs in the background) that does network upload/download, while the user is busy doing some other stuff. thanks,

[android-developers] android app communicating with a database server

2008-04-03 Thread scimitar
Hi, I'm very new to Android, so I'm still trying to figure out the basics. I want to write an application that needs to communicate with a database server, and upload it's contact list to the server. In this regard I have the following questions: 1). Is there a way to associate a phone number

[android-developers] synching a mobile app with an external database server

2008-04-03 Thread scimitar
Hi, I'm very new to Android, so I'm still trying to figure out the basics. I want to write an application that needs to communicate with a database server, and upload it's contact list to the server. In this regard I have the following questions: 1). Is there a way to associate a phone number