import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; public class NetworkCheck { public static boolean hasInternetConnection(Context context) { ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo wifiNetwork = cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI); if (wifiNetwork != null && wifiNetwork.isConnected()) { return true; } NetworkInfo mobileNetwork = cm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); if (mobileNetwork != null && mobileNetwork.isConnected()) { return true; } NetworkInfo activeNetwork = cm.getActiveNetworkInfo(); if (activeNetwork […]
10
Oct 2016
10
Oct 2016
Use below link to download a code for implementing android camera api in your code : Download Link
10
Oct 2016
Use below link to view sample code : Download Link
10
Oct 2016
Use below link to view sample code :Download Link
10
Oct 2016
WebView is a view that display web pages inside your application. You can also specify HTML string and can show it inside your application using WebView. WebView makes turns your application to a web application. <WebView xmlns:android=”http://schemas.android.com/apk/res/android” android:id=”@+id/webview” android:layout_width=”fill_parent” android:layout_height=”fill_parent” /> WebView webview = (WebView) findViewById(R.id.webview); webview.loadUrl(“http://www.google.com”); If you click on any link inside the […]