Coder Social home page Coder Social logo

android-rss's Introduction

Package: org.mcsoxford.rss License: Apache License Version 2.0 Authors: A. Horn Description: Lightweight Android library to read parts of RSS 2.0 feeds.

Installation

Add as a Maven/Gradle dependency: https://jitpack.io/#ahorn/android-rss

Fetch the source code with Git:

  git clone https://[email protected]/ahorn/android-rss.git

Alternatively, you can download the sources from github.com/ahorn.

To reference the downloaded library from within your Android mobile app, navigate to the /tools/ directory and use the following command:

  android update project \
    --target <target_ID> \
    --path path/to/your/project \
    --library path/to/android-rss

This command appends to the default.properties file in your Android project a new android.library.reference property. The value of this new property should be the relative path to the directory which you created when you fetched the Android RSS library source code.

Henceforth, android-rss is compiled when ant builds the app which was specified in the --path argument above.

However, Eclipse does not work using this method because it does not reference anything that is not an Eclipse project. When you try to transform android-rss into an Eclipse project you encounter errors due to the testing directory. To fix these, you have to change the source directory by editing the .classpath file to set /src/main/java as the source folder.

For additional questions, see also the Troubleshooting section below.

Troubleshooting

Error "android resolve to a path with no default.properties file for project": http://groups.google.com/group/android-developers/browse_thread/thread/37e7728cc2e8f315

Android library project documentation: http://developer.android.com/guide/developing/projects/projects-cmdline.html#ReferencingLibraryProject

Eclipse reports the error: "Default target help does not exist in this project" ahorn#2

This library uses the HttpURLConnection class, which should work for all versions of Android including upcoming versions. (At least up to API 25.)

API Usage

  RSSReader reader = new RSSReader();
  String uri = "http://feeds.bbci.co.uk/news/world/rss.xml";
  RSSFeed feed = reader.load(uri);

Discussion

http://groups.google.com/group/android-developers/browse_thread/thread/b3de98eab436be20

android-rss's People

Contributors

a-iv avatar ahorn avatar astagi avatar fleker avatar jitpack-io avatar jvanwinden avatar naba89 avatar rikkigibson avatar tanis2000 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.