A better way to do this would be to use Intent extras to pass parameters to the receiver.
548k questions
547k answers
4 comments
86.3k users