Back to project page DtuExamTools.
The source code is released under:
RECEX SHARED SOURCE LICENSE version 1.0, 30 May 2013 Copyright (c) 2013 RecEx. <http://recex.co.in> Everyone is permitted to copy and distribute verbatim copies of this license docum...
If you think the Android project DtuExamTools listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/********************************************************************** RecEX DTU Exam Tools//from w w w . ja v a 2 s.c o m Copyright (C) 2013 RecEx The source code of this program is shared under the RECEX SHARED SOURCE LICENSE (version 1.0). The source code is shared for referrence and academic purposes with the hope that people can read and learn from it. This is not Free and Open Source software, and code is not redistributable without permission of the author. Read the RECEX SHARED SOURCE LICENSE for details The source codes does not come with any warranty including the implied warranty of merchandise. You should have received a copy of the RECEX SHARED SOURCE LICENSE in the form of a License.txt file in the root of the source directory. If not, please refer to <https://raw.github.com/Recex/Licenses/master/SharedSourceLicense/LICENSE.txt> **********************************************************************/ package com.RecEx.dtuexamtools; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.DialogFragment; public class databaseDialog extends DialogFragment { @Override public Dialog onCreateDialog(Bundle savedInstanceState) { String about = "You can browse our entire database on your web browser by going to \n\nhttp://www.recex.co.in/examtoolsdata"; // Use the Builder class for convenient dialog construction AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setMessage(about) .setTitle("Online Database Browser") .setPositiveButton("Browse database", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // FIRE ZE MISSILES! Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.recex.co.in/examtoolsdata")); startActivity(browserIntent); } }) .setNegativeButton("Cancel", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // User cancelled the dialog } }); // Create the AlertDialog object and return it return builder.create(); } }