Android Development 101- Part 4:Advanced Database/GUI Code And DDMS

In this tutorial we are going to cover some advanced database code as well as tie in to some more advanced GUI techniques. We left off on the last tutorial showing you how to insert and select data to/from the database as well as make a table. What we need now is to be able to delete data if it is not needed and update it if we entered it incorrectly. We will tie these abilities in with some more advanced functionality utilizing a long press on the screen for delete and for updating we will just press the data we want to edit.

Continue reading “Android Development 101- Part 4:Advanced Database/GUI Code And DDMS”

Android Development 101 – Part 3:Introduction To Databases

In this tutorial we will be pivoting from our last tutorial on Graphical Elements to start focusing on databases in Android development. The android platform uses SQLite databases in its applications and is one of five data storage options in android development. We will only be focusing on SQLite development in android because it is key to the construction of a workable/functional program. After this tutorial you should be able to implement a SQLite database that you are then able to insert and select items from tables in the database.

For this project we will be creating a Random Quote generator that has you enter quotes or sayings in a textbox and press a button to insert them into the database. We will issue a confirmation toast that allows us to see if the data was entered into the database successfully and the textbox will be blank. If a second button is pressed, the database will be accessed and told to select a random quote from the database to show in a toast on the screen.

Continue reading “Android Development 101 – Part 3:Introduction To Databases”

Android Development 101- Part 2:Graphical Elements

In this tutorial, we will be continuing from where we left off with the “hello world” application.  This time adding a graphical user interface (GUI) and a “toast”. The GUI will consist of a button, textbox and a label. The “toast” will be issued onto the screen when the button is pressed.

Some may wonder what a toast is.  Well, for non-programmers, a toast is a text notification that for the most part is used only to display an error on the screen (I am a big fan of using toasts instead of an alert on the screen as its less intrusive).  For this article we will use a toast to display a message on the screen that will take the text in the textbox and issue a “Hello Greg” onto the bottom of the screen.  After this article completed you will be able to successfully make toast commands, design the layout of the hello world program, and pull text from a textbox.

Continue reading “Android Development 101- Part 2:Graphical Elements”

Top 10 Features We’d Like To See In Android 3.0

UPDATE:

Hello HaD readers,
Sorry for the delay in updating this. I was on probation while the editors worked with Jason to figure out some things.

Clearly, for my recent debut article, I didn’t research Android OS well enough. After reading each of your comments, I realize that the article fell short of HaD’s and its readers standards for high-quality writing and reporting. Every point I made in the article were problems I noticed in my experience with Android, but I should have done more research on others’ experiences and the capabilities of each version of the OS. To each reader, I am sorry and will do better by you in future posts.

Poor Google. Despite its numerous capabilities with smartphones spread across a variety of carriers, Android still struggles to garner the prestige and positive perceptions of iOS 4. Sales continue to rise, but at the end of the day, the average person is still left lusting for an iPhone. Well, here are 10 features  that should be added to Android 3.0 that could change the tide.
1. A no-brainer task manager.
Google says Android doesn’t need a task manager, that it closes programs efficiently without any user-intervention, substandard apps often suck memory dry. Because of this, Android users are forced to download complicated task-managers, each with its own odd UI, and weigh which one works the best. Google, please fess up to the problem and put something in there a computer novice could use.  Something with big buttons would be nice.

Nexus One Gets Linux

[youtube http://www.youtube.com/watch?v=3wQ9XogfjRU&feature=player_embedded%5D

Considering how hackable the Nexus One is already, we can only imagine a whole new host of interesting things thanks to Ubuntu running on the device. [Max Lee] set his heart out on getting not just Ubuntu on the Nexus One, but also Debian, and he wrote a perfect install guide to help out those wanting to give it a shot.

He cheated a little bit by having Ubuntu run in the background while the X11 interface is simply VNCed, but he still did an awesome job with plenty of pictures and details to help you achieve Ubuntu on your Nexus One.

RobotsEverywhere

[youtube=http://www.youtube.com/watch?v=WWh6MFUCZ-U]

[Spiritplumber] has been sending us updates on a promising project he’s working on called RobotsEverywhere. We’re not completely sure if that name covers the project itself, or just the name of his group that is selling robots (and giving us schematics and source code). Either way, they have some really cool stuff. The really cool part about many of the bots is that they are using Android phones as their brains and they use the same system on land, air, and water. There’s tons of information sprinkled around the site and the Wiki, take a few minutes and look around.

OLED Hack Saves Juice On Nexus One

Want to really stretch the battery life on your phone? If you have an OLED display [Jeff Sharkey] may have the answer. He did some testing with his Nexus One to see if color alterations can save on current. Darker colors draw less amperage and he found that the red pixels are the most efficient. He did a little work with SurfaceFlinger, which handles the display on Android devices to make this easy, but what will you get by going red? He measured that using only the red pixels dropped the current use down to 35% of what the full color display was pulling. This reminds us of those efforts to save energy by running a black background with Google. Whether you use it or not his post is an interesting read.