Java tutorial
//package com.java2s; /******************************************************************************* * ____.____ __.____ ___ _____ * | | |/ _| | \ / _ \ ______ ______ * | | < | | / / /_\ \\____ \\____ \ * /\__| | | \| | / / | \ |_> > |_> > * \________|____|__ \______/ \____|__ / __/| __/ * \/ \/|__| |__| * * Copyright (c) 2014-2015 Paul "Marunjar" Pretsch * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/> ******************************************************************************/ import android.content.Context; import android.content.Intent; import android.net.Uri; public class Main { private static final String URL_GET_EXAMS = "https://www.kusss.jku.at/kusss/szexaminationlist.action"; public static void showExamInBrowser(Context context, String courseId) { Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(URL_GET_EXAMS)); context.startActivity(intent); // TODO: create activity with webview that uses stored credentials to login and open page with search for courseId } }