[android-developers] How to unregister a curser's contentObserver?
According to the documentation the content resolver does automatically register any cursors (see 'notifyChange()' method - By default, CursorAdapter objects will get this notification). Usually this is appreciated, but in my case it is not desired. I have multiple consecutive inserts on my content provider and I do not want a notification each time. Any ideas how I can access the cursor's content observer in order to unregister it? -- 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: Replace styles and themes
Thanks Dianne. Are there any plans to implement this feature? I basically just want to set colors at runtime. The easiest thing would be to replace the color values from the colors.xml file. Of course I could also set color values for views programmatically, but I have no idea about drawables (XML). How could I change the colors of those drawables? On 7 Okt., 17:29, Dianne Hackborn hack...@android.com wrote: Sorry, not currently possible. On Wed, Oct 7, 2009 at 2:55 AM, bestpriv...@googlemail.com bestpriv...@googlemail.com wrote: I would like to load new themes/styles from the web to replace the current ones. Is that possible? As far as I can see those resources are read-only. Maybe there is still a chance to achieve this? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: Replace styles and themes
It would be really cool to make those chnages at runtime, maybe one day :-) I actually meant shapes when I was talking about drawables, like stroke android:width=1sp android:color=@color/color_1/. Is there a way to change those color attributes programmatically at runtime? On 8 Okt., 18:33, Dianne Hackborn hack...@android.com wrote: Eventually it will be possible, but I have no idea what that will be. ColorDrawable is a solid color drawable. On Thu, Oct 8, 2009 at 9:26 AM, ParanoidAndroid bestpriv...@googlemail.comwrote: Thanks Dianne. Are there any plans to implement this feature? I basically just want to set colors at runtime. The easiest thing would be to replace the color values from the colors.xml file. Of course I could also set color values for views programmatically, but I have no idea about drawables (XML). How could I change the colors of those drawables? On 7 Okt., 17:29, Dianne Hackborn hack...@android.com wrote: Sorry, not currently possible. On Wed, Oct 7, 2009 at 2:55 AM, bestpriv...@googlemail.com bestpriv...@googlemail.com wrote: I would like to load new themes/styles from the web to replace the current ones. Is that possible? As far as I can see those resources are read-only. Maybe there is still a chance to achieve this? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: A question about rtsp Streaming
I also think that this is a wireless problem, although Google does not think so: http://code.google.com/p/android/issues/detail?id=2302can=1q=rtsp%20wlancolspec=ID%20Type%20Status%20Owner%20Summary%20Stars On 19 Sep., 18:25, yjshi shiyaju...@gmail.com wrote: Hi,all. I met a very strange problem.And I can not understand the reason of this happening.Recently I just create an app(that is using mediaplayer ) to play the rtsp Streaming.At the beginning,I use the sim card to connect to the internet.I try to let the app play for many times .But it was only success once.Many times the app could not play and the buffer always shows 0%.While I use the WIFI to connect the internet ,the rtsp could be played,but when I use the another WIFI to connect to the internet,to my surprise it failed.Both the sim card and WIFI ,it all could play the http Streaming.The rtsp Streaming is very strange, I can not understand.I guess there is maybe something wrong withWireless. Thanks . --~--~-~--~~~---~--~~ 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: ACTION_PACKAGE_INSTALL intent does not work
Many thanks :-) On 2 Jun., 23:09, patrick patrick.boul...@gmail.com wrote: u need permission to use PACKAGE_INSTALL... but to set PACKAGE_INSTALL permission, u need system right. If u set Intent.VIEW instead of PACKAGE_INSTALL, it will launch the ui to ask user if he want to install the apk. On 2 juin, 19:13, bestpriv...@googlemail.com bestpriv...@googlemail.com wrote: I try to install a package by using the ACTION_PACKAGE_INSTALL intent. But I always get a android.content.ActivityNotFoundException exception. Intent intent = new Intent(Intent.ACTION_PACKAGE_INSTALL); intent.setDataAndType(Uri.parse(update.getUrl()), application/ vnd.android.package-archive); startActivity(intent); Any ideas? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---