I am trying to use the method getMessagesFromIntent(Intent intent)
defined in Android SDK API. You can see its definition from here.
However, even after I import android.provider.Telephony.Sms.Intents
which contains the method, I get the method is not defined. This post defines the method from scratch but I am confused why I can't just use the one defined inside the above library. Am I understanding something wrong? Could anyone explain why I cannot use getMessagesFromIntent(Intent intent)
?