[android-developers] Re: Stream youtube to a videoview?
One stupid question... I can't get Eclipse to understand that the line : String uristr = rtsp://rtsp.youtube.com/youtube/videos/ + page + /video.3gp; is a valid line (page is a String variable that includes the video I want to play). It says that is invalid... On Tue, Oct 13, 2009 at 11:26 AM, dadical keyes...@gmail.com wrote: I've done this before. I blogged about it here: http://keyeslabs.com/joomla/index.php/blogs/i-think-im-becoming-an-android/51-polish-your-app-free-embeddable-android-youtube-activity . There is source code in the blog entry. Enjoy! Dave On Oct 13, 7:28 am, furby wookie...@gmail.com wrote: Anybody? On Oct 13, 8:09 am, furby wookie...@gmail.com wrote: I am sure that this has been discussed before... But I don't seem to be really grokking it... I have a videoview called tv1 on a form. I have a bit of code that fires when a button is pressed that looks like this : String uristr = rtsp://rtsp.youtube.com/youtube/ videos/S2eoCqwBCQI/video.3gp; tv1.setVideoURI(Uri.parse(uristr)); tv1.start(); The emulator tells me that This video cannot be displayed and if I try it on my phone, the app just crashes... Does anyone know what I am doing wrong here? --~--~-~--~~~---~--~~ 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: Stream youtube to a videoview?
It actually won't play any other video file I throw at it either... On Tue, Oct 13, 2009 at 2:30 PM, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: I noticed that I cannot play the file rtsp://rtsp.youtube.com/youtube/videos/S2eoCqwBCQI/video.3gp which you put in your source code on my desktop browser. The Android MediaPlayer is very sensitive. If the container format does not fit the one which is expected by the mediaPlayer, you won't be able to stream. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 13, 5:09 am, furby wookie...@gmail.com wrote: I am sure that this has been discussed before... But I don't seem to be really grokking it... I have a videoview called tv1 on a form. I have a bit of code that fires when a button is pressed that looks like this : String uristr = rtsp://rtsp.youtube.com/youtube/ videos/S2eoCqwBCQI/video.3gp; tv1.setVideoURI(Uri.parse(uristr)); tv1.start(); The emulator tells me that This video cannot be displayed and if I try it on my phone, the app just crashes... Does anyone know what I am doing wrong here? --~--~-~--~~~---~--~~ 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: ListView....
You know - I believe that would work quite nicely... When I saw the name Spinner I assumed (Yes, I know what that means but in this case only the Me part applies!) that it was some sort of thing that iterated between a few different values before looping back to the beginning... On Thu, Sep 24, 2009 at 1:07 AM, amit amitkee...@gmail.com wrote: Does a Spinner take care of your requirement ? A spinner is not a scrollable list like a list activity but it does show you a drop down list. http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/view/Spinner1.html On Sep 22, 7:43 pm, furby wookie...@gmail.com wrote: Why does this type of thing always end up being so difficult? I want to have a scrolling list on the screen. Very simple... Except that the Android SDK seems to require that list to be a listview which is implemented in a completely different way from other programming languages... (Slight rant following, skip to the bottom to see my question, sorry...) Why is it so hard? Why can't I just say Here's a listview on the page and there is a method for adding options onto it and I'll iterate through my result set to add them? My question is simple - is there a simple way to use lists in Android? Or does one have to define entire screens every time just to display a list? --~--~-~--~~~---~--~~ 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: Emulator won't finish booting...
I'll take that under consideration... That might be a very good point. On Wed, Sep 16, 2009 at 9:40 AM, Mark Murphy mmur...@commonsware.comwrote: furby wrote: I actually am starting it using Eclipse... Really, just running the project. (I have to admit, I am rather new at Android development). I created an AVD earlier (While I was attempting to use Netbeans to develop Android apps - it didn't work out very well)... I am just wondering - how can it work one day and then the next day suddenly stop? Depending on the speed of your PC and other things that are going on at the time, the Android emulator may get hung up at the graphical Android logo. I am not aware of a workaround other than to improve system performance, either through hardware (e.g., more RAM) or software (e.g., less stuff running). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com --~--~-~--~~~---~--~~ 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: Emulator won't finish booting...
Hmmm - I will try that. My machine isn't exactly the most powerful piece of equipment ever created... But all I am running is Eclipse and the emulator (And, of course, the JDK that underlies Eclipse). And it was working quite nicely before this... I suspect it might be a corrupted data file, but it seems odd to me that it would cause the emulator to hang up like it does - it seems it ought to be one of those It works or it doesn't rather than It works but not completely things... On Wed, Sep 16, 2009 at 10:12 AM, JoaJP joachim.pfeif...@gmail.com wrote: In my experience (all the way from m3), the emulator isn't quite as stable as one would expect... although it's improved considerably. Before you go out and buy new equipment, try to delete the emulator's data image. If the emulator doesn't find it, it creates a fresh one, so all you really lose is database and preferences data. Since 1.5 it's two files, userdata-qemu.img and cache.img They are tucked away somewhere in your home directory, see if you can find.android/avd/avd name.avd (that's the XP directory layout) On Sep 16, 6:43 am, Timothy Collins wookie...@gmail.com wrote: I'll take that under consideration... That might be a very good point. On Wed, Sep 16, 2009 at 9:40 AM, Mark Murphy mmur...@commonsware.com wrote: furby wrote: I actually am starting it using Eclipse... Really, just running the project. (I have to admit, I am rather new at Android development). I created an AVD earlier (While I was attempting to use Netbeans to develop Android apps - it didn't work out very well)... I am just wondering - how can it work one day and then the next day suddenly stop? Depending on the speed of your PC and other things that are going on at the time, the Android emulator may get hung up at the graphical Android logo. I am not aware of a workaround other than to improve system performance, either through hardware (e.g., more RAM) or software (e.g., less stuff running). -- Mark Murphy (a Commons Guy) http://commonsware.com|http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com --~--~-~--~~~---~--~~ 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: Emulator won't finish booting...
Stupid question (And this really exposes how new I am to Android development so treat me like an imbecile) : How do you delete the AVD and recreate it from Eclipse? (I am somewhat new to Eclipse as well - I have used Aptana for years - which is a derivative of it - but this is the first time I have consistently used Eclipse itself for anything) On Wed, Sep 16, 2009 at 11:22 AM, Nmix nepean...@gmail.com wrote: This has happened to me a few times. When it does, the AVD seems to be permanently broken, or at least I have yet to figure out how to fix it. If you monitor logcat, it always freezes at the following point (assuming it's the same problem you're seeing): ... 07-15 02:13:41.373: INFO/SystemServer(573): Starting System Content Providers. 07-15 02:13:41.384: INFO/ActivityThread(573): Publishing provider settings: com.android.providers.settings.SettingsProvider 07-15 02:13:41.454: INFO/ActivityThread(573): Publishing provider sync: android.content.SyncProvider 07-15 02:13:41.464: INFO/SystemServer(573): Starting Battery Service. 07-15 02:13:41.483: ERROR/BatteryService(573): Could not open '/sys/ class/power_supply/usb/online' 07-15 02:13:41.504: ERROR/BatteryService(573): Could not open '/sys/ class/power_supply/battery/batt_vol' 07-15 02:13:41.514: ERROR/BatteryService(573): Could not open '/sys/ class/power_supply/battery/batt_temp' 07-15 02:13:41.544: INFO/SystemServer(573): Starting Hardware Service. 07-15 02:13:41.554: DEBUG/qemud(546): fdhandler_accept_event: accepting on fd 10 07-15 02:13:41.554: DEBUG/qemud(546): created client 0x10fd8 listening on fd 11 07-15 02:13:41.564: DEBUG/qemud(546): client_fd_receive: attempting registration for service 'hw-control' 07-15 02:13:41.564: DEBUG/qemud(546): client_fd_receive:- received channel id 2 The only solution I've found is to delete the AVD (I used Eclipse to do it), restart Eclipse, create a new AVD, and then run an app that launches the emulator with the new AVD. This is inconvenient if you have lots of app data in the emulator, but it does work. Hopefully this problem is gone in the 1.6 SDK. On Sep 16, 10:16 am, Timothy Collins wookie...@gmail.com wrote: Hmmm - I will try that. My machine isn't exactly the most powerful piece of equipment ever created... But all I am running is Eclipse and the emulator (And, of course, the JDK that underlies Eclipse). And it was working quite nicely before this... I suspect it might be a corrupted data file, but it seems odd to me that it would cause the emulator to hang up like it does - it seems it ought to be one of those It works or it doesn't rather than It works but not completely things... On Wed, Sep 16, 2009 at 10:12 AM, JoaJP joachim.pfeif...@gmail.com wrote: In my experience (all the way from m3), the emulator isn't quite as stable as one would expect... although it's improved considerably. Before you go out and buy new equipment, try to delete the emulator's data image. If the emulator doesn't find it, it creates a fresh one, so all you really lose is database and preferences data. Since 1.5 it's two files, userdata-qemu.img and cache.img They are tucked away somewhere in your home directory, see if you can find.android/avd/avd name.avd (that's the XP directory layout) On Sep 16, 6:43 am, Timothy Collins wookie...@gmail.com wrote: I'll take that under consideration... That might be a very good point. On Wed, Sep 16, 2009 at 9:40 AM, Mark Murphy mmur...@commonsware.com wrote: furby wrote: I actually am starting it using Eclipse... Really, just running the project. (I have to admit, I am rather new at Android development). I created an AVD earlier (While I was attempting to use Netbeans to develop Android apps - it didn't work out very well)... I am just wondering - how can it work one day and then the next day suddenly stop? Depending on the speed of your PC and other things that are going on at the time, the Android emulator may get hung up at the graphical Android logo. I am not aware of a workaround other than to improve system performance, either through hardware (e.g., more RAM) or software (e.g., less stuff running). -- Mark Murphy (a Commons Guy) http://commonsware.com|http://twitter.com/commonsguy Android Training in Germany, 18-22 January 2010: http://bignerdranch.com --~--~-~--~~~---~--~~ 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: Emulator won't finish booting...
I tried that... with no good results On Wed, Sep 16, 2009 at 12:14 PM, Dexter's Brain coomar@gmail.comwrote: I also have the same problem sometimes. I just close the emulator and restart it. That usually solves the problem On Sep 16, 9:06 pm, Walter androidremotecont...@gmail.com wrote: I have the same problem too. Usually It will be fine after I closed Pidgin, Google Talk and restart the emulator. if not, restart the computer and try again. On Sep 16, 7:03 am, furby wookie...@gmail.com wrote: I had the 1.5 android emulator starting from Eclipse perfectly nicely until yesterday when it suddenly won't finish booting. I haven't installed anything new (Running it on Windows Vista - i know, uck, but I'm waiting for Win 7 to hurry up), haven't even changed the java code I am trying to run... The emulator starts up, get's to the point where it shows Android with the nice lighting effect that goes from left to right over it and then just stays in that state. Last night I tested it by starting it up, going out to the living room, watching two hour long episodes of the first series of Doctor Who, and then coming back in (Essentially giving it 1.5 hours to do it's stuff) - it was still stuck in that state Any ideas what I did wrong? --~--~-~--~~~---~--~~ 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: Emulator won't finish booting...
AHA! Thanks a lot - I will try it out as soon as I get home to my computer... On Wed, Sep 16, 2009 at 12:41 PM, Nmix nepean...@gmail.com wrote: Two quick ways to launch the AVD Manager from Eclipse: 1. Click on the AVD Manager icon on the icon bar (it looks sorta like a BlackBerry); or, 2. Select Run - Run Configuration... and click on the AVD Manager... button. From there it should clear how to delete and create AVD's. On Sep 16, 11:26 am, Timothy Collins wookie...@gmail.com wrote: Stupid question (And this really exposes how new I am to Android development so treat me like an imbecile) : How do you delete the AVD and recreate it from Eclipse? (I am somewhat new to Eclipse as well - I have used Aptana for years - which is a derivative of it - but this is the first time I have consistently used Eclipse itself for anything) On Wed, Sep 16, 2009 at 11:22 AM, Nmix nepean...@gmail.com wrote: This has happened to me a few times. When it does, the AVD seems to be permanently broken, or at least I have yet to figure out how to fix it. If you monitor logcat, it always freezes at the following point (assuming it's the same problem you're seeing): ... 07-15 02:13:41.373: INFO/SystemServer(573): Starting System Content Providers. 07-15 02:13:41.384: INFO/ActivityThread(573): Publishing provider settings: com.android.providers.settings.SettingsProvider 07-15 02:13:41.454: INFO/ActivityThread(573): Publishing provider sync: android.content.SyncProvider 07-15 02:13:41.464: INFO/SystemServer(573): Starting Battery Service. 07-15 02:13:41.483: ERROR/BatteryService(573): Could not open '/sys/ class/power_supply/usb/online' 07-15 02:13:41.504: ERROR/BatteryService(573): Could not open '/sys/ class/power_supply/battery/batt_vol' 07-15 02:13:41.514: ERROR/BatteryService(573): Could not open '/sys/ class/power_supply/battery/batt_temp' 07-15 02:13:41.544: INFO/SystemServer(573): Starting Hardware Service. 07-15 02:13:41.554: DEBUG/qemud(546): fdhandler_accept_event: accepting on fd 10 07-15 02:13:41.554: DEBUG/qemud(546): created client 0x10fd8 listening on fd 11 07-15 02:13:41.564: DEBUG/qemud(546): client_fd_receive: attempting registration for service 'hw-control' 07-15 02:13:41.564: DEBUG/qemud(546): client_fd_receive:- received channel id 2 The only solution I've found is to delete the AVD (I used Eclipse to do it), restart Eclipse, create a new AVD, and then run an app that launches the emulator with the new AVD. This is inconvenient if you have lots of app data in the emulator, but it does work. Hopefully this problem is gone in the 1.6 SDK. On Sep 16, 10:16 am, Timothy Collins wookie...@gmail.com wrote: Hmmm - I will try that. My machine isn't exactly the most powerful piece of equipment ever created... But all I am running is Eclipse and the emulator (And, of course, the JDK that underlies Eclipse). And it was working quite nicely before this... I suspect it might be a corrupted data file, but it seems odd to me that it would cause the emulator to hang up like it does - it seems it ought to be one of those It works or it doesn't rather than It works but not completely things... On Wed, Sep 16, 2009 at 10:12 AM, JoaJP joachim.pfeif...@gmail.com wrote: In my experience (all the way from m3), the emulator isn't quite as stable as one would expect... although it's improved considerably. Before you go out and buy new equipment, try to delete the emulator's data image. If the emulator doesn't find it, it creates a fresh one, so all you really lose is database and preferences data. Since 1.5 it's two files, userdata-qemu.img and cache.img They are tucked away somewhere in your home directory, see if you can find.android/avd/avd name.avd (that's the XP directory layout) On Sep 16, 6:43 am, Timothy Collins wookie...@gmail.com wrote: I'll take that under consideration... That might be a very good point. On Wed, Sep 16, 2009 at 9:40 AM, Mark Murphy mmur...@commonsware.com wrote: furby wrote: I actually am starting it using Eclipse... Really, just running the project. (I have to admit, I am rather new at Android development). I created an AVD earlier (While I was attempting to use Netbeans to develop Android apps - it didn't work out very well)... I am just wondering - how can it work one day and then the next day suddenly stop? Depending on the speed of your PC and other things that are going on at the time, the Android emulator may get hung up at the graphical Android logo. I am not aware of a workaround other than to improve system performance, either through hardware (e.g., more RAM) or software (e.g., less stuff
[android-developers] Re: Emulator won't finish booting...
Recreating the AVD worked like a charm - thanks to everybody for their help! On Wed, Sep 16, 2009 at 12:44 PM, Timothy Collins wookie...@gmail.comwrote: AHA! Thanks a lot - I will try it out as soon as I get home to my computer... On Wed, Sep 16, 2009 at 12:41 PM, Nmix nepean...@gmail.com wrote: Two quick ways to launch the AVD Manager from Eclipse: 1. Click on the AVD Manager icon on the icon bar (it looks sorta like a BlackBerry); or, 2. Select Run - Run Configuration... and click on the AVD Manager... button. From there it should clear how to delete and create AVD's. On Sep 16, 11:26 am, Timothy Collins wookie...@gmail.com wrote: Stupid question (And this really exposes how new I am to Android development so treat me like an imbecile) : How do you delete the AVD and recreate it from Eclipse? (I am somewhat new to Eclipse as well - I have used Aptana for years - which is a derivative of it - but this is the first time I have consistently used Eclipse itself for anything) On Wed, Sep 16, 2009 at 11:22 AM, Nmix nepean...@gmail.com wrote: This has happened to me a few times. When it does, the AVD seems to be permanently broken, or at least I have yet to figure out how to fix it. If you monitor logcat, it always freezes at the following point (assuming it's the same problem you're seeing): ... 07-15 02:13:41.373: INFO/SystemServer(573): Starting System Content Providers. 07-15 02:13:41.384: INFO/ActivityThread(573): Publishing provider settings: com.android.providers.settings.SettingsProvider 07-15 02:13:41.454: INFO/ActivityThread(573): Publishing provider sync: android.content.SyncProvider 07-15 02:13:41.464: INFO/SystemServer(573): Starting Battery Service. 07-15 02:13:41.483: ERROR/BatteryService(573): Could not open '/sys/ class/power_supply/usb/online' 07-15 02:13:41.504: ERROR/BatteryService(573): Could not open '/sys/ class/power_supply/battery/batt_vol' 07-15 02:13:41.514: ERROR/BatteryService(573): Could not open '/sys/ class/power_supply/battery/batt_temp' 07-15 02:13:41.544: INFO/SystemServer(573): Starting Hardware Service. 07-15 02:13:41.554: DEBUG/qemud(546): fdhandler_accept_event: accepting on fd 10 07-15 02:13:41.554: DEBUG/qemud(546): created client 0x10fd8 listening on fd 11 07-15 02:13:41.564: DEBUG/qemud(546): client_fd_receive: attempting registration for service 'hw-control' 07-15 02:13:41.564: DEBUG/qemud(546): client_fd_receive:- received channel id 2 The only solution I've found is to delete the AVD (I used Eclipse to do it), restart Eclipse, create a new AVD, and then run an app that launches the emulator with the new AVD. This is inconvenient if you have lots of app data in the emulator, but it does work. Hopefully this problem is gone in the 1.6 SDK. On Sep 16, 10:16 am, Timothy Collins wookie...@gmail.com wrote: Hmmm - I will try that. My machine isn't exactly the most powerful piece of equipment ever created... But all I am running is Eclipse and the emulator (And, of course, the JDK that underlies Eclipse). And it was working quite nicely before this... I suspect it might be a corrupted data file, but it seems odd to me that it would cause the emulator to hang up like it does - it seems it ought to be one of those It works or it doesn't rather than It works but not completely things... On Wed, Sep 16, 2009 at 10:12 AM, JoaJP joachim.pfeif...@gmail.com wrote: In my experience (all the way from m3), the emulator isn't quite as stable as one would expect... although it's improved considerably. Before you go out and buy new equipment, try to delete the emulator's data image. If the emulator doesn't find it, it creates a fresh one, so all you really lose is database and preferences data. Since 1.5 it's two files, userdata-qemu.img and cache.img They are tucked away somewhere in your home directory, see if you can find.android/avd/avd name.avd (that's the XP directory layout) On Sep 16, 6:43 am, Timothy Collins wookie...@gmail.com wrote: I'll take that under consideration... That might be a very good point. On Wed, Sep 16, 2009 at 9:40 AM, Mark Murphy mmur...@commonsware.com wrote: furby wrote: I actually am starting it using Eclipse... Really, just running the project. (I have to admit, I am rather new at Android development). I created an AVD earlier (While I was attempting to use Netbeans to develop Android apps - it didn't work out very well)... I am just wondering - how can it work one day and then the next day suddenly stop? Depending on the speed of your PC and other things that are going on at the time, the Android emulator may get hung up at the graphical Android logo. I am