Android Open Source - UTMShuttleAndroid App






From Project

Back to project page UTMShuttleAndroid.

License

The source code is released under:

GNU General Public License

If you think the Android project UTMShuttleAndroid 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 global;
//from   w  w w. ja  v  a2s.c om
import android.app.Application;

import java.text.SimpleDateFormat;
import java.util.Calendar;


public class App extends Application {

    private static String notices;
    private static String strDate, month, date, year;

    @Override
    public void onCreate() {
        // Today's date
        Calendar currentDate = Calendar.getInstance();
        SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
        strDate = formatter.format(currentDate.getTime());
        String[] today = strDate.split("/");

        App.setMonth(today[0]);
        App.setDate(today[1]);
        App.setYear(today[2]);
    }

    public static String getNotices() {
        return notices;
    }

    public static void setNotices(String notices) {
        App.notices = notices;
    }

    public static String getStrDate() {
        return strDate;
    }

    public static void setStrDate(String strDate) {
        App.strDate = strDate;
    }

    public static String getMonth() {
        return App.month;
    }

    public static void setMonth(String month) {
        App.month = month;
    }

    public static String getDate() {
        return App.date;
    }

    public static void setDate(String date) {
        App.date = date;
    }

    public static String getYear() {
        return App.year;
    }

    public static void setYear(String year) {
        App.year = year;
    }
}




Java Source Code List

activities.MainActivity.java
adapters.TimesListAdapter.java
async.NoticesTask.java
async.RoutesTask.java
classes.Route.java
classes.Routes.java
global.App.java
util.NetworkHelper.java
util.Scraper.java