I am using the following code from a forum post to parse a youtube url and open it with the youtube app....
where url1 is the video url, and it works great on every Android device, but fails on every Amazon Android device.
Amazon will not let the app onto their app store until it also works on their tablets. The problem is that when this code is called on a Kindle tablet it does not open the youtube app as expected but instead produces the error message "An error has occured".
Is there a way to open a youtube url on a Kindle that will also work on non Amazon devices?
Thanks,
Dave
B4X:
youtubevideo = Regex.Split("=", url1)
i.Initialize(i.ACTION_VIEW, "vnd.youtube:" & youtubevideo(1))
StartActivity(i)
where url1 is the video url, and it works great on every Android device, but fails on every Amazon Android device.
Amazon will not let the app onto their app store until it also works on their tablets. The problem is that when this code is called on a Kindle tablet it does not open the youtube app as expected but instead produces the error message "An error has occured".
Is there a way to open a youtube url on a Kindle that will also work on non Amazon devices?
Thanks,
Dave