Back to project page smsnenado.
The source code is released under:
Copyright (c) 2013, Alexander Lopatin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are me...
If you think the Android project smsnenado listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.sbar.smsnenado.dialogs; /*from w ww. ja va2 s. c o m*/ import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.app.Dialog; import android.app.DialogFragment; import android.app.Activity; import android.content.DialogInterface; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import com.sbar.smsnenado.activities.MainActivity; import com.sbar.smsnenado.Common; import com.sbar.smsnenado.R; public class InThisVersionDialogFragment extends DialogFragment { public InThisVersionDialogFragment() { } public Dialog onCreateDialog(Bundle b) { Activity activity = MainActivity.getInstance(); LayoutInflater inflater = activity.getLayoutInflater(); Builder builder = new AlertDialog.Builder(activity); View v = inflater.inflate(R.layout.in_this_version, null); builder.setView(v); builder.setTitle(activity.getString(R.string.title_in_this_version)); builder.setCancelable(true); builder.setPositiveButton( getText(R.string.ok), new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int id) { } } ); Dialog dialog = builder.create(); return dialog; } }