July 2012


Android Database Tutorial

In this tutorial I will show how to use a database in Android by creating the tables and columns using the SQLite Database Browser.1. So the first step is to download the SQLite Database Browser2. Make a new project and name the main java class that generates with the project “MyActivity”. 3. Now you have to go […]

, , ,

Android TCP Connection Tutorial

In this tutorial we will make a TCP Connection. The server will be written in Java and the client will be written in Android. Actually it will be a very simple messenger client. Note: Now we have an enhanced version of TCP Connection here, but it’s just the code. For more details and explanations you still

, , , , , , , ,

Android ListView with ViewHolder Tutorial

In this tutorial I will show you how to create a simple ListView with a custom ListAdapter. But first, let’s see why to use ListView. Why shouldn’t we use ScrollView instead, regarding that it’s easier to create? Well your questions are good ones :) . The advantage of the ListView is that it uses an

, , , , ,
Snippets, Solutions

Add image to email intent in Android

How to add image to an email intent in Android: // build a email sending intent Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType(“image/png”); // set the email subject emailIntent.putExtra(Intent.EXTRA_SUBJECT, “email subject”); // set the email image path for the attachment emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(“file://” + mEmailImagePath)); // set the body of the email emailIntent.putExtra(Intent.EXTRA_TEXT, “some text message”);

, , , ,
Scroll to Top