Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think your problem is with the ImageView. You need to add an image to your drawable folder, then change your <code>android:src="@drawable/ic_launcher"</code> to the name of the image you saved. This will give you the image you need for your button. Hope that helps</p> <p>Edit:</p> <p>For your splash screen, try something like this: </p> <pre><code>public class SplashActivity extends Activity { private long splashDelay = 5000; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); TimerTask task = new TimerTask() { @Override public void run() { finish(); Intent homeIntent = new Intent().setClass(SplashActivity.this, HomeActivity.class); startActivity(homeIntent); } }; Timer timer = new Timer(); timer.schedule(task, splashDelay); } } </code></pre> <p>Then in your home activity you can set your menu:</p> <pre><code>public class HomeActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.main); } @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.layout.menu, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle item selection switch (item.getItemId()) { case R.id.locationButton: Intent locationIntent = new Intent(this, LocationActivity.class); startActivity(locationIntent); return true; case R.id.diningButton: Intent diningIntent = new Intent(this, DiningActivity.class); startActivity(diningIntent); return true; case R.id.topXXVButton: Intent topIntent = new Intent(this, DiningActivity.class); startActivity(topIntent); return true; default: return super.onOptionsItemSelected(item); } } } </code></pre> <p>Try this:</p> <pre><code>public class SplashActivity extends Activity { private long splashDelay = 5000; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); TimerTask task = new TimerTask() { @Override public void run() { finish(); Intent mainIntent = new Intent().setClass(EJ_Splash.this, EJ_Board.class); startActivity(mainIntent); } }; Timer timer = new Timer(); timer.schedule(task, splashDelay); } } </code></pre>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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