Android Open Source - PomodoroTimer About






From Project

Back to project page PomodoroTimer.

License

The source code is released under:

GNU General Public License

If you think the Android project PomodoroTimer 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.example.pomodorotimer;
//from  w  ww.  j a v  a 2s. c  o m
import java.util.Calendar;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

/**
 * The Class About. Shows information about application (e.g. author, name) in application's menu.
 */
public class About extends Activity
{
  /** The title. */
  private String title;
  
  /** The author title. */
  private String authorTitle;
  
  /** The author. */
  private String author;
  
  /** The compilation date title. */
  private String compilationDateTitle;
  
  /** The compilation date. */
  private String compilationDate;
  
  /** The title tv. */
  private TextView titleTV;
  
  /** The author title tv. */
  private TextView authorTitleTV;
  
  /** The author tv. */
  private TextView authorTV;
  
  /** The compilation date tv. */
  private TextView compilationDateTV;
  
  /** The compilation date title tv. */
  private TextView compilationDateTitleTV;
  
  /* (non-Javadoc)
   * @see android.app.Activity#onCreate(android.os.Bundle)
   */
  @Override
  protected void onCreate(Bundle savedInstanceState)
  {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_about);
  
    Calendar cal = Calendar.getInstance();
    int compilationDay = cal.get(Calendar.DAY_OF_MONTH);
    int compilationMonth = cal.get(Calendar.MONTH) + 1; 
    int compilationYear = cal.get(Calendar.YEAR);

    title = "Pomodoro Timer";
    authorTitle = "Autor:";
    author = "Pamela Strucker";
    compilationDateTitle = "Data kompilacji";
    compilationDate = String.format("%02d.%02d.%04d", compilationDay, compilationMonth, compilationYear);
    
    titleTV = (TextView) findViewById(R.id.appTitle);
    titleTV.setText(title);
    authorTitleTV = (TextView) findViewById(R.id.appAuthorTitle);
    authorTitleTV.setText(authorTitle);
    authorTV = (TextView) findViewById(R.id.appAuthor);
    authorTV.setText(author);
    compilationDateTitleTV = (TextView) findViewById(R.id.appCompilationDateTitle);
    compilationDateTitleTV.setText(compilationDateTitle);
    compilationDateTV = (TextView) findViewById(R.id.appCompilatioDate);
    compilationDateTV.setText(compilationDate);
    
  }
}




Java Source Code List

com.example.pomodorotimer.About.java
com.example.pomodorotimer.DropboxLink.java
com.example.pomodorotimer.MainActivity.java
com.example.pomodorotimer.PomodoroClass.java
com.example.pomodorotimer.PomodoroContentProvider.java
com.example.pomodorotimer.PomodoroDetails.java
com.example.pomodorotimer.PomodoroEdit.java
com.example.pomodorotimer.PomodoroList.java
com.example.pomodorotimer.PomodoroTimerDBContract.java
com.example.pomodorotimer.PomodoroTimerDBHelper.java
com.example.pomodorotimer.PomodorosTagClass.java
com.example.pomodorotimer.SettingsActivity.java
com.example.pomodorotimer.TagClass.java
com.example.pomodorotimer.TagDetails.java
com.example.pomodorotimer.TagEdit.java
com.example.pomodorotimer.TagList.java