Inserting Currency in a Edit Text Field with Text Watcher (Android)

Here is an example of a great way to add a currency in a Edit Text to your layout. As the user types, the numbers will update to add the decimal and the currency symbol.
Screen Shot 2013-11-21 at 4.30.38 PM

 

Continue reading

Abandon President Roosevelt Railroad and Engine

We took a trip to look for an abandon Engine in a field today but was surprise to also find the abandon Roosevelt railroad M line. This was a 7 mile rail line that President Roosevelt took as he went down to Warm Springs Georgia. The President rode the line around 50 times and his funeral train rode this line. There use to be a Museum at this location but also has become abandon. The engine in the photo was built in 1892. There is another image of a cart that they was planning on taking tours on. I found some 2009 Youtube videos of maintenance workers using it and traveling down the rail line.

 

16579283

Panoramio image that inspired the hunt. – Thanks Mary

Continue reading

Using a ListView and BaseAdapter with TextWatcher

Here is a an example of repeating a cell/layout inside of a layout. The hard part I found was trying to get the text from the Edit Text field since using the id will not work. You can use the position of the cell but since the list can get rearranged due to the soft keyboard popping up. Setting a tag to the edit text field will work better.

I created two different ways to gather the input: using a holder inside the adapter and using a TextWatcher. A TextWatcher will grab the input in real time unlike a holder which will update when the focus changes.

Screen Shot 2013-11-12 at 11.06.16 AM

Here is the code:

Continue reading

Posted by in Coding

Tags:

Permalink 2 Comments

Creating a List in Unity using C# for mobile devices

I found this script to make a list in a Stack Over Flow forum board but I added a few things to it including responding to clicks and couple other insertions. Plus if you found this post before the SOF then I saved you some time.

 
List Unity3d

Here is the code:

 

Continue reading

Simple Example using Shared Preferences between Activities

Do not let the Preference in the class name fool you. Yes the SharedPreference class can set preferences but it also a great way to implement an easy limited database. It is also a great way keep variables values after restarting the app.

At a high level this first activity (MainActivity) is getting values from EditText fields. When the button is clicked, is calls getResults(View v). This method grabs all the values from the EditText fields and adds them to SharedPreferences then calls “Results” activity. If the values have already been set then it sets the EditText fields to those values. I trimmed the code so this is not a complete app, but it will run.

Continue reading

How to add Amazon Mobile Ads to a Phonegap app

Here is how to add Amazon Mobile Ads. I will give a review after I see some results.

3 Steps to adds Amazon ads to Phonegap

  1. Download the SDK
  2. Add jar to your project (screen shots below)
  3. Change your Activity and Manifest as below. No need to change layout.

AmazonsNewLogo

 

Continue reading

Posted by in Other

Tags:

Permalink 1 Comment

Getting started with GIT with simple commands

github-logo       Getting started with GitHub can be torture unless you come from a Linux background. I hated it so much because I was so use to getting programs with user interface so the last thing I wanted to look at was a terminal or a command prompt. I started to use the GitHub application but I was creating problems for my team mates and even that can be confusing. Most of the stuff online about Git is very dense and makes it hard to get started. I did find a great website for some simple commands after digging through all the advance material out there.

After learning a handful of commands it really is not that bad. If you are new to Github then most likely you will just need to know a handful of commands to get by and just let the more experience guys do the rest. I will assume that you already did the setting up Github by downloading it and configuring it. You will also need to set up an account.

Continue reading

How to change ImageView using a file path without getting out of memory exception error (Android)

This code is going be a mix of my own code and a method I took from StackOverFlow to prevent the memory exception error.  I tried many routes to solve the out of memory error but this one the only one worked for me. I think I had such a hard time because I was loading these few megabit images fairly fast. Not to go off course but check out my new Android app that I used this code for. I also will add code to open the image in an image viewer using intent. Here is the code:

Continue reading

How to get EXIF tags (GPS Coordinates, Time, Date) from a picture

A few days ago I released a new Android app on the Android Market. The app maps the last 500 photos (500 due to performance)  from the default camera folder. I been meaning to build it for awhile but adding a Android Map can be  a pain. Check out the screen shot.

device-2013-07-31-171509

I do not expect this to be a game changer but if it seems to have potential then I will add features. With that said I am going to speak on how to get GPS coordinates and the date/time of a picture. Good thing is that when you get the EXIF from a photo than you get any tag/attribute you like.

Continue reading

Posted by in Coding

Tags:

Permalink 1 Comment

Example using Relative Layout for Android to make a quiz question

When I was browsing Google to find an example of a Relative Layout for my Android application to make a quiz question I could not find one. Not too many sample code of the Relative Layout for Android. Here is the layout code I did. I have not tested it filled with multilines of text but none the less it will be good starting layout.

Relative Layout Example


 Continue reading 

Graveyard Database Logo

Has everything you want to know about grave yards. Plus has many celebrites and world leaders graves. Pssst it is my other site

Google + Profile
Check out Android Photo Mapping, its a app/site I been working on

  • wholesale sports jerseys
  • Fabulou wholesale Petr Mrazek jersey is back. Best choice to get the wholesale Petr Mrazek jersey is suitable for all style of people.