Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
/**
 * @copyright   Copyright (C) 2011 Asela Leelaratne
 * @license      GNU/GPL Version 3
 * 
 * This Application is released to the public under the GNU General Public License.
 * 
 * GNU/GPL V3 Extract.
 * 15. Disclaimer of Warranty.
 * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
 * EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
 * PROVIDE THE PROGRAM AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
 * FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
 * PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
 * NECESSARY SERVICING, REPAIR OR CORRECTION.
 */

import android.content.Intent;

public class Main {
    /**
     * *********************************************
     * Static methods Than can be accessed directly.
     * *********************************************
     */
    public static final void PupulateIntentForResultsActivity(String station_from_val, String station_from_txt,
            String station_to_val, String station_to_txt, String time_from_val, String time_from_txt,
            String time_to_val, String time_to_txt, String query_date, Intent intent) {
        intent.putExtra("station_from", station_from_val);
        intent.putExtra("station_from_txt", station_from_txt);
        intent.putExtra("station_to", station_to_val);
        intent.putExtra("station_to_txt", station_to_txt);
        intent.putExtra("time_from", time_from_val);
        intent.putExtra("time_from_txt", time_from_txt);
        intent.putExtra("time_to", time_to_val);
        intent.putExtra("time_to_txt", time_to_txt);
        intent.putExtra("query_date", query_date);
        return;
    }
}