This is a pretty big bug. The extra is passed in as an int, not a string (notice there are multiple method signatures for the putExtras method, one of which is an int). 

This means this is going to return null, and cause big problems. I would recommend refactoring it to be getInt(...) here, and change the field to an int.