Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.content.SharedPreferences;

import android.support.annotation.Nullable;

public class Main {
    private static final String baseUrl = "https://gpodder.net";
    public static final String serverNameKey = "gpodder_server";

    public static String getServer(@Nullable SharedPreferences argSharedPreferences) {
        if (argSharedPreferences == null)
            return baseUrl;

        return argSharedPreferences.getString(serverNameKey, baseUrl);
    }
}