Android Open Source - TATupload Tutorial Activity






From Project

Back to project page TATupload.

License

The source code is released under:

GNU General Public License

If you think the Android project TATupload 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 uk.org.sucu.tatupload.activity;
//www.  j  a  va 2 s .  c  om
import uk.org.sucu.tatupload.BrowserAccessor;
import uk.org.sucu.tatupload.R;
import uk.org.sucu.tatupload.Settings;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class TutorialActivity extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_tutorial);
  }
  
  public void setupFlavours(View v){
    Intent intent = new Intent(this, ParameterViewActivity.class);
    intent.putExtra(getString(R.string.parameter_indicator), getString(R.string.flavour_parameter));
    startActivity(intent);
  }
  
  public void setupLocation(View v){
    Intent intent = new Intent(this, ParameterViewActivity.class);
    intent.putExtra(getString(R.string.parameter_indicator), getString(R.string.location_parameter));
    startActivity(intent);
  }
  
  public void setBrowser(View v){
    BrowserAccessor.openBrowserChoicePopup(this, false);
  }
  
  public void done(View v){
    
    if(BrowserAccessor.browserSet(this)){
      //update the saved value of seen tutorial version
      new Settings(this).setTutorialVersionShown(MainActivity.TUTORIAL_VERSION);
      //relaunch the main activity
      Intent intent = new Intent(this, MainActivity.class);
      startActivity(intent);
      this.finish();
    } else {
      //show a 'you must set a browser' popup if no browser is set.
      new AlertDialog.Builder(this)
      .setTitle("TATupload")  
      .setMessage("You must set a browser for TATupload to use before continuing.")
      .setPositiveButton("Okay", null)
      .create()
      .show();
    }
  }
}




Java Source Code List

org.apache.pig.impl.util.ObjectSerializer.java
uk.org.sucu.tatupload.BrowserAccessor.java
uk.org.sucu.tatupload.MessageArrayAdapter.java
uk.org.sucu.tatupload.NetCaller.java
uk.org.sucu.tatupload.Notifications.java
uk.org.sucu.tatupload.ParameterArrayAdapter.java
uk.org.sucu.tatupload.ResolveInfoArrayAdapter.java
uk.org.sucu.tatupload.Settings.java
uk.org.sucu.tatupload.TabContent.java
uk.org.sucu.tatupload.TabManager.java
uk.org.sucu.tatupload.TatUploadApplication.java
uk.org.sucu.tatupload.activity.MainActivity.java
uk.org.sucu.tatupload.activity.OptionActivity.java
uk.org.sucu.tatupload.activity.ParameterViewActivity.java
uk.org.sucu.tatupload.activity.SmsReviewActivity.java
uk.org.sucu.tatupload.activity.TutorialActivity.java
uk.org.sucu.tatupload.message.SmsList.java
uk.org.sucu.tatupload.message.SmsReceiver.java
uk.org.sucu.tatupload.message.Text.java
uk.org.sucu.tatupload.parse.Parameters.java
uk.org.sucu.tatupload.parse.Parser.java
uk.org.sucu.tatupload.parse.Property.java