Category Archives: Network

Check if Connected to Internet & if isConnected to Wifi in Android.

By | November 6, 2014

This sample code checks whether the android device is connected to Internet and if it is connected to internet, it is connected to Wifi or Not? [java] package com.coderzheaven.demo1; import; import android.content.Context; import; import; import android.os.Bundle; public class MainActivity extends Activity { NetworkInfo activeNetwork; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if (connectedToInternet()) System.out.println("Connected… Read More »

How to find your Google Plus ID

By | September 27, 2012

This is so simple 1. Go to your Google + account ( 2. Click on the Profile icon on the Left. 3. If you look at the URL in the address bar, it should look something like this: 4. The long numerical string in the URL is your Google+ ID. Here is CoderzHeaven’s from the URL above:… Read More »