public class RestaurantActivity extends Activity { String rest; restaurantmodel r; NoteModel n; Bundle myValues; Button valider; restaurantWS restaurantws = new restaurantWS(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_restaurant); final int id; final GlobalMainActivity gl=new GlobalMainActivity(); myValues = getIntent().getExtras(); id=myValues.getInt("pos");? final TextView gout = (TextView) findViewById(R.id.txt_tastnote); final TextView confort = (TextView) findViewById(R.id.txt_conforenote); final TextView hygiene = (TextView) findViewById(R.id.txt_hygienenote); final TextView service = (TextView) findViewById(R.id.txt_servicenote); TextView adr = (TextView) findViewById(R.id.adressresto); TextView tel = (TextView) findViewById(R.id.telephoneresto); TextView pay = (TextView) findViewById(R.id.payementresto); TextView cuis = (TextView) findViewById(R.id.cuisineresto); TextView heur = (TextView) findViewById(R.id.hourresto); TextView exp = (TextView) findViewById(R.id.expenseresto); r = restaurantws.afficher(id); adr.setText(r.getAdr()); exp.setText(r.getExpense()); tel.setText(r.getPhone()); pay.setText(r.getPayment()); cuis.setText(r.getCuisine()); heur.setText(r.getHour());? NoteModel n; affichernoteWS affichernotews = new affichernoteWS(); n = affichernotews.afficher(id); confort.setText(Integer.toString(n.getConfort())); hygiene.setText(Integer.toString(n.getHygiene())); service.setText(Integer.toString(gl.getSERVICE())); gout.setText(Integer.toString(n.getGout())); } }