Author name: Laura Prata

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: 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

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

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

,
Privacy Policy

Privacy Policy

Privacy Policy for myandroidsolutions The privacy of our visitors to myandroidsolutions is important to us. At myandroidsolutions, we recognize that privacy of your personal information is important. Here is information on what types of personal information we receive and collect when you use and visit myandroidsolutions, and how we safeguard your information. We never sell

Snippets, Solutions, Tutorial

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

, , , , , , ,
Snippets, Solutions

SQLite Query For Dates Equals To Today

Let’s start with an example: We have a table called StartDate with some dates stored into it as long (milliseconds) like in the image below: To understand better which date represents each record I will write below their dates: 1. Tuesday, February 5, 2013 8:10:17 PM GMT 2. Friday, February 1, 2013 8:10:17 PM GMT 3. Wednesday, February

, , , , ,
Snippets, Solutions

Android Stop Edit Text From Gaining Focus When Activity Starts

In this tutorial I will show you how to make the edit text not gaining focus when the activity starts. Sometimes this auto-focus can be annoying because the keyboard shows up even if we do not want to write something into our edit text. But let’s see what should be done in order to get

, , ,
Scroll to Top