// Path: app/src/main/java/com/hadithbd/banglahadith/util/Constants.java
// public class Constants {
// 
//     public static final String LOCALE_BENGALI = "bengali";
// 
//     public static final String LOCALE_ARABIC = "arabic";
// 
//     public static final String FONT_FOLDER_LOCATION = "fonts/";
// 
//     public static final String FONT_NAME_BANGLA = "solaimanlipinormal.ttf";
// 
//     public static final String FONT_NAME_ARABIC = "a_nefel_adeti.ttf";
// 
//     public static final String MENU_ITEM_ID = "menu_item_id";
// 
//     public static final int NUMBER_OF_GRID_COLUMNS = 2;
// 
//     public static final String BOOK_ID = "book_id";
// 
//     public static final String HADITH_SECTION_ID = "hadith_chapter_id";
// 
//     public static final String LATEST_UPDATE_URL = "http://www.hadithbd.com/";
// 
//     public static final String HADITH_TITLE="hadith_title";
// 
//     public static final String BOOK_TYPE_ID = "book_type_id";
// 
//     public static final String BOOK_CONTENT_ID = "book_content_id";
// 
//     public static final String HADITH_SHARE_URL = "http://www.hadithbd.com/share.php?hid=";
// 
//     public static final String REPORT_SENDTO_ADDRESS = "info@hadithbd.com";
// }
// 
// Path: app/src/main/java/com/hadithbd/banglahadith/util/Utils.java
// public class Utils {
// 
//     private static final HashMap<Character, Character> digitsMap = new HashMap<>();
// 
//     static {
//         digitsMap.put('0', '০');
//         digitsMap.put('1', '১');
//         digitsMap.put('2', '২');
//         digitsMap.put('3', '৩');
//         digitsMap.put('4', '৪');
//         digitsMap.put('5', '৫');
//         digitsMap.put('6', '৬');
//         digitsMap.put('7', '৭');
//         digitsMap.put('8', '৮');
//         digitsMap.put('9', '৯');
//     }
// 
//     public static final boolean IS_BUILD_ABOVE_HONEYCOMB = Build.VERSION.SDK_INT > Build.VERSION_CODES.HONEYCOMB_MR2;
// 
//     public static boolean isLocaleAvailable(String localeName) {
//         Locale[] locales = Locale.getAvailableLocales();
//         for (Locale locale : locales) {
//             if (locale.getDisplayName().toLowerCase().contains(localeName)) {
//                 return true;
//             }
//         }
//         return false;
//     }
// 
//     /**
//      * Check internet connection availability
//      */
//     public static boolean isNetworkAvailable(Context context) {
//         ConnectivityManager connectionManager = (ConnectivityManager) context
//                 .getSystemService(Context.CONNECTIVITY_SERVICE);
//         NetworkInfo netInfo = connectionManager.getActiveNetworkInfo();
//         if (netInfo != null && netInfo.isConnected()) {
//             return true;
//         } else {
//             return false;
//         }
//     }
// 
//     public static Spannable getColoredSpannableWithBanglaSupport(String text, int colorCode) {
//         Spannable spannable = new SpannableString(text);
//         spannable.setSpan(new ForegroundColorSpan(colorCode), 0, spannable.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
//         return spannable;
//     }
// 
//     public static String translateNumber(long number) {
//         char[] digits = (String.valueOf(number)).toCharArray();
//         StringBuilder sb = new StringBuilder();
//         for (char digit : digits) {
//             sb.append(digitsMap.get(digit));
//         }
//         return sb.toString();
//     }
// }


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.Toast;
import com.hadithbd.banglahadith.R;
import com.hadithbd.banglahadith.util.Constants;
import com.hadithbd.banglahadith.util.Utils;
package com.hadithbd.banglahadith.ui.fragments;



/**
 * Created by U on 3/2/2015.
 */
public class LatestUpdate extends Fragment {

    private WebView mWebView;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

// Path: app/src/main/java/com/hadithbd/banglahadith/util/Constants.java
// public class Constants {
// 
//     public static final String LOCALE_BENGALI = "bengali";
// 
//     public static final String LOCALE_ARABIC = "arabic";
// 
//     public static final String FONT_FOLDER_LOCATION = "fonts/";
// 
//     public static final String FONT_NAME_BANGLA = "solaimanlipinormal.ttf";
// 
//     public static final String FONT_NAME_ARABIC = "a_nefel_adeti.ttf";
// 
//     public static final String MENU_ITEM_ID = "menu_item_id";
// 
//     public static final int NUMBER_OF_GRID_COLUMNS = 2;
// 
//     public static final String BOOK_ID = "book_id";
// 
//     public static final String HADITH_SECTION_ID = "hadith_chapter_id";
// 
//     public static final String LATEST_UPDATE_URL = "http://www.hadithbd.com/";
// 
//     public static final String HADITH_TITLE="hadith_title";
// 
//     public static final String BOOK_TYPE_ID = "book_type_id";
// 
//     public static final String BOOK_CONTENT_ID = "book_content_id";
// 
//     public static final String HADITH_SHARE_URL = "http://www.hadithbd.com/share.php?hid=";
// 
//     public static final String REPORT_SENDTO_ADDRESS = "info@hadithbd.com";
// }
// 
// Path: app/src/main/java/com/hadithbd/banglahadith/util/Utils.java
// public class Utils {
// 
//     private static final HashMap<Character, Character> digitsMap = new HashMap<>();
// 
//     static {
//         digitsMap.put('0', '০');
//         digitsMap.put('1', '১');
//         digitsMap.put('2', '২');
//         digitsMap.put('3', '৩');
//         digitsMap.put('4', '৪');
//         digitsMap.put('5', '৫');
//         digitsMap.put('6', '৬');
//         digitsMap.put('7', '৭');
//         digitsMap.put('8', '৮');
//         digitsMap.put('9', '৯');
//     }
// 
//     public static final boolean IS_BUILD_ABOVE_HONEYCOMB = Build.VERSION.SDK_INT > Build.VERSION_CODES.HONEYCOMB_MR2;
// 
//     public static boolean isLocaleAvailable(String localeName) {
//         Locale[] locales = Locale.getAvailableLocales();
//         for (Locale locale : locales) {
//             if (locale.getDisplayName().toLowerCase().contains(localeName)) {
//                 return true;
//             }
//         }
//         return false;
//     }
// 
//     /**
//      * Check internet connection availability
//      */
//     public static boolean isNetworkAvailable(Context context) {
//         ConnectivityManager connectionManager = (ConnectivityManager) context
//                 .getSystemService(Context.CONNECTIVITY_SERVICE);
//         NetworkInfo netInfo = connectionManager.getActiveNetworkInfo();
//         if (netInfo != null && netInfo.isConnected()) {
//             return true;
//         } else {
//             return false;
//         }
//     }
// 
//     public static Spannable getColoredSpannableWithBanglaSupport(String text, int colorCode) {
//         Spannable spannable = new SpannableString(text);
//         spannable.setSpan(new ForegroundColorSpan(colorCode), 0, spannable.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
//         return spannable;
//     }
// 
//     public static String translateNumber(long number) {
//         char[] digits = (String.valueOf(number)).toCharArray();
//         StringBuilder sb = new StringBuilder();
//         for (char digit : digits) {
//             sb.append(digitsMap.get(digit));
//         }
//         return sb.toString();
//     }
// }


// Path: app/src/main/java/com/hadithbd/banglahadith/ui/fragments/LatestUpdate.java
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.Toast;
import com.hadithbd.banglahadith.R;
import com.hadithbd.banglahadith.util.Constants;
import com.hadithbd.banglahadith.util.Utils;

package com.hadithbd.banglahadith.ui.fragments;



/**
 * Created by U on 3/2/2015.
 */
public class LatestUpdate extends Fragment {

    private WebView mWebView;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        if (!Utils.isNetworkAvailable(getActivity())) {