Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try this. Don't forget to add these activities on manifest. You can use switch/case for a clean and small code.</p> <pre><code>@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.belfast_map); ImageButton ib1,ib2,ib3,ib4,ib5; ib1= (ImageButton) findViewById(R.id.go_to_lagan_screen); ib2= (ImageButton) findViewById(R.id.go_to_city); ib3= (ImageButton) findViewById(R.id.go_to_university); ib4= (ImageButton) findViewById(R.id.go_to_icon_screen); ib5= (ImageButton) findViewById(R.id.map_to_home_screen); ib1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent (MapScreen.this, LaganArea.class); startActivity(intent); } } ); ib2.setOnClickListener((new View.OnClickListener() { @Override public void onClick(View v) { Intent intent1= new Intent (MapScreen.this, CityCentre.class); startActivity(intent1); //To change body of implemented methods use File | Settings | File Templates. } })); ib3.setOnClickListener((new View.OnClickListener() { @Override public void onClick(View v) { Intent intent2= new Intent (MapScreen.this, UniversityArea.class); startActivity(intent2); //To change body of implemented methods use File | Settings | File Templates. } })); ib4.setOnClickListener((new View.OnClickListener() { @Override public void onClick(View v) { Intent intent3= new Intent (MapScreen.this, TheIcons.class); startActivity(intent3); //To change body of implemented methods use File | Settings | File Templates. } })); ib5.setOnClickListener((new View.OnClickListener() { @Override public void onClick(View v) { Intent intent4= new Intent (MapScreen.this, MyActivity.class); startActivity(intent4); //To change body of implemented methods use File | Settings | File Templates. } })); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload