Create thumbnail on run time in android
Create thumbnail in android runtime in android.
Continue ReadingCreate thumbnail in android runtime in android.
Continue ReadingLearn how we can start our activity for result like we do in camera or we can invoke other application from our application. This is very simple and easy to implement. Step 1. Create activity in android project or just open activity where we can invoke other activity for result. In simple word just create two […]
Continue ReadingLast updated on December 30th, 2016 at 12:41 pmIf want to create transparent screen on your app this tip is for you. This is very easy to understand. You can create transparent screen with help of Translucent activity. Step 1. Open your project in which you want to implement this. Step 2. Create new the in your […]
Continue ReadingLast updated on August 1st, 2015 at 04:37 pmIn this tip is share a IMEI number validator function with you this is simple and efficient method which i create to validate mobile IMEI number. Some time for security reason or make or application more secure we validate request comming from which device and also read some […]
Continue ReadingSet ImageView height according to screen size in android.
Continue ReadingOpen Play Store App from WebView Android.
Continue ReadingIn some cases we need to pass data from Activity to its fragment, we also do that by creating constructor but that create some issue when you make final release you need to create final constructor or empty constructor etc. So the best way to that by using bundle in bundle you pass your data by setting data in it and get that inside your fragment onCreateView().
Continue ReadingLast updated on June 7th, 2015 at 04:33 pmIn this tip i help you to convert Epoch time to actual time. Wiki definition: Unix time (also known as POSIX time or erroneously as Epoch time) is a system for describing instants in time, defined as the number of seconds that have elapsed since 00:00:00 Coordinated Universal […]
Continue ReadingThis is simple and most common tip for every one because most of time we need to call a activity method inside adapter to pass data etc…. Try this to call inside adapter ((YourActivityName)mContext).customMethod(); If you are using same adapter in multiple activity you need to find instanceof and the call and specific method for the […]
Continue ReadingHi 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 ReadingHere 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 ReadingResolve 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 ReadingResolve 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 ReadingIn 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 ReadingLast 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