Skip to content Skip to sidebar Skip to footer

Button Not Doing Anything When It Should

MainActivity.java package com.example.mdpmk1; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.V

Solution 1:

What you have

<activityandroid:name=".ScanResults" />

And when using intent

 Intent intent = newIntent(MainActivity.this, ScanResult.class);

ScanResults and ScanResult are not the same.

If Activity is not found you should get ActivityNotFoundException.

This exception is thrown when a call to startActivity(Intent) or one of its variants fails because an Activity can not be found to execute the given Intent.

http://developer.android.com/reference/android/content/ActivityNotFoundException.html

Post a Comment for "Button Not Doing Anything When It Should"