[android-developers] Re: Google contact name fetch
Sorry for fonts.Here is the code to modify: public void Get_Contact_Name(String id) { String[] projection = new String[] {ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME, ContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME, ContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME, ContactsContract.CommonDataKinds.StructuredName.SUFFIX, ContactsContract.CommonDataKinds.StructuredName.PREFIX, ContactsContract.CommonDataKinds.StructuredName.MIDDLE_NAME}; String where = ContactsContract.Data.CONTACT_ID + = ? AND + ContactsContract.Data.MIMETYPE + = ?; String[] whereParameters = new String[]{id, ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE}; Cursor contacts = contentresolver.query(ContactsContract.Data.CONTENT_URI, projection, where, whereParameters, null); if (contacts.moveToFirst()) { contactcontent.contact_display_name = Null_check((contacts.getString(contacts.getColumnIndex(ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME; contactcontent.contact_given_name = Null_check((contacts.getString(contacts.getColumnIndex(ContactsContract.CommonDataKinds.StructuredName.GIVEN_NAME; contactcontent.contact_suffix_name = Null_check((contacts.getString(contacts.getColumnIndex(ContactsContract.CommonDataKinds.StructuredName.SUFFIX; contactcontent.contact_prefix_name = Null_check((contacts.getString(contacts.getColumnIndex(ContactsContract.CommonDataKinds.StructuredName.PREFIX; contactcontent.contact_middle_name = Null_check((contacts.getString(contacts.getColumnIndex(ContactsContract.CommonDataKinds.StructuredName.MIDDLE_NAME; contactcontent.contact_family_name = Null_check((contacts.getString(contacts.getColumnIndex(ContactsContract.CommonDataKinds.StructuredName.FAMILY_NAME; } contacts.close(); } -- 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] Re: Google contact name fetch
If you attach a logcat with the error maybe we can help you. -- 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] Re: Google contact name fetch
Hi Nick Thanks for reply.It dont stop my app.But skips this step.I think my problems in these two lines: String where = ContactsContract.Data.CONTACT_ ID + = ? AND + ContactsContract.Data.MIMETYPE + = ?; String[] whereParameters = new String[]{id, ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE}; Cursor contacts = contentresolver.query(ContactsContract.Data.CONTENT_URI, projection, where, whereParameters, null); can u check this please? On Sat, Aug 6, 2011 at 5:40 PM, Nick Risaro nris...@gmail.com wrote: If you attach a logcat with the error maybe we can help you. -- 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] Re: Google contact name fetch
On Sat, Aug 6, 2011 at 9:49 PM, Goutom goutom.sust@gmail.com wrote: Hi Nick Thanks for reply.It dont stop my app. Check the log anyway, maybe there is a hint of whats happening there. But skips this step. What step? I think my problems in these two lines: String where = ContactsContract.Data.CONTACT_ ID + = ? AND + ContactsContract.Data.MIMETYPE + = ?; String[] whereParameters = new String[]{id, ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE}; Cursor contacts = contentresolver.query(ContactsContract.Data.CONTENT_URI, projection, where, whereParameters, null); Try whit less parameters in the query, use the debugger to check step by step whats happening and/or put some log in your code. can u check this please? On Sat, Aug 6, 2011 at 5:40 PM, Nick Risaro nris...@gmail.com wrote: If you attach a logcat with the error maybe we can help you. -- 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 -- 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] Re: google contact ?
A bit of civility would be nice at the App Store. Many of the comments made about applications are quite rude and un-called for, some are even obscene People are getting free software, yet they are quite viscious if it isn't to their liking. I found it quite demoralizing to publish an app which I put considerable effort into, only to be needlessly slandered. If someone does not like an app, they can un-install it or provide constructive feedback to the developer. The trash talking on the rating system will only discourage developers from publishing. I don't intend to publish again until I can charge for my apps, I'm not really interested in giving people free software, and then to be berated for it. Mark On Dec 12, 8:45 am, Dave Sparks davidspa...@android.com wrote: We are aware of the issues in the Market and they will be addressed soon. On Dec 12, 7:42 am, Jeff jlb...@gmail.com wrote: Is there a way that a developer can speak to someone at google? Is there a way that a developer can make a request to email? e.g., removing rating that contain abusive language form the rating? Sicko are using the rating system to publish dirty word. thanks, Jeff- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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] Re: google contact ?
We are aware of the issues in the Market and they will be addressed soon. On Dec 12, 7:42 am, Jeff jlb...@gmail.com wrote: Is there a way that a developer can speak to someone at google? Is there a way that a developer can make a request to email? e.g., removing rating that contain abusive language form the rating? Sicko are using the rating system to publish dirty word. thanks, Jeff --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---