RSS XLM Document Parsing/Parser
I’ve seen a lot of examples for parsing XML using SAX. As far as I can tell, that is the most efficient method for doing so. Honestly though, I’m not really sure how much of a crutch using the DOM...
View ArticleLaunch New Activity
Intent takes two parameters in the most basic example. The first parameter is the class calling the new Activity (Intent). The second parameter is the class name of the Activity to launch. Intent...
View ArticleCustom Composite Android Component
This example puts a couple of TextViews into a LinearLayout. The combination of components is then treated as one component with the added functionality of programmatically changing the text of the two...
View ArticlePassing Data With an Intent
This is the code to pass data from one activity to another through an Intent. This is the code used to create and pass data into an Intent. String dataToPass = "The next activity needs this sentence.";...
View ArticleCalling Activity for Result
I was going to write one up but this site did the work as well as I could have: See the tutorial here It’s really a relatively simple problem with a relatively simple solution. Like I prefer to do in...
View ArticleDrop Shadow LinearLayout
I thought I would share this quick tip I just cooked up. To create a drop shadow below a layout component, you can add a “view” of the same width immediately below that component and set the background...
View ArticleButton Hit Area for Custom Graphics
I decided to create an “irregularly shaped” and small arrow image to be used as a button. The problem was, when I set it as a background image, the hit area only reported when the actual image was...
View ArticleProtecting Your Android Application
I was just thinking to myself, I need to make my published apps more secure. I found this post enlightening and a good start. It’s from the guy that wrote Android Wireless Application Development and...
View ArticleUsing Shared Preferences Explained
This post explains further the example code on the Android Developer site: http://developer.android.com/guide/topics/data/data-storage.html I am trying to dumb this down as best as I can, so some...
View ArticlePassing Toast Message to a New Activity
Greetings readers. I have implemented a “very basic” messaging system within one of my applications. An example use case is as follows: 1. User arrives at an activity. 2. The activity realizes that the...
View Article