Authorrohit.gujar

Google Calendar – Calendar API

G

Step 1: Acquire a SHA1 fingerprint Step 2: Turn on the Google Calendar API Step 3: Create a new Android project Step 4: Prepare the project Open the app build.gradle file and add dependencies  content with the following: compile('com.google.api-client:google-api-client-android:1.23.0') {         exclude group: 'org.apache.httpcomponents'     }     compile('com.google.apis:google-api-services...

Drawable Animation

D

Drawable animation lets you load a series of Drawable resources one after another to create an animation. This is a traditional animation in the sense that it is created with a sequence of different images, played in order, like a roll of film. The AnimationDrawable class is the basis for Drawable animations. While you can define the frames of an animation in your code, using the...

Abstract class to get a address from current location in Android

A

public abstract class ReverseGeocoderTask extends AsyncTask<Void, Void, String> { private static final String TAG = "ReverseGeocoder"; private String value = "Checking your location..."; public abstract void onAddressFound(String address); private float mLat; private float mLng; private Activity mContext; public ReverseGeocoderTask(Activity context, Location location) { mContext = context;...

Communication between Bluetooth devices

C

I had used this communication to get the surrounding temperature, but we can also use this to develop chat room which will be offline. BluetoothSPP bt; //Bluetooth Socket bt = new BluetoothSPP(this); //initilisation // check weather Bluetooth is on/off   if (!bt.isBluetoothEnabled()) { Intent intent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(intent...

Category