Sunday, October 26, 2014
Text Size

Remove first two entries from Android Java: SimpleRssReader

A quick article on how to remove the first two entries from a RSS feed produced by a bunch of java files collectively known as "SimpleRssReader.

The original file reads of a feed from I adapted this to read a google news rss feed and the first two entries are "<query> - Google News", everytime. This article documents what I did to fix it.

Basic to some but I'm new to the game. I'm trying to remove two entries from an array. Find the following function in and replace with:

Two icons created on Android

If you're installing an app and it creates two icons:

I don't think I'll forget this one but I was stumped for a bit until I found it on the a forum: Stack Overflow: Android App Development.

Basically don't have the following declared more than once in the AndroidManifest.xml

  1.  <intent-filter> 
  2.       <action android:name="android.intent.action.MAIN" /> 
  3.       <category android:name="android.intent.category.LAUNCHER" /> 
  4.  </intent-filter> 

MessageBox or AlertDialog in Android Java

A quick article on how to display a OK/Cancel popup which I use as a message to the user for debug purposes.

I need a function in every programming language which can output to me (the developer) data that the program is dealing with.

This displays a standard Ok/cancel message popup which you attach to some event

  1.  import; 
  2.  import android.content.DialogInterface; 
  4.  new AlertDialog.Builder(this) 
  5.          .setTitle("Some Title") 
  6.          .setMessage("some message") 
  7.          .setPositiveButton("OK", new DialogInterface.OnClickListener() { 
  8.                  public void onClick(DialogInterface arg0, int arg1) { 
  9.                          // Some stuff to do when ok got clicked 
  10.                  } 
  11.          }) 
  12.          .setNegativeButton("cancel", new DialogInterface.OnClickListener() { 
  13.                  public void onClick(DialogInterface arg0, int arg1) { 
  14.                          // Some stuff to do when cancel got clicked 
  15.                  } 
  16.          }) 
  17.          .show(); 

Basic Android App using Google Maps and Current Location

Applies to:
  • Android Studio (Beta) 0.8.6
  • Google Android Maps API

I am writing an app for a tablet running Android and wanted to include a Google Map. The following exercise focuses solely on creating an app which opens Google Maps at your current location.

I couldn't find any instructions using the tools I had (Android Studio) which is why I've written this article.

Free Translator API using Google

So this is a quick article to get your Google Translation services working with your website.

At time of print, Google now charge for every 2,000,000 characters (2 million) every month.

Microsoft's Bing has added itself to the fray pretending to offer free services but in the small print, you will find they too charge the same price.


Latest Posts