Previously we used to get instance of SubscriptionManager using
SubscriptionManager subscriptionManager=SubscriptionManager.from(this);
butSubscriptionManager.from(context) is deprecated in API 28 , what's the new way to get SubscriptionManager instance ?
We can get instance of
SubscriptionManagerusing following wayJava
or
for API>=23
Kotlin
or
Official Documentation