sPFApp/src/main/java/it/polimi/spf/app/SPFApp.java
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() {
        // 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 ( ) { // 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 .