Android programming stresses the use of separate activities within a main program–also an activity–to handle interface changes like going from one menu screen to another. The problem arises when you need to share data between seprate activities, like user data entered on a previous screen. Let’s take a simple example where ActivityA is an activity [...]
I developed this function to perform a simple regular expression text search on a string for an Android app. You can use this in conjunction with my method to retrieve the HTML text from any URL you give it in an Android app to strip out unwanted bits of a web page and dig out [...]
There are a few ways to save data persistently between launches of your Android application. One way is to actually use a database, but I felt this was overkill for my needs since I only needed to store two numbers. The other way is to save it as an Android application preference, which only needs [...]
Making use of the Internet connectivity on the Android platform often means having to access web pages and reading the data from it for your application. To achieve this, I wrote a function that takes in any URL to fetch the HTML contents from. What this function will give you is the HTML source code [...]