Posted by: admin
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.
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.
Here is the code:
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.
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.
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:
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.
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.
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.