I am working on an android app for my church and would like to put our sermons on it. The company we upload our sermons to automatically makes a podcast feed for it. Basically I am looking for a way to list podcasts inside of the app. I would like it to be hardcoded to one podcast. I have looked online but cannot really find anything about. I am not sure how to code the podcast part. More than likely the actual playing can be handed off to a secondary app.
there two steps i recommend.
A) Use the Aquery lib to parse the xml or json returned by the podcast feed link.
Check it out https://code.google.com/p/android-query/. Doesnt matter what layout you use to display the podcast items.
B) Then you can Streaming the audio from A URL using MediaPlayer. http://www.tutorialspoint.com/android/android_mediaplayer.htm
Good luck
Related
I would like to get all information about Dota2 items I can get. Essential ones are their prices, names, thumbnail picture URLs, but other information are also welcome, like the way you buy them (for instance, you buy a Moon Shard by buying two Hyperstones).
There is a Dota2 Wiki page and there is a way to parse Wiki pages, but this didn't work. Apparently Wiki's APIs doesn't work on http://dota2.gamepedia.com.
I need this information on Android platform.
Any help?
I have actually been actively researching this same thing.
Scraping from a wiki is far too brittle (layout/website updates), why not get the data straight from valve's mouth? They have an online item viewer which consumes json item data, I was able to track down where exactly this gets published and plan on using it in a future android app as well.
The json data can be retreived via this link.
Once you have that look into something like retrofit to parse this data directly into objects.
Personally however, I would consume it through some other method and store it in your own database so your app isn't dictated by the structure of the data they push.
Hope this helps!
My application have to request some RSS feeds and display the result, i want to be able to add some feeds to the RSS list without modifying the app source code.
The app users will not have the permission to modify the RSS feeds list so i can't implement it in the app.
My idea is to create an xml configuration file and host it online, so the app can access this file on start : this solution let me update the file without updating the application.
But i don't know which online service let me to do that, do you knowa some services that are dedicated for this purpose ? Any proposal will be helpful.
Thanks.
Your not being that clear on what you want. As there are many different hosting sites. It seems your looking at just something to host your app underneath the app?? Or were you looking at something else?
I'm developping an app that permits the user to listen some podcasts. The app is downloading content from a server such as descriptions, images and also stream from an URL an audio flow.
I'd like to implement a cache which would save all these podcast objects containing basic types (such as strings for the description for example) but also the image linked to the podcast and the podcast itself (audio flow).
If I had to compare this to any other app it would probably be the Soundcloud app which does all this.
I searched on the web to find some tutorials or good pratices but these are explaining the basic way to cache basic objects. Also I found Volley but this is bad for streaming audio or things like that.
If anyone could help, it would be great. Thanks.
If you want to cache them in memory use LruCache, if you want to cache them on disk use DiskLruCache. Check this Caching Bitmaps and this DiskLruCache.
I have followed a tutorial on how to use the youtube gdata. Populating a listview with videos from youtube and a onclick. The source code is availeable from this site: http://blog.blundell-apps.com/click-item-in-a-listview-to-show-youtube-video/
On the onclick somethings seems to go wrong. It should start the url of the video, but it only goes to the webrowser and youtube.com
Can somebody take a look at it ?
Edit:
Everything is working now. It seems like using the JSON player/default instead of player/mobile launched the intent correctly.
It seems as though the URL chosen in the example source you linked isn't a good one to use for this purpose. If you look through the source of GetYoutubeUserVideosTask, you'll notice that the value they pull out of the JSON for url is the player->default or player->mobile value from each object in the items array, which does just load a web page if you click on it.
You might try modifying the example to pull out one of the content urls from that JSON object instead, which should load the video player directly.
HTH
The Youtube app is only supposed to be used with special ROMs. So you can't run them in an OpenSource-ROM, like the one used in the Emulator, unfortunately.
I'm developing a news reader app, so I parse RSS feed data and then populate android components. There, I have a WebView component which displays HTML data (parsed from specific XML tag, but it is not important).
So, that HTML data contain valid HTML, with text, formatting, images, and in some news - can contain embedded videos.
Videos are embedded through an (YT), (other video hosting sites) and are displayed/played correctly - web view plays it in-place. Videos are from YouTube, Vimeo, etc. but mainly (>90%) from YouTube, so YouTube is a scope of this question.
I use following code to display webview content:
webContent.setWebViewClient(new WebViewOverrideUrl());
webContent.getSettings().setJavaScriptEnabled(true);
webContent.getSettings().setPluginsEnabled(true);
webContent.loadDataWithBaseURL(null, htmlContent.toString(), "text/html", "utf-8", null);
My questions are:
1. Is there a possibility to redirect this video to a standalone app, i.e. YouTube or Flash player (or whatever user have installed to play videos)?
I have read so many posts regarding this topic but i can't find a solution. Not even a clue.
2. Is it possible to tell that frame with video (mostly YouTube) content to play it in fullscreen when change orientation to landscape (Or if it is in landscape already, to play it in fullscreen immediately when clicked)?
3. Is it even possible with YouTube (Flash) player, and if it's not, is it possible with HTML5 tag (instead of the iframe)?
There is a possibillity to create any tab for video and embed it in HTML contents on server side (, , , <...whatever...>), so i am looking for possible options.
Thanks a lot in advance, if I come up with some kind of solution in meantime, I will definitely post it here. A lot of people face the similar problems.
Well, to answer this question, at last.
Because of a very large number of different devices and different Android systems on those devices, i decided to use the simplest approach - I just ask user where he wants to play video.
The code that everyone knows is:
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(browserIntent);
Since i was getting youTube link in an embedded tag, guy who creates XML data for me, made a regex which gets youTube link only and i wrapped it in html tags, partly on server, and partly inside app to get acceptable appearance.
This was the only way i found that works on every device. Tried to aim YouTube app directly, but that didn't work on some very common devices that even have YT installed (Telenor/Alcatel OneTouch). Tried and succeeded in creating custom video player, but it didn't work on some random devices, although it worked on different pieces of a same device model.
Hope this can help someone.