Android Code Tips

How to sort RSS by date

Posted by on 2011/12/10 at 8:39 pm

So, if you’ve got one or more RSS feeds and you want to sort them according to the pubdate, do this:

FacebookGoogle BookmarksTwitterFriendFeedGoogle GmailBlogger PostGoogle ReaderHotmailWordPressShare

Check if device has Android Market

Posted by on 2011/11/15 at 5:57 pm

Although the majority of the Android powered devices have the Android Market installed, there are a lot of devices that are running Android but haven’t passed the Compatibility Test Suite (CTS) because they do not comply with the Android Compatibility Definition Document (CDD). (more info here). These device may have high quality hardware and software [...]

FacebookGoogle BookmarksTwitterFriendFeedGoogle GmailBlogger PostGoogle ReaderHotmailWordPressShare

gen already exists but is not a source folder. Convert to a source folder or rename it

Posted by on 2011/10/29 at 3:21 pm

This is a common error and you can solve it following these steps: Right click on the project and go to “Properties” Select “Java Build Path” on the left Open “Source” tab Click “Add Folder…” Check “gen” folder and click Ok and Ok again Again right click on the project and in the “Andriod Tools” [...]

FacebookGoogle BookmarksTwitterFriendFeedGoogle GmailBlogger PostGoogle ReaderHotmailWordPressShare

Styled text in TextView

Posted by on 2011/07/07 at 12:30 pm

The easiest way of having styled text in a TextView is to use HTML and it is very easy to do it: mTextView.setText(Html.fromHtml(“This is a < b >bold< /b > and < i >italics< /i > styled textview!”));

FacebookGoogle BookmarksTwitterFriendFeedGoogle GmailBlogger PostGoogle ReaderHotmailWordPressShare

Android XML Code format

Posted by on 2011/07/01 at 10:27 pm

It’s been a while since I last posted something about android programming. From my point of view, this is a great thing, there is an untold story lying here! :) Working with the Android UI requires a lot of XML “syntaxing”. (I’m sorry, I do not like the use of the words “programming” or “develpment” [...]

FacebookGoogle BookmarksTwitterFriendFeedGoogle GmailBlogger PostGoogle ReaderHotmailWordPressShare