Android TimerTask Example
In this example, we are going to see, how a java.util method, can help us deal with timer recurring tasks that are scheduled with either a fixed period or a fixed rate on Android. We will use the...
View ArticleAndroid startActivityForResult Example
In Android, the startActivity(Intent) method is used to start a new activity, which will be placed at the top of the activity stack. It takes a single argument, an Intent, which describes the activity...
View ArticleAndroid Bundle Example
As we have seen in our previous example Android StartActivityForResult Example, in Android, the Intent describes the activity to be executed. An Intent contains certain header, action and type, but...
View ArticleAndroid Cursor Example
In Android programming, storing data into a database is not a common practice, as we have other and most suitable methods to store our data, such as the SharedPreferences way. However, we do have a...
View ArticleAndroid SurfaceView Example
In Android, all simple layout views are all drawn on the same GUI thread which is also used for all user interaction. So if we need to update GUI rapidly or if the rendering takes too much time and...
View ArticleAndroid Camera Example
In our previous Android Example, we tried to explain the use of Android SurfaceView through a simple camera application. In the meantime, we realized how important is the “camera mode” in a simple and...
View ArticleAndroid Database Example
In Android programming, storing data into a database is not a common practice, as we have other and most suitable methods to store our data, such as the SharedPreferences way. However, we do have a...
View ArticleAndroid Canvas Example
Android provides a set of APIs for 2D-drawing that allow you to render your custom graphics on a canvas or modify the existing Views. When drawing 2D graphics, you have two choices to work with: Draw...
View ArticleAndroid Video Capture Example
In a simple and modern Android application, it is becoming very common, that the camera is used not only to capture basic portraits and landscape views, but also to be used for other reasons, for...
View ArticleAndroid Physical Keys Example
Every Android device is provided with physical keys. In the wide variety of Android mobile devices, we may meet devices with three or four physical or virtual keys, however the default and most common...
View Article