Android Open Source - AndroidRandomWallpaper About The App






From Project

Back to project page AndroidRandomWallpaper.

License

The source code is released under:

GNU General Public License

If you think the Android project AndroidRandomWallpaper 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.elbauldelprogramador.randomwallpaper.activities;
/*ww w . j a v  a2s  . com*/
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.elbauldelprogramador.randomwallpaper.R;

public class AboutTheApp extends DialogFragment {

  public AboutTheApp() {
  }
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
      Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.about, container);
    getDialog().setTitle(getResources().getString(R.string.aboutTitle));
    
    // text2 has links specified by putting <a> tags in the string
      // resource.  By default these links will appear but not
      // respond to user input.  To make them active, you need to
      // call setMovementMethod() on the TextView object.
    
    final TextView source = (TextView) view.findViewById(R.id.tv_about_source);
    final TextView author = (TextView) view.findViewById(R.id.tv_about_athor);
    
    source.setMovementMethod(LinkMovementMethod.getInstance());
    author.setMovementMethod(LinkMovementMethod.getInstance());
    
    return view;
  }
}




Java Source Code List

com.elbauldelprogramador.randomwallpaper.Service.java
com.elbauldelprogramador.randomwallpaper.activities.AboutTheApp.java
com.elbauldelprogramador.randomwallpaper.activities.MainActivity.java
com.elbauldelprogramador.randomwallpaper.reveivers.AlarmReceiver.java
com.elbauldelprogramador.randomwallpaper.reveivers.OnBootReceiver.java
com.elbauldelprogramador.randomwallpaper.util.RWGlobal.java
com.elbauldelprogramador.randomwallpaper.util.SimpleFileExplorer.java
com.elbauldelprogramador.randomwallpaper.util.StrictModeWrapper.java