Android Open Source - hello-android Rdio Progress






From Project

Back to project page hello-android.

License

The source code is released under:

/* Copyright (c) 2011 Rdio Inc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the S...

If you think the Android project hello-android 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 com.rdio.android.api.example;
//from   w  w  w  . j ava2  s  .  c  o m
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.os.Bundle;
import android.view.LayoutInflater;

public class RdioProgress extends DialogFragment {

  @Override
  public Dialog onCreateDialog(Bundle savedInstanceState) {
    LayoutInflater inflater = getActivity().getLayoutInflater();
    AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());

    String message = getArguments().getString("message");
    builder.setMessage(message);
    builder.setView(inflater.inflate(R.layout.dialog_progress, null));

    return builder.create();
  }
}




Java Source Code List

com.rdio.android.api.example.ExampleActivity.java
com.rdio.android.api.example.RdioProgress.java