Android Open Source - AndroidAPP-TorEngine Informatica






From Project

Back to project page AndroidAPP-TorEngine.

License

The source code is released under:

GNU General Public License

If you think the Android project AndroidAPP-TorEngine 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 ironwolf.torengine;
//from w w  w  .j  a  v  a  2 s.c  o m
import ironwolf.torengine.R;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class Informatica extends Activity
{
  final static int INF_DIALOG_ID=8;
   @Override
      public void onCreate(Bundle savedInstanceState) 
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.infmain);
          
          Button ftpinf=(Button) findViewById(R.id.ftpinf);
          ftpinf.setOnClickListener(new OnClickListener()
          {
            public void onClick(View v)
            {
              Intent intent = new Intent(Intent.ACTION_VIEW);
          intent.setData(Uri.parse("http://www.torengine.it/openftp/informatica-cpp"));
          startActivity(intent);
            }
          });
          
          Button slide=(Button) findViewById(R.id.slide);
          slide.setOnClickListener(new OnClickListener()
          {
            public void onClick(View v)
            {
              Intent goToSlide = new Intent(Informatica.this, Slide.class);
          startActivity(goToSlide);
            }
          });
          
          Button pack=(Button) findViewById(R.id.pack);
          pack.setOnClickListener(new OnClickListener()
          {
            public void onClick(View v)
            {
              Toast.makeText(getApplicationContext(), "Tieni a mente che potresti non aprire questi file!", Toast.LENGTH_LONG).show();
              Intent intent = new Intent(Intent.ACTION_VIEW);
          intent.setData(Uri.parse("http://www.torengine.it/openftp/informatica-cpp/cpp_pack4.1_patryk_rucidlo.zip"));
          startActivity(intent);
            }
          });
          
          Button eslopresti=(Button) findViewById(R.id.esonerilopresti);
          eslopresti.setOnClickListener(new OnClickListener()
          {
            public void onClick(View v)
            {
              Intent intent = new Intent(Intent.ACTION_VIEW);
          intent.setData(Uri.parse("http://www.torengine.it/openftp/informatica-cpp/Esoneri_FOI_(LoPresti)v1.1.zip"));
          startActivity(intent);
            }
          });
          
          Button esgrassi=(Button) findViewById(R.id.esonerigrassi);
          esgrassi.setOnClickListener(new OnClickListener()
          {
            public void onClick(View v)
            {
              Intent intent = new Intent(Intent.ACTION_VIEW);
          intent.setData(Uri.parse("http://www.torengine.it/openftp/informatica-cpp/Esoneri_FOI_(Grassi)v1.1.zip"));
          startActivity(intent);
            }
          });
          
      }//fine oncreate
   

   @Override
      public boolean onCreateOptionsMenu(Menu menu) 
      {
        MenuInflater inflater = getMenuInflater();
        inflater.inflate(R.menu.sezmenu, menu);
        return true;
      }
      
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
        int id = item.getItemId();
        
        switch (id) 
        {
          /*case R.id.check:
          {
            //controlla se ? aggiornato il link di tutti i file di geometria.
          }break;
          */
          case R.id.quit:
          {
            finish();
            TorEngineActivity.a.finish();
          }break;
          
          case R.id.contatti:
          {
            showDialog(INF_DIALOG_ID);
          }break;
          
        }
        return true;
      };
      
      
      @Override // SWITCH DEL CREATE DELLE ALERT DIALOG
      protected Dialog onCreateDialog(int id)
      {
        Dialog dialog=null;
        switch(id)
        {        
          case INF_DIALOG_ID:
          {
            dialog=createGEOMDialog();
          }break;
          
        }
        return dialog;
      }
      
    private Dialog createGEOMDialog()
      {
        View view =getLayoutInflater().inflate(R.layout.infdialog, null);
      AlertDialog.Builder builder = new AlertDialog.Builder(this);
      builder.setTitle("Francesco Lo Presti - Vincenzo Grassi");
      builder.setView(view);
      builder.setCancelable(false);      
      
      builder.setNegativeButton("email", new DialogInterface.OnClickListener() 
      {
        
        public void onClick(DialogInterface dialog, int which) 
        {
          Intent goToInfC=new Intent(Informatica.this, InformaticaContatti.class);
          startActivity(goToInfC);
        }
      });
      
      builder.setNeutralButton("Sito", new DialogInterface.OnClickListener() 
      {
        
        public void onClick(DialogInterface dialog, int which) 
        {
          Intent goToSitoGeom= new Intent(Intent.ACTION_VIEW);
          goToSitoGeom.setData(Uri.parse(""));
          startActivity(goToSitoGeom);
        }
      });
      
      builder.setPositiveButton("Indietro", new DialogInterface.OnClickListener()
      {
            public void onClick(DialogInterface dialog, int id) 
            {
              dismissDialog(INF_DIALOG_ID);
                removeDialog(INF_DIALOG_ID);
            }
          });
      AlertDialog alert = builder.create();
      return alert;
      
      
      }
}




Java Source Code List

ironwolf.torengine.Aiutare.java
ironwolf.torengine.AlgebraContatti.java
ironwolf.torengine.Algebra.java
ironwolf.torengine.Analisi1Contatti.java
ironwolf.torengine.Analisi1.java
ironwolf.torengine.Analisi2Contatti.java
ironwolf.torengine.Analisi2.java
ironwolf.torengine.Appunti.java
ironwolf.torengine.AutomaticaContatti.java
ironwolf.torengine.Automatica.java
ironwolf.torengine.Banner.java
ironwolf.torengine.ChimicaContatti.java
ironwolf.torengine.Chimica.java
ironwolf.torengine.EconomiaContatti.java
ironwolf.torengine.Economia.java
ironwolf.torengine.FisicaContatti.java
ironwolf.torengine.Fisica.java
ironwolf.torengine.GeomContatti.java
ironwolf.torengine.Geometria.java
ironwolf.torengine.InformaticaContatti.java
ironwolf.torengine.Informatica.java
ironwolf.torengine.Slide.java
ironwolf.torengine.TorEngineActivity.java
ironwolf.torengine.VideoLezioni.java