1

Adding a 3rd Button to Alert Dialog Crashes the Application

view story
linux-howto

http://stackoverflow.com – I've created a layout which upon clicking the first button triggers an alert dialog box with two buttons. When I attempt to add a 3rd button - the entire app crashes and Im not sure why. (I've included my source code and logcat - hopefully it helps!) I know I'm overlooking something simple - but any assistance identifying the issue would be greatly appreciated. (The only line of code added before it starts crashing is: .setNeutralButton("Cancel", this) ...if you remove the line above - everything works fine. Java package com.example.linkingmanager; import android.app.Activity; imp (HowTos)