Memo English Fruit Master – My First Android App On Google Play

On August 26, 2014, in Android, by James
Memo English Fruit Master

In last month, I have created a new Android app, Memo English: Fruit Master. The purpose of this app is helping me to remember some fruits name in English. I collect 75 most common fruits in this app. Some of them are quite challenge actually. In this app, you can learn the fruit name in English, listen the voice over and do some spelling practice to remember the English word. Currently, I am using Google Translate to localize this app in Spanish, Russian, Korean, Chinese, and Vietnamese.
Continue reading »

 

Play MP3 in Android Tutorial: Android Mediaplayer Example

On September 16, 2014, in Android, by James

This is my fourth tutorial for how to build a ListView based Android app. In last tutorial, I have shown an example about how to build ListView with text, image, and button. In this tutorial, I will demonstrate how to play sound with Android Mediaplayer. In my example code, I will set an event listener on the button which is put in ListView. When users click on the button, I will play the local mp3 file basing on which ListView button is clicked. After we finish, you will be able to build a Android music player which has a playlist. When users click play button in the playlist, you can play the corresponding mp3 file.
Continue reading »

 

Android Crop Image And Assign Wallpaper

On September 11, 2014, in Android, by James

New Update Version 1.6:

  • Add cropping function
  • Scale bitmap data before setting as wallpaper

To create an Android wallpaper app, the cropping picture function is quite necessary. To support multiple Android screens, I have to make sure to assign the right size pictures to Android wallpaper. In my solution, I will prepare a set of high resolution pictures to fit the majority Android screen size. When users choose one picture, I will let them to trim the pictures in a specific aspect ratio to perfectly fit the screen size. For example, I will prepare the big image in 1600×1000. When users want to set wallpaper on their 480×800 Android phone, I will provide a cropping tool which can only trims the image in 3:5 aspect ratio. Now, let me show you how I add this cropping feature in my Android Wallpaper app.
Continue reading »

 

Click Button in ListView And Get Item Position

On September 5, 2014, in Android, by James

In my android app “Memo English Fruit Master”, I create a customized ListView. In each ListView item, I put a button inside so when user clicks on the button, the app will play a voice over according to the text in that ListView item. The problem is here, how do I know which voice over the app should play. Hence, I need to know the position of the item in ListView. Here are several ways to get listview item position on click.
Continue reading »

 

Customize Android ListView Item Layout Style Tutorial

On September 3, 2014, in Android, by James

In my last tutorial, I have shown you how to load the built-in JSON data file to initialize the app. I am building a new data array from JSON file and apply the data array to ListView. For each item in the Android ListView, I will customize the item layout by adding one imageView, two textField and one button.

In Android, ListView is composed of several item views. Each item view is a normal Android View. Therefore, the concept for customizing Android ListView item is quite simple. In this tutorial, I will show you how to define a customized ListView item.
Continue reading »

 

Android App Loading Local JSON Configuration File

On September 1, 2014, in Android, by James

For Android App development, the most common question is how to initialize the application when launching the app. The most simple way to initialize the Android app is doing the job in OnCreate function of your Activity class, especially for Activity related init work. In this tutorial, I will show you how to load a built-in JSON file to initialize a ListView with word and images.
Continue reading »

 
WordPress Blog