private void setContentViewWithMinimalElements() {
        // Set data in the RemoteViews programmatically
        contentView.setImageViewResource(R.id.imageView, R.drawable.ic_launcher);
        contentView.setTextViewText(R.id.title_text_notification, getResources().getString(R.string.notification_title));
        contentView.setTextViewText(R.id.message_notification, getResources().getString(R.string.notification_text));
    }
private void setContentViewWithMinimalElements() {
        
        contentView.setImageViewResource(R.id.imageView, R.drawable.ic_launcher);
        contentView.setTextViewText(R.id.title_text_notification, getResources().getString(R.string.notification_title));
        contentView.setTextViewText(R.id.message_notification, getResources().getString(R.string.notification_text));
    }
private void setContentViewWithMinimalElements ( ) { // Set data in the RemoteViews programmatically contentView . setImageViewResource ( R . id . imageView , R . drawable . ic_launcher ) ; contentView . setTextViewText ( R . id . title_text_notification , getResources ( ) . getString ( R . string . notification_title ) ) ; contentView . setTextViewText ( R . id . message_notification , getResources ( ) . getString ( R . string . notification_text ) ) ; }
Method to set the contentview with Title, Text and Image.
Method to set the contentview with Title Text and Image .