Tutorials

Android development tutorials. Bigger content articles that aim to help one achieve or learn something in a guided/step by step pace.

Tutorials

Android and Java sockets – simple messenger

Hello all, as you requested in the previous TCP server-client tutorials, I made a new tutorial on how to create multiple client connections to a single server. I posted the projects on GitHub here for you so I will post here only the main classes and functionality that I consider important to walk through. You […]

, , , , , , , , ,
Tutorials

Android Studio Graddle, add GooglePlayServices library

Nowadays, everything is in a continuous change, so I don’t know if you heard about this, but the android team moved to a new build system named Gradle.  Also the Android team moved from supporting Eclipse as IDE to Android Studio. The latest, has the Gradle system incorporated so you might want to started migrating to

Tutorials

Android: Send SMS to Emulator

The Android emulator has support for receiving text messages. You can send a SMS to an emulator by using the command line. So the first step is: 1. Be sure you have the Telnet Client feature on To enable the Telnet feature on windows you have to make the following steps: Go to Control Panel

, , , , ,
Tutorials

Android: ListView with SearchView

In this tutorial I will present you how to use the SearchView using FTS3. If your data is stored in a SQLite database on the device, performing a full-text search (using FTS3, rather than a LIKE query) can provide a more robust search across text data and can produce results significantly faster. See sqlite.org for information about FTS3 and

, , ,
Tutorials

Android ExpandableListView Add Footer Dynamically

Hi, recently I ran into a problem with footer view on an ExpandableListView. I wanted to add a footer view only when I would have needed it. I tried many ways to achieve this, but the only way that worked, in my case, was to add the footer and just after it to remove it,

, , ,
Tutorials

Android TCP Connection Enhanced

[postad] I made a new TCP Java server that supports now also multiple connections, please check it out here!We decided to make a separate post for this enhanced TCP Connection. You will still be able to see the old TCP Connection Tutorial so I will put in this post only the code.TCP SERVER IN JAVA1. Create a

, , , , , , , ,
Info, Solutions, Tutorials

Android Get A Faster Emulator

The native emulator is very slow in Android. But, you can make a faster emulator using Intel Atom x86, but only if your computer has an Intel processor. Now, you have to follow some steps in order to use the Intel Atom x86 Emulator. Step 1: Enable Intel Virtualization from BIOS Step 2: Install the

, , , , ,
Tutorials

First Steps In Learning Android

If you want to start learning Android, but you don’t know where to start, what you should install or what do you need to know, you need to read this tutorial :D. I will show you the first “baby steps” in Android development. In the first place you need to learn Java, but if you

, , , ,
Snippets, Solutions, Tutorials

Android Add Views into a ViewGroup Dynamically

As Android developer you will surely  need someday to add views dynamically, instead of creating a ListView. I will show you in this tutorial how to do this :) 1. Create a new project and call your activity “MyActivity” 2. Go to res – layout – main.xml and put the following code: <?xml version=”1.0″ encoding=”utf-8″?> <ScrollView

, , , , , , ,
Tutorials

Android Custom States for State List

In this tutorial I will show you how to make some custom states which will be used on an ImageButton. Of course, this states could be used for edit text and other too, but in my example I will use ImageButton :) 1. After you create a new project with the main activity called “MyActivity”

, , , , ,
Tutorials

Android How To Pull Out The Database

In Android you can pull out the database only from emulator (you could pull out the database from a phone/device only if it is rooted). So if you want to pull out the database from emulator you should use ddms (ddms is located in Android sdk folder e.g. my Android folder is installed ProgramFiles so

, , ,
Solutions, Tutorials

Android Hide Soft Keyboard and Show Soft Keyoard

In this tutorial I will present you how to hide the android soft keyboard and how to show it too. You might need to hide the keyboard, if, for example, you will have to put a limit of characters that can be introduced into the EditText and want to hide the keyboard when  the number

, ,
Solutions, Tutorials

Android Multi-Touch: Two Fingers Tapping Once

For my project I had to add a feature where the user should use two fingers and tap with both of them at the same time in order to show view.  this behaviour is not very common on Android but I had to implement it anyway. So after I did some research,  and tried multiple

, , , ,
Snippets, Solutions, Tutorials

Android Custom Title Bar (IOS style)

Because the Android default title bar doesn’t look too great, I thought to make a tutorial with a custom title bar that looks like the one from IOS. I do not recommend to use the design from IOS, but maybe someday you will need to make a title bar which looks like the IOS one

, ,
Scroll to Top