New tutorials

Welcome to our Tutorials section! We are working hard to bring you high quality and interesting tutorials. Also check out the tutorials forum if you have any problems or want to make a request. Also, if the text in the code samples is too small, click here for an explanation.

  • Solving advanced animation problems

    As we have seen in the previous animations tutorial it is easy to create some funny animations defined by XML.

    Unfortunately in some cases we face troublesome limitations. Lest see them through an example:
    We will create a simple animation that moves a buttom from the top left corner of the screen to the center when it is clicked, then remains there, and when clicked again it moves back to its original...

  • Layar tutorial part 2

    The first tutorial, we went through the steps to create a simple layer.
    In this tutorial, we are going to explain how to include actions in this layer

  • Multitouch and gesture detection part 2

    In my previous article I showed how to create a simple class that handles the basic gesture events such as ACTION_DOWN, ACTION_MOVE, ACTION_POINTER_DOWN, ACTION_POINTER_UP, ACTION_UP. Combinations of these, you can implement all of touch gesture stuffs thats you need in your work with a touch screen phone.

    Handling multitouch
    Create a boolean member...

  • Gallery intent tutorial

    Our goal is to start the users gallery application, allow him to select an image, and use the chosen image in our application.

    API Level 3 required!

    We will start the operation on a buttons onclick event, implemented as follows:

    1. private static Bitmap...

  • Basic iOS animation

    Sometimes you may need to display short animations in your applications like funny GIFs. The problem with GIFs is that they have only 256 colors and poor transparency. You can consider using PNGs, but basically that type of image doesn't support animations. So what can you do to push the advantage of PNGs (great lossless compression, alpha channels, various coloring schemes, etc.)?

  • Mojito builder

    Last week, in spite of the winter the weather was very mild. The beams of the winter sun brought forward the memories of the summer: hot weather, girls in bikinis, mojitos! We have already gotten a promise for the first two in a certain form here in Helloandroid HQ (the heating system will be repaired, and we 'll have some women colleagues), but it is our task to make coctails.

    ...

  • Easy runtime meter

    tIn this tutorial I'll show you a simple time meter example. It can be used for checking the running time of your algorithms. It's useful when you need to decide wich solution is faster/better than an other. It just a simple helper code, but if you made some changes on it, can be a part of any final project, like benchmarking or testing workarounds.

  • Quick guide to quick autocomplete textview

    This demo shows how to speed up the original autocomplete textview assuming that we can work with ordered data.

    Let's prepare a simple test environment, which demostrate the difference between the two versions. Then let's generate a few thousand test data, and create two textviews from which we will speed up the second one.

    1. public...

  • RSA String Encryption

    In this tutorial, I show you how to encrypt a string with public key in Android.

    First we make a 2048-bit RSA private key in linux:

    1. $ openssl genrsa -out private_key.pem 2048

    Then convert private Key to PKCS#8 format, what Java can read: (in...

  • Simple tutorial for using e3roid 2D OpenGL framework for Android