• Sign in

李攀 / fangTang · Files

Favicon

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Forks
  • Network
  • fangTang
  • ..
  • fist_switch
  • SwitchApplication.java
  • switch basic files
      10041a18
    Penley authored
    2017-03-14 16:17:02 +0800  
    Browse Directory »
SwitchApplication.java 433 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
package com.adroplat.fist_switch;

import android.app.Application;
import android.content.Context;

/**
 * Created by wugian on 2017/3/8.
 */

public class SwitchApplication extends Application {
    private static Context context;

    public static Context getAppContext() {
        return context;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        context = this.getApplicationContext();
    }
}