2013

Tutorial

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 […]

, , , , , , , , ,
Snippets, Solutions

Android: Prevent cut-copy-paste popup to be displayed

If you ever need to disable the popup for cut-copy-paste when you long tap a text from an edit text you can do this by using the code below: yourEditText.setCustomSelectionActionModeCallback(new Callback() { public boolean onPrepareActionMode(ActionMode mode, Menu menu) { return false; } public void onDestroyActionMode(ActionMode mode) { } public boolean onCreateActionMode(ActionMode mode, Menu menu) {

, , , , ,
Tutorial

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

Tutorial

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

, , , , ,
Tutorial

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

, , ,
Info

Android Studio – TestFlight upload plugin

As you well know the new IDE for Android is Android Studio and it is using the power of Intellij IDEA IDE which is great.If you work with TestFlight to distribute your builds to your testing teams or customers, you will surely like my new plugin that helps you upload the builds more faster and

, , , , , ,
Snippets, Solutions

Android Get Application Context

When we are inside an Activity, and we need the application context we can use getApplicationContext()  method. But what if we are not inside an Activity and we need the application context? Well, I will explain in this tutorial how you can get the context of the application outside an Activity. You have to create

, , , ,
Snippets, Solutions

Set custom font on android – from assets

Among other nice things that Android has, we can also load custom fonts. To do that we need to get a font file with the desired font. There are some sites where you can find open source fonts like this or this.Ok, I assume you downloaded this font file angrybirds-regular.ttf . Step 1: – put the

, , , ,
Tutorial

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, Tutorial

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

, , , , ,
Tutorial

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

ExpandableListView, how to hide indicator

If you use an ExpandableListView and want to hide the group indicator (that arrow that appears on the left) you need to put this in your xml file where the ExpandableListView is created: android:groupIndicator=”@null” Below is a complete example of an xml file: <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent” > <ExpandableListView android:id=”@+id/expandable_list” android:layout_width=”fill_parent”

,
Scroll to Top