Android Open Source - UAB-Bus-PathFinder Dialog

From Project

Back to project page UAB-Bus-PathFinder.


The source code is released under:

Apache License

If you think the Android project UAB-Bus-PathFinder 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 org.ia.practica2;
//from w  w  w  .ja  v  a2s . co  m
import android.annotation.TargetApi;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

public class Dialog extends DialogFragment {

  private String mText;

  public Dialog(String text) {

    mText = text;

  public onCreateDialog(Bundle savedInstanceState) {

    /** Fill the Dialog with the path on a text format */

    AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
    LayoutInflater inflater = getActivity().getLayoutInflater();
    View layout = inflater.inflate(R.layout.dialog_layout, null);

    TextView tv = (TextView) layout.findViewById(;

        new DialogInterface.OnClickListener() {
          public void onClick(DialogInterface dialog, int id) {
    return builder.create();

Java Source Code List