Category:

Auto generate comment in Android Studio

Hi this is simple help if you want to write comment for your function you don’t need to do every thing by own Android studio help you and auto generate  some comment for your method/function to do this try this. Step 1. Create method declare every thing you want. Step 2. Now type /**  and hit enter after […]

Continue Reading
Posted On :
Category:

Working with date in PHP

Here is a simple tip if you are working with Date and time in php. PHP provide some method which are really very helpful to help you. We commonly have two different method which very powerful to calculate difference between date. Method 1. The easiest and most common method is strtotime(time());  Method 2. Second method is […]

Continue Reading
Posted On :
Category:

Check Internet status in your android application

Here is a simple java class used to Check Internet status in your android application . This class help you check your internet status. package com.trinity.Utils; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; /** * Created by Trinity Tuts */ public class CheckInternet { public boolean isConnected; public boolean isNetworkAvailable(Context context) { ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); […]

Continue Reading
Posted On :
Category:

Google map integration and permission update

Resolve issue Failed to load map. Error contacting Google servers. This is probably an authentication issue. It have problem with your API_KEY which is obtained from Google API Access ,so verify your API_KEY , certificate fingerprints and package name. If your API_KEY and certificate fingerprints and package name is correct and still get this issue Failed […]

Continue Reading
Posted On :
Category:

Google map integration and permission update

Resolve issue Failed to load map. Error contacting Google servers. This is probably an authentication issue. It have problem with your API_KEY which is obtained from Google API Access ,so verify your API_KEY , certificate fingerprints and package name. If your API_KEY and certificate fingerprints and package name is correct and still get this issue Failed […]

Continue Reading
Posted On :
Category:

Multiselect spinner item in Android

In this tip i show you how we can select multiple item inside a spinner using checkbox in android. With the help of MultiSelectionSpinner class. Multiselect spinner Step 1. First add this class in your project which help you to achieve multiselect feature in your spinner. package com.mutiselect; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnMultiChoiceClickListener; import android.util.AttributeSet; […]

Continue Reading
Posted On :
Category:

Get contact image using phone number in android

Last updated on May 26th, 2015 at 10:08 pmIn this tip learn how to get image from android contact list in your app. String imnage; Cursor phonesCursor; Urls urls; // Get image from phone no try { Uri phoneUri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, Uri.encode(“Phone number”)); phonesCursor = context.getContentResolver().query(phoneUri, new String[]{ContactsContract.PhoneLookup.PHOTO_THUMBNAIL_URI}, null, null, null); } catch (NullPointerException e) […]

Continue Reading
Posted On :
Category:

Generate Hash Key For Facebook using code

Simple code to generate Facebook Hash Key for you android Application. Code to Generate Hash Key For Facebook using code – public static void showHashKey(Context context) { try { PackageInfo info = context.getPackageManager().getPackageInfo(“com.mypackagename”, PackageManager.GET_SIGNATURES); //Your package name here for (Signature signature : info.signatures) { MessageDigest md = MessageDigest.getInstance(“SHA”); md.update(signature.toByteArray()); Log.i(“KeyHash:”, Base64.encodeToString(md.digest(), Base64.DEFAULT)); } } catch […]

Continue Reading
Posted On :
Category:

Upload image using ajax jquery

In this tip i will help you  to upload image using  jQuery without using any other jQuery plugin. You can also check some other jQuery Tutorial’s. CODE First create new html file in your favorite  text editor and copy below code. Before start writing code add jQuery plugin or jQuery CDN. Created simple html form for uploading image. […]

Continue Reading
Posted On :