Android :: Processing RSS Feeds With Namespaces

Apr 23, 2010

I'm trying to write an XML parser that takes an RSS feed & fetches the image urls shown in the url attribute of the <media:thumbnail> tag. This is all being done via android.Util.Xml, & is an adaptation of the code shown here. An example RSS feed that I'm trying to use is the BBC News RSS feed. However, media is an additional namespace & (probably) as a result my parser isn't working as it should. A version of my parse method is below. Is there any (no doubt simple) way to get my list of image URLs working?

..................

Android :: Processing RSS Feeds with Namespaces


Android :: Namespaces And Custom Widgets

May 10, 2010

As a continuation of the thread in http://groups.google.com/group/android-developers /browse_thread/threa, I'm still trying to figure out how a custom widget can use getIdentifier() to read attributes. As an example, I have a widget class called Custom Widget. It has attributes "inner_margin" and "outer_margin". Normally, to read these attributes, I would do the following in source code: import com.example. customactivity. R;// I don't want to do this. TypedArray a = ctx.obtainStyledAttributes(attrs, R.styleable. CustomWidget); innerMargin = a.getInt(R.styleable.CustomWidget_inner_margin, 0); Because my CustomWidget is intended to be shared among a number of projects, or even get published, it's a real problem having to import R from whatever activity it's going to be linked with. What I'd rather do is: int resid = ctx.get Resources ().get Identifier ("inner_margin", "int", "com.example.customwidget"); innerMargin = a.getInt(resid, 0); but getidentifier always returns zero. Can anybody tell me the magic I need to perform to do what I want? For completeness, my CustomWidget.xml file that defines the resources looks like this: <?xml version="1.0" encoding="utf-8"?> <resources> <declare-styleable name="CustomWidget"> <attr name="outer_margin" format="integer" /> <attr name=" inner_margin" format="integer" /> </declare-styleable> </resources> and for even more completeness, the entire source code can be found at http://www.efalk.org /tmp/ CustomWidget.tar.gz You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android

View 2 Replies View Related

Android :: How To Get Rss Feeds

Oct 29, 2010

i need to get the feeds and display it in android. Any clue?

View 3 Replies View Related

Android :: SAXParser Fails On Some RSS Feeds

Feb 28, 2009

I'm using the SAX parser to read some RSS feeds and have found a problem. Some feeds, for example CNN Money Top Stories, have embedded some characters in their content, i.e. the copyright symbol. Well, that's not valid XML and the SAX Parser fails with an exception "invalid token". The only help I have seen given is to fix the XML at the source and that's not an option obviously. So, I can think of 2 options and they both stink:

(a) read the content first, scrub it, and then pass it to the parser.
(b) Use DOM instead of SAX.

What I *want* to do is make the parser a little more forgiving and just accept or discard/ignore the bad text. I'm not have any luck with setErrorHandler. My error handler does not get called.

View 7 Replies View Related

Android :: Hard To Build RSS Feeds App?

Mar 10, 2009

I would like to know how hard would it be to to build RSS feeds app but only specific ones. For example politics: Pull rss feeds news from politico.com, cnn.com, fox.com etc..... and than display on G1... I would love some info on that and if someone can build such thing. ...am interested.

View 10 Replies View Related

Android :: Download RSS Feeds For Offline Use?

Mar 7, 2010

I use Newsrob, and curious as to what seems to be the most popular way to download RSS feeds for offline use? Do you download Articles / Articles + Images / Articles + Images + Mobile Web Page / Articles + Images + Web Pages?

View 6 Replies View Related

Android :: Deleting Default Feeds In Doggcatcher?

Aug 25, 2010

I just downloaded DoggCatcher podcast app. On startup, it had several default feeds like This American Life and This Week in Tech, etc.How do I delete those feeds from DoggCatcher?

View 1 Replies View Related

Sprint HTC Hero :: Podcasts - RSS Feeds And Android

Dec 30, 2009

So I am looking into Podcasts and RSS Feeds. I have used iTunes in the past to subscribe and watch podcasts, but havent been using iTunes much lately. RSS Feeds I am absolutely new to, and havent yet tried it out. From what I have read RSS Readers (like Google Reader) can subscribe to podcasts, but what about my phone? Would I need a separate RSS reader app, and would it sync with the subscriptions as my PC reader? Are there phone readers that support Video Podcasts?

The other option I saw was to use iTunes and tweak it to allow Podcasts to sync with your Android Device, but Im not sure if this method works with Videos. Im wondering which path is better and easier to manage? It seems easier to find and subscribe to videos using iTunes, but if there is another way, Im all for ditching iTunes completely. I am setting up Googe Reader for RSS feeds either way, I guess thats a separate issue, what I am mainly concerned with is syncing RSS feeds with my phone, and watching Video Podcasts on my Phone.

View 5 Replies View Related

Android :: Show Feeds From Blog In Listview

Jul 16, 2010

I want to show feeds from a blog in a listview.

View 1 Replies View Related

Android :: Parsing RSS 2.0 Feeds Using Pull Parser

May 13, 2010

I am trying to parse a RSS2.0 feed, obtained from a remote server, on my Android device using XML Pull Parser.

get a parser instance and set input,encoding
XmlPullParser parser = Xml.newPullParser();
parser.setInput(getInputStream(), null);

I am getting invalid token exceptions after a few items have been parsed:

Error parsing document. (position:line
-1, column -1) caused by: org.apache.harmony.xml.ExpatParser$ParseException:
At line 158, column 25: not
well-formed (invalid token)

Strangely, when I download the feed XML on the device, bundle it inside the raw folder and then run the same code. Everything works fine. What could be the problem here? How do I validate the XML before I parse it on device?

View 1 Replies View Related

Android :: Podcatcher That Works With Authenticated Feeds?

Jan 24, 2010

Essentially, I am looking for a podcatcher that will work with casts requiring authentication (HTTPS). I have several classes I would like to grab the feeds for, but require a login/password and none of the podcatchers I have tried work (Listen, DoggCatcher...etc). It doesn't have to be fancy, I just want something to listen to lectures on while on the fly and not have to worry about constantly syncing with a computer.

View 3 Replies View Related

Android :: No Feeds Appearing In Listen - How To Activate?

Aug 16, 2010

I have several subscribe-to podcast feeds in Google Reader. When hit 'refresh' in Listen, no feeds or podcasts ever appear. Is there a setting I need to change? I realize this is part of 'Labs', but seeing there are many who use this app, it must be something I'm overlooking.

View 2 Replies View Related

Android :: RSS Reader - Nice GUI And Default Feeds

Jun 8, 2010

What is the best RSS reader? I want to be able to read full stories off line after they've been downloaded. I've tried AP Mobile and Express News, they both have ugly GUI and rarely update - properly. Looking for a nice GUI and some default feeds.

View 12 Replies View Related

Android :: How To List Out Feeds From Face Book In Timeline Format

Jun 25, 2010

I have to do a small android application. It should connect with facebook and have to post feeds into wall and retrieve feeds to display in timeline format. I am new to android and fb. Could any one help?

View 1 Replies View Related

Developed Application Not Displaying Feeds?

Aug 28, 2012

I have a question about an android application I developed, however, I need to do my introductory post first. So this is it.

View 1 Replies View Related

Android :: Processing Raw Audio Data

Apr 10, 2009

I want to develop an app that lets one intercept raw audio data sent for playback (possibly by a different app), and apply audio enhancements over this raw data.Does Cupcake allow such filtering of audio data? If so, which API should I use? I understand this may not be possible at an application level for security reasons.I'm trying to see if this is possible with native code linking to public or private API of Android.

View 3 Replies View Related

Android :: How Does Touch Gesture Processing?

Dec 15, 2009

I want to know that android has a touchscreen requirement about hardware and software.And how does touch gesture processing where, for example, in driver layer or framework or application,

View 4 Replies View Related

Android :: WebView And Response Processing

Nov 8, 2010

Currently, I use a regular activity with some EditText fields as a registration screen in my application.The inputs are used to construct a soap message which is posted to the registration server, with the response being parsed to do some configuration of the application.I'd like to change this to have the registration page load in a WebView instance, so that the registration process takes place on an external web page.This would make it easier to make changes to the registration process without having to deploy a new build, as it would just be a matter of changing the web page that is loaded in the WebView.The question is would there be any way for me to get the response that is sent back from my registration server to the client? From what I can tell, if I went this route, there wouldn't be a way for me to parse the response like I currently do to initialize the application settings.

View 2 Replies View Related

Android :: Activity Background Processing

Apr 17, 2010

"Note that when you write an activity, you can make it stop or continue running when it is moved to the background (see onStop() in Activity Lifecycle). For activities that download data from the network, it's recommended to let them continue downloading so the user can multi-task." As far as I was aware I had to create a service if I wanted to have a background activity such as a media player, internet download, or processing of data in files on the SD card continue when the activity was no longer in the foreground.I went and reread the onStop information on the "Activity Lifecycle" page, which was referred to. But I didn't find any mention of how an activity might continue to run in the background after onStop was called.

View 3 Replies View Related

Android :: Processing Events In SurfaceView

Jun 10, 2009

I am creating a custom Widget which extends SurfaceView and I am planning to use it for camera preview.In the main activity I tried to implement some event listeners but can't catch any event.If I press a button the LogCat outputs "Continuing to wait for key to be dispatched" line.Does anyone know how to implement event listeners in main activity using SurfaceView classes?

View 3 Replies View Related

Android :: App Is Getting - Trouble Processing - Error

Aug 10, 2010

My android app was running ok under Eclipse, then I tried to add some GridView sample code from some online examples and now it will not build/run anymore.

I keep getting the major error:

CODE:..

Attempt to include a core VM class in something other than a core library.

I have never put anything to do with 'SocketFactory' in any of my code. I searched all of my code and can't find any code that I did that contains the SocketFactory.class.

I deleted my xml's and classes that I was working on that had to do with the GridView and reverted back to the code I had before, when it was running - but now I continue to get the above error. I even try to use 'Clean' but the error continues. Does anyone know what I should do about this error?

View 1 Replies View Related

Android Image Processing Functions

Oct 15, 2011

I want to perform various image processing functions such as threshold,equalize etc on the image i capture from the camera...What should i use in order to do that?

Also,when i installed the app in my phone, after clicking the pic, the next screen appears, and after clicking the button for performing other functions, force close comes up...what could be the reason,because my code works fine without the camera portion...

View 2 Replies View Related

HTC Desire :: News Widget With 3 RSS Feeds - No Updating?

Oct 9, 2010

I have 3 RSS feeds attached to my news app. I have set the app to update every 2 hours. When I have the news widget up, it does not update at all. I have the click on the little update button. What can I do? I have powered off and on my phone etc. Is this common?

View 7 Replies View Related

HTC Desire :: Changing And Deleting News Feeds?

Sep 18, 2010

I am new to android and the desire, just upgraded from a nokia N96. I am running 2.2 android. A couple of questions regarding Rss feeds.

1. From the home screen, I can slide the screen to the left, twice and add a news feed. Can I add more than one feed here, and how can I change the one I have?
2. In "all apps > news" can I delete any of the pre installed news feeds?

View 2 Replies View Related

Samsung Captivate :: Feeds And Updates Showing Up Twice

Aug 26, 2010

I have Feeds and Updates showing up twice on one of the home screens. Is there a way to remove one of them?

View 2 Replies View Related

Android :: Processing And Regular Input Apps

Oct 7, 2010

Processing has Android support and it seems to be pretty awesome from my 10 minutes of playing with it. But I would like to make a regular (nongraphics) application like a twitter feed reader or something. So is there something like Processing that can do regular apps? Besides Titanium.Basically I am looking for anything that will make coding for android easier, processing was so easy to get working that I was very happy with it, but it is for graphics only. Titanium didn't give me the same wow factor and it isn't open so that kind of takes away from it. What other tools are out there?

View 2 Replies View Related

Android :: Image Processing On Picture Taken From Camera

Jan 11, 2010

I'm writing an application for Android. I need to make some image processing on the picture taken from camera.I use Camera.PictureCallback to get the photo, and I get picture in byte array.The problem is I want to make operations on every pixel of photo (some filtering and other stuff) so I guess, have photo in byte array is not a bad idea. But I don't know how interpret information in this byte array... The only way I know to make the processing is use BitmapFactory.decodeByteArray() and then use Bitmap object. Is this a good way to handle a lot of image processing?

View 1 Replies View Related

Android :: Obtaining Video Frames For Processing

Dec 31, 2009

I am trying to decode and obtain all frames in a video stream, each of which would be processed by a native signal processing engine and re-encoded back to a MPEG4/MP4 file. I noticed that there was a getFrameAt() function in earlier versions of SDK but its not available in v 1.6 on which I am working. As I am fairly new to Android, I would like to know from more experienced people around here as to how I can extract video frames into a buffer for processing.

View 2 Replies View Related

Android :: How Can I Do Image Processing On JPEG Data

Apr 13, 2009

I am confused on how to implement image processing algorithm on JPEG data.I have set P.setpicturesize (640,480) so the camera.takepicture (null,null,Imagecapture callbck) returns the image data. Void onPictureTaken(byte[] data, Camera Camera) returns JPEG data, but(x = data.length), the value of x is less than 640*480 bytes.Please kindly let me know how can I start editing pixel information of the image and image comparison algorithms.

View 2 Replies View Related

Android :: Audio Programming / Sound Processing And DSP

Jun 23, 2010

The application allowed its users to control the volume of the artist; even mute it.How is this possible?Does adjusting artist sound/setting equalizer etc. mean performing some transformation of required frequencies? What sort of mathematics is required here(frequency domain transformations)?The application recorded users voice input via a mic. Assuming that the sound is recorded in some format, the application was able to mix the recording with the karaoke track(with artists voice muted). How can this be done?Did they play both the track and voice recording simultaneously? Or maybe they inserted additional frequency(channel?) in the original track, maybe replaced it?What sort of DSP is involved here? Is this possible in Java, Objective C?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved