Monday, May 31, 2010

Best Way To Apply Aquasmooth

Exercises for Home

Tell in

implementation methods of the class exercises

{public class exercises
public void Greetings (String name ){....}
public boolean isComplenno (Date date ){...}
public int age ( int a ){...}
public int [] names (){...} public
Gifts Gift ( ){...}
}


Exercises and Exercises = new ();
e.Auguri ("Alexander the Vagnetti");
e.isCompleanno boolean c = (new Date ("29-10 - 09 "));
int d = 17;
e.eta int year = (d);
int[] invitati=new int[7];
invitati=e.nomi();
Regali r=e.regali();

Saturday, May 29, 2010

Airsoft Nightprowler Pieces

Calculator version almost DefInt

---------------- Calcolatrice.java ----------------

/*
* To change this template, choose Tools
import android.content.Intent;

/**

*

* @author 4ALE

*/
public class Calcolatrice extends Activity {

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView (R.layout.main)

/ / TODO add your GUI initialization code here


} ; public double leggiV1 () {EditText
number1 = (EditText) findViewById (R.id.num1) ;
double num1=0;
        try{

                    num1=Double.parseDouble(numero1.getText().toString());

                    } Catch (Exception e) {
& # 160; numero1.setError ("Your entry is invalid");
& # 160;
} return num1;}

& # 160; public double leggiV2 () {
numero2 edit text = (text edit ) findViewById (R.id.num2)
double num2 = 0;
& # 160; try{
                    num2=Double.parseDouble(numero2.getText().toString());
                    }catch(Exception e) {
& # 160; numero2.setError ( "Your entry is invalid");
& # 160;
} return num2;}

& # 160; public void add (View view) {
; leggiV1 double a = ();
& # 160; leggiV2 double b = ();
; double c = a + b;
setRisp ( a b +"+"+ +"="+ c);}


public void cos (View view) {double num1 =
leggiV1 ();
double Math.toRadians = (num1);
double cos = Math.cos (a);
setRisp ("cos" + cos +"="+ num1);
;} public void
sen (View view) {
& # 160; leggiV1 double num1 = ();
double Math.toRadians = (num1);
& # 160; double sin = Math.sin (a);
& # 160; setRisp ("sin" sin +"="+ + num1);}

& # 160; public void setRisp (String risp) {
TextView ris1=(TextView)findViewById(R.id.ris);
        ris1.setText(risp);
    }

    public void diff(View view){
        double a=leggiV1();
        double b=leggiV2();
        double c = ab;
setRisp (a +"-"+ b + "=" , + c);}

public void by (View view) {
& # 160; leggiV1 double a = ();
; leggiV2 double b = ();
double c = a * b;
setRisp (a + "x" + b + "= "+ c);}

public void two (View view) {
double a = leggiV1 ();
& # 160; leggiV2 double b = ();
double c = a / b;
setRisp (a +"/"+ b + " = "+ c);}

public void tan (View view) {
; leggiV1 double a = ();
& # 160; double tan = Math.tan (Math.toRadians (a));
setRisp ("tan" + a tan +"="+);
;}
public void log (View view) {
& # 160; leggiV1 double a = ();
double l = Math . log (a);
setRisp ("log" + a +"="+ l);}

}

-------------- -
main.xml
----------------

\u0026lt;? xml version = "1.0" encoding = "UTF-8">
\u0026lt; table layout xmlns: android = "
http://schemas.android.com/apk/res/android"

android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: stretch columns = " 5 "

>

\u0026lt;TableRow> \u0026lt; ; TextView android: text = "numero" & # 160; android: layout_width = "100px"

& # 160; />

\u0026lt;
EditText android: layout_width = "200px" android : layout_height = "wrap_content" & # 160; android: id = "@ + id/num1"
/>
\u0026lt;/ TableRow>
\u0026lt;TableRow> ;
\u0026lt;TextView android: text = "numero"
& # 160; android: layout_width = "100px"
& # 160; />
\u0026lt;EditText
; android: layout_width = "200px"
android: layout_height = "wrap_content"
android: id = "@ + id/num2"
/>
\u0026lt;/ TableRow>
\u0026lt;TableRow>
\u0026lt;TextView android: text = "risultato:"
& # 160; android: layout_width = "100px"
, /> &
# 160; \u0026lt;TextView
android: layout_width = "200px"
android: layout_height = "30px"
& # 160; android: id = "@ + id / ris
/>
\u0026lt;/ TableRow>

\u0026lt;table layout xmlns: android = "
http://schemas.android.com/apk/res/android"

android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: stretch columns = "4"
>
\u0026lt;TableRow>
\u0026lt;Button android: id = "@ + id / somma"
& # 160; android: layout_width = "50px"
& # 160; android: layout_height = "50px"

; android: text = "+"

android: onClick = "somma" & # 160; /> \u0026lt;Button android: id = "@ + id / diff"
& # 160; android: layout_width = "50px"
& # 160; android: layout_height = "50px"
; android: text = "-"
android: onClick = "diff"
& # 160; />
\u0026lt;Button android: id = "@ + id / prodotto "
& # 160; android: layout_width = "50px"
& # 160; android: layout_height = "50px"
& # 160; android: text = "x"
, & # 160; android: onClick = "per"
/> &
# 160; \u0026lt;Button android: id = "@ + id / rapporto"
; android: layout_width = " ; 50px "
& # 160; android: layout_height = "50px"
& # 160; android: text = "" &
# 160; android: onClick = "divi"
& # 160; />
\u0026lt;/ TableRow>
\u0026lt;TableRow>
& # 160; \u0026lt;Button android: id = "@ + id / cos"
; android: layout_width = "70px"
& # 160; android: layout_height = "50px"
& # 160; android: text = "cos (x)"
& # 160; android: onClick = "cos"
/> &
# 160; \u0026lt;Button android: id = "@ + id / sin"
, & # 160; android: layout_width = "70px"
& # 160; android: layout_height = "50px"
& # 160; android: text = "sin (x)"
, & # 160; android: onClick = "sen"
/> &
# 160; \u0026lt;Button android: id = "@ + id / tan"
, & # 160; android: layout_width = "70px"
& # 160; android: layout_height = "50px"
& # 160; android: text = "tan (x)"
, & # 160; android: onClick = "tan"
/> &
# 160; \u0026lt;Button android: id = "@ + id / log"
; android: layout_width = " ; 70px "
& # 160; android: layout_height = "50px"
& # 160; android: text = "log (x)" # &
160; android: onClick = "log"
/>
\u0026lt;/ TableRow>
\u0026lt;/ table layout>
\u0026lt;/ table layout>











Senza titolo

Monday, May 24, 2010

What Shoes Did They Wear In Rome

converter from decimal to binary converter temperature

Senza titolo2 --- ------------------ --------------------- main.xml Senza titolo3 \u0026lt;? xml version = "1.0" encoding = "UTF-8"> \u0026lt;LinearLayout xmlns: android = "Senza titolo4 http://schemas.android.com/apk/res/android"

; android: orientation = "vertical" android \u0026lt;

EditText android : layout_width = "fill_parent" android: layout_height = "wrap_content" android: id = "@ + id/num1"

/>

& # 160; \u0026lt;TextView android
: layout_width = "fill_parent" android: layout_height = "wrap_content" android: id = "@ + id / risultato"
& # 160; />
\u0026lt;Button android: id = "@ + id / Conv "
& # 160; android: layout_width = "fill_parent"
& # 160; android: layout_height = "wrap_content"
; android: text = "Converti in Binario"
; android: onClick = "conv"
/>
\u0026lt; Button android: id = "@ + id/Conv1"
& # 160; android: layout_width = "fill_parent"
& # 160; android: layout_height = "wrap_content"
; android: text = "Converti in decimal
; android: onClick = "toDec"
/>
\u0026lt;/ linear layout>

---------------------
Converti .
java ---------------------

org.me.binariotodecimale package;

import android.app.Activity;
import android.os.Bundle;
import android.widget.*;
import android.view.View;
/**

*

* @author 4ALE */ public class Converti extends Activity {

    /** Called when the activity is first created. */

    @Override

    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
setContentView (R.layout.main)
;} public void
conv (View view) {
& # 160; numero1 = edit text (alt text) findViewById (R.id.num1)
int num1 = Integer . parseInt (numero1.getText (). toString ());
String bin = Integer.toBinaryString (num1);
TextView ris = (TextView) findViewById (R.id . risultato);

ris.setText ("Binary =" + bin);

& # 160;} public void

toDec (View view) {
EditText number1 = (EditText) findViewById (R.id.num1)
        String num1=(numero1.getText().toString());
        int dec=Integer.parseInt(num1, 2);
        TextView ris=(TextView)findViewById(R.id.risultato);
        ris.setText("Decimale= "+dec);
}}









Tuesday, May 18, 2010

K Nex Big Air Ball Tower Ebay



Creating an application that can convert temperature from ° C to ° F and vice versa

Senza titolo ConvertiTemperatura.java Senza titolo2 ---------------- ----------------- -

package org.me.convertitemperatura; android.os.Bundle;

android.app.AlertDialog.Builder import, import

android.widget .*;

import android.view . View;

import android.content.Intent;

import android.app.AlertDialog; import android.content.Context; /**

*

* @author lollino360

*/

public class ConvertiTemperatura extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView (R.layout.main)
/ / TODO add your GUI initialization code here
& # 160;} public void
conv1 (View view) {
& # 160; EditText number1 = (EditText) findViewById (R.id.t1)
; numero2 = edit text (alt text) findViewById (R.id.t2)
& # 160; try {
& # 160; double num1 = Double.parseDouble (numero1.getText (). toString ());
& # 160; double res = num1 * 1.8 +32;
String result = "" + res;
; numero2.setText (result);
& # 160; ; } Catch (NumberFormatException e) {
& # 160; e.printStackTrace ();
& # 160; ; numero2.setText ("You must enter a number ");
& # 160;}}
public void
conv2 (View view) {
EditText number1 = (EditText) findViewById (R.id.t1)
numero2 edit text = (text edit) findViewById (R.id.t2)
try {
, & # 160; double num2=Double.parseDouble(numero2.getText().toString());
            double ris=(num2-32)/1.8;
            String risultato=""+ris;
            numero1.setText (result);
& # 160;} catch (NumberFormatException e) {
e.printStackTrace ();
; numero1.setText ("You must enter a number!");
& # 160;
}}}



main.xml
----------------- ----------- ------

\u0026lt;? xml version = "1.0" encoding = "UTF-8"?>
\u0026lt;TableLayout xmlns: android = "
http://schemas.android.com / apk / res / android "android

: layout_width =" fill_parent "
android: layout_height = "fill_parent"
android: stretch columns = "1"

>

\u0026lt;TableRow> ; \u0026lt; EditText android: layout_width = "200px"

android: layout_height = "wrap_content"

android: id = "@ + id/t1"
& # 160; /> ; \u0026lt;TextView android: text = "° C" android: layout_width = "100px"
& # 160; />
\u0026lt;/ TableRow>
& # 160; \u0026lt;TableRow>
\u0026lt;EditText
& # 160; android: layout_width = "200px" android
: layout_height = "wrap_content"
android: id = "@ + id/t2"
/ >
\u0026lt;TextView android: text = " ° F "& #
160; android: layout_width = "100px"
, / >
\u0026lt;/ TableRow>
\u0026lt;Button android: id = "@ + id / Converti"
& # 160; android: layout_width = "fill_parent"
; android: layout_height = "wrap_content"
& # 160; android: text = "Converti in ° F"
; android: onClick = "CONV1"
/>
\u0026lt;Button android: id = "@ + id/converti2"
& # 160; android: layout_width = "fill_parent"
& # 160; android: layout_height = "wrap_content"
& # 160; android: text = "Converti in ° C"
; android: onClick = "CONV2"
/>
\u0026lt;/ TableLayout>











Friday, May 14, 2010

Is Iced Tea Good For An Upset Stomach



Create an application that converts the speed from km / h in m / sec and m / sec to km / h

---------------- ---------------- Senza titolo main.xml Senza titolo2 \u0026lt;? xml version = " 1.0 "encoding =" utf-8 "?>

\u0026lt;TableLayout xmlns: android =" http://schemas.android.com/apk/res/android "

android: layout_height = "fill_parent"

android: stretch columns = "1" >

\u0026lt;TableRow>

\u0026lt;

EditText android: id = "@ + id/v1"

android : layout_width = "200px" android

: layout_height = "wrap_content"

/>

\u0026lt;TextView android:text="km/h" />

\u0026lt;/ TableRow>

\u0026lt; ; TableRow>

\u0026lt;EditText

android:id="@+id/v2"

android:layout_width="200px"

android:layout_height="wrap_content"

/>

\u0026lt;TextView android : text = "m / sec" />

\u0026lt;/ TableRow>

\u0026lt;Button

android: id = "@ + id/conv1"

android: layout_width = "200px"

android: layout_height = "wrap_content"

android: onClick = "conv1"

android: text = "converted from km / ham / sec"

/>

\u0026lt;

Button android: id = "+ @ id/conv2"

android: layout_width = "200px" android

: layout_height = "wrap_content"

android: onClick = "conv2"

android: text = "converted from m / sec km / h"

/>

\u0026lt;/ TableLayout>

----------------

convertiVelocita.java

----------------

package org.me.convertiVelocita;

import android.app.Activity;

import android.os.Bundle;

import android.content.Context;

import android.widget.*; import android.view.View;

import android.content.Intent;

public class convertiVelocita extends Activity

{

/** Called when the activity is first created. */

final double a=0.2777;

final double b=3.6;

@Override

public void onCreate(Bundle savedInstanceState)

{

super.onCreate(savedInstanceState);

setContentView(R.layout.main);

}

public void conv1 (View view){

//da km/h a m/sec

EditText vel1=(EditText)findViewById(R.id.v1);

double kmh=Double.parseDouble(vel1.getText().toString());

double velocita=kmh*a;

String risp=Double.toString(velocita);

EditText vel2=(EditText)findViewById(R.id.v2);

vel2.setText(risp);

vel1.setText("");

}

public void conv2 (View view){

/ / m / sec to km / h

VEL2 EditText = (EditText) findViewById (R.id.v2)

double kmh = Double.parseDouble (vel2.getText (). ToString ());

double speed kmh = * b;

Double.ToString String resp = (speed);

vel1 EditText = (EditText) findViewById (R.id.v1)

vel1.setText (resp);

VEL2. setText ("");

}}

----------------------------- -----------------------------------

Create an application with 3 buttons showing which button was pressed

----------------

qualeBottone.java

----------------

package org.me.qualeBottone; clip_image002 import android.app.Activity;

import android.os.Bundle;

import android.content.Context;

import android.widget.*; import android.view.View;

import android.content.Intent;

public class qualeBottone extends Activity

{

/** Called when the activity is first created. */

@Override

public void onCreate(Bundle savedInstanceState)

{

super.onCreate(savedInstanceState);

setContentView (R.layout.main)

} public void button (View view) {int x =

view.getId ();

TextView view = (TextView) findViewById (R.id.mostra);

if (x == R.id.a1) {

visualizza.setText ("Press the button 1");

} else if (x == R.id.a2) {

visualizza.setText ("Press the button 2");

} else if (x == R.id.a3) {

visualizza.setText ("Press the button 3");}

}}

----------------

main.xml

---------------- \u0026lt;xml version = "1.0" encoding = "utf-8"?>

\u0026lt;LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android"

android: orientation = "vertical"

android: layout_width = "fill_parent"

android: layout_height = " fill_parent " >

\u0026lt;Button

android: id =" @ + id/a1 "

android: layout_width =" 200px "

android: layout_height = "wrap_content"

android: onClick = "Botton"

android: text = "1"

/>

\u0026lt;Button

android: id = "@ + id/a2 "

android: layout_width =" 200px "android

: layout_height =" wrap_content "

android: onClick =" Botton "

android: text =" 2 "

/>

\u0026lt;Button

android: id = "@ + id/a3"

android: layout_width = "200px" android

: layout_height = "wrap_content"

android: onClick = "Botton"

android: text = " ; 3 "

/>

\u0026lt;TextView android

: layout_width =" fill_parent "

android: layout_height =" wrap_content "

android: id =" @ + id / mostra "

/ >

\u0026lt;/ linear layout>

Tuesday, May 11, 2010

Will A Varicose Vein In Labia Go Away

13/05/10 Check Calculator

Calculator saves money occurred in a database

------------------- CalcolatriceDB. Java --- ----------------

package org.me.calcolatricedb;

android.app.Activity import, import clip_image002[4] android.os.Bundle; android.database.sqlite import. SQLiteDatabase; android.widget import .*;

android.view.View import, import

android.content.Intent;

/ **

* * @ author

lollino360

* /
public class CalcolatriceDB extends Activity {
        private final String DB_NAME="Calcolatrice.db";
        private SQLiteDatabase database = null;
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
setContentView (R.layout.main)

; Button sum = (Button) findViewById (R.id.somma)

& # 160; somma.setOnClickListener (somma1)
creaDB () ;
creaTabella ();
Button show = (Button) findViewById (R.id.mostra);
& # 160; mostra.setOnClickListener (onMostra);
/ / ToDo add your GUI initialization code here}

private View.OnClickListener somma1 View.OnClickListener = new () {
public void onClick (View v) {
numero1 = edit text (alt text) findViewById (R.id.num1)
& # 160; numero2 edit text = (text edit) findViewById ( R.id.num2)
& # 160; ris1 = edit text (alt text) findViewById (R.id.ris)
& # 160; int num1 = Integer.parseInt (numero1.getText (). toString ());
& # 160; int num2 = Integer.parseInt (numero2.getText (). toString ());
int res = num1 + num2;
& # 160; String result = num1 num2 +"+"+ +"="+ res;
& # 160; ris1.setText (result);
/ / & # 160; numero1.setText ("");
/ / & # 160; numero2.setText ("");
String insert = "INSERT INTO accounts (operation) values \u200b\u200b('" + result +"');";

& # 160; try {
; database.execSQL (post);
& # 160;} catch (SQLiteException e) {
; e.printStackTrace();
             }

        }
    };
    public void creaDB(){
        try{
            database=openOrCreateDatabase(DB_NAME,SQLiteDatabase.CREATE_IF_NECESSARY,null);

        }catch(SQLiteException e){

            e.printStackTrace();
        }
    }
    public void creaTabella(){
        try{

            if (database.isOpen()){

                         database.execSQL("CREATE TABLE IF NOT EXISTS conti (_id integer primary key autoincrement, operazione varchar(50));");
            }
        }catch(SQLiteException e){
            e.printStackTrace();
        }
    }
     private View.OnClickListener onMostra=new View.OnClickListener(){
         public void onClick(View v) {
            Intent i = new Intent(v.getContext(), Lista.class);
            startActivity(i);
         }
      };

}

-------------------Lista.java-------------------

package org.me.calcolatricedb;

import android.app.Activity;
import android.os.Bundle;
import android.database.sqlite.SQLiteDatabase;
android.database.sqlite.SQLiteException import, import
android.content.Context;

android.widget import .*;

import android.view.View;

android.widget.ListView import, import

android.widget.AdapterView;

import android.database.Cursor;

import java.util.ArrayList;

android.util.Log import, import

android.content.Intent;
public class List extends Activity {
& # 160; private final String DB_NAME = "Calcolatrice.db;
private SQLiteDatabase database = null;
private ListView votes
\u0026lt;String> ArrayList rows = new ArrayList \u0026lt;String> ( )
/ ** Called When the activity is first created. * / @ Override

public void onCreate (Bundle savedInstanceState)
{
super.onCreate (savedInstanceState)
setContentView (R.layout.lista)
creaDatabase ();
& # 160; leggiTabellaVoto ();
& # 160; votes = (ListView) findViewById (R.id.listav)
/ / By using setAdpater method in listview we add string into an array list.
/ / log. ("votes =" + rating);
voti.setAdapter (new ArrayAdapter \u0026lt;String> (this, android.R.layout. simple_list_item_1, rows));
Button enter = (Button) findViewById (R.id.btnGetMoreResults)
post. setOnClickListener (onInserisci);}

creaDatabase public void () {
; try {
& # 160; database = openOrCreateDatabase (DB_NAME, SQLiteDatabase.CREATE_IF_NECESSARY, null);
} catch (SQLiteException e) {
& # 160; System.out.println ("did not create the database student") ;
e.printStackTrace ();}

& # 160;} public void
leggiTabellaVoto () {

& # 160; ; Cursor c = database.query ("contingent", null, null, null, null, null, null, null);
& # 160; int numRows = c.getCount ();
& # 160; ; c.moveToFirst ();
& # 160; for (int i = 0; i < numRows; ++i) {
                              Riga r = new Riga();
                              r._id = c.getLong(0);
                              r.operazione = c.getString(1);
                              System.out.println(r.operazione);
                              righe.add(r.operazione);
                              c.moveToNext();
                    }

     }

     class Riga {
          public long _id;
          public String operazione;
     }
     private View.OnClickListener onInserisci=new View.OnClickListener(){
         public void onClick(View v) {
            Intent i = new Intent(v.getContext(), CalcolatriceDB.class);
            startActivity(i);
         }

      };

     @Override

     public void onDestroy() {

          super.onDestroy();
          Database.close ();}

}

------------------- main xml. -------------------

\u0026lt;xml version = "1.0" encoding = "UTF-8"?>
\u0026lt;table layout xmlns: android = "
http://schemas.android.com/apk/res/android"

android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: stretch columns = "1"
> ;
\u0026lt;TableRow>

\u0026lt;TextView android: text = "numero"

, & # 160; android: layout_width = "100px"

& # 160; />

\u0026lt;
EditText android: layout_width = "200px" android : layout_height = "wrap_content" & # 160; android: id = "@ + id/num1"
/>
\u0026lt;/ TableRow>
\u0026lt;TableRow> ;
\u0026lt;TextView android: text = "numero"
& # 160; android: layout_width = "100px"
& # 160; />
\u0026lt;EditText
; android: layout_width = "200px"
android: layout_height = "wrap_content"
android: id = "@ + id/num2"
/>
\u0026lt;/ TableRow>
\u0026lt;TableRow>
\u0026lt;TextView android: text = "risultato:"
& # 160; android: layout_width = "100px"
, /> &
# 160; \u0026lt;EditText
android: layout_width = "200px"
android: layout_height = "wrap_content"
& # 160; android: id = "@ + id / ris
/>
\u0026lt;/ TableRow>
\u0026lt;Button android: id = "@ + id / somma"
& # 160; ; android: layout_width = "fill_parent"
android: layout_height = "wrap_content"
& # 160; android: text = "+" &
# 160; />
\u0026lt;Button android: id = "@ + id / mostra"
& # 160; android: layout_width = "fill_parent"
& # 160; android: layout_height = "wrap_content"
; android: text = "Show operations performed"
/>
\u0026lt;/ TableLayout>

------------------- list.
xml -------------------
\u0026lt;? xml version = "1.0" encoding = "UTF-8"?>
\u0026lt;RelativeLayout xmlns: android = "
http://schemas.android.com/apk/res/android"

android: orientation = "horizontal"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
;>

\u0026lt;ScrollView

& # 160; android: layout_height = "fill_parent"

& # 160; android: layout_width = "fill_parent>


\u0026lt;LinearLayout & # 160; android: orientation = "vertical" android : layout_width = "fill_parent" ;
android: layout_height = "fill_parent"
>
& # 160; \u0026lt;ListView android: id = "@ + id / listav"
android: layout_width = "fill_parent"

& # 160; android: layout_height = "300sp"

android: drawSelectorOnTop = " ; false
android: cacheColorHint = "# ff6a00"
android: divider = "ff8f40"

android: dividerHeight = "2px"

& # 160; />
; \u0026lt;relative layout
android: layout_width = " ; fill_parent "
android: layout_height = "fill_parent"
& # 160; android: background = "676 767"
& # 160; android: orientation = "vertical">

; \u0026lt;Button android
: layout_width = "fill_parent"
; android: layout_height = "fill_parent"
android: id = "@ + id / btnGetMoreResults"
android: padding = " ; 10px "android
: text = "Enter new data" />
\u0026lt;/ RelativeLayout>
\u0026lt;Relative layout
android: layout_width = "fill_parent"
& # 160; android: layout_height = "fill_parent"
& # 160; android: background = "676 767"

& # 160; android: orientation = "vertical">


\u0026lt;Button
& # 160; android: layout_width = "fill_parent"
; android: layout_height = "fill_parent"
android: id = "@ + id / btnGetMoreResults1 "
& # 160; android: visibility = "gone"
, android: padding = "10px"
android: text = " ; Shows detagli "/>
\u0026lt;/ RelativeLayout>

\u0026lt;/ LinearLayout>
\u0026lt;/ ScrollView>

\u0026lt;/ RelativeLayout>

----------------------------- ----------------------------





Sunday, May 9, 2010

Reprogram Ml320 Remote

Exercise Database 3 for home

Android Create a program that reads and writes in the "information" contained in the database "Studente.db" data: name, address and email.

------------------- ------------------- 2 AndroidManifest.xml 3 \u0026lt;? xml version = "1.0" encoding = "UTF-8"?> \u0026lt;manifest xmlns: android = "

http://schemas.android.com/apk/res/android" \u0026lt;application>

\u0026lt;activity android:name=".Agenda" android:label="Agenda">

; \u0026lt;intent-filter>

& # 160; \u0026lt;action android:name="android.intent.action.MAIN"/> & # 160; \u0026lt;category android:name="android.intent.category.LAUNCHER"/> ; \u0026lt;/ intent -filter>

\u0026lt;/ Activity>

\u0026lt;activity android:name=".Lista"> \u0026lt; / activity>
\u0026lt;/ application> \u0026lt;/ manifest>


--------------- ---- -------------------
lista.xml


\u0026lt;? xml version = "1.0" encoding = "UTF-8"? >
\u0026lt;relative layout xmlns: android = "
http://schemas.android.com/apk/res/android "

android: orientation =" horizontal "

& # 160; android: layout_width = "fill_parent"

android: layout_height = "fill_parent"

>

\u0026lt;ScrollView android: layout_height = "fill_parent"

android: layout_width = " ; fill_parent>


\u0026lt;LinearLayout ; android: orientation = "vertical" android : layout_width = "fill_parent"
android: layout_height = "fill_parent"
>
; \u0026lt;ListView android: id = "@ + id / listav"
& # 160; android: layout_width = "fill_parent"

android: layout_height = " ; 300sp "

android: drawSelectorOnTop = false &
# 160; android: cacheColorHint = "# ff6a00"
android: divider = "ff8f40"

; android: dividerHeight = "2px"

/>
& # 160; \u0026lt;relative layout
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
& # 160; android: background = "676 767"
& # 160; android: orientation = "vertical">

\u0026lt;Button
& # 160; android: layout_width = "fill_parent"
; android: layout_height = "fill_parent"
android: id = "@ + id / btnGetMoreResults "
Android: padding = "10px"
; android: text = "Enter new data" />
\u0026lt;/ relative layout>
\u0026lt;relative layout
android: layout_width = "fill_parent"
& # 160; android: layout_height = "fill_parent"
android: background = "676 767"

android: orientation = "vertical">


& # 160; \u0026lt;Button
android: layout_width = "fill_parent"
& # 160; android: layout_height = "fill_parent"
& # 160; android: id = "@ + id/btnGetMoreResults1"
; android: padding = "10px"
& # 160; android: text = "Show detagli" />
\u0026lt;/ RelativeLayout>

; \u0026lt;/ LinearLayout>
\u0026lt;/ ScrollView>

\u0026lt;/ RelativeLayout>


-------------------
main.xml


------------------- \u0026lt;? xml version = "1.0" encoding = "UTF-8"?>
\u0026lt; table layout xmlns: android = "

http://schemas.android.com/apk/res/android"


android: layout_width = "fill_parent"

android: layout_height = "fill_parent"

android: stretch columns = " 1 "

>

\u0026lt;TableRow> ; \u0026lt;TextView Android:text="Nome:"/> \u0026lt;EditText android: id = "@ + id / name"

; android: hint = "Enter your name &

# 160; />
\u0026lt;/ TableRow> \u0026lt;TableRow> \u0026lt;TextView android:text="Indirizzo:"/>
\u0026lt;EditText android: id = "@ + id / via"
& # 160; android:hint="Scrivi il tuo indirizzo"
        />
    </TableRow>
        <TableRow>
        <TextView android:text="E-mail:"/>
        \u0026lt;EditText android: id = "@ + id / email"
& # 160; android: hint = "Enter your e-mail"
& # 160; />
\u0026lt;/ TableRow>
& # 160; \u0026lt;Button android: id = "@ + id / salva"
& # 160; android: layout_width = "fill_parent"
; android: layout_height = " ; wrap_content "
& # 160; android: text = "Salva"
; />
\u0026lt;Button android: id = "@ + id / impegni "
; android: layout_width = "fill_parent"
& # 160; android: layout_height = "wrap_content"
& # 160; android: text = "visualizza i dati"
& # 160; />
</TableLayout>

-------------------
Agenda.java
-------------------

/*
* To change this template, choose Tools *
* @author Lorenzo Millucci
*/
public class Agenda extends Activity {
    private final String DB_NAME="Studente.db";
    private SQLiteDatabase database = null;

    /** Called when the activity is first created. */

    @Override     public void onCreate(Bundle savedInstanceState)     {

         super.onCreate (savedInstanceState)

setContentView (R.layout.main)
creaDB ();
& # 160; creaTabella ();
Button save = (Button) findViewById (R. id.salva)

Button lista=(Button)findViewById(R.id.impegni);

        salva.setOnClickListener(salva1);

        lista.setOnClickListener(onLista);

    }

    private View.OnClickListener onLista=new View.OnClickListener(){
         public void onClick(View v){
             Intent i=new Intent(v.getContext(),Lista.class);
             startActivity(i);
             }
         };

    public void creaDB(){
        try{
            database=openOrCreateDatabase(DB_NAME,SQLiteDatabase.CREATE_IF_NECESSARY,null);
        }catch(SQLiteException e){
            e.printStackTrace();
        }
    }

    public void creaTabella(){
        try{
            if (database.isOpen()){
                         database.execSQL("CREATE TABLE IF NOT EXISTS dati (_id integer primary key autoincrement, nome varchar(20), via varchar(50), email varchar(50));");
            }
        }catch(SQLiteException e){
            e.printStackTrace();
        }
    }

    private View.OnClickListener salva1=new View.OnClickListener(){
         public void onClick (View v) {&

# 160; appunto1 = alt text (alt text) findViewById (R.id.nome)

; dove1 = edit text (alt text) findViewById (R.id.via)
& # 160; quando1 = edit text (alt text) findViewById (R.id.email)
& # 160; appunto1.getText String nome = (). toString ();
& # 160; String = dove1.getText by (). toString ();
& # 160; Quando1.getText String email = (). ToString ();
/ / dove1.setText ("");

& # 160; String insert = "INSERT INTO data (name, street name, email) values \u200b\u200b('" + name + "', '"+ +"','"+ via email +"');";

/ / ; String insert = "INSERT INTO data (name, street name, email) values \u200b\u200b('" + name +"',"+ via email +",'"+ +"');";
/ / , & # 160; String insert = "INSERT INTO vote (datavoto, mark, pattern, material, depth, name) values \u200b\u200b('" +
/ / datavoto +"',"+ vote +",'"+ +"','"+ plea on behalf +"','"+ Professor +"','"+ +"');";

try {
; database.execSQL (post);
& # 160;} catch (SQLiteException e) {

; e.printStackTrace();

             }
         }
     };

     @Override
     public void onDestroy() {
          super.onDestroy();
          database.close();
     }

}


-------------------
Lista.java
-------------------

package org.me.dbstudente;
import android.app.Activity;
import android.os.Bundle;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.content.Context;
import android.widget.*;
import android.view.View;

android.widget.ListView import, import

android.widget.AdapterView;
import android.database.Cursor;
import java.util.ArrayList;
import android.util.Log;
import android.content.Intent;
public class List
extends Activity {private final String DB_NAME = "Studente.db"

SQLiteDatabase private database = null;

private ListView votes
& # 160; ArrayList rows = new ArrayList \u0026lt;String> \u0026lt;String> ();
private String LVOT []={" 5 computer 10/02/2010 "" , 7 Italian 31/01/2010 "," 9 physical education 25/03/2010 "," 7 English 28/02/2010 "};
, / ** Called When the activity is first created. * / @ Override

public void onCreate (Bundle savedInstanceState)

    {

         super.onCreate(savedInstanceState);          setContentView(R.layout.lista);          creaDatabase();

         leggiTabellaVoto ();

votes = (ListView) findViewById (R.id.listav) ;
/ / By using setAdpater method in listview we add an string array list.
/ / log. ("votes =" + rating);
voti.setAdapter (new ArrayAdapter \u0026lt;String> (this, android.R.layout.simple_list_item_1, rows));
& # 160; Button enter = (Button) findViewById (R.id.btnGetMoreResults)
; inserisci.setOnClickListener (onInserisci);}

creaDatabase public void () {
try{          
                    database=openOrCreateDatabase(DB_NAME,SQLiteDatabase.CREATE_IF_NECESSARY, null);
          } Catch (SQLiteException e) {
& # 160; System.out.println ("did not create the database student") ;
e.printStackTrace ();}

& # 160;} public void
leggiTabellaVoto () {
& # 160; Cursor c = database.query ("dati", null, null, null, null, null, null, null);
& # 160; int numRows = c.getCount ();
& # 160; ; c.moveToFirst ();
& # 160; for (int i = 0; i < numRows; ++i) {
                              Riga r = new Riga();
                              r._id = c.getLong(0);
                              r.nome = c.getString(1);
                              r.via = c.getString(2);
                              r.email = c.getString(3);
                              String r.nome rr = + "" + r.via + "" + r.email;
& # 160; System.out.println (rr) ;
& # 160; righe.add (str);
& # 160; c.moveToNext ();
; & # 160;

}} class Line {
& # 160; public long _id;
; public String name;
public String street;
public String email;
     }
     private View.OnClickListener onInserisci=new View.OnClickListener(){
         public void onClick(View v) {
            Intent i = new Intent(v.getContext(), Agenda.class);
            startActivity(i);
         }
      };  
     @Override
     public void onDestroy() {
          super.onDestroy();
          database.close ();}

}













Friday, May 7, 2010

Do Mothers Dogs Lips Get Chapped

Es 1 and 2 Home Project home


edit the main. xml to display the string "hello world + name"

\u0026lt;? xml version = "1.0" encoding = "utf-8"?>
\u0026lt;LinearLayout xmlns: android = " ;
http://schemas.android.com/apk/res/android "

android: orientation = "vertical" android
: layout_width = "fill_parent"
android: layout_height = "fill_parent"
>
\u0026lt;TextView android
: layout_width = "fill_parent"
& # 160; android: layout_height = "wrap_content"
android: text = "Hello World, Lorenzo"

/>

\u0026lt;TextView

; android: layout_width = "fill_parent"

android: layout_height = "wrap_content" ; android: text = "Hello World, Luigi" Senza titolo /> \u0026lt;TextView android : layout_width = "fill_parent" Senza titolo2 android: layout_height = "wrap_content" & # 160; android: text = "Hello World, Daniele"

/> Android: layout_height = "wrap_content"

android: text = "Hello World, Michael"

/>

\u0026lt; ; / LinearLayout>




--------------------------------------- ------------------------------

main.xml Amend by adding a button that says "I am a button"

\u0026lt;? xml version = "1.0" encoding = "utf-8"?>
\u0026lt;LinearLayout xmlns: android = "
http://schemas.android.com/apk/res/android"

android: orientation = "vertical"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
>
\u0026lt;TextView android
: layout_width = "fill_parent"
android: layout_height = "wrap_content"
android: text = "Hello World, Bottone"
/>
\u0026lt; Button android: id = "@ + id / bottone"
android: layout_width = "fill_parent"
& # 160; android: layout_height = "wrap_content"
& # 160; android: text = "I'm a button!"
/ >

\u0026lt;/ LinearLayout>

HelloWorld


Wednesday, May 5, 2010

Cons To Illegally Selling Human Organs










Tuesday, May 4, 2010

Malibu Grand Prix Go Carts For Sale

Android