<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Muhammad Saud Khan on Medium]]></title>
        <description><![CDATA[Stories by Muhammad Saud Khan on Medium]]></description>
        <link>https://medium.com/@codingwithsaud?source=rss-c5ece703021d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zBnE4nh7s2gCHod6nfclDA.jpeg</url>
            <title>Stories by Muhammad Saud Khan on Medium</title>
            <link>https://medium.com/@codingwithsaud?source=rss-c5ece703021d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:00:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@codingwithsaud/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Application of Python]]></title>
            <link>https://codingwithsaud.medium.com/application-of-python-fbbd58ca882?source=rss-c5ece703021d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbbd58ca882</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python-web-developer]]></category>
            <category><![CDATA[pythonprogramminglanguage]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Muhammad Saud Khan]]></dc:creator>
            <pubDate>Wed, 25 Aug 2021 03:47:25 GMT</pubDate>
            <atom:updated>2021-08-25T03:47:25.499Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Web development</li><li>Machine Learning</li><li>Cryptography</li><li>Games</li><li>Data Structure</li><li>Data Science</li><li>Computer Vision</li><li>Artificial intelligence</li><li>Web Application</li><li>Web crawler</li><li>Business Application</li><li>GUI Based Desktop Application</li><li>Mobile Application</li><li>Web frameworks</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbbd58ca882" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sending the SMS from android programmatically]]></title>
            <link>https://codingwithsaud.medium.com/sending-the-sms-from-android-programmatically-9bc5f1bc9419?source=rss-c5ece703021d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bc5f1bc9419</guid>
            <category><![CDATA[sms]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Muhammad Saud Khan]]></dc:creator>
            <pubDate>Tue, 24 Aug 2021 18:37:54 GMT</pubDate>
            <atom:updated>2021-08-24T18:38:17.320Z</atom:updated>
            <content:encoded><![CDATA[<p>How to send SMS from android using java programming</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CJzCqXw8CyxRwXiJ" /><figcaption>Photo by <a href="https://unsplash.com/@epicantus?utm_source=medium&amp;utm_medium=referral">Daria Nepriakhina</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Step 1: </strong>Add Permissions<strong> </strong>to the Manifest File<strong> </strong>and OnCreate Method of Activity. If you are dealing with fragment you must add it to OnCreateView Method.</p><p>Code Snippet for Manifest File</p><p>First you need to declare these variables on top of the activity or fragment class</p><pre>private static final int <em>REQUEST_SMS </em>= 0;</pre><pre>private static final int <em>REQ_PICK_CONTACT </em>= 2;</pre><pre>private BroadcastReceiver sentStatusReceiver, deliveredStatusReceiver;</pre><p>&lt;uses-permission android:name=”android.permission.SEND_SMS”/&gt;</p><p>Code Snippet for OnCreate or OnCreateView method</p><pre>if (ContextCompat.<em>checkSelfPermission</em>(getActivity(), <em>SEND_SMS</em>)</pre><pre>        != PackageManager.<em>PERMISSION_GRANTED</em>)</pre><pre>{</pre><pre>    ActivityCompat.<em>requestPermissions</em>(getActivity(), new String [] {<em>SEND_SMS</em>},</pre><pre>            1);</pre><pre>}</pre><p><strong>Step 2:</strong></p><p>In the this step you need to implement onResume Method in activity or fragement and in this Method you need to write following code.</p><pre>sentStatusReceiver=new BroadcastReceiver() {</pre><pre>    @Override</pre><pre>    public void onReceive(Context arg0, Intent arg1) {</pre><pre>        String s = &quot;Unknown Error&quot;;</pre><pre>        switch (getResultCode()) {</pre><pre>            case Activity.<em>RESULT_OK</em>:</pre><pre>                s = &quot;Message Sent Successfully !!&quot;;</pre><pre>                break;</pre><pre>            case SmsManager.<em>RESULT_ERROR_GENERIC_FAILURE</em>:</pre><pre>                s = &quot;Generic Failure Error&quot;;</pre><pre>                break;</pre><pre>            case SmsManager.<em>RESULT_ERROR_NO_SERVICE</em>:</pre><pre>                s = &quot;Error : No Service Available&quot;;</pre><pre>                break;</pre><pre>            case SmsManager.<em>RESULT_ERROR_NULL_PDU</em>:</pre><pre>                s = &quot;Error : Null PDU&quot;;</pre><pre>                break;</pre><pre>            case SmsManager.<em>RESULT_ERROR_RADIO_OFF</em>:</pre><pre>                s = &quot;Error : Radio is off&quot;;</pre><pre>                break;</pre><pre>            default:</pre><pre>                break;</pre><pre>        }</pre><pre>    }</pre><pre>};</pre><pre>deliveredStatusReceiver=new BroadcastReceiver() {</pre><pre>    @Override</pre><pre>    public void onReceive(Context arg0, Intent arg1) {</pre><pre>        String s = &quot;Message Not Delivered&quot;;</pre><pre>        switch(getResultCode()) {</pre><pre>            case Activity.<em>RESULT_OK</em>:</pre><pre>                s = &quot;Message Delivered Successfully&quot;;</pre><pre>                break;</pre><pre>            case Activity.<em>RESULT_CANCELED</em>:</pre><pre>                break;</pre><pre>        }</pre><pre>    }</pre><pre>};</pre><pre>getActivity().registerReceiver(sentStatusReceiver, new IntentFilter(&quot;SMS_SENT&quot;));</pre><pre>getActivity().registerReceiver(deliveredStatusReceiver, new IntentFilter(&quot;SMS_DELIVERED&quot;));</pre><p><strong>Step 3:</strong></p><p>In this step you need to implement onPause Mehtod in activity or fragment and write the following code in it.</p><pre>getActivity().unregisterReceiver(sentStatusReceiver);</pre><pre>getActivity().unregisterReceiver(deliveredStatusReceiver);</pre><p><strong>Step 4:</strong></p><p>In this step you need to create the following function your activity or a class</p><pre>public void sendMySMS( String phone,String message) {</pre><pre>    //Check if the phoneNumber is empty</pre><pre>    if (phone.isEmpty()) {</pre><pre>        Toast.<em>makeText</em>(getContext(), &quot;Please Enter a Valid Phone Number&quot;, Toast.<em>LENGTH_SHORT</em>).show();</pre><pre>    } else {</pre><pre>        SmsManager sms = SmsManager.<em>getDefault</em>();</pre><pre>        // if message length is too long messages are divided</pre><pre>        List&lt;String&gt; messages = sms.divideMessage(message);</pre><pre>        for (String msg : messages) {</pre><pre>            PendingIntent sentIntent = PendingIntent.<em>getBroadcast</em>(getActivity(), 0, new Intent(&quot;SMS_SENT&quot;), 0);</pre><pre>            PendingIntent deliveredIntent = PendingIntent.<em>getBroadcast</em>(getContext(), 0, new Intent(&quot;SMS_DELIVERED&quot;), 0);</pre><pre>            sms.sendTextMessage(phone, null, msg, sentIntent, deliveredIntent);</pre><pre>        }</pre><pre>    }</pre><pre>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bc5f1bc9419" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get Selected Item In ListView Android]]></title>
            <link>https://codingwithsaud.medium.com/get-selected-item-in-listview-android-ddb60facb000?source=rss-c5ece703021d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddb60facb000</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Muhammad Saud Khan]]></dc:creator>
            <pubDate>Tue, 24 Aug 2021 18:22:55 GMT</pubDate>
            <atom:updated>2021-08-24T18:22:55.574Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ez_gXKiWgGoU8kfv" /><figcaption>Photo by <a href="https://unsplash.com/@spaceboy?utm_source=medium&amp;utm_medium=referral">Henrik Dønnestad</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Step 1 : Select File -&gt; New -&gt; Project -&gt; Android Application Project. Fill the forms, create a Blank Activity and click on Finish button. </strong><br><strong> Step 2 : Open res -&gt; layout -&gt;activity_main.xml and add following code :</strong></p><p>&lt; RelativeLayout xmlns : android = “<a href="http://schemas.android.com/apk/res/android">http://schemas.android.com/apk/res/android</a>&quot;</p><p>xmlns : tools = “<a href="http://schemas.android.com/tools">http://schemas.android.com/tools</a>&quot;</p><p>android : layout_width = “match_parent”</p><p>android : layout_height = “match_parent”</p><p>android : paddingBottom = “@dimen/activity_vertical_margin”</p><p>android : paddingLeft = “@dimen/activity_horizontal_margin”</p><p>android : paddingRight = “@dimen/activity_horizontal_margin”</p><p>android : paddingTop = “@dimen/activity_vertical_margin”</p><p>tools : context =”com.saud.listview_listactivity.MainActivity” &gt;</p><p>&lt; ListView</p><p>android : id = “@+id/list”</p><p>android : layout_width = “match_parent”</p><p>android : layout_height = “wrap_content”</p><p>android : layout_below = “@+id/textview1” &gt;</p><p>&lt; / ListView &gt;</p><p>&lt; / RelativeLayout &gt;</p><p><strong>Step 3 : Open src -&gt; package -&gt;MainActivity.java and add following code :</strong></p><p>package com . saud. android .listview_getselecteditem ;</p><p>import android . app . Activity ;</p><p>import android . os . Bundle ;</p><p>import android . view . View ;</p><p>import android . widget . AdapterView ;</p><p>import android . widget . AdapterView .OnItemClickListener ;</p><p>import android . widget . ArrayAdapter ;</p><p>import android . widget . ListView ;</p><p>import android . widget . TextView ;</p><p>import android . widget . Toast ;</p><p>public class MainActivity extends Activity {</p><p>static final String [ ] FRUITS = new String [ ] {“Apple” , “Banana” , “Coconut” ,</p><p>“Durian” , “Guava” , “Kiwifruit” , “Jackfruit” ,”Mango” , “Orange” ,</p><p>“Pear” } ;</p><p>@Override</p><p>public void onCreate ( Bundle savedInstanceState ){</p><p>super . onCreate ( savedInstanceState ) ;</p><p>setContentView ( R . layout . activity_main ) ;</p><p>ListView listView = ( ListView ) findViewById( R . id . list ) ;</p><p>ArrayAdapter &lt;String&gt; adapter = newArrayAdapter &lt;String&gt; ( this ,</p><p>android . R . layout . simple_list_item_1 ,FRUITS ) ;</p><p>listView . setAdapter ( adapter ) ;</p><p>listView . setOnItemClickListener ( newOnItemClickListener ( ) {</p><p>public void onItemClick ( AdapterView &lt; ? &gt;parent , View view ,</p><p>int position , long id ) {</p><p>// When clicked, show a toast with the TextView text</p><p>Toast . makeText ( getApplicationContext ( ) ,</p><p>( ( TextView ) view ) . getText ( ) , Toast .LENGTH_SHORT ) . show ( ) ;</p><p>//String selectedItem = parent.getItemAtPosition(position).toString(); or</p><p>//String selectedItem = ((TextView) view).getText(); //for simple_list_item_1 layout or</p><p>//String selectedItem = (TextView) view.findViewById(android.R.id.text1); //for simple_list_item_1 layout with textview id or</p><p>//String selectedItem = FRUITS[position]; // using selected position</p><p>}</p><p>} ) ;</p><p>}</p><p>}</p><p><strong>Step 4 : Open AndroidManifest.xml and add following code :</strong></p><p>&lt;? xml version = “1.0” encoding = “utf-8” ?&gt;</p><p>&lt; manifest xmlns : android = “<a href="http://schemas.android.com/apk/res/android">http://schemas.android.com/apk/res/android</a>&quot;</p><p>package =”com.saud.android.listview_getselecteditem”</p><p>android : versionCode = “1”</p><p>android : versionName = “1.0” &gt;</p><p>&lt; uses — sdk</p><p>android : minSdkVersion = “16”</p><p>android : targetSdkVersion = “19” / &gt;</p><p>&lt; application</p><p>android : allowBackup = “true”</p><p>android : icon = “@drawable/ic_launcher”</p><p>android : label = “@string/app_name”</p><p>android : theme = “@style/AppTheme” &gt;</p><p>&lt; activity</p><p>android : name =”com.skholingua.android.listview_getselecteditem.MainActivity”</p><p>android : label = “@string/app_name” &gt;</p><p>&lt; intent — filter &gt;</p><p>&lt; action android : name = “android.intent.action.MAIN”/ &gt;</p><p>&lt; category android : name =”android.intent.category.LAUNCHER” / &gt;</p><p>&lt; / intent — filter &gt;</p><p>&lt; / activity &gt;</p><p>&lt; / application &gt;</p><p>&lt; / manifest &gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddb60facb000" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ListView using Custom ArrayAdapter Android]]></title>
            <link>https://codingwithsaud.medium.com/listview-using-custom-arrayadapter-android-6e80c2e37af?source=rss-c5ece703021d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e80c2e37af</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[adapter]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Muhammad Saud Khan]]></dc:creator>
            <pubDate>Tue, 24 Aug 2021 18:15:14 GMT</pubDate>
            <atom:updated>2021-08-24T18:25:11.188Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zsH0JGjNSnufXKo3" /><figcaption>Photo by <a href="https://unsplash.com/@glenncarstenspeters?utm_source=medium&amp;utm_medium=referral">Glenn Carstens-Peters</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Step 1 : Select File -&gt; New -&gt; Project -&gt; Android Application Project. Fill the forms, create a Blank Activity and click on Finish button.<br></strong> <strong>Step 2 : Open res -&gt; layout -&gt;activity_main.xml and add following code :</strong></p><p>&lt; RelativeLayout xmlns : android = “<a href="http://schemas.android.com/apk/res/android">http://schemas.android.com/apk/res/android</a>&quot;</p><p>xmlns : tools = “<a href="http://schemas.android.com/tools">http://schemas.android.com/tools</a>&quot;</p><p>android : layout_width = “match_parent”</p><p>android : layout_height = “match_parent”</p><p>android : paddingBottom = “@dimen/activity_vertical_margin”</p><p>android : paddingLeft = “@dimen/activity_horizontal_margin”</p><p>android : paddingRight = “@dimen/activity_horizontal_margin”</p><p>android : paddingTop = “@dimen/activity_vertical_margin”</p><p>tools : context =”com.saud.android.listview_customarrayadapter.MainActivity”&gt;</p><p>&lt; ListView</p><p>android : id = “@+id/listView1”</p><p>android : layout_width = “match_parent”</p><p>android : layout_height = “wrap_content”</p><p>android : layout_centerHorizontal = “true”</p><p>android : layout_centerVertical = “true” &gt;</p><p>&lt; / ListView &gt;</p><p>&lt; / RelativeLayout &gt;</p><p><strong>Step 2 : Open res -&gt; layout -&gt;Create new listitem_row.xml and add following code :</strong></p><p>&lt;? xml version = “1.0” encoding = “utf-8” ?&gt;</p><p>&lt; LinearLayout xmlns : android = “<a href="http://schemas.android.com/apk/res/android">http://schemas.android.com/apk/res/android</a>&quot;</p><p>android : layout_width = “match_parent”</p><p>android : layout_height = “match_parent”</p><p>android : layout_gravity = “center”</p><p>android : gravity = “center”</p><p>android : orientation = “horizontal” &gt;</p><p>&lt; TextView</p><p>android : id = “@+id/num_name”</p><p>android : layout_width = “wrap_content”</p><p>android : layout_height = “wrap_content”</p><p>android : layout_gravity = “center”</p><p>android : gravity = “left”</p><p>android : textStyle = “bold” / &gt;</p><p>&lt; ImageView</p><p>android : id = “@+id/num_images”</p><p>android : layout_width = “wrap_content”</p><p>android : layout_height = “wrap_content”</p><p>android : layout_gravity = “center”</p><p>android : contentDescription = “TODO” / &gt;</p><p>&lt; / LinearLayout &gt;</p><p><strong>Step 4 : Open src -&gt; package -&gt;MainActivity.java and add following code :</strong></p><p>package com . saud. android .listview_customarrayadapter ;</p><p>import android . app . Activity ;</p><p>import android . os . Bundle ;</p><p>import android . view . View ;</p><p>import android . widget . AdapterView ;</p><p>import android . widget . ListView ;</p><p>import android . widget . Toast ;</p><p>public class MainActivity extends Activity {</p><p>ListView list ;</p><p>String [ ] numNames = { “Zero” , “One” , “Two” ,”Three” , “Four” , “Five” , “Six” ,</p><p>“Seven” , “Eight” , “Nine”</p><p>} ;</p><p>Integer [ ] numImage = { R . drawable . zero , R .drawable . one , R . drawable . two ,</p><p>R . drawable . three , R . drawable . four , R .drawable . five , R . drawable . six ,</p><p>R . drawable . seven , R . drawable . eight , R .drawable . nine } ;</p><p>@Override</p><p>protected void onCreate ( BundlesavedInstanceState ) {</p><p>super . onCreate ( savedInstanceState ) ;</p><p>setContentView ( R . layout . activity_main ) ;</p><p>CustomListAdapter adapter = newCustomListAdapter ( this , numNames ,</p><p>numImage ) ;</p><p>list = ( ListView ) findViewById ( R . id . listView1 );</p><p>list . setAdapter ( adapter ) ;</p><p>list . setDividerHeight ( 1 ) ;</p><p>list . setOnItemClickListener ( new AdapterView .OnItemClickListener ( ) {</p><p>@Override</p><p>public void onItemClick ( AdapterView &lt; ? &gt;parent , View view ,</p><p>int position , long id ) {</p><p>Toast . makeText ( MainActivity . this ,</p><p>“You Clicked at “ + numNames [ +position ] ,</p><p>Toast . LENGTH_SHORT ) . show ( ) ;</p><p>}</p><p>} ) ;</p><p>}</p><p>}</p><p><strong>Step 5 : Open src -&gt; package -&gt;Create new class CustomListAdapter.java and add following code :</strong></p><p>package com . skholingua . android .listview_customarrayadapter ;</p><p>import android . app . Activity ;</p><p>import android . content . Context ;</p><p>import android . view . LayoutInflater ;</p><p>import android . view . View ;</p><p>import android . view . ViewGroup ;</p><p>import android . widget . ArrayAdapter ;</p><p>import android . widget . ImageView ;</p><p>import android . widget . TextView ;</p><p>public class CustomListAdapter extends ArrayAdapter&lt;String&gt; {</p><p>private final Activity context ;</p><p>private final String [ ] listNumNames ;</p><p>private final Integer [ ] listNumImages ;</p><p>public CustomListAdapter ( Context cont , String [ ]listNumNames ,</p><p>Integer [ ] listNumImages ) {</p><p>super ( cont , R . layout . listitem_row ,listNumNames ) ;</p><p>this . context = ( Activity ) cont ;</p><p>this . listNumNames = listNumNames ;</p><p>this . listNumImages = listNumImages ;</p><p>}</p><p>static class ViewHolder {</p><p>public TextView txtTitle ;</p><p>public ImageView imageViewoff ;</p><p>}</p><p>@Override</p><p>public View getView ( int position , View rowView ,ViewGroup parent ) {</p><p>ViewHolder holder = null ;</p><p>if ( rowView == null ) {</p><p>holder = new ViewHolder ( ) ;</p><p>LayoutInflater inflater = context .getLayoutInflater ( ) ;</p><p>rowView = inflater . inflate ( R . layout .listitem_row , parent , false ) ;</p><p>holder . txtTitle = ( TextView ) rowView .findViewById ( R . id . num_name ) ;</p><p>holder . imageViewoff = ( ImageView ) rowView</p><p>. findViewById ( R . id . num_images ) ;</p><p>rowView . setTag ( holder ) ;</p><p>} else {</p><p>holder = ( ViewHolder ) rowView . getTag ( ) ;</p><p>}</p><p>holder . txtTitle . setText ( listNumNames [position ] ) ;</p><p>holder . imageViewoff . setImageResource (listNumImages [ position ] ) ;</p><p>return rowView ;</p><p>}</p><p>}</p><p><strong>Step 6 : Open AndroidManifest.xml and add following code :</strong></p><p>&lt;? xml version = “1.0” encoding = “utf-8” ?&gt;</p><p>&lt; manifest xmlns : android = “<a href="http://schemas.android.com/apk/res/android">http://schemas.android.com/apk/res/android</a>&quot;</p><p>package =”com.skholingua.android.listview_customarrayadapter”</p><p>android : versionCode = “1”</p><p>android : versionName = “1.0” &gt;</p><p>&lt; uses — sdk</p><p>android : minSdkVersion = “16”</p><p>android : targetSdkVersion = “19” / &gt;</p><p>&lt; application</p><p>android : allowBackup = “true”</p><p>android : icon = “@drawable/ic_launcher”</p><p>android : label = “@string/app_name”</p><p>android : theme = “@style/AppTheme” &gt;</p><p>&lt; activity</p><p>android : name = “.MainActivity”</p><p>android : label = “@string/app_name” &gt;</p><p>&lt; intent — filter &gt;</p><p>&lt; action android : name =”android.intent.action.MAIN” / &gt;</p><p>&lt; category android : name =”android.intent.category.LAUNCHER” / &gt;</p><p>&lt; / intent — filter &gt;</p><p>&lt; / activity &gt;</p><p>&lt; / application &gt;</p><p>&lt; / manifest &gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e80c2e37af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ListView using ListFragment Android]]></title>
            <link>https://codingwithsaud.medium.com/listview-using-listfragment-android-5fda3a9c333b?source=rss-c5ece703021d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fda3a9c333b</guid>
            <category><![CDATA[adapter]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[listview]]></category>
            <dc:creator><![CDATA[Muhammad Saud Khan]]></dc:creator>
            <pubDate>Tue, 24 Aug 2021 18:09:50 GMT</pubDate>
            <atom:updated>2021-08-24T18:09:50.858Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mMne8nqZEkLQk9G8" /><figcaption>Photo by <a href="https://unsplash.com/@rsdiz?utm_source=medium&amp;utm_medium=referral">Muhammad Rosyid Izzulkhaq</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Step 1 <strong>:</strong> Select File -&gt; New -&gt; Project -&gt; Android Application Project. Fill the forms, create a Blank Activity and click on Finish button. <br> Step 2 <strong>:</strong> Open res -&gt; layout -&gt;activity_main.xml and add following code :</p><p>&lt; RelativeLayout xmlns : android = “<a href="http://schemas.android.com/apk/res/android">http://schemas.android.com/apk/res/android</a>&quot;</p><p>xmlns : tools = “<a href="http://schemas.android.com/tools">http://schemas.android.com/tools</a>&quot;</p><p>android : layout_width = “match_parent”</p><p>android : layout_height = “match_parent”</p><p>android : paddingBottom = “@dimen/activity_vertical_margin”</p><p>android : paddingLeft = “@dimen/activity_horizontal_margin”</p><p>android : paddingRight = “@dimen/activity_horizontal_margin”</p><p>android : paddingTop = “@dimen/activity_vertical_margin”</p><p>tools : context =”com.skholingua.android.listfragment.MainActivity” &gt;</p><p>&lt; fragment</p><p>android : id = “@+id/fragment1”</p><p>android : name =”com.skholingua.android.listfragment.MyListFragment”</p><p>android : layout_width = “match_parent”</p><p>android : layout_height = “match_parent” / &gt;</p><p>&lt; / RelativeLayout &gt;</p><p>Step 3 : Open src -&gt; package -&gt;MainActivity.java and add following code :</p><p>package com . skholingua . android . listfragment ;</p><p>import android . os . Bundle ;</p><p>import android . support . v4 . app . FragmentActivity ;</p><p>import android . view . Menu ;</p><p>import android . view . MenuItem ;</p><p>public class MainActivity extends FragmentActivity {</p><p>@Override</p><p>protected void onCreate ( BundlesavedInstanceState ) {</p><p>super . onCreate ( savedInstanceState ) ;</p><p>setContentView ( R . layout . activity_main ) ;</p><p>}</p><p>@Override</p><p>public boolean onCreateOptionsMenu ( Menu menu) {</p><p>// Inflate the menu; this adds items to the action bar if it is present.</p><p>getMenuInflater ( ) . inflate ( R . menu . main ,menu ) ;</p><p>return true ;</p><p>}</p><p>@Override</p><p>public boolean onOptionsItemSelected ( MenuItemitem ) {</p><p>// Handle action bar item clicks here. The action bar will</p><p>// automatically handle clicks on the Home/Up button, so long</p><p>// as you specify a parent activity in AndroidManifest.xml.</p><p>int id = item . getItemId ( ) ;</p><p>if ( id == R . id . action_settings ) {</p><p>return true ;</p><p>}</p><p>return super . onOptionsItemSelected ( item ) ;</p><p>}</p><p>}</p><p>Step 4 <strong>:</strong> Open res -&gt; layout -&gt;Create new xml file, list_fragment.xml and add following code :</p><p>&lt;? xml version = “1.0” encoding = “utf-8” ?&gt;</p><p>&lt; LinearLayout xmlns : android = “<a href="http://schemas.android.com/apk/res/android">http://schemas.android.com/apk/res/android</a>&quot;</p><p>android : layout_width = “match_parent”</p><p>android : layout_height = “match_parent”</p><p>android : orientation = “vertical” &gt;</p><p>&lt; ListView</p><p>android : id = “@android:id/list”</p><p>android : layout_width = “match_parent”</p><p>android : layout_height = “wrap_content” &gt;</p><p>&lt; / ListView &gt;</p><p>&lt; TextView</p><p>android : id = “@android:id/empty”</p><p>android : layout_width = “match_parent”</p><p>android : layout_height = “wrap_content” &gt;</p><p>&lt; / TextView &gt;</p><p>&lt; / LinearLayout &gt;</p><p>Step 5 : Open src -&gt; package -&gt; Create new class, MyListFragment.java and add following code :</p><p>package com . skholingua . android . listfragment ;</p><p>import android . os . Bundle ;</p><p>import android . support . v4 . app . ListFragment ;</p><p>import android . view . LayoutInflater ;</p><p>import android . view . View ;</p><p>import android . view . ViewGroup ;</p><p>import android . widget . AdapterView ;</p><p>import android . widget . AdapterView .OnItemClickListener ;</p><p>import android . widget . ArrayAdapter ;</p><p>import android . widget . Toast ;</p><p>public class MyListFragment extends ListFragmentimplements OnItemClickListener {</p><p>// String items = {};</p><p>@Override</p><p>public View onCreateView ( LayoutInflater inflater ,ViewGroup container ,</p><p>Bundle savedInstanceState ) {</p><p>View view = inflater . inflate ( R . layout .list_fragment , container , false ) ;</p><p>return view ;</p><p>}</p><p>@Override</p><p>public void onActivityCreated ( BundlesavedInstanceState ) {</p><p>super . onActivityCreated ( savedInstanceState ) ;</p><p>ArrayAdapter &lt;CharSequence&gt; adapter =ArrayAdapter . createFromResource (</p><p>getActivity ( ) , R . array . array_list ,</p><p>android . R . layout . simple_list_item_1 ) ;</p><p>setListAdapter ( adapter ) ;</p><p>getListView ( ) . setOnItemClickListener ( this ) ;</p><p>}</p><p>@Override</p><p>public void onItemClick ( AdapterView &lt; ? &gt; parent ,View view , int position ,</p><p>long id ) {</p><p>Toast . makeText ( getActivity ( ) , “Item: “ + (position + 1 ) ,</p><p>Toast . LENGTH_SHORT ) . show ( ) ;</p><p>}</p><p>}</p><p>Step 6 <strong>:</strong> Open AndroidManifest.xml and add following code :</p><p>&lt;? xml version = “1.0” encoding = “utf-8” ?&gt;</p><p>&lt; manifest xmlns : android = “<a href="http://schemas.android.com/apk/res/android">http://schemas.android.com/apk/res/android</a>&quot;</p><p>package = “com.skholingua.android.listfragment”</p><p>android : versionCode = “1”</p><p>android : versionName = “1.0” &gt;</p><p>&lt; uses — sdk</p><p>android : minSdkVersion = “16”</p><p>android : targetSdkVersion = “19” / &gt;</p><p>&lt; application</p><p>android : allowBackup = “true”</p><p>android : icon = “@drawable/ic_launcher”</p><p>android : label = “@string/app_name”</p><p>android : theme = “@style/AppTheme” &gt;</p><p>&lt; activity</p><p>android : name = “.MainActivity”</p><p>android : label = “@string/app_name” &gt;</p><p>&lt; intent — filter &gt;</p><p>&lt; action android : name =”android.intent.action.MAIN” / &gt;</p><p>&lt; category android : name =”android.intent.category.LAUNCHER” / &gt;</p><p>&lt; / intent — filter &gt;</p><p>&lt; / activity &gt;</p><p>&lt; / application &gt;</p><p>&lt; / manifest &gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fda3a9c333b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Activity Life Cycle]]></title>
            <link>https://codingwithsaud.medium.com/activity-life-cycle-25b1ec6f813d?source=rss-c5ece703021d------2</link>
            <guid isPermaLink="false">https://medium.com/p/25b1ec6f813d</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Muhammad Saud Khan]]></dc:creator>
            <pubDate>Tue, 24 Aug 2021 18:02:30 GMT</pubDate>
            <atom:updated>2021-08-24T18:02:30.230Z</atom:updated>
            <content:encoded><![CDATA[<p>About understanding of Activity Life Cycle in Android Studio</p><figure><img alt="Activity life cycle" src="https://cdn-images-1.medium.com/max/1024/0*56d8HTQx-2KxyXnE" /><figcaption>Photo by <a href="https://unsplash.com/@tolga__?utm_source=medium&amp;utm_medium=referral">Tolga Ulkan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Step 1 <strong>:</strong> Select File -&gt; New -&gt; Project -&gt; Android Application Project. Fill the forms, create a Blank Activity and click on Finish button.</p><p>Step 2 <strong>:</strong> Open res -&gt; layout -&gt;activity_main.xml and add following code :</p><p>&lt; RelativeLayout xmlns : android = “<a href="http://schemas.android.com/apk/res/android">http://schemas.android.com/apk/res/android</a>&quot;</p><p>xmlns : tools = “<a href="http://schemas.android.com/tools">http://schemas.android.com/tools</a>&quot;</p><p>android : layout_width = “match_parent”</p><p>android : layout_height = “match_parent” &gt;</p><p>&lt; TextView</p><p>android : layout_width = “wrap_content”</p><p>android : layout_height = “wrap_content”</p><p>android : text = “@string/hello_world” / &gt;</p><p>&lt; / RelativeLayout &gt;</p><p>Step 3 : Open src -&gt; package -&gt;MainActivity.java and add following code :</p><p>package com . skholingua . android . activitylifecycle ;</p><p>import android . app . Activity ;</p><p>import android . os . Bundle ;</p><p>import android . widget . Toast ;</p><p>public class MainActivity extends Activity {</p><p>/** Called when the activity is first created. */</p><p>@Override</p><p>public void onCreate ( Bundle savedInstanceState ){</p><p>super . onCreate ( savedInstanceState ) ;</p><p>setContentView ( R . layout . activity_main ) ;</p><p>Toast . makeText ( getBaseContext ( ) , “onCreate triggered” , 0 ) . show ( ) ;</p><p>}</p><p>/** Called when the activity is about to become visible. */</p><p>@Override</p><p>protected void onStart ( ) {</p><p>super . onStart ( ) ;</p><p>Toast . makeText ( getBaseContext ( ) , “onStart triggered” , 0 ) . show ( ) ;</p><p>}</p><p>/** Called when the activity has become visible. */</p><p>@Override</p><p>protected void onResume ( ) {</p><p>super . onResume ( ) ;</p><p>Toast . makeText ( getBaseContext ( ) ,”onResume triggered” , 0 ) . show ( ) ;</p><p>}</p><p>/** Called when another activity is taking focus. */</p><p>@Override</p><p>protected void onPause ( ) {</p><p>super . onPause ( ) ;</p><p>Toast . makeText ( getBaseContext ( ) , “onPause triggered” , 0 ) . show ( ) ;</p><p>}</p><p>/** Called when the activity is no longer visible. */</p><p>@Override</p><p>protected void onStop ( ) {</p><p>super . onStop ( ) ;</p><p>// I usually don’t use toast here</p><p>Toast . makeText ( getBaseContext ( ) , “onStop triggered” , 0 ) . show ( ) ;</p><p>}</p><p>/** Called just before the activity is destroyed. */</p><p>@Override</p><p>public void onDestroy ( ) {</p><p>super . onDestroy ( ) ;</p><p>// I usually don’t use toast here</p><p>Toast . makeText ( getBaseContext ( ) ,”onDestory triggered” , 0 ) . show ( ) ;</p><p>}</p><p>}</p><p>Step 4 <strong>:</strong> Open AndroidManifest.xml and add following code :</p><p>&lt;? xml version = “1.0” encoding = “utf-8” ?&gt;</p><p>&lt; manifest xmlns : android = “<a href="http://schemas.android.com/apk/res/android">http://schemas.android.com/apk/res/android</a>&quot;</p><p>package =”com.skholingua.android.activitylifecycle”</p><p>android : versionCode = “1”</p><p>android : versionName = “1.0” &gt;</p><p>&lt; uses — sdk</p><p>android : minSdkVersion = “16”</p><p>android : targetSdkVersion = “19” / &gt;</p><p>&lt; application</p><p>android : allowBackup = “true”</p><p>android : icon = “@drawable/ic_launcher”</p><p>android : label = “@string/app_name”</p><p>android : theme = “@style/AppTheme” &gt;</p><p>&lt; activity</p><p>android : name = “.MainActivity”</p><p>android : label = “@string/app_name” &gt;</p><p>&lt; intent — filter &gt;</p><p>&lt; action android : name =”android.intent.action.MAIN” / &gt;</p><p>&lt; category android : name =”android.intent.category.LAUNCHER” / &gt;</p><p>&lt; / intent — filter &gt;</p><p>&lt; / activity &gt;</p><p>&lt; / application &gt;</p><p>&lt; / manifest &gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25b1ec6f813d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python 2 VS Python 3]]></title>
            <link>https://codingwithsaud.medium.com/python-2-vs-python-3-7f30e090d171?source=rss-c5ece703021d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f30e090d171</guid>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python2-vs-python3]]></category>
            <dc:creator><![CDATA[Muhammad Saud Khan]]></dc:creator>
            <pubDate>Tue, 24 Aug 2021 17:43:56 GMT</pubDate>
            <atom:updated>2021-08-24T17:43:56.881Z</atom:updated>
            <content:encoded><![CDATA[<h4>Difference between Python 2 and Python 3</h4><ol><li>Python 2 is now a legacy due to the current version of Python 3 in use.</li><li>The print keyword is the build in function in python 3</li><li>Developers took time to adopt Python 3 as it was not compatible with Python 2</li><li>To overcome the problem of backward compatibility, Python 2.7 was released 2010.</li><li>This compatibility support included improved modules for version 2.7 such as Unittest for test automation and Argparse for parsing command line options.</li></ol><figure><img alt="Python 2 vs Python 3" src="https://cdn-images-1.medium.com/max/819/1*HOkcdEyat9E3ZnchKxmF8g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f30e090d171" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TOP PRODUCTS OF THE GOOGLE]]></title>
            <link>https://codingwithsaud.medium.com/top-products-of-the-google-a0f9510355e9?source=rss-c5ece703021d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0f9510355e9</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[google-play]]></category>
            <category><![CDATA[google-product]]></category>
            <category><![CDATA[product]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Muhammad Saud Khan]]></dc:creator>
            <pubDate>Sun, 22 Aug 2021 14:43:42 GMT</pubDate>
            <atom:updated>2021-08-22T14:44:21.806Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>TOP PRODUCTS OF THE GOOGLE</strong></p><ol><li><strong>Google Play</strong> also branded as the Google Play Store and formerly Android Market, is a digital distribution service operated and developed by Google. <a href="https://en.m.wikipedia.org/wiki/Google_Play">Wikipedia</a></li></ol><p>Date launched: October 22, 2008</p><p>Initial release: <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk02QsxEaAvBAq3V2qEQ4vwQDK3lp4A:1629642183784&amp;q=October+22,+2008&amp;stick=H4sIAAAAAAAAAONgVhLQL9E3SklJMswoKcgqSU4vXMQq4J9ckp-UWqRgZKSjYGRgYAEAck4X8CcAAAA&amp;sa=X&amp;ved=2ahUKEwikp-ab6sTyAhUB1RoKHXJxCPYQmxMoADAEegQIBxAC">October 22, 2008</a>; 12 years ago (as Android Market); <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk02QsxEaAvBAq3V2qEQ4vwQDK3lp4A:1629642183784&amp;q=March+6,+2012&amp;stick=H4sIAAAAAAAAAONgVhLQL9E3MjQuzim0zDVLSi-pXMTK65tYlJyhYKajYGRgaAQAxjEEECQAAAA&amp;sa=X&amp;ved=2ahUKEwikp-ab6sTyAhUB1RoKHXJxCPYQmxMoATAEegQIBxAD">March 6, 2012</a>; 9 years ago (as Google Play)</p><p>Platforms: <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk02QsxEaAvBAq3V2qEQ4vwQDK3lp4A:1629642183784&amp;q=Android&amp;stick=H4sIAAAAAAAAAOPgE-LSz9U3MM0zMEoxUgKzjcorStLLtcwzyq30k_NzclKTSzLz8_TLMlNS8-PTE3NT41Myi0uKMpNKQeLxxZXFJam5xVYFOYklaflFuYtY2R3zUoryM1N2sDICAMzn6jFgAAAA&amp;sa=X&amp;ved=2ahUKEwikp-ab6sTyAhUB1RoKHXJxCPYQmxMoADAFegQIBRAC">Android</a>, <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk02QsxEaAvBAq3V2qEQ4vwQDK3lp4A:1629642183784&amp;q=Chrome+OS&amp;stick=H4sIAAAAAAAAAOPgE-LSz9U3MM0zMEoxUgKzzcoNM4oKtMwzyq30k_NzclKTSzLz8_TLMlNS8-PTE3NT41Myi0uKMpNKQeLxxZXFJam5xVYFOYklaflFuYtYOZ0zivJzUxX8g3ewMgIAKxoWvmIAAAA&amp;sa=X&amp;ved=2ahUKEwikp-ab6sTyAhUB1RoKHXJxCPYQmxMoATAFegQIBRAD">Chrome OS</a>, <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk02QsxEaAvBAq3V2qEQ4vwQDK3lp4A:1629642183784&amp;q=Android+TV&amp;stick=H4sIAAAAAAAAAOPgE-LSz9U3MM0zMEoxUuIGsQ0NDc2zDM21zDPKrfST83NyUpNLMvPz9MsyU1Lz49MTc1PjUzKLS4oyk0pB4vHFlcUlqbnFVgU5iSVp-UW5i1i5HPNSivIzUxRCwnawMgIAdAFB4GQAAAA&amp;sa=X&amp;ved=2ahUKEwikp-ab6sTyAhUB1RoKHXJxCPYQmxMoAjAFegQIBRAE">Android TV</a>, <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk02QsxEaAvBAq3V2qEQ4vwQDK3lp4A:1629642183784&amp;q=Wear+OS&amp;stick=H4sIAAAAAAAAAOPgE-LSz9U3MM0zMEoxUuIGsQ0NDArKzTO0zDPKrfST83NyUpNLMvPz9MsyU1Lz49MTc1PjUzKLS4oyk0pB4vHFlcUlqbnFVgU5iSVp-UW5i1jZw1MTixT8g3ewMgIAKYmX2mEAAAA&amp;sa=X&amp;ved=2ahUKEwikp-ab6sTyAhUB1RoKHXJxCPYQmxMoAzAFegQIBRAF">Wear OS</a>, <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk02QsxEaAvBAq3V2qEQ4vwQDK3lp4A:1629642183784&amp;q=Web+application&amp;stick=H4sIAAAAAAAAAOPgE-LSz9U3MM0zMEoxUuIEsQ0Lk8zMtcwzyq30k_NzclKTSzLz8_TLMlNS8-PTE3NT41Myi0uKMpNKQeLxxZXFJam5xVYFOYklaflFuYtY-cNTkxQSCwpyMpMTQUp2sDICAGNwECpnAAAA&amp;sa=X&amp;ved=2ahUKEwikp-ab6sTyAhUB1RoKHXJxCPYQmxMoBDAFegQIBRAG">Web application</a>, <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk02QsxEaAvBAq3V2qEQ4vwQDK3lp4A:1629642183784&amp;q=Android+Automotive&amp;stick=H4sIAAAAAAAAAOPgE-LSz9U3MM0zMEoxUuLVT9c3NMwwN8zINkgp0jLPKLfST87PyUlNLsnMz9Mvy0xJzY9PT8xNjU_JLC4pykwqBYnHF1cWl6TmFlsV5CSWpOUX5S5iFXLMSynKz0xRcCwtyc_NL8ksS93ByggAHvw-t24AAAA&amp;sa=X&amp;ved=2ahUKEwikp-ab6sTyAhUB1RoKHXJxCPYQmxMoBTAFegQIBRAH">Android Automotive</a></p><p>2. <strong>Google Earth</strong> is a computer program, formerly known as Keyhole EarthViewer, that renders a 3D representation of Earth based primarily on satellite imagery. <a href="https://en.m.wikipedia.org/wiki/Google_Earth">Wikipedia</a></p><p>Preview release: <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk011eXAGHahhW0eltDi49x6RW5s5UQ:1629642317769&amp;q=Windows&amp;stick=H4sIAAAAAAAAAONgVuLQz9U3MCmKt1jEyh6emZeSX14MAFTjqsQWAAAA&amp;sa=X&amp;ved=2ahUKEwju7tfb6sTyAhXux4UKHfiRDwAQmxMoADAOegQIDhAC">Windows</a>, <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk011eXAGHahhW0eltDi49x6RW5s5UQ:1629642317769&amp;q=macOS&amp;stick=H4sIAAAAAAAAAONgVuLWT9c3NDI2TjOtiF_EypqbmOwfDAB9TAXGFwAAAA&amp;sa=X&amp;ved=2ahUKEwju7tfb6sTyAhXux4UKHfiRDwAQmxMoATAOegQIDhAD">macOS</a>, <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk011eXAGHahhW0eltDi49x6RW5s5UQ:1629642317769&amp;q=Linux&amp;stick=H4sIAAAAAAAAAONgVuLVT9c3NEwzM7EwyS2xXMTK6pOZV1oBAD80uzcZAAAA&amp;sa=X&amp;ved=2ahUKEwju7tfb6sTyAhXux4UKHfiRDwAQmxMoAjAOegQIDhAE">Linux</a>; 7.3.3 (<a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk011eXAGHahhW0eltDi49x6RW5s5UQ:1629642317769&amp;q=April+20,+2020&amp;stick=H4sIAAAAAAAAAONgVhLQL9E3SjYqz0qxyMqpTMstXsTK51hQlJmjYGSgA8RGBgAFkyweJQAAAA&amp;sa=X&amp;ved=2ahUKEwju7tfb6sTyAhXux4UKHfiRDwAQmxMoAzAOegQIDhAF">April 20, 2020</a>; 15 months ago)</p><p>Initial release date: June 11, 2001</p><p>Available in: Various languages</p><p>Operating system: <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk011eXAGHahhW0eltDi49x6RW5s5UQ:1629642317769&amp;q=Google+Chrome&amp;stick=H4sIAAAAAAAAAONgVuLSz9U3MMkyT65MW8TK656fn56TquCcUZSfmwoAh1DAux4AAAA&amp;sa=X&amp;ved=2ahUKEwju7tfb6sTyAhXux4UKHfiRDwAQmxMoADARegQIDRAC">Google Chrome</a> Web App, <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk011eXAGHahhW0eltDi49x6RW5s5UQ:1629642317769&amp;q=Windows&amp;stick=H4sIAAAAAAAAAONgVuLQz9U3MCmKt1jEyh6emZeSX14MAFTjqsQWAAAA&amp;sa=X&amp;ved=2ahUKEwju7tfb6sTyAhXux4UKHfiRDwAQmxMoATARegQIDRAD">Windows</a>, <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk011eXAGHahhW0eltDi49x6RW5s5UQ:1629642317769&amp;q=macOS&amp;stick=H4sIAAAAAAAAAONgVuLQz9U3MDWtLFrEypqbmOwfDADb5b_yFAAAAA&amp;sa=X&amp;ved=2ahUKEwju7tfb6sTyAhXux4UKHfiRDwAQmxMoAjARegQIDRAE">macOS</a>, <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk011eXAGHahhW0eltDi49x6RW5s5UQ:1629642317769&amp;q=Linux&amp;stick=H4sIAAAAAAAAAONgVuLUz9U3SCuoqipYxMrqk5lXWgEATgerNhUAAAA&amp;sa=X&amp;ved=2ahUKEwju7tfb6sTyAhXux4UKHfiRDwAQmxMoAzARegQIDRAF">Linux</a>, <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk011eXAGHahhW0eltDi49x6RW5s5UQ:1629642317769&amp;q=Android+5.0&amp;stick=H4sIAAAAAAAAAONgVuLWz9U3MDQ0NKhIqVjEyu2Yl1KUn5miYKpnAAAIs0MKHQAAAA&amp;sa=X&amp;ved=2ahUKEwju7tfb6sTyAhXux4UKHfiRDwAQmxMoBDARegQIDRAG">Android 5.0</a> +, <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk011eXAGHahhW0eltDi49x6RW5s5UQ:1629642317769&amp;q=iOS&amp;stick=H4sIAAAAAAAAAONgVuLSz9U3MC5PyjE0WcTKnOkfDABeKS5iFAAAAA&amp;sa=X&amp;ved=2ahUKEwju7tfb6sTyAhXux4UKHfiRDwAQmxMoBTARegQIDRAH">iOS</a> 12.2 +</p><p>Developer: <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk011eXAGHahhW0eltDi49x6RW5s5UQ:1629642317769&amp;q=Google&amp;stick=H4sIAAAAAAAAAOPgE-LUz9U3MMurNM1QAjNNTJPNk7Tks5Ot9JPzcwtKS1KL9Ivz00rKE4tSrVJSy1Jz8gtSixaxsrnn56fnpO5gZQQAyH4k8UUAAAA&amp;sa=X&amp;ved=2ahUKEwju7tfb6sTyAhXux4UKHfiRDwAQmxMoADASegQICRAC">Google</a></p><p>License: <a href="https://www.google.com/search?client=ms-android-huawei-rev1&amp;sxsrf=ALeKk011eXAGHahhW0eltDi49x6RW5s5UQ:1629642317769&amp;q=Freeware&amp;stick=H4sIAAAAAAAAAONgVuLQz9U3MDZKSVrEyuFWlJpanliUCgCOI5emFwAAAA&amp;sa=X&amp;ved=2ahUKEwju7tfb6sTyAhXux4UKHfiRDwAQmxMoADATegQIBxAC">Freeware</a></p><p><strong>3. Google Wifi</strong> is a home mesh Wi-Fi system that replaces your traditional router and provides seamless, reliable Wi-Fi coverage throughout your home. You’ll still need an Internet Service Provider (ISP) and a modem to connect to the internet. ... Google Wifi is built on our mesh Wi-Fi technology.</p><p><strong>4. Google Shopping</strong> is a new product discovery experience. The goal is to make it easy for users to research purchases, find information about different products, their features and prices, and then connect with sellers to make their purchase.</p><p>5. Google Hangouts makes it easy to connect with people via talk, text, or video, and the app allows you to create groups that can be connected again and again. It also stores your past chats so you can pick up the text conversation any time and can refer back to past messages as convenient.</p><p><strong>6. Google Classroom</strong> is a free web service developed by Google for schools that aims to simplify creating, distributing, and grading assignments. ... Google Classroom integrates Docs, Sheets, Slides, Gmail, and Calendar into a cohesive platform to manage student and teacher communication.</p><p><strong>7. Google Meet</strong>, Google is making enterprise-grade video conferencing available to everyone. Now, anyone with a Google Account can create an online meeting with up to 100 participants and meet for up to 60 minutes per meeting.</p><p><strong>8. Google Drive</strong>, is a cloud-based storage solution that allows you to save files online and access them anywhere from any smartphone, tablet, or computer. You can use Drive on your computer or mobile device to securely upload files and edit them online. Drive also makes it easy for others to edit and collaborate on files.</p><p>9. <strong>Google Duo</strong> is a video chat mobile app developed by Google, available on the Android and iOS operating systems. It was announced at Google’s developer conference on May 18, 2016, and began its worldwide release on August 16, 2016. Wikipedia<br>Available in: English Language<br>Developer: Google<br>Initial release: August 16, 2016; 4 years ago<br>Operating system: Android 4.1 or later; iOS 9.0 or later</p><h3>Some more products</h3><ol><li>Google One</li><li>Google Alerts</li><li>Android</li><li>Google Store</li><li>Chrome</li><li>Google Chat</li><li>Gmail</li><li>Google search</li><li>Google pay</li><li>Blogger</li><li>Youtube</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0f9510355e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Internet Speed Monitoring Service]]></title>
            <link>https://codingwithsaud.medium.com/internet-speed-monitoring-service-6abd7f1af390?source=rss-c5ece703021d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6abd7f1af390</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[androiddev]]></category>
            <dc:creator><![CDATA[Muhammad Saud Khan]]></dc:creator>
            <pubDate>Sun, 22 Aug 2021 13:04:43 GMT</pubDate>
            <atom:updated>2021-08-22T13:04:43.477Z</atom:updated>
            <content:encoded><![CDATA[<pre><em>package </em>com.saud_khan_dev.speed_test.backend.services;<br><br><em>import </em>android.app.IntentService;<br><em>import </em>android.app.Notification;<br><em>import </em>android.app.NotificationChannel;<br><em>import </em>android.app.NotificationManager;<br><em>import </em>android.app.PendingIntent;<br><em>import </em>android.content.Intent;<br><em>import </em>android.content.Context;<br><em>import </em>android.content.<em>SharedPreferences</em>;<br><em>import </em>android.graphics.Bitmap;<br><em>import </em>android.graphics.Canvas;<br><em>import </em>android.graphics.Paint;<br><em>import </em>android.graphics.Rect;<br><em>import </em>android.graphics.drawable.Icon;<br><em>import </em>android.net.TrafficStats;<br><em>import </em>android.os.Build;<br><em>import </em>android.os.Handler;<br><em>import </em>android.os.Looper;<br><em>import </em>android.os.Message;<br><br><em>import </em>androidx.annotation.RequiresApi;<br><em>import </em>androidx.core.app.NotificationCompat;<br><br><em>import </em>com.saud_khan_dev.speed_test.MyApp;<br><em>import </em>com.saud_khan_dev.speed_test.PrefHelper.AppSharedPref;<br><em>import </em>com.saud_khan_dev.speed_test.R;<br><em>import </em>com.saud_khan_dev.speed_test.ui.activities.MainActivity;<br><br><em>import </em>java.util.Locale;<br><br><em>/**<br> * Author: Muhammad Saud khan<br> */<br><br>public class </em>SpeedMonitorService <em>extends </em>IntentService {<br><br>    <em>private final int </em>mNotificationId = 1;<br>    <em>private </em>Handler mHandler;<br>    <em>private </em>Notification.Builder mBuilder;<br>    <em>private </em>NotificationManager mNotifyMgr;<br>    <em>private </em>String mDownloadSpeedOutput;<br>    <em>private </em>String mUnits;<br>    <em>private boolean </em>mDestroyed = <em>false</em>;<br>    AppSharedPref pref;<br>    <em>public </em>SpeedMonitorService() {<br>        <em>super</em>(&quot;SpeedMonitorService&quot;);<br>    }<br><br>    @RequiresApi(api = Build.VERSION_CODES.<em>M</em>)<br>    @Override<br>    <em>protected void </em>onHandleIntent(Intent intent) {<br><br>        <em>/*Check first if meter is disabled, in which you don&#39;t start the service*/<br>       </em>pref=<em>new </em>AppSharedPref(getApplicationContext());<br><br>        <em>boolean </em>state =pref.isSpeedMonitoringEnable();<br>        createNotificationChannel();<br>        initializeNotification();<br><br>        <em>while </em>(!mDestroyed &amp;&amp; state == <em>true</em>) {<br><br>            getDownloadSpeed();<br><br>            Message completeMessage = mHandler.obtainMessage(1);<br>            completeMessage.sendToTarget();<br><br>        }<br>    }<br><br><br>    <em>private void </em>initializeNotification() {<br><br>        mHandler = <em>new </em>Handler(Looper.<em>getMainLooper</em>()) {<br><br>            @RequiresApi(api = Build.VERSION_CODES.<em>M</em>)<br>            @Override<br>            <em>public void </em>handleMessage(Message inputMessage) {<br><br>                <em>if </em>(mDestroyed) {<br>                    <em>return</em>;<br>                }<br><br>                Bitmap bitmap = createBitmapFromString(mDownloadSpeedOutput, mUnits);<br><br>                Icon icon = Icon.<em>createWithBitmap</em>(bitmap);<br><br>                mBuilder.setSmallIcon(icon);<br><br>                mNotifyMgr.notify(mNotificationId, mBuilder.build());<br><br>            }<br><br>        };<br>        <em>if </em>(Build.VERSION.<em>SDK_INT </em>&gt;= Build.VERSION_CODES.<em>O</em>) {<br>            mBuilder = <em>new </em>Notification.Builder(<em>this</em>,MyApp.<em>CHANNEL_ID</em>);<br>        }<em>else </em>{<br>            mBuilder = <em>new </em>Notification.Builder(<em>this</em>);<br>        }<br>        <em>if </em>(Build.VERSION.<em>SDK_INT </em>&gt;= Build.VERSION_CODES.<em>M</em>) {<br>            mBuilder.setSmallIcon(Icon.<em>createWithBitmap</em>(createBitmapFromString(&quot;0&quot;, &quot; KB&quot;)));<br>        }<em>else </em>{<br>            <em>int </em>icon2 = getResources().getIdentifier(&quot;0\nKB&quot;, &quot;drawable&quot;, getPackageName());<br>            mBuilder.setSmallIcon(icon2);<br>        }<br>        mBuilder.setContentTitle(&quot;&quot;);<br>        mBuilder.setVisibility(Notification.<em>VISIBILITY_SECRET</em>);<br>        <em>if </em>(Build.VERSION.<em>SDK_INT </em>&gt;= 21) {<br>            mBuilder.setVisibility(Notification.<em>VISIBILITY_PUBLIC</em>);<br>        }<br>        mBuilder.setOngoing(<em>true</em>);<br><br>        <em>/*Creates a special PendingIntent so that the app will open when the notification window<br>        is tapped*/<br>        </em>Intent intent = <em>new </em>Intent(<em>this</em>, MainActivity.<em>class</em>);<br>        intent.setFlags(Intent.<em>FLAG_ACTIVITY_NEW_TASK </em>| Intent.<em>FLAG_ACTIVITY_CLEAR_TASK</em>);<br>        PendingIntent pendingIntent = PendingIntent.<em>getActivity</em>(<em>this</em>, 0, intent, PendingIntent<br>                .<em>FLAG_UPDATE_CURRENT</em>);<br>        mBuilder.setContentIntent(pendingIntent);<br><br><br>        mNotifyMgr = (NotificationManager) getSystemService(Context.<em>NOTIFICATION_SERVICE</em>);<br>        mNotifyMgr.notify(mNotificationId, mBuilder.build());<br><br>        startForeground(mNotificationId, mBuilder.build());<br><br>    }<br><br>    <em>private </em>Bitmap createBitmapFromString(String speed, String units) {<br><br>        Paint paint = <em>new </em>Paint();<br>        paint.setAntiAlias(<em>true</em>);<br>        paint.setTextSize(55);<br>        paint.setTextAlign(Paint.Align.<em>CENTER</em>);<br><br>        Paint unitsPaint = <em>new </em>Paint();<br>        unitsPaint.setAntiAlias(<em>true</em>);<br>        unitsPaint.setTextSize(40); <em>// size is in pixels<br>        </em>unitsPaint.setTextAlign(Paint.Align.<em>CENTER</em>);<br><br>        Rect textBounds = <em>new </em>Rect();<br>        paint.getTextBounds(speed, 0, speed.length(), textBounds);<br><br>        Rect unitsTextBounds = <em>new </em>Rect();<br>        unitsPaint.getTextBounds(units, 0, units.length(), unitsTextBounds);<br><br>        <em>int </em>width = (textBounds.width() &gt; unitsTextBounds.width()) ? textBounds.width() : unitsTextBounds.width();<br><br>        Bitmap bitmap = Bitmap.<em>createBitmap</em>(width + 10, 90,<br>                Bitmap.Config.<em>ARGB_8888</em>);<br><br>        Canvas canvas = <em>new </em>Canvas(bitmap);<br>        canvas.drawText(speed, width / 2 + 5, 50, paint);<br>        canvas.drawText(units, width / 2, 90, unitsPaint);<br><br>        <em>return </em>bitmap;<br>    }<br><br>    <em>private void </em>getDownloadSpeed() {<br><br>        <em>long </em>mRxBytesPrevious = TrafficStats.<em>getTotalRxBytes</em>();<br><br>        <em>try </em>{<br>            Thread.<em>sleep</em>(1000);<br>        } <em>catch </em>(InterruptedException e) {<br>            e.printStackTrace();<br>        }<br><br>        <em>long </em>mRxBytesCurrent = TrafficStats.<em>getTotalRxBytes</em>();<br><br>        <em>long </em>mDownloadSpeed = mRxBytesCurrent - mRxBytesPrevious;<br><br>        <em>float </em>mDownloadSpeedWithDecimals;<br><br>        <em>if </em>(mDownloadSpeed &gt;= 1000000000) {<br>            mDownloadSpeedWithDecimals = (<em>float</em>) mDownloadSpeed / (<em>float</em>) 1000000000;<br>            mUnits = &quot; GB&quot;;<br>        } <em>else if </em>(mDownloadSpeed &gt;= 1000000) {<br>            mDownloadSpeedWithDecimals = (<em>float</em>) mDownloadSpeed / (<em>float</em>) 1000000;<br>            mUnits = &quot; MB&quot;;<br><br>        } <em>else </em>{<br>            mDownloadSpeedWithDecimals = (<em>float</em>) mDownloadSpeed / (<em>float</em>) 1000;<br>            mUnits = &quot; KB&quot;;<br>        }<br><br><br>        <em>if </em>(!mUnits.equals(&quot; KB&quot;) &amp;&amp; mDownloadSpeedWithDecimals &lt; 100) {<br>            mDownloadSpeedOutput = String.<em>format</em>(Locale.<em>US</em>, &quot;%.1f&quot;, mDownloadSpeedWithDecimals);<br>        } <em>else </em>{<br>            mDownloadSpeedOutput = Integer.<em>toString</em>((<em>int</em>) mDownloadSpeedWithDecimals);<br>        }<br><br>    }<br><br>    @Override<br>    <em>public void </em>onDestroy() {<br>        <em>super</em>.onDestroy();<br>        mDestroyed = <em>true</em>;<br>        mNotifyMgr.cancelAll();<br>    }<br>    <em>private void </em>createNotificationChannel() {<br>        NotificationManager  mNotificationManager = (NotificationManager) getSystemService(Context.<em>NOTIFICATION_SERVICE</em>);<br>        <em>if </em>(Build.VERSION.<em>SDK_INT </em>&gt;= Build.VERSION_CODES.<em>O</em>) {<br>            NotificationChannel channel = <em>new </em>NotificationChannel( MyApp.<em>CHANNEL_ID</em>, MyApp.<em>CHANNEL_NAME</em>, NotificationManager.<em>IMPORTANCE_DEFAULT</em>);<br>            mNotificationManager.createNotificationChannel(channel);<br>            <em>new </em>NotificationCompat.Builder(<em>this</em>, MyApp.<em>CHANNEL_ID</em>);<br>        }<br>    }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6abd7f1af390" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Continuously check Internet Connection and connection type]]></title>
            <link>https://codingwithsaud.medium.com/continuously-check-internet-connection-and-connection-type-8e3487ba351e?source=rss-c5ece703021d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e3487ba351e</guid>
            <category><![CDATA[speed-test-in-background]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[increase-internet-speed]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Muhammad Saud Khan]]></dc:creator>
            <pubDate>Sun, 22 Aug 2021 13:03:23 GMT</pubDate>
            <atom:updated>2021-08-22T13:03:23.459Z</atom:updated>
            <content:encoded><![CDATA[<h4>Internet connectivity broadcast receiver</h4><p><strong>NetworkUtills</strong></p><pre><em>package </em>com.saud_khan_dev.speed_test.backend.network_utills;<br><br><em>import </em>android.content.Context;<br><em>import </em>android.net.ConnectivityManager;<br><em>import </em>android.net.NetworkInfo;<br><br><em>public class </em>NetworkUtil {<br>    <em>public static final int TYPE_WIFI </em>= 1;<br>    <em>public static final int TYPE_MOBILE </em>= 2;<br>    <em>public static final int TYPE_NOT_CONNECTED </em>= 0;<br>    <em>public static final int NETWORK_STATUS_NOT_CONNECTED </em>= 0;<br>    <em>public static final int NETWORK_STATUS_WIFI </em>= 1;<br>    <em>public static final int NETWORK_STATUS_MOBILE </em>= 2;<br><br>    <em>public static int </em>getConnectivityStatus(Context context) {<br>        ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.<em>CONNECTIVITY_SERVICE</em>);<br><br>        NetworkInfo activeNetwork = cm.getActiveNetworkInfo();<br>        <em>if </em>(<em>null </em>!= activeNetwork) {<br>            <em>if</em>(activeNetwork.getType() == ConnectivityManager.<em>TYPE_WIFI</em>)<br>                <em>return TYPE_WIFI</em>;<br><br>            <em>if</em>(activeNetwork.getType() == ConnectivityManager.<em>TYPE_MOBILE</em>)<br>                <em>return TYPE_MOBILE</em>;<br>        }<br>        <em>return TYPE_NOT_CONNECTED</em>;<br>    }<br><br>    <em>public static int </em>getConnectivityStatusString(Context context) {<br>        <em>int </em>conn = NetworkUtil.<em>getConnectivityStatus</em>(context);<br>        <em>int </em>status = 0;<br>        <em>if </em>(conn == NetworkUtil.<em>TYPE_WIFI</em>) {<br>            status = <em>NETWORK_STATUS_WIFI</em>;<br>        } <em>else if </em>(conn == NetworkUtil.<em>TYPE_MOBILE</em>) {<br>            status = <em>NETWORK_STATUS_MOBILE</em>;<br>        } <em>else if </em>(conn == NetworkUtil.<em>TYPE_NOT_CONNECTED</em>) {<br>            status = <em>NETWORK_STATUS_NOT_CONNECTED</em>;<br>        }<br>        <em>return </em>status;<br>    }<br>}</pre><p><strong>Network change broadcast receiver</strong></p><pre><em>package </em>com.saud_khan_dev.speed_test.backend.broadcast_receivers;<br><br><em>import </em>android.content.BroadcastReceiver;<br><em>import </em>android.content.Context;<br><em>import </em>android.content.Intent;<br><em>import </em>android.util.Log;<br><em>import </em>android.widget.Toast;<br><br><em>import </em>com.saud_khan_dev.speed_test.backend.network_utills.NetworkUtil;<br><br><em>public class </em>NetworkChangeReceiver <em>extends </em>BroadcastReceiver {<br>    @Override<br>    <em>public void </em>onReceive(Context context, Intent intent) {<br>        <em>int </em>status = NetworkUtil.<em>getConnectivityStatusString</em>(context);<br>        <em>int </em>connectionType = NetworkUtil.<em>getConnectivityStatus</em>(context);<br>        Log.<em>e</em>(&quot;network reciever&quot;, &quot;network reciever&quot;);<br>        <em>if </em>(&quot;android.net.conn.CONNECTIVITY_CHANGE&quot;.equals(intent.getAction())) {<br>            <em>if </em>(status == NetworkUtil.<em>NETWORK_STATUS_NOT_CONNECTED</em>) {<br>                Toast.<em>makeText</em>(context, &quot;Not connected&quot;, Toast.<em>LENGTH_SHORT</em>).show();<br>            } <em>else </em>{<br>                Toast.<em>makeText</em>(context, &quot;Connected&quot;, Toast.<em>LENGTH_SHORT</em>).show();<br>            }<br>            <em>if </em>(connectionType==NetworkUtil.<em>TYPE_MOBILE</em>){<br>                Toast.<em>makeText</em>(context, &quot;Mobile data&quot;, Toast.<em>LENGTH_SHORT</em>).show();<br>            }<em>else if </em>(connectionType==NetworkUtil.<em>TYPE_WIFI</em>){<br>                Toast.<em>makeText</em>(context, &quot;Wifi&quot;, Toast.<em>LENGTH_SHORT</em>).show();<br>            }<br>        }<br>    }<br>}</pre><p><strong>Required Permissions</strong></p><pre>&lt;uses-permission <em>android:name</em>=&quot;android.permission.INTERNET&quot;/&gt;<br>&lt;uses-permission <em>android:name</em>=&quot;android.permission.ACCESS_NETWORK_STATE&quot;/&gt;</pre><p><strong>Put it in manifest file</strong></p><pre>&lt;receiver<br>    <em>android:name</em>=&quot;.backend.broadcast_receivers.NetworkChangeReceiver&quot;<br>    <em>android:label</em>=&quot;NetworkChangeReceiver&quot; &gt;<br>    &lt;intent-filter&gt;<br>        &lt;action <em>android:name</em>=&quot;android.net.conn.CONNECTIVITY_CHANGE&quot; /&gt;<br>        &lt;action <em>android:name</em>=&quot;android.net.wifi.WIFI_STATE_CHANGED&quot; /&gt;<br>    &lt;/intent-filter&gt;<br>&lt;/receiver&gt;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e3487ba351e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>