<?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 anwar samer on Medium]]></title>
        <description><![CDATA[Stories by anwar samer on Medium]]></description>
        <link>https://medium.com/@programmerasi?source=rss-5e16b872e5de------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sRDMUfMXVAxNtdPTMQXoGA.jpeg</url>
            <title>Stories by anwar samer on Medium</title>
            <link>https://medium.com/@programmerasi?source=rss-5e16b872e5de------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 22:21:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@programmerasi/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[Great introduction for the new architecture waiting next article]]></title>
            <link>https://medium.com/@programmerasi/great-introduction-for-the-new-architecture-waiting-next-article-1331d6e7c4d8?source=rss-5e16b872e5de------2</link>
            <guid isPermaLink="false">https://medium.com/p/1331d6e7c4d8</guid>
            <dc:creator><![CDATA[anwar samer]]></dc:creator>
            <pubDate>Sat, 30 Jul 2022 20:09:49 GMT</pubDate>
            <atom:updated>2022-07-30T20:09:49.598Z</atom:updated>
            <content:encoded><![CDATA[<p>Great introduction for the new architecture waiting next article</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1331d6e7c4d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firebase Security Rules]]></title>
            <link>https://medium.com/@programmerasi/firebase-security-rules-ccc1577b92c1?source=rss-5e16b872e5de------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccc1577b92c1</guid>
            <dc:creator><![CDATA[anwar samer]]></dc:creator>
            <pubDate>Wed, 21 Oct 2020 15:14:04 GMT</pubDate>
            <atom:updated>2020-10-21T15:14:04.131Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*idDnB3w3mwG0cevdaOZm5g.png" /></figure><p>If you are using firebase in your android project you may receive an email tell you, You are not safe, you will be stolen from bad guys …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G71dOA207yL4flMCI_Imig.png" /></figure><p>This is an important email you should keep it in your mind and you must secure your firebase real-time database so how could we do this step</p><p><strong>First step</strong> you will create any secret key using the next <a href="https://www.random.org/strings/">website</a> for example the key you will use is [xyzzEE20] in our project give this key to your developers working on the same project android, ios …etc</p><p>You should have a project in your firebase now got to your <a href="https://console.firebase.google.com/">firebase console</a> and open <em>authentication-&gt;Sigin-method </em>and enable <a href="https://firebase.google.com/docs/auth/android/anonymous-auth#kotlin+ktx">Anonymous</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M6XOKWhx8SiVGzcr37ul_g.png" /></figure><p><strong>Second step</strong> we will add our code to sing-in users <a href="https://firebase.google.com/docs/auth/android/anonymous-auth#kotlin+ktx">Anonymous</a> in our app side</p><pre>dependencies {<br>    <strong>// Import the BoM for the Firebase platform<br>    implementation platform(&#39;com.google.firebase:firebase-bom:25.12.0&#39;)</strong><br><br>    <strong>// Declare the dependency for the Firebase Authentication library</strong><br>    // When using the BoM, you don&#39;t specify versions in Firebase library dependencies<br>    <strong>implementation &#39;com.google.firebase:firebase-auth-ktx&#39;</strong><br>}<br>hint --&gt; By using the <a href="https://firebase.google.com/docs/android/learn-more#bom">Firebase Android BoM</a>, your app will always use compatible versions of the Firebase Android libraries.</pre><p>in your activity or fragment</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5f1785d4faebef13a88466f562da382b/href">https://medium.com/media/5f1785d4faebef13a88466f562da382b/href</a></iframe><p>Now your app ready to sign-in users to your firebase realtime-database and it will be like next …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*P8GV1jAhH29A924z7X3I_g.png" /></figure><p><strong>Final step</strong> updating your firebase reules like as shown below</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/53ff780404e82db015074922107fed27/href">https://medium.com/media/53ff780404e82db015074922107fed27/href</a></iframe><p>if you have more children you should add them to your Rules to give access to all users logged-in Anonymously … Run your project and have a fun day with your code</p><p>Any feedback is welcome and appreciated :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccc1577b92c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Font Awesome how to use with an easy way]]></title>
            <link>https://medium.com/@programmerasi/font-awesome-how-to-use-with-an-easy-way-af6317c6b0ca?source=rss-5e16b872e5de------2</link>
            <guid isPermaLink="false">https://medium.com/p/af6317c6b0ca</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[font-awesome]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[anwar samer]]></dc:creator>
            <pubDate>Sun, 18 Aug 2019 07:16:45 GMT</pubDate>
            <atom:updated>2019-08-18T07:16:45.623Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are new in android or not <strong>Font Awesome</strong> one of the most important things that every android developer should know</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yQ_z9GOMmrD1w6eq5yo1UQ.png" /></figure><h3>What is font awesome ?</h3><p><strong>Font Awesome</strong> is a <a href="https://en.wikipedia.org/wiki/Font">font</a> and <a href="https://en.wikipedia.org/wiki/Icon_(computing)">icon</a> toolkit based on <a href="https://en.wikipedia.org/wiki/CSS">CSS</a> and <a href="https://en.wikipedia.org/wiki/Less_(stylesheet_language)">LESS</a>. It was made by Dave Gandy for use with <a href="https://en.wikipedia.org/wiki/Twitter_Bootstrap">Twitter Bootstrap</a>, and later was incorporated into the <a href="https://en.wikipedia.org/wiki/BootstrapCDN">BootstrapCDN</a>. Font Awesome has a 20% market share among those websites which use third-party Font Scripts on their platform, ranking it second place after <a href="https://en.wikipedia.org/wiki/Google_Fonts">Google Fonts</a></p><h3>How to Use Font awesome in next android project ?</h3><p>I have built an android library that will help you and make using of android font awesome more easy as following :</p><h3>Setup</h3><p>The lib is available on JitPack.io. Add the following to your build.gradle:</p><pre>dependencies {<br>	        implementation &#39;com.github.AnwarSamir:FontAwesome:1.0.1&#39;<br>	}</pre><p>then Add support JitPack repository in root build.gradle at the end of repositories:</p><pre>allprojects {<br>		repositories {<br>			...<br>			maven { url &#39;https://jitpack.io&#39; }<br>		}<br>	}</pre><h3>Implementation in your XML File</h3><p>All you will do 1- Instead of android TextView View you will replace it with</p><ul><li>for Solid Icons <a href="https://fontawesome.com/icons?d=gallery&amp;s=solid">link to solid icons !</a></li></ul><pre>&lt;com.asitrack.fontawesome2.FontAwesome.FontAwesomeSolidView<br>            android:layout_width=&quot;wrap_content&quot;<br>            android:layout_height=&quot;wrap_content&quot;<br>            android:text=&quot;&amp;#xf641;&quot; // you will put the code you get from fontawesome wesite in your text like --&gt;&quot;&amp;#x(your icon code);&quot;<br>            android:textSize=&quot;80sp&quot;<br>            android:textColor=&quot;@color/colorPrimary&quot;<br>            app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>            app:layout_constraintLeft_toLeftOf=&quot;parent&quot;<br>            app:layout_constraintRight_toRightOf=&quot;parent&quot;<br>            app:layout_constraintTop_toTopOf=&quot;parent&quot; app:layout_constraintHorizontal_bias=&quot;0.761&quot;<br>            app:layout_constraintVertical_bias=&quot;0.079&quot; android:id=&quot;@+id/fontAwesomeSolidView&quot;/&gt;</pre><ul><li>for Regular Icons <a href="https://fontawesome.com/icons?d=gallery&amp;s=regular">link to Regular icons !</a></li></ul><pre>&lt;com.asitrack.fontawesome2.FontAwesome.FontAwesomeRegularView<br>            android:layout_width=&quot;wrap_content&quot;<br>            android:layout_height=&quot;wrap_content&quot;<br>            android:text=&quot;&amp;#xf2b9;&quot;  // you will put the code you get from fontawesome wesite in your text like --&gt;&quot;&amp;#x(your icon code);&quot;<br>            android:textSize=&quot;80sp&quot;<br>            android:textColor=&quot;@color/colorPrimary&quot;<br>            app:layout_constraintBottom_toBottomOf=&quot;parent&quot;<br>            app:layout_constraintLeft_toLeftOf=&quot;parent&quot;<br>            app:layout_constraintRight_toRightOf=&quot;parent&quot;<br>            app:layout_constraintTop_toTopOf=&quot;parent&quot; app:layout_constraintHorizontal_bias=&quot;0.761&quot;<br>            app:layout_constraintVertical_bias=&quot;0.079&quot; android:id=&quot;@+id/fontAwesomeSolidView&quot;/&gt;</pre><h3>Implemntation in your JAVA/KOTLIN Files</h3><ul><li>you will use next method that take 1- Your context 2- Text view defined in your java file to apply font awesome on it 3- Font awesome code “\u(Your font awesome code)” 4- Color to apply on your android text view</li><li>for Regular Icons <a href="https://fontawesome.com/icons?d=gallery&amp;s=regular">link to Regular icons !</a></li></ul><pre>FontAwesomeUtils.changeFontAwesomeForRegularIconColor(this,textView,&quot;\uF057&quot;,<br>            resources.getColor(R.color.colorPrimary))</pre><ul><li>for Solid Icons <a href="https://fontawesome.com/icons?d=gallery&amp;s=solid">link to solid icons !</a></li></ul><pre>FontAwesomeUtils.changeFontAwesomeForSloidIconColor(this,textView,&quot;\uF057&quot;,<br>           resources.getColor(R.color.colorPrimary))<br>           </pre><p>If you have any issue you can add it on my android repo on <a href="https://github.com/AnwarSamir/FontAwesome"><strong>github</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af6317c6b0ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Difference Between API and Web Service]]></title>
            <link>https://medium.com/@programmerasi/difference-between-api-and-web-service-73c873573c9d?source=rss-5e16b872e5de------2</link>
            <guid isPermaLink="false">https://medium.com/p/73c873573c9d</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[restful]]></category>
            <dc:creator><![CDATA[anwar samer]]></dc:creator>
            <pubDate>Sat, 26 Aug 2017 18:17:51 GMT</pubDate>
            <atom:updated>2020-10-04T12:41:39.459Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*NbfbgItLI8Ujrj6L-8-_Sg.png" /></figure><p><strong>API vs Web Service</strong></p><p>API and Web service serve as a means of communication. The only difference is that a Web service facilitates interaction between two machines over a network. An API acts as an interface between two different applications so that they can communicate with each other. An API is a method by which the third-party vendors can write programs that interface easily with other programs. A Web service is designed to have an interface that is depicted in a machine-processable format usually specified in Web Service Description Language (WSDL). Typically, “HTTP” is the most commonly used <a href="http://www.differencebetween.net/category/technology/protocols-formats/">protocol</a> for communication. Web service also uses SOAP, <a href="http://www.differencebetween.net/technology/internet/difference-between-rest-and-soap/">REST</a>, and XML-RPC as a means of communication. API may use any means of communication to initiate interaction between applications. For example, the <a href="http://www.differencebetween.net/miscellaneous/difference-between-caste-system-and-class-system/">system</a> calls are invoked using interrupts by the <a href="http://www.differencebetween.net/technology/difference-between-ubuntu-and-linux/">Linux</a> kernel API.</p><p>An API exactly defines the methods for one <a href="http://www.differencebetween.net/category/technology/software-technology/">software</a> program to interact with the other. When this action involves sending <a href="http://www.differencebetween.net/technology/difference-between-data-warehousing-and-data-marts/">data</a> over a network, Web services come into the picture. An API generally involves calling functions from within a software program.</p><p>In case of Web applications, the API used is web based. Desktop applications such as spreadsheets and word documents use VBA and COM-based APIs which don’t involve Web service. A <a href="http://www.differencebetween.net/technology/software-technology/difference-between-application-server-and-web-server/">server</a> application such as Joomla may use a PHP-based API present within the server which doesn’t require Web service.</p><p>A Web service is merely an API wrapped in HTTP. An API doesn’t always need to be web based. An API consists of a complete set of rules and specifications for a software program to follow in order to facilitate interaction. A Web service might not contain a complete set of specifications and sometimes might not be able to perform all the tasks that may be possible from a complete API.</p><p>The APIs can be exposed in a number of ways which include: COM objects, DLL and .H files in C/C++ programming language, JAR files or RMI in Java, <a href="http://www.differencebetween.net/technology/difference-between-xml-and-xsd/">XML</a> over HTTP, JSON over HTTP, etc. The method used by Web service to expose the API is strictly through a network.</p><p>Summary:</p><p>1. All Web services are APIs but all APIs are not Web services.</p><p>2. Web services might not perform all the operations that an API <a href="http://www.differencebetween.net/language/difference-between-would-and-should/">would</a> perform.</p><p>3. A Web service uses only three styles of use: SOAP, REST and XML-RPC for</p><p>communication whereas API may use any style for communication.</p><p>4. A Web service always needs a network for its operation whereas an API doesn’t need</p><p>a network for its operation.</p><p>5. An API facilitates interfacing directly with an application whereas a Web service interacts with two machines over a network.</p><p>6.web service is like advanced Urls and API is Programmed Interface.</p><p>7.API contains classes and Interfaces just like a program.</p><p>8.A web service is a form of API (Application Programming Interface).</p><p>9.An API is used by a computer programmer to establish a link between software applications. This interface can take several forms, a web service is just one of these.</p><p>10.There are several types of web service. SOAP (Simple Object Access Protocol) is one of the most common. The API takes the form of a service description (WSDL) which is used to automatically generate the program code which makes the connection.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73c873573c9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Font awesome ! how to implement it in you next android app ?]]></title>
            <link>https://medium.com/@programmerasi/font-awesome-how-to-implement-it-in-you-next-android-app-f2b6b351224f?source=rss-5e16b872e5de------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2b6b351224f</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[font-awesome]]></category>
            <dc:creator><![CDATA[anwar samer]]></dc:creator>
            <pubDate>Sat, 22 Apr 2017 21:02:03 GMT</pubDate>
            <atom:updated>2017-04-22T21:02:03.432Z</atom:updated>
            <content:encoded><![CDATA[<p>if you want to build an awesome android app you should build beautiful UI<br>in order to do this you can use icons in your android app like that on your settings or to represent some thing like e-mail icon .</p><p>But if you want to use image you should keep in your mind all screen density of your android app for <strong>example email account icon</strong> should be putted into different folder in your res directory such as drawable-xxhdpi .</p><p>so how you can solve this problem by using android text view let us start on this ….</p><h4>Go to font <a href="http://fontawesome.io/?utm_source=hackernewsletter">awesome website</a> then click on download like on the picture below</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*CAMi25fDiAwmT95wzqmASQ.png" /></figure><blockquote>then you will extract the your zip file then you will open the folder and only we will use file with name <strong><em>fontawesome-webfont.ttf .</em></strong></blockquote><p>Now create new android project then make new directory under main directory with name <strong>assets</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*KifwwLYPEn7F8xYaOZtNWg.png" /></figure><p>now just copy past your <strong><em>fontawesome-webfont.ttf</em></strong></p><p>Now Place FontAwesome Icons Code in Strings.xml File from next link just copy past <a href="http://fontawesome.io/icons/">Unicode</a> of the font like next ..</p><blockquote>&lt;resources&gt; &lt;string name=”app_name”&gt;FontAwesome Icons In Android Application&lt;/string&gt; &lt;string name=”font_awesome_android_icon”&gt;&amp;#xf17b;&lt;/string&gt; &lt;string name=”font_awesome_area_chart_icon”&gt;&amp;#xf1fe;&lt;/string&gt; &lt;string name=”font_awesome_cubes_icon”&gt;&amp;#xf1b3;&lt;/string&gt; &lt;string name=”font_awesome_mobile_phone_icon”&gt;&amp;#xf10b;&lt;/string&gt;&lt;/resources&gt;</blockquote><h3>Insert FontAwesome Icons in Layouts File</h3><p>In android layout file, add TextViews, Buttons, etc. to place font awesome icons wherever you want. Sample XML layouts file of android application looks like this.</p><pre>&lt;?xml version=”1.0&quot; encoding=”utf-8&quot;?&gt;<br>&lt;LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android&quot; xmlns:tools=”http://schemas.android.com/tools&quot; android:layout_width=”match_parent” android:layout_height=”match_parent” android:orientation=”vertical” android:paddingBottom=”@dimen/activity_vertical_margin” android:paddingLeft=”@dimen/activity_horizontal_margin” android:paddingRight=”@dimen/activity_horizontal_margin” android:paddingTop=”@dimen/activity_vertical_margin” tools:context=”viralandroid.com.fontawesomeiconsinandroidapplication.MainActivity”&gt;<br> &lt;TextView android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_marginBottom=”16dp” android:text=”Font Awesome Icons in Android” android:textSize=”20sp” /&gt; &lt;LinearLayout android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:orientation=”horizontal”&gt; <br>&lt;TextView android:id=”@+id/font_awesome_android_icon” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_weight=”1&quot; android:gravity=”center_horizontal” android:text=”@string/font_awesome_android_icon” android:textColor=”#80d204&quot; android:textSize=”50sp” /&gt; <br>&lt;TextView android:id=”@+id/font_awesome_area_chart_icon” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_weight=”1&quot; android:gravity=”center_horizontal” android:text=”@string/font_awesome_area_chart_icon” android:textColor=”#0491d2&quot; android:textSize=”50sp” /&gt;<br> &lt;TextView android:id=”@+id/font_awesome_cubes_icon” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_weight=”1&quot; android:gravity=”center_horizontal” android:text=”@string/font_awesome_cubes_icon” android:textColor=”#d27c04&quot; android:textSize=”50sp” /&gt; &lt;/LinearLayout&gt;<br> &lt;TextView android:id=”@+id/font_awesome_mobile_phone_icon” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:layout_marginTop=”30dp” android:gravity=”center_horizontal” android:text=”@string/font_awesome_mobile_phone_icon” android:textColor=”#02a342&quot; android:textSize=”200sp” /&gt; &lt;/LinearLayout&gt;</pre><p>Your layout is ready; it’s time to work in our java activity file to make working by font awesome fonts. Open your java activity file i.e. MainActivity.java file and place little bit code in<strong> onCreate</strong> method. MainActivity.java file will looks like below.</p><pre>import android.graphics.Typeface;<br>import android.os.Bundle;<br>import android.support.v7.app.AppCompatActivity;<br>import android.widget.TextView; <br>public class MainActivity extends AppCompatActivity {<br> @Override<br> protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);<br> Typeface fontAwesomeFont = Typeface.createFromAsset(getAssets(), “fontawesome-webfont.ttf”);<br> TextView fontAwesomeAndroidIcon = (TextView) findViewById(R.id.font_awesome_android_icon);<br> TextView fontAwesomeAreaChartIcon = (TextView) findViewById(R.id.font_awesome_area_chart_icon); <br>TextView fontAwesomeCubesIcon = (TextView) findViewById(R.id.font_awesome_cubes_icon); <br>TextView fontAwesomeMobilePhoneIcon = (TextView) findViewById(R.id.font_awesome_mobile_phone_icon); fontAwesomeAndroidIcon.setTypeface(fontAwesomeFont); fontAwesomeAreaChartIcon.setTypeface(fontAwesomeFont); fontAwesomeCubesIcon.setTypeface(fontAwesomeFont); fontAwesomeMobilePhoneIcon.setTypeface(fontAwesomeFont); <br>}}</pre><p><strong>Now run your awesome font awesome app you will get</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*JKzwoCHXBqZddmyy_4PNmw.png" /><figcaption>output of the application</figcaption></figure><p>THANKS A LOT</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2b6b351224f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using SharedExperience]]></title>
            <link>https://medium.com/@programmerasi/using-sharedexperience-9a04922b1e89?source=rss-5e16b872e5de------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a04922b1e89</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[anwar samer]]></dc:creator>
            <pubDate>Tue, 31 May 2016 21:07:29 GMT</pubDate>
            <atom:updated>2016-05-31T21:07:29.942Z</atom:updated>
            <content:encoded><![CDATA[<p>One day when I start learn to program i have asked a lot of people about the way that I should start to learn and what is the best programming language should I learn. But before I ask anyone I search a lot of time and i waste my time one starting the things not helpful for me. From this time i have idea of how can I help other people in order to learn anything new for them then I convert this idea to real android application called <a href="https://goo.gl/wUOMim"><strong>SharedExperience</strong></a>.</p><p><em>Share experience is free application help you to find expert people at different fields. This application save your time as you will find what you need at different level. If you want to learn anything open our application and see what expert people say about the field you want to learn. See what they share from books, videos and sites. Start now to learn from expert and share with people your experience.</em></p><p>Start now to help people and share what you learn …<br><a href="https://goo.gl/wUOMim">https://goo.gl/wUOMim</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0YSzuX-aJK3gOpgAEDAv3A.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a04922b1e89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AndyRoid how to Start in android programing ??]]></title>
            <link>https://medium.com/@programmerasi/andyroid-how-to-start-in-android-programing-6359d1642e2f?source=rss-5e16b872e5de------2</link>
            <guid isPermaLink="false">https://medium.com/p/6359d1642e2f</guid>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[anwar samer]]></dc:creator>
            <pubDate>Mon, 07 Mar 2016 20:42:25 GMT</pubDate>
            <atom:updated>2016-03-07T20:42:25.228Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Android now one of the most important thing in the world and if you need to start to make your apps AndyRoid get links for you to start in this filed</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*CQU9hYT8AOTfAOpw.png" /></figure><p><strong>First you need to download Android studio IDE and SDK</strong></p><p><em>Originally published at </em><a href="http://andyroid4codding.blogspot.com.eg/2015/10/andyroid-how-to-start-in-android.html"><em>andyroid4codding.blogspot.com.eg</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6359d1642e2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why we must stop using facebook!]]></title>
            <link>https://medium.com/@programmerasi/why-we-must-stop-using-facebook-5ba3422384d2?source=rss-5e16b872e5de------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ba3422384d2</guid>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[meditation]]></category>
            <category><![CDATA[thinking]]></category>
            <dc:creator><![CDATA[anwar samer]]></dc:creator>
            <pubDate>Sun, 06 Mar 2016 16:43:04 GMT</pubDate>
            <atom:updated>2016-03-06T16:43:04.972Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*ZSmSvrvDxv6cksju9xZJwQ.jpeg" /></figure><p>Never waste your time this title should be the main title of this article, but in my opinion to achieve this point we should search in things that waste our time and delete all of them from our life .</p><p><strong>Facebook </strong>is one of the most bad things that waste our time this for me and i think for a lot of people .</p><p>Every one of us should ask himself why we use facebook?</p><blockquote>if the answer is for share unuseful posts , share every moment in your life that not important for me ,take photo and share it on all social media and see what people share all of this things not important you should think about your time .</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*li0GtmPptbhXEmXD0y8e_A.jpeg" /></figure><p><strong><em>Do things that help your self and others</em></strong></p><h4>So now stop using it</h4><p>Start to found something useful ,think, Meditation and never waste your time :).</p><p>read this <a href="https://www.psychologytoday.com/blog/sex-murder-and-the-meaning-life/201404/7-ways-facebook-is-bad-your-mental-health">article </a>about 7 Ways Facebook Is Bad for Your Mental Health</p><h4>Now i will give you some useful links will help you to learn something new</h4><p><a href="https://www.ted.com/">1- ted</a> 2-<a href="https://www.coursera.org/">coursera</a> 3-<a href="http://www.lynda.com/">lynda</a> and there is more and more just manage your time and find what is useful for you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ba3422384d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Never Ask unqualified people :) || متسالش الناس الغلط]]></title>
            <link>https://medium.com/@programmerasi/never-ask-unqualified-people-%D9%85%D8%AA%D8%B3%D8%A7%D9%84%D8%B4-%D8%A7%D9%84%D9%86%D8%A7%D8%B3-%D8%A7%D9%84%D8%BA%D9%84%D8%B7-8dde3f88dc44?source=rss-5e16b872e5de------2</link>
            <guid isPermaLink="false">https://medium.com/p/8dde3f88dc44</guid>
            <category><![CDATA[family]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[anwar samer]]></dc:creator>
            <pubDate>Sat, 05 Mar 2016 17:06:33 GMT</pubDate>
            <atom:updated>2016-03-05T17:06:33.694Z</atom:updated>
            <content:encoded><![CDATA[<p>Never Ask unqualified people :) || متسالش الناس الغلط</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*w0xIMqy7ujZpY7sM59JLBA.png" /><figcaption>متشدش في شعرك من الناس المتعصبه لاي شئ ابعد عنهم اول ما تعرفهم</figcaption></figure><p>كتير في حياتنا بنحب نعرف ايه هو الصح في اي مجال بنحبه بس للاسف</p><p>ممكن نسال الشخص اللي فعلا يتوهنا وميعرفناش ايه هو الصح من الغلط <br><strong>علي سبيل المثال تجربتي مع بدايه البرمجه <br>.كنت ديما مضطر اسال ناس هل اللي انا بعمله ده صح ولا لا هل اللغه دي كلغه برمجه ولا لا</strong></p><blockquote>طبعا كل واحد كان بيحب انه يطلع نفسه هو اللي صح وان الطريق اللي مشيه هو الطريق الصح وعشان يعمل كده كان ممكن يعيب او يفسد اللغات التانيه وده ما يعرف بالتعصب طبعا مش كل الناس كده فيهم فعلا اللي فاهم وعارف هو بيقول ايه بس فعلا من خلال الخبره الصغيره اللي عندي ادركت <strong>ان فعلا الدنيا مش متوقفه علي اني اسال حد الدنيا تطورت وبقت سهله مع الانفتاح اللي العالم بقا فيه</strong></blockquote><p>المهم اني عرفت فعلا يعني ايه تسال مين وازاي ولو ملقتش فعلا اللي ينقلك المعلومه الصح ازاي تعرف تدور علي النت وتستفاد منه</p><blockquote>مسلمش ودنك لاي حد وامشي ورا اللي بتحبه مش اللي الناس تقولك عليه</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8dde3f88dc44" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Implement Load More in #RecyclerView]]></title>
            <link>https://medium.com/@programmerasi/how-to-implement-load-more-in-recyclerview-3c6358297f4?source=rss-5e16b872e5de------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c6358297f4</guid>
            <category><![CDATA[recyclerview]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[anwar samer]]></dc:creator>
            <pubDate>Thu, 03 Mar 2016 12:17:29 GMT</pubDate>
            <atom:updated>2016-03-03T12:17:29.134Z</atom:updated>
            <content:encoded><![CDATA[<p>At all apps like <strong>facebook, Twitter …etc</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*RKrSio0kYfRupAGkj54NGA.jpeg" /></figure><p>you will notice that when you scroll down you will see progress bar and more data will loaded at this case we this app load only some of data and when user scroll more data will loaded</p><p><strong>Now we will Know how to do this in android studio</strong></p><p>1-<em>Start new project and name it what you want</em></p><p>2-<em>Open your </em><strong><em>build.gradle and add next </em></strong>dependencies</p><pre>compile &#39;com.android.support:recyclerview-v7:23.1.0&#39;<br>compile &#39;com.android.support:cardview-v7:23.1.0&#39;</pre><p>3-<em>At your main_activity .xml add the RecyclerView</em></p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;<br>    android:fitsSystemWindows=&quot;true&quot;<br>    android:orientation=&quot;vertical&quot;&gt;<br><br>  &lt;android.support.v7.widget.RecyclerView<br>        android:id=&quot;@+id/my_recycler_view&quot;<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;0dp&quot;<br>        android:layout_margin=&quot;5dp&quot;<br>        android:layout_weight=&quot;1&quot;<br>        android:scrollbars=&quot;vertical&quot; /&gt;<br><br><br>    &lt;TextView<br>        android:id=&quot;@+id/empty_view&quot;<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;match_parent&quot;<br>        android:gravity=&quot;center&quot;<br>        android:text=&quot;No Records&quot;<br>        android:visibility=&quot;gone&quot; /&gt;<br><br><br>&lt;/LinearLayout&gt;</pre><p>4-<em>Now under layout directory add new </em><strong><em>layout resource file and name it item.xml </em></strong><em>and add the following xml code</em></p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;android.support.v7.widget.CardView xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    xmlns:card_view=&quot;http://schemas.android.com/apk/res-auto&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;wrap_content&quot;<br>    android:orientation=&quot;horizontal&quot;<br>    card_view:cardCornerRadius=&quot;5dp&quot;<br>    card_view:cardUseCompatPadding=&quot;true&quot;&gt;<br><br>    &lt;RelativeLayout<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;match_parent&quot;<br>        android:background=&quot;?android:selectableItemBackground&quot;&gt;<br><br>        &lt;TextView<br>            android:id=&quot;@+id/tvName&quot;<br>            android:layout_width=&quot;match_parent&quot;<br>            android:layout_height=&quot;wrap_content&quot;<br>            android:layout_margin=&quot;5dp&quot;<br>            android:text=&quot;Name&quot;<br>            android:textColor=&quot;@android:color/black&quot;<br>            android:textSize=&quot;18sp&quot; /&gt;<br><br>        &lt;TextView<br>            android:id=&quot;@+id/tvEmailId&quot;<br>            android:layout_width=&quot;match_parent&quot;<br>            android:layout_height=&quot;wrap_content&quot;<br>            android:layout_below=&quot;@+id/tvName&quot;<br>            android:layout_margin=&quot;5dp&quot;<br>            android:text=&quot;Email Id&quot;<br>            android:textColor=&quot;@android:color/black&quot;<br>            android:textSize=&quot;12sp&quot; /&gt;<br>    &lt;/RelativeLayout&gt;<br><br>&lt;/android.support.v7.widget.CardView&gt;</pre><p>5- <em>At this step we will add out progress bar layout that will show when loade more data under layout directory add new </em><strong><em>layout resource file and name it progressbar.xml</em></strong></p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;<br>    android:orientation=&quot;vertical&quot; &gt;<br><br>    &lt;ProgressBar<br>        android:id=&quot;@+id/progressBar1&quot;<br>        android:layout_width=&quot;wrap_content&quot;<br>        android:layout_gravity=&quot;center_horizontal&quot;<br>        android:layout_height=&quot;wrap_content&quot; /&gt;<br><br>&lt;/LinearLayout&gt;</pre><p>6- <em>Add new class and name it </em><strong><em>Student.java </em></strong><em>it will be youe model and copy past the follwing code</em></p><pre>package com.asi.lodemorerecy;<br><br>import java.io.Serializable;<br><br>public class Student implements Serializable {<br><br>    private static final long <em>serialVersionUID </em>= 1L;<br><br>    private String name;<br><br>    private String emailId;<br><br>    public Student() {<br><br>    }<br>    public Student(String name, String emailId) {<br>        this.name = name;<br>        this.emailId = emailId;<br>    }<br><br>    public String getName() {<br>        return name;<br>    }<br><br>    public void setName(String name) {<br>        this.name = name;<br>    }<br><br>    public String getEmailId() {<br>        return emailId;<br>    }<br><br>    public void setEmailId(String emailId) {<br>        this.emailId = emailId;<br>    }<br><br><br>}</pre><p>7-<em>Now you will make new Interface to Implement the loade more by what you want </em><strong>OnLoadMoreListener </strong>copy past the next code at your interface</p><pre>package com.asi.lodemorerecy;<br><br>public interface OnLoadMoreListener {<br>    void onLoadMore();<br>}</pre><p>8-<em>Working on the recyclerview Adapter see the next code study it</em></p><p>and copy past on you <strong>Adapter</strong></p><pre>package com.asi.lodemorerecy;<br><br><br>import android.support.v7.widget.LinearLayoutManager;<br>import android.support.v7.widget.RecyclerView;<br>import android.view.LayoutInflater;<br>import android.view.View;<br>import android.view.View.OnClickListener;<br>import android.view.ViewGroup;<br>import android.widget.ProgressBar;<br>import android.widget.TextView;<br>import android.widget.Toast;<br><br>import java.util.List;<br><br><br><br>public class DataAdapter extends RecyclerView.Adapter {<br>private final int VIEW_ITEM = 1;<br>private final int VIEW_PROG = 0;<br><br>private List&lt;Student&gt; studentList;<br><br>// The minimum amount of items to have below your current scroll position<br>// before loading more.<br>private int visibleThreshold = 5;<br>private int lastVisibleItem, totalItemCount;<br>private boolean loading;<br>private OnLoadMoreListener onLoadMoreListener;<br><br><br><br>public DataAdapter(List&lt;Student&gt; students, RecyclerView recyclerView) {<br>        studentList = students;<br><br>        if (recyclerView.getLayoutManager() instanceof LinearLayoutManager) {<br><br>final LinearLayoutManager linearLayoutManager = (LinearLayoutManager) recyclerView<br>        .getLayoutManager();<br><br><br>        recyclerView<br>        .addOnScrollListener(new RecyclerView.OnScrollListener() {<br>@Override<br>public void onScrolled(RecyclerView recyclerView,<br>        int dx, int dy) {<br>        super.onScrolled(recyclerView, dx, dy);<br><br>        totalItemCount = linearLayoutManager.getItemCount();<br>        lastVisibleItem = linearLayoutManager<br>        .findLastVisibleItemPosition();<br>        if (!loading<br>        &amp;&amp; totalItemCount &lt;= (lastVisibleItem + visibleThreshold)) {<br>        // End has been reached<br>        // Do something<br>        if (onLoadMoreListener != null) {<br>        onLoadMoreListener.onLoadMore();<br>        }<br>        loading = true;<br>        }<br>        }<br>        });<br>        }<br>        }<br><br>@Override<br>public int getItemViewType(int position) {<br>        return studentList.get(position) != null ? VIEW_ITEM : VIEW_PROG;<br>        }<br><br>@Override<br>public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent,<br>        int viewType) {<br>        RecyclerView.ViewHolder vh;<br>        if (viewType == VIEW_ITEM) {<br>        View v = LayoutInflater.<em>from</em>(parent.getContext()).inflate(<br>        R.layout.<em>list_row</em>, parent, false);<br><br>        vh = new StudentViewHolder(v);<br>        } else {<br>        View v = LayoutInflater.<em>from</em>(parent.getContext()).inflate(<br>        R.layout.<em>progressbar_item</em>, parent, false);<br><br>        vh = new ProgressViewHolder(v);<br>        }<br>        return vh;<br>        }<br><br>@Override<br>public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {<br>        if (holder instanceof StudentViewHolder) {<br><br>        Student singleStudent= (Student) studentList.get(position);<br><br>        ((StudentViewHolder) holder).tvName.setText(singleStudent.getName());<br><br>        ((StudentViewHolder) holder).tvEmailId.setText(singleStudent.getEmailId());<br><br>        ((StudentViewHolder) holder).student= singleStudent;<br><br>        } else {<br>        ((ProgressViewHolder) holder).progressBar.setIndeterminate(true);<br>        }<br>        }<br><br>public void setLoaded() {<br>        loading = false;<br>        }<br><br>@Override<br>public int getItemCount() {<br>        return studentList.size();<br>        }<br><br>public void setOnLoadMoreListener(OnLoadMoreListener onLoadMoreListener) {<br>        this.onLoadMoreListener = onLoadMoreListener;<br>        }<br><br><br>//<br>public static class StudentViewHolder extends RecyclerView.ViewHolder {<br>    public TextView tvName;<br><br>    public TextView tvEmailId;<br><br>    public Student student;<br><br>    public StudentViewHolder(View v) {<br>        super(v);<br>        tvName = (TextView) v.findViewById(R.id.<em>tvName</em>);<br><br>        tvEmailId = (TextView) v.findViewById(R.id.<em>tvEmailId</em>);<br><br>        v.setOnClickListener(new OnClickListener() {<br><br>            @Override<br>            public void onClick(View v) {<br>                Toast.<em>makeText</em>(v.getContext(),<br>                        &quot;OnClick :&quot; + student.getName() + &quot; \n &quot;+student.getEmailId(),<br>                        Toast.<em>LENGTH_SHORT</em>).show();<br><br>            }<br>        });<br>    }<br>}<br><br>public static class ProgressViewHolder extends RecyclerView.ViewHolder {<br>    public ProgressBar progressBar;<br><br>    public ProgressViewHolder(View v) {<br>        super(v);<br>        progressBar = (ProgressBar) v.findViewById(R.id.<em>progressBar1</em>);<br>    }<br>}<br></pre><blockquote>9-<em>The final step at this tutorial is implement all we do befor at your </em><strong><em>MainActivity.java</em></strong></blockquote><pre>package com.asi.lodemorerecy;<br><br>import android.os.Bundle;<br>import android.os.Handler;<br>import android.support.v7.app.AppCompatActivity;<br>import android.support.v7.widget.LinearLayoutManager;<br>import android.support.v7.widget.RecyclerView;<br>import android.support.v7.widget.Toolbar;<br>import android.view.View;<br>import android.widget.TextView;<br><br>import java.util.ArrayList;<br>import java.util.List;<br>public class MainActivity  extends AppCompatActivity {<br><br>    private Toolbar toolbar;<br><br>    private TextView tvEmptyView;<br>    private RecyclerView mRecyclerView;<br>    private DataAdapter mAdapter;<br>    private LinearLayoutManager mLayoutManager;<br><br>    private List&lt;Student&gt; studentList;<br><br><br>    protected Handler handler;<br><br>    @Override<br>    protected void onCreate(Bundle savedInstanceState) {<br>        super.onCreate(savedInstanceState);<br>        setContentView(R.layout.<em>activity_main</em>);<br>        toolbar = (Toolbar) findViewById(R.id.<em>toolbar</em>);<br>        tvEmptyView = (TextView) findViewById(R.id.<em>empty_view</em>);<br>        mRecyclerView = (RecyclerView) findViewById(R.id.<em>my_recycler_view</em>);<br>        studentList = new ArrayList&lt;Student&gt;();<br>        handler = new Handler();<br>        if (toolbar != null) {<br>            setSupportActionBar(toolbar);<br>            getSupportActionBar().setTitle(&quot;Android Students&quot;);<br><br>        }<br><br>        loadData();<br><br>        // use this setting to improve performance if you know that changes<br>        // in content do not change the layout size of the RecyclerView<br>        mRecyclerView.setHasFixedSize(true);<br><br>        mLayoutManager = new LinearLayoutManager(this);<br><br>        // use a linear layout manager<br>        mRecyclerView.setLayoutManager(mLayoutManager);<br><br>        // create an Object for Adapter<br>        mAdapter = new DataAdapter(studentList, mRecyclerView);<br><br>        // set the adapter object to the Recyclerview<br>        mRecyclerView.setAdapter(mAdapter);<br>        //  mAdapter.notifyDataSetChanged();<br><br><br>        if (studentList.isEmpty()) {<br>            mRecyclerView.setVisibility(View.<em>GONE</em>);<br>            tvEmptyView.setVisibility(View.<em>VISIBLE</em>);<br><br>        } else {<br>            mRecyclerView.setVisibility(View.<em>VISIBLE</em>);<br>            tvEmptyView.setVisibility(View.<em>GONE</em>);<br>        }<br><br>        mAdapter.setOnLoadMoreListener(new OnLoadMoreListener() {<br>            @Override<br>            public void onLoadMore() {<br>                //add null , so the adapter will check view_type and show progress bar at bottom<br>                studentList.add(null);<br>                mAdapter.notifyItemInserted(studentList.size() - 1);<br><br>                handler.postDelayed(new Runnable() {<br>                    @Override<br>                    public void run() {<br>                        //   remove progress item<br>                        studentList.remove(studentList.size() - 1);<br>                        mAdapter.notifyItemRemoved(studentList.size());<br>                        //add items one by one<br>                        int start = studentList.size();<br>                        int end = start + 20;<br><br>                        for (int i = start + 1; i &lt;= end; i++) {<br>                            studentList.add(new Student(&quot;Student &quot; + i, &quot;AndroidStudent&quot; + i + &quot;@gmail.com&quot;));<br>                            mAdapter.notifyItemInserted(studentList.size());<br>                        }<br>                        mAdapter.setLoaded();<br>                        //or you can add all at once but do not forget to call mAdapter.notifyDataSetChanged();<br>                    }<br>                }, 2000);<br><br>            }<br>        });<br><br>    }<br><br><br>    // load initial data<br>    private void loadData() {<br><br>        for (int i = 1; i &lt;= 20; i++) {<br>            studentList.add(new Student(&quot;Student &quot; + i, &quot;androidstudent&quot; + i + &quot;@gmail.com&quot;));<br><br>        }<br><br><br>    }</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c6358297f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>