Android Open Source - context-sms Global Db






From Project

Back to project page context-sms.

License

The source code is released under:

MIT License

If you think the Android project context-sms 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.bretblack.wesay;
/*from www . j a v a 2s  .  c o  m*/
import android.app.Application;
import android.content.res.Configuration;

public class GlobalDb extends Application {
  /** Singleton instance */
  private static GlobalDb singleton;
  /** Instance of the database adapter */
  private FavoritesDbAdapter mDbHelper;
  
  @Override
  public void onConfigurationChanged(Configuration newConfig) {
    super.onConfigurationChanged(newConfig);
  }
 
  @Override
  public void onCreate() {
    super.onCreate();
    singleton = this;
    mDbHelper = new FavoritesDbAdapter(this);
  }
 
  @Override
  public void onLowMemory() {
    super.onLowMemory();
  }
 
  @Override
  public void onTerminate() {
    super.onTerminate();
  }
  
  public GlobalDb getInstance(){
    return singleton;
  }
  
  public FavoritesDbAdapter getDbAdapter(){
    return mDbHelper;
  }
  
}




Java Source Code List

com.bretblack.wesay.FavoritesActivity.java
com.bretblack.wesay.FavoritesDbAdapter.java
com.bretblack.wesay.FavoritesFragmentTab.java
com.bretblack.wesay.GlobalDb.java
com.bretblack.wesay.HomeFragmentTab.java
com.bretblack.wesay.MainActivity.java
com.bretblack.wesay.QuoteFinderActivity.java
com.bretblack.wesay.TabListener.java