I can not use this code this question in the application of the application I have this code, and each button launches the action and each action. Changing the view = "book" to a line with a web view, but the texts show very little - it's a tablet and more than
enter code here public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Toast.makeText(PoostplusActivity.this, "bueatiful skin is here", Toast.LENGTH_LONG).show(); Aceneandice = (Button) findViewById(R.id.Aceneandice); Aceneandice.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { Intent intent = new Intent(PoostplusActivity.this, iceandacene.class); PoostplusActivity.this.startActivity(intent); } }); sadaf = (Button) findViewById(R.id.sadaf); sadaf.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { Intent intent = new Intent(PoostplusActivity.this, sadaf.class); PoostplusActivity.this.startActivity(intent); } }); ofonat = (Button) findViewById(R.id.ofonat); ofonat.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(PoostplusActivity.this, ofonat.class); PoostplusActivity.this.startActivity(intent); } }); sarsiyah = (Button) findViewById(R.id.sarsiyah); sarsiyah.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(PoostplusActivity.this, jooshsarsiyah.class); PoostplusActivity.this.startActivity(intent); } }); }
source share