[android-developers] Playing youtube videos on Android
Hi all, I want to learn how to stream youtube video in high quality mode (similar to those videos you watch from your android phones on the YouTube app) .I have been scouring the net to find code examples and tutorials about streaming youtube videos in high quality but those are not the ones I wanted. The examples that I found are about streaming 3gp video format and I don't want those because they are choppy and seem pixelated. Any ideas how to develop an app similar to the one as YouTube app? I know some of you may say, "YouTube app is already doing what you want to do, why bother writing something similar". I want to learn how it works :) -- 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] How to set button background color?
Hi group members, I have a question about setting the background color for buttons. When I am using btn.setBackgroundColor(Color.RED), the entire button turns into a red rectangle. Is there actually a workaround to achieve this? Also what can I do to revert back to the default color of the button (the typical plain greysh background). Thanks, Nicholas --~--~-~--~~~---~--~~ 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: How to set button background color?
On Oct 4, 8:40 pm, "Mark Murphy" wrote: > > I have a question about setting thebackgroundcolorfor buttons. > > When I am using btn.setBackgroundColor(Color.RED), the entire button > > turns into a red rectangle. > > Correct. > > > Is there actually a workaround to achieve this? > > What is "this"? "this" refers to the intention to set the button with a Red background color. I actually meant to ask if there are any other ways to set the button with a Red background color. :) > > > Also what can I do to revert back to the defaultcolorof the button > > (the typical plain greyshbackground). > > Rummage through the Android source code, figure out what the name is of > the standard ButtonbackgroundDrawable, and set thebackgroundback to > that Drawable. Or, call getDrawable() before changing thebackgroundin > the first place, hold onto that value, and use it to reset the > Button'sbackgroundlater. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > Android App Developer Books:http://commonsware.com/books.html Thanks for your reply, Mark. --~--~-~--~~~---~--~~ 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: How to set button background color?
I'd give it a try :) Thanks! On Oct 5, 6:20 am, "Mark Murphy" wrote: > > On Oct 4, 8:40 pm, "Mark Murphy" wrote: > >> > I have a question about setting thebackgroundcolorfor buttons. > >> > When I am using btn.setBackgroundColor(Color.RED), the entire button > >> > turns into a red rectangle. > > >> Correct. > > >> > Is there actually a workaround to achieve this? > > >> What is "this"? > > > "this" refers to the intention to set the button with a Redbackground > >color. > > I actually meant to ask if there are any other ways to set the button > > with a Redbackgroundcolor. > > > :) > > Option #1: Use a redcolor, as you did there. Downside: your button will > appear to be no longer focusable or clickable, since the different button > UI states for those events are actually part of the buttonbackground. > > Option #2: Create a StateListDrawable, perhaps through a XML > file in res/drawable/. Clone the XML from the XML used by Android for > buttons by default, and replace whichever states you want with a solid > redcolor, or a red .9.png file, or something. > > -- > 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] How to install Sense UI into my HTC Magic
Hi Android Dev group members, I've been searching high and low about installing Sense UI into my HTC Magic (the one that is loaded with Google ION) but couldn't find any relevant search results. This is the closest I could find: http://developer.htc.com/google-io-device.html There are several terms that I do not understand, namely - root, flash, wipe. My question would be, is it even remotely possible to install Sense UI into my HTC Magic (I got that Magic phone from Google IO conference). Nicholas -- 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: How to install Sense UI into my HTC Magic
Thank you Paul. I initially thought that it's not possible at all to install custom firmware into Google's HTC Magic. I'll spend some time looking at xda forum. Nicholas On Apr 23, 11:19 pm, Paul Turchenko wrote: > What you are asking for is custom firmware. It IS possible to have HTC > Sense on your device (I had HTC Magic 32B before and it was running > Sense). You should spend couple days making yourself familiar with > rooting, flashing, changing bootloader or/and SPL. Good place to start > is xda dev. forum. These guys rock. Firmware procedures will void your > warranty so be careful. > Honestly, this forum is a bad place to ask questions like that. Go to > xda and read-read-read. > > Paul. > > On Apr 24, 12:41 am, Nicholas Key > wrote: > > > > > > > > > Hi Android Dev group members, > > > I've been searching high and low about installing Sense UI into my HTC > > Magic (the one that is loaded with Google ION) but couldn't find any > > relevant search results. This is the closest I could > > find:http://developer.htc.com/google-io-device.html > > > There are several terms that I do not understand, namely - root, > > flash, wipe. My question would be, is it even remotely possible to > > install Sense UI into my HTC Magic (I got that Magic phone from Google > > IO conference). > > > Nicholas -- 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