Why not directly use the resource id when creating alert dialogs?