Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Email validation using regex

Email validation using regex The Email Id such as adam.sandler@findnerd.com is made up of local-part, an @ symbol and then a domain part. Hence, Email Id is of the form : local_part@domain *TLD = Top Level Domain Some Valid Emails ...

Email Validation Code in Android

Email Validation Code in Android Almost on every login and Sign Up screen, you have to create email field and add email validation on it. Its a simple code for email validation. Here you have to call it first doing login or sign up. ...

Activity Life cycle

Hello again, this video tutorial will guide you about the Activity life cycle in Android. From this tutorial you will get the better idea of all the life cycle methods of an Activity.

Binding JavaScript code to Android code

Binding JavaScript code to Android code When Building a WebView based Web App in Android, you can communicate with your android client side code through your Javascript code.You can call any method of Android client side code on any triggered ev...

Variable Name Standard in Android

Variable Name Standard in Android This is the standard regime to follow in your coding when you define any variable. 1.Non public, non static field should starts wih m. 2.Static fields name should starts with s. 3. Other fields sh...

Android - basic gesture detection using MotionEventCompat class

Android - basic gesture detection using MotionEventCompat class A touch gesture occurs when a user places one or more fingers on the touch screen. In order to get a touch gesture of a touch event we can use GestureDetectorCompat or MotionEven...

How to implement onClickListener on a view

Hello again, this tutorial describe you to implement an OnClickListener on a view in android. This tutorial describes the two ways to implement an OnClickListener.

Add your Application on Gallery Sharing option

Add your App on Gallery Sharing option. If you want to add image sharing from gallery option to your application, there is a perfect code for this requirement.. You just need to add these lines to your manifest file on that activity which y...

Difference between px,dp,sp,dip in android

Difference between px,dp,sp,dip They all make UI compatible for Android Devices px: Its the standard pixel. We cas say actual pixel on the screen or one pixel. px = dp * (dpi / 160) dp: (Density Pixels). Its based on physical ...

AutoComplete TextView in Android

AutoComplete TextView in Android AutocompleteTextView is an editable textview, It shows dropdown box of suggested item based on the reserved word. So by using this we don't need to write complete letter. Basically AutoCompleteTextView is...

Programatically close/hide Android Soft Keyboard on Events

When there are one or more EditText in the activity, a soft keyboard automatically appears when the activity is launched, which hides some visible portion of the screen and we don't always have a requirement to automatically pop-up the soft inp...

Close/hide the Android Soft Keyboard

When we perform any action on button click and many times we have seen that the keyboard is open and the further activities are going on. The opened keyboard looks very bad on the screen. So to over come this problem here is the method to close t...

Hide and reopen menu icons from Action Bar when search view expand's and close respectively

To hide other menu items from ActionBar/Toolbar when SearchView is expanded or open you need to apply OnSearchClickListener on it. On the onCreateOptionsMenu method set OnSearchClickListener like this:- // hide other menu item when SearchView...

Sending Email in android

Email is any message distributed by electronic means. For sending email from our application, we dont have to built email client from scratch. We can implement existing one like Gmail, outlook etc. We use ACTION_SEND action to launch an ex...

Top 5 features of Android 5.0 Lollipop

Android has reached to its current peak position in the mobile market by three factors - 1. Open Source to work. 2. Google's backing. 3. Application Ecosystem. Recently, Google has launched new version of Android, Name, Android 5.0 Lollipop....

Gray Out an Image in android

Gray Out an Image in android In android, Sometimes, we have to gray out image to show it disable or to show it differently. So I share my code to gray out any ImageView. We just do it by using pixels. private ImageView instagramIcon...

Custom Progress Bar with Timer

Custom Progress bar with timer Generally we use this splash screen to make our app dynamic and stylish.We can also use to show some process is doing internally. For this we just customize ProgressBar by defining custom style . <progress...

How to change the theme or highlighted color of EditText

In order to change the theme or highlighted color of EditText do the following steps:- 1) Create colors.xml file inside the values folder (if you don't have) and then declare colors <color name="ColorPrimary">#4484F6</color> <...

Deleting information from database in android

Deleting record from database using Sqlite Helper class. We have taken Name, Age and City as input from user and saving them on click of Save button and deleting on click of Delete button from database. MainActivity.java public class Ma...

Reading information from database in Android

Storing and reading record from database using Sqlite Helper class. We have taken Name, Age and City as input from user and saving them on click of Save button and reading on click of Fetch Data button from database. MainActivity.java p...

Saving information in database in Android

Storing record in database using Sqlite Helper class. We have taken Name, Age and City as input from user and saving them on click of Save button in database. MainActivity.java public class MainActivity extends Activity { CreateDat...

Put scrollable view inside a scrollable view

We should not put scrollable view inside scrollable view (and most developers say we should never put ListView inside ScrollView). But there are cases where we have to put the scrollable view inside Scrollable view inspite of these design guideli...

Save a file on Internal storage in Android

There are two types of storage in Android device, one is external storage and another is internal storage. You should be aware that the file you try to store in internal storage of Android device will gets completely removed if you uninstall the ...

Create database using SQLite Helper

Create Database class Here is an example to create database using SqliteHelper class in android. We are creating a database with the name "detail" and having 4 columns as :-Key, Name, City and Age. public class CreateDatabase { publi...

How to use Relative Layout in Android

Hello again, This video tutorial will guide you how to use Relative Layout in android. The Relative Layout lets you define the position of each child views relative to the others and to the screen boundaries. It provides the great deal of f...

Handle Sliding Tab layout properly

Hello guys, as we all have worked on Tabs widget and Tabs host but now Tab widget and host have been deprecated. Android lollipop provides a new interface to implement Tabs that are SlidingTabLayout.java & SlidingTabStrip.java classes. These...

Bar Code Scanner using Zbar library in android

There are so many libraries like Zbar,Zxing Red-Scanner that are used for bar code scanning. I am explaining here Zbar library integration for bar code scanning. Zbar is open source. It is fast,simple as compared to Zxing. First of all you h...

How to use SharedPreferences in Android to store, fetch and edit values

SharedPreferences are used to store primitive data types in Android such as int, long, float, string. SharedPreferences have an added advantage over storing data in singleton class as Singleton class can store data and available throughout the ap...

Click animation on view

Hello Android folks, We've been using selectors and xmls whenever we wanted to apply click effect to the views. Here is very simple and short way to achieve the same. We can use Android's AnimationUtils class to load the animation on any vi...

How to Create a LinearLayout

Hi again, This Video tutorial will guide you to create a Layout with the help of LinearLayout.

Shared Preferences in android

Android provides some features to store and retrieve data of an application. SharedPreferences is one of the simple and easy way among them.We save data in key, value pair. We have to call getSharedPreferences(), It returns the SharedPrefr...

Getting started with android

This Video Tutorial will guide you To Get Started With Android. First Download the Android Studio from below link: https://developer.android.com/sdk/index.html

Layout for tablets in Android

To target your some designs to other devices like tablets, there are solution for typical screen width: For every case, your UI might not look perfect specially for the case of tablet, so you need to adjust your layouts/designs. Then you have ...

How to include .so files in Android Studio project

From here you can learn to include or integrate .so files into your code. Files that contain the .so file extension are most commonly used for shared library files. Programs written in the C and C++ language load a shared library when they are la...

How to touch UI from background or seperate thread ?

We know that Android UI or views can be touch from Main thread only , but if we want to update some UI from background or separate thread then we have to use one of the following way :- AsyncTask has 4 override methods that are onPreExecute(...

How to hide/show Toolbar when list is scrolling?

This tutorial describes how to show effect when list is scrolling up and down. Hiding Toolbar and any other views when list is scrolling down and showing it again when its scrolling up. In this tutorial we are using RecyclerView and Tollbar to ...

Android Lollipop Navigation Drawer Using AppCompat 21

This tutorial is very useful if you are using material design navigation drawer. In Android's Lollipop navigation drawer it provide smooth animation when we swipe across the screen from left edge. You may use to this same functionality in older v...

Android dialog with Action Bar using Tool Bar

Android Toolbar widget is the new UI android components available in AppCompt v21. It works just like action bar. It can be used as action bar in a dialog with support from API 7 onwards . This tutorial helps to create a toolbar in android dialog...

How to bind a service with android components .

Sometimes when we are working with service then we want the service to communicate with android components like activity.We need to accomplish this task to bind service to an activity.This type of service called android bound service.Once servic...

What is AQuery or Android Query ?

Do you want to make your code easy ? Are you looking for library that have powerful HTTP requests ? Do you want to do lots of things in a single line ? etc etc..... There is only a single solution for all these problems i.e AQuery or A...

Login a user using Parse API

In ParseUser class there is method with name "logInInBackground" which provides a login API to ther user. This method contains three parameter "username", "password" and "LogInCallback" interface. ParseUser.logInInBackground("username", "pa...

Register a user using Parse.com

As we already know that Parse.com provides a schema-less database. It provides a complete backed solution for mobile applications. In order to register a user with parse, we use ParseUser class. It is a specialized class that automatically hand...

Testing Web Service response using Junit in Android

Unit Testing plays an important role in software development process, basically this testing is done by Developers as they test smallest piece of codes and test whether it gives accurate output or not.Each unit can be tested separately and can be...

Use ORMLite to Optimize your sqlite database

Hey, are you working with large database having many columns and many queries . Is this working slow with sqlite? Thanks to ORMLite that manages your database very efficiently as well as no need to manage lots of queries.... ORMLite supports ...

Parcelable vs Serializable

If we want to send some data over the network or from one place to another place then we have to serialize it first using Serialization in java. Serialization is a process of Marshalling and Unmarshalling of data. Basically the conversion of Obje...

Optimize memory with MAT

We know that Garbage Collectoris a program that automatically removes unwanted data held temporarily in memory during processing. Android also have its own garbage collector but this is not always guarantee all the times so we can't ignore heap ...

How to read or parse JSON in Android

There are some times during android application development when we need to interact with our server make a prominent exhibition of data inside our application. And server return the data in particular format. It is really important to know how ...

RecyclerView with Event Listener

RecyclerView is the more refine and flexible version of ListView. It is available in v7 supporting package. For using RecyclerView you need to import "android.support.v7.widget.RecyclerView" package. In order to add RecyclerView into your appl...

How to get current device location using of GPS

This android tutorial will help you to get current device location based on GPS service. GPS is a technology except device internet and WiFi that provide device current location. GPS location provider will give our location accurately. To use of...

How to create custom video camera

This tutorial is very helpful to create a custom video camera with controls . With the help of this content you can designing your own camera GUI with flash light ,start capturing video,stop capturing video.This content also has a feature to open...
1 18 20 21
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: