Thursday, October 13, 2016

Show progress bar while loading image in an image view in Android

Loading Image from an URL in an ImageView (showing progress bar while loading image).

We can create a Custom ImageView for that ,It will make stuff more easy.
we will call this class ImageLoaderView.


Friday, September 9, 2016

Using Permissions in Android (Marshmallow Support)

Using Permissions


A basic Android application has no permissions associated with it by default, meaning it cannot do anything that would adversely impact the user experience or any data on the device. To make use of protected features of the device, you must include one or more <uses-permission> tags in your app manifest.
For example, an application that needs to monitor incoming SMS messages would specify:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.app.myapp" >
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
    ...</manifest>

Thursday, July 21, 2016

Firebase in Android (FCM)

Firebase in Android



Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably deliver messages at no cost.
Using FCM, you can notify a client app that new email or other data is available to sync. You can send notification messages to drive user re-engagement and retention. For use cases such as instant messaging, a message can transfer a payload of up to 4KB to a client app.

Tuesday, June 14, 2016

Record audio in background in android

Service class to record audio in background :

below is the service to record audio from background and save them to sdcard on desire location.

public class AudioRecorderService extends Service


Thursday, June 9, 2016

Record Video in background without preview in android

Yes, you can record the video in background .........

 First, create a app with an activity and add a service class .


service class need to be registered in your mainfest file,

like this :
   <service android:name=".BackgroundVideoRecorder"/> 

Thursday, June 2, 2016

chat head like facebook programatically in android

You can simply use a service class to show a chat head like button on Screen.

Global access to a service can be enforced when it is declared in its manifest's <service> tag. By doing so, other applications will need to declare a corresponding <uses-permission> element in their own manifest to be able to start, stop, or bind to the service.

Thursday, April 7, 2016

Expand collapse a layout height with animation

Sometimes according to requirement you need that the view will animate when you change its height or width.
There are multiple ways to set width and height with animation.I have  mention one of them,which is small and easy enough to understand.

Friday, March 4, 2016

Get current location in an activity in android.

We will use  GoogleApiClient to current location ,you can read about GoogleApiClient from here.
You will get complete code here.. (for Activity)

Check the below example for a Fragment. Extend your Fragment with this class(below) and its done..!

Wednesday, February 24, 2016

RecyclerView vs. ListView

With the advent of Android Lollipop, the RecyclerView made its way officially. The RecyclerView is much more powerful, flexible and a major enhancement over ListView. I will try to give you a detailed insight into it.

1) ViewHolder Pattern
In a ListView, it was recommended to use the ViewHolder pattern but it was never a compulsion. In case of RecyclerView,

Monday, February 15, 2016

How to get string adress from latitude and longitude in android (Reverse geocoding)


Fetch address data using  GEOCODER(Reverse geocoding) and if it fails ,we can also use GOOGLE API to get address from lat lng.

What is Geocoding?

Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers on a map, or position the map.

Friday, January 29, 2016

Who is Programmer

- A machine that turn coffee into code.
- A person who fixed problem that you didn't know you have, in a way you don't understand. 

Wednesday, January 27, 2016

How to get recent contacts or all contacts in android

Raw Contact 

A raw contact represents a person's data coming from a single account type and account name. Because the Contacts Provider allows more than one online service as the source of data for a person, the Contacts Provider allows multiple raw contacts for the same person. Multiple raw contacts also allow a user to combine a person's data from more than one account from the same account type.
Most of the data for a raw contact isn't stored in the ContactsContract.RawContacts table. Instead, it's stored in one or more rows in the ContactsContract.Data table. Each data row has a column Data.RAW_CONTACT_ID that contains the RawContacts._ID value of its parent ContactsContract.RawContacts row.
 

Thursday, January 14, 2016

Auto Complete TextView (with history as suggestion) in android

Auto Complete TextViews


An editable text view that shows completion suggestions automatically while the user is typing. The list of suggestions is displayed in a drop down menu from which the user can choose an item to replace the content of the edit box with.
The drop down can be dismissed at any time by pressing the back key or, if no item is selected in the drop down, by pressing the enter/dpad center key.

Don't lose faith when you see others receive answers to their prayers

An elephant and a dog became pregnant at same time. Three months down the line the dog gave birth to six puppies. Six months later the dog...

 

G-Expo Template by Ipietoon Cute Blog Design