Code example for Context

Methods: getApplicationContext

0
     * context. 
     *  
     * @param activityContext 
     */ 
    private DbSSLSessionCache(Context activityContext) {
        Context appContext = activityContext.getApplicationContext();
        mDatabaseHelper = new DatabaseHelper(appContext);
    } 
     
    /** 
     * Create a SslSessionCache that uses a specific database. 
     *  
     *  
     * @param database 
     */ 
    public DbSSLSessionCache(DatabaseHelper database) {
        this.mDatabaseHelper = database;
    } 
     
    public void putSessionData(SSLSession session, byte[] der) {
        if (mDatabaseHelper == null) {