I'm new to Android development and it is a basic question.
I have tried to replace IllegalArgumentException with the String value. How to replace this that Android error will not be shown? Need help.
It wil not work:
R.string.msg_log1
getString(R.string.msg_log1)
My code is the following:
if (myPhone == null || myPhone < 0) {
throw new IllegalArgumentException("Data requires valid phone");