Android Open Source - RSS-Steam Constants






From Project

Back to project page RSS-Steam.

License

The source code is released under:

Apache License

If you think the Android project RSS-Steam listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.jddmxgg.ofertassteam;
/*from w  w w.j  av  a2s  .c  om*/
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.util.Log;

public class Constants
{
  public static final String TAG = "Ofertas Steam";
  public static final String ADD_ID = "";
  private static final boolean DEBUG = true;
  public static final String ADMOB_PUBLISHER_ID = "ca-app-pub-2689062467644026/9100777993";

  
  public static void debug(String message)
  {
    if (DEBUG)
      Log.d(TAG, message);
  }

  public static enum Colors
  {
    GREEN  ("#00FF00"),
    INDIGO  ("#4B0082"),//
    YELLOW  ("#FFFF00"),
    PURPLE  ("#8F00FF"),//
    ORANGE  ("#FF7F00"),
    BLUE  ("#0000FF"),//
    RED    ("#FF0000");

    String mColorCode;

    private Colors(String colorCode)
    {
      mColorCode = colorCode;
    }

    public String getColor()
    {
      return mColorCode;
    }
  }

  public static boolean internetConnectionEnabled(Context contexto)
  {
    ConnectivityManager conMgr = (ConnectivityManager) contexto.getSystemService(Context.CONNECTIVITY_SERVICE);
    NetworkInfo i = conMgr.getActiveNetworkInfo();
    if (i == null)
      return false;
    if (!i.isConnected())
      return false;
    if (!i.isAvailable())
      return false;
    return true;
  }
}




Java Source Code List

com.jddmxgg.ofertassteam.AboutUsActivity.java
com.jddmxgg.ofertassteam.Constants.java
com.jddmxgg.ofertassteam.DescriptionActivity.java
com.jddmxgg.ofertassteam.ExpandibleListViewAdapter.java
com.jddmxgg.ofertassteam.MainActivity.java
com.jddmxgg.ofertassteam.RssAdapter.java
com.jddmxgg.ofertassteam.RssFragment.java
com.jddmxgg.ofertassteam.RssItem.java
com.jddmxgg.ofertassteam.RssParser.java
com.jddmxgg.ofertassteam.RssService.java
com.jddmxgg.ofertassteam.SQLiteHelper.java
com.jddmxgg.ofertassteam.SimpleGestureFilter.java