Category:

Enable/Disable debug mode in cakephp

In this tip i will show you how to enable/disable error reporting / warning , or debugging in cakephp. Step 1. Go to cakephp\app\Config folder and open core.php . Step 2. Now find Configure::write(‘debug’, 0); Now you can change the value of debug to 1 or 2. * Production Mode: * 0: No error messages, errors, or warnings shown. Flash messages redirect. […]

Continue Reading
Posted On :
Category:

Create Transparent screen in android

Last 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 Reading
Posted On :
Category:

Pass data from activity to fragment in android

In 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 Reading
Posted On :
Category:

Convert Epoch time to actual time in android

Last 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 Reading
Posted On :
Category:

Call Activity method inside adapter

This 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 Reading
Posted On :
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 :