<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: MD. SABBIR HOSHEN HOWLADER</title>
    <description>The latest articles on DEV Community by MD. SABBIR HOSHEN HOWLADER (@sabbir28).</description>
    <link>https://dev.to/sabbir28</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1298076%2Fe2a7d1a1-4466-41d7-9e57-0c9d286b88f1.JPG</url>
      <title>DEV Community: MD. SABBIR HOSHEN HOWLADER</title>
      <link>https://dev.to/sabbir28</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sabbir28"/>
    <language>en</language>
    <item>
      <title>how to I can show notification text on icon place android studio</title>
      <dc:creator>MD. SABBIR HOSHEN HOWLADER</dc:creator>
      <pubDate>Sat, 24 Feb 2024 06:35:57 +0000</pubDate>
      <link>https://dev.to/sabbir28/how-to-i-can-show-notification-text-on-icon-place-android-studio-41lg</link>
      <guid>https://dev.to/sabbir28/how-to-i-can-show-notification-text-on-icon-place-android-studio-41lg</guid>
      <description>&lt;p&gt;I am trying to create an Android application. For that, I want to show a notification in a specific place. So, I use &lt;strong&gt;RemoteViews&lt;/strong&gt;. But now, I also want to display that text on my home screen. How can I do that?&lt;/p&gt;

&lt;p&gt;Here is some breakdowns of my code:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"&amp;gt;

&amp;lt;!-- TextView for displaying speed --&amp;gt;

&amp;lt;TextView
    android:id="@+id/text_speed"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentStart="true"
    android:layout_alignParentTop="true"
    android:layout_marginStart="37dp"
    android:layout_marginTop="7dp"
    android:padding="10dp"
    android:text="70kb"
    android:textColor="@android:color/black"
    android:textSize="16sp" /&amp;gt;

&amp;lt;TextView
    android:id="@+id/text_fmobile"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignBaseline="@id/text_speed"
    android:layout_marginStart="212dp"
    android:layout_toEndOf="@id/text_speed"
    android:text="speed : 70kb"
    android:textColor="@android:color/black"
    android:textSize="16sp" /&amp;gt;

&amp;lt;/RelativeLayout&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;and I use this java code for update and show those information&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;notificationBuilder = new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID)
            .setSmallIcon(R.drawable.ic_launcher_background)
            .setContentIntent(pendingIntent)
            .setSound(null) // Set notification sound to null to make it silent
            .setCustomContentView(notificationLayout);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;I want to show this application icon like that &lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcbox30zjta4km0dmfaq8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcbox30zjta4km0dmfaq8.png" alt="Image description" width="36" height="35"&gt;&lt;/a&gt; on my home screen&lt;/p&gt;

&lt;p&gt;that now looks like that &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhbdy2l1g5d0xkqqw9b0b.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhbdy2l1g5d0xkqqw9b0b.jpg" alt="Image description" width="360" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;provide me some advice that how to I can do that using those Layout Activity &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
