Helping Geeks Win the War on Technology Since 2010

'Android' Category

  • Android: How to Share Data Between Separate Activities

    July 7, 2011

    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 [...]

  • Android/Java Function for Regular Expression Search Like preg_match

    June 30, 2011

    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 [...]

  • Android Saving Persistent Data Between Application Sessions

    April 19, 2011

    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 [...]

  • Android Function to Fetch HTML Page from Any URL

    April 17, 2011

    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 [...]

 
Powered by Wordpress and MySQL on MDDHosting. Theme by Shlomi Noach, openark.org