Android Tutorial

Difference Between Basic Activity And Empty Activity In Android Studio

When you create the android project in android studio, there are a lot of activity templates you can choose which are provided by android studio. For android beginners, the basic activity and the empty activity always make them confused. So what is the difference between them, let me tell you now.

Difference Between Basic Activity And Empty Activity In Android Studio Read More »

How To Fix Qemu-System-X86_64.Exe Has Stopped Working Error When Starting AVD

When I start an android virtual device ( AVD ) in my new machine ( which I just bought these days.), I meet an error message like this Qemu-System-X86_64.Exe Has Stopped Working. This error stopped my android virtual machine to start. After investigate for almost half a day, I finally find the reason why this

How To Fix Qemu-System-X86_64.Exe Has Stopped Working Error When Starting AVD Read More »

How To Copy / Paste Clipboard Data In Android

This article will show you how to copy data to android system clipboard and how to paste android system clipboard data to target text view. 1. Copy Data To System Clipboard Steps. Get system android.content.ClipboardManager object. final android.content.ClipboardManager clipboardManager = (ClipboardManager)getSystemService(CLIPBOARD_SERVICE); Create a android.content.ClipData object and set source data in it ClipData clipData = ClipData.newPlainText(“Source Text”,

How To Copy / Paste Clipboard Data In Android Read More »

Android Display Data In Table Layout Statically And Programmatically Example

If you want to display data in table format just like the Html table in the android application, you can use TableLayout and TableRow. TableLayout behaves like an Html tag table and TableRow behaves like tag tr. Each TableRow can contain multiple android UI components, each UI component is displayed in a table row column.

Android Display Data In Table Layout Statically And Programmatically Example Read More »