I need to retrieve some text from a RemoteViews
object. It is possible for me to get the LayoutId, but I have no idea how to retrieve text from a TextView
If you are targeting on Android 19+, you can use the following code for getting title/text from a Notification object without using any private APIs.
Notification noty = ...;
Bundle extras = noty.extras;
if (extras != null) {
String title = extras.getString(Notification.EXTRA_TITLE);
String text = extras.getString(Notification.EXTRA_TEXT);
}