Home » Author Archives: Cindy Potvin

Author Archives: Cindy Potvin

Cindy is a programmer with over 5 years of experience developing web applications. She also works on Android applications and share her knowledge via her blog and on Twitter.

5 Great Snacks For the Coder’s Brain

software-development-2-logo

You’re coding and you’ve been in the flow for a few hours. Everything is going just fine, but then hunger strikes suddenly. Since you don’t have anything on hand, you go to the cafeteria or to a nearby café to grab a muffin or a pastry full of sugar. When you sit down to resume coding while eating your snack, ...

Read More »

How to show a Toast for a specific duration in Android

android-logo

In the Android SDK, an android.widget.Toast is a small message that pops up at the bottom of the screen to display an information. The toast will disappears by itself after a specified duration. Here is an example of what a toast looks like and how to display one :           Context context = getApplicationContext(); Toast.makeText(context, "Hello ...

Read More »

Display a string list in an Android ListView

android-logo

Showing a list of items is a very common pattern in mobile application. This pattern comes up often when I make a tutorial: I often need to interact with data, but I don’t want to send a lot of time just on displaying that data when that’s not the point of the tutorial. So, what is the easiest way to ...

Read More »

Storing the state of an activity of your Android application

android-logo

This is the last post in my series about saving data in your Android application. The previous posts went over the various way to save data in your application: Introduction : How to save data in your Android application Saving data to a file in your Android application Saving preferences in your Android application Saving to a SQLite database in ...

Read More »

Saving to a SQLite database in your Android application

android-logo

This is the fourth post in my series about saving data in Android applications. Here are the other posts : Introduction : How to save data in your Android application Saving data to a file in your Android application Saving preferences in your Android application The previous posts described how to save files to the file system and to the ...

Read More »

Saving preferences in your Android application

android-logo

This is the third post in my series about saving data in Android. The other posts can be found here : http://www.javacodegeeks.com/2014/06/introduction-how-to-save-data-in-your-android-application.html http://www.javacodegeeks.com/2014/06/saving-data-to-a-file-in-your-android-application.html A preference is a type of data that needs to be saved by most applications. Preferences allow users to change how the application works by giving choices about things like the layout, the features to enable and ...

Read More »

5 tips to improve performance in Android applications

android-logo

If your application has many time-intensive operations, here are some tricks to improve the performance and provide a better experience for your users.                   Operations that can take a long time should run on their own thread and not in the main (UI) thread. If an operation takes too long while it ...

Read More »

Creating logs in Android applications

android-logo

For Android applications, logging is handled by the android.util.Log class, which is a basic logging class that stores the logs in a circular buffer for the whole device. All logs for the device can be seen in the LogCat tab in Eclipse, or read using the logcat command. Here is a standard log output for the LogCat tab in Eclipse ...

Read More »

Saving data to a file in your Android application

android-logo

This is the second post in my series about storage in Android applications. The other post is available here : http://www.javacodegeeks.com/2014/06/introduction-how-to-save-data-in-your-android-application.html This post is about saving to a file from an Android application, which is the easiest way to store data. There are many situations where you may need to save a file : you may want to use an ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.