[android-developers] Update all the contacts belonging to one group
Dear all, I have an application that updates all the contacts belonging to a group, I currently do the following : - Get the group id - Get all the contacts id inside this group - For each of them I am doing an update on the contact = This is really heavy and seems to take time in real phones while I expect it to be instantaneous. I am wondering if we can, in the ContentResolver.update() method specify a kind of join. For instance I'd like to do something like : UPDATE people SET people.name=new name FROM People p, GroupsMemberships gm WHERE p.person_id=gm.person_id and gm.group_id=my_group_id Does anyone know if it's possible or not? The update method has got a where attribut but can we use this attribut for complexe requests ? * where A filter to apply to rows before deleting, formatted as an SQL WHERE clause (excluding the WHERE itself). *** Thanks to everyone for its feedback. --~--~-~--~~~---~--~~ 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: can i use external fonts ?
I don't remember exactly since I do not have my laptop with me but you have to copy the font file inside res/raw/ You can then load the file with something like getResource(path) If you still have an issu just wrote it and I will copy-paste my code tonight at home. C. On 24 sep, 11:19, Zeeshan Muhammad genx...@gmail.com wrote: thanks On Thu, Sep 24, 2009 at 9:46 AM, Mark Murphy mmur...@commonsware.comwrote: i need to use my external font .ttf file for button's text. can anybody help http://developer.android.com/reference/android/graphics/Typeface.html then, call setTypeface() on your Button. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books:http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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] MyLocationOverlay blocks my Activity
Dear all, I am facing a strange issu : as soon as I try to instanciate a new MyLocationOverlay, my application is blocked. here is my code snippet mapViewFromXML = (MyMapView) this.findViewById(R.id.my_map); Log.d(MAP, BEFORE CREATING MY LOCATION OVERLAY); mylocation = new MyLocationOverlay(this, mapViewFromXML); Log.d(MAP, AFTER CREATING MY LOCATION OVERLAY); And here is my log cat = 05-05 13:56:04.251: ERROR/ActivityThread(2961): Failed to find provider info for com.google.settings 05-05 13:56:04.391: DEBUG/MAP(2961): BEFORE CREATING MY LOCATION OVERLAY 05-05 13:56:04.401: DEBUG/MAP(2961): AFTER CREATING MY LOCATION OVERLAY 05-05 13:56:04.421: DEBUG/LocationManager(2961): removeUpdates: listener = com.google.android.maps.mylocationover...@435c17f8 05-05 13:56:04.431: DEBUG/GpsLocationProvider(567): setMinTime 0 05-05 13:56:04.440: INFO/Maps.MyLocationOverlay(2961): Request updates from gps 05-05 13:56:04.461: DEBUG/qemud(546): fdhandler_accept_event: accepting on fd 10 05-05 13:56:04.461: DEBUG/qemud(546): created client 0xc088 listening on fd 14 05-05 13:56:04.471: DEBUG/qemud(546): client_fd_receive: attempting registration for service 'sensors' 05-05 13:56:04.471: DEBUG/qemud(546): client_fd_receive:- received channel id 31 05-05 13:56:04.481: DEBUG/qemud(546): multiplexer_handle_control: unknown control message (26 bytes): 'ko:connect:1f:service busy' 05-05 13:56:09.160: INFO/ActivityManager(567): Displayed activity com.glo.android/.X: 18065 ms 05-05 13:56:14.123: WARN/ActivityManager(567): Launch timeout has expired, giving up wake lock! 05-05 13:56:14.150: WARN/ActivityManager(567): Activity idle timeout for HistoryRecord{43646278 {com.glo.android/ com.glo.android.StationNearActivity}} // If I remove the instanciation then every thing is going fine (clear but empty mapview). Did I do something wrong ? Thanks for your 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 -~--~~~~--~~--~--~---