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 »

 

Memorize English Android App Tutorial: Start From Planning

On August 29, 2014, in Android, by James

I decide to start a new tutorial session to go through the whole android development process. In this tutorial session, I will demonstrate how to design the android app, how to develop the android app, how to release it in Google Play app store, and how to monetize the android app. The tutorial is basing on the real Android App: Memo English-Fruit Master. You can download this app from the Google Play.

button-get-it-on-google-playx200
Continue reading »

 

Login With Remember Me By Session And Cookie

On July 15, 2014, in Other Online Technology, by James

It is funny that I always forget that how “Remember Me” works but I just keep in mind how to implement it in PHP. I think it is very necessary for me to write it down so that I can check it from time to time, in case that I forget it again. In this post, I will explain how session works in the common way and I will show you what is the difference between login with remember me and login without remember me. All example code will write in PHP.

When you visit a website in the browser, the website may assign an unique id for you in order to save all your data with this unique id. Therefore, it can restore your data when you come back next time. The unique id is called session id.

Website uses session id to identify an unique visitor. At the first time you access the website, it will generate a session id and send it back to your browser. Normally, the session id will be stored in browser cookie if your browser cookie is enabled. (Usually, the cookie is enabled in all browsers.) To make it more clear, I write an example. The following code will record your visit times in session. Each time you visit this page, it will show your how many times you have visited.
Continue reading »

 

Android Canvas Example: Draw Sprite Sheet Animation on Canvas

On July 2, 2014, in Android, by James

Android provides several ways to implement Animations. But for different situation, we have to choose different approach. For example, if we want to create a menu dropdown animation or view slider effect, we can choose Android tweened animation. It is the basic Android animation engine which animated the view’s position, size, rotation. In this article Android View Animation Example, I have talked about this. Here is another case, if we want to create a loading icon animation or a character with regular animation, Android frame by frame animation mechanism is the best choice. You can find more information in this article Android Frame Animation Example in Flappy Bird.

However, all animation mechanisms mentioned above are still not enough to cover all scenarios. For example, how can I control the frame rate in frame by frame animation? We can start or stop the frame by frame animation, but how to pause the animation. To solve these problem, I suggest we can use sprite sheet animation. In Android, we can create a sprite sheet animations by drawing frames on Canvas within SurfaceView. In this tutorial, I will show you how to draw images on Canvas within Thread frame by frame. The frame rate is controlled by thread sleeping.

sprite sheet animation in Android
Continue reading »

Tagged with: Android 

Android Frame Animation Example in Flappy Bird

On June 24, 2014, in Android, by James

When we want to create an item with continuious animation, we can use Android Frame animation. It will help us to create an animtion by showing a sequence of images in order. Its concept is similar with Sprite Sheet animation. But its frame images are saved in different png files. In this example, I will create flying flappy bird by Android Fram animation.

flappy bird animation example

Continue reading »

 
Free WordPress Theme