<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nedim</title>
    <description>The latest articles on DEV Community by Nedim (@_nedimf).</description>
    <link>https://dev.to/_nedimf</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F205756%2F884ee87a-52df-44b5-be4f-a513066eddd6.png</url>
      <title>DEV Community: Nedim</title>
      <link>https://dev.to/_nedimf</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_nedimf"/>
    <language>en</language>
    <item>
      <title>Maildroid </title>
      <dc:creator>Nedim</dc:creator>
      <pubDate>Mon, 12 Aug 2019 18:04:03 +0000</pubDate>
      <link>https://dev.to/_nedimf/maildroid-mf0</link>
      <guid>https://dev.to/_nedimf/maildroid-mf0</guid>
      <description>&lt;h2&gt;
  
  
  How to send email in Android
&lt;/h2&gt;

&lt;p&gt;Sending email in android is not really an easy task, but with using Maildroid library it takes seconds &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Library&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://github.com/nedimf/maildroid/"&gt;https://github.com/nedimf/maildroid/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Libary got great attraction on &lt;a href="https://www.reddit.com/r/androiddev/comments/cotfeb/maildroid_new_email_library/"&gt;r/androiddev&lt;/a&gt; so here it is how it works ♥️&lt;/p&gt;
&lt;h2&gt;
  
  
  Start
&lt;/h2&gt;



&lt;p&gt;Add this to your root.gradle file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight gradle"&gt;&lt;code&gt;&lt;span class="k"&gt;allprojects&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;repositories&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
            &lt;span class="o"&gt;...&lt;/span&gt;
            &lt;span class="n"&gt;maven&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="s1"&gt;'https://jitpack.io'&lt;/span&gt; &lt;span class="o"&gt;}&lt;/span&gt;
        &lt;span class="o"&gt;}&lt;/span&gt;
    &lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Add dependency&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight gradle"&gt;&lt;code&gt;
&lt;span class="k"&gt;dependencies&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;implementation&lt;/span&gt; &lt;span class="s1"&gt;'com.github.nedimf:maildroid:0.0.1'&lt;/span&gt;
          &lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  Adding Maildroid to your app
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight kotlin"&gt;&lt;code&gt;  &lt;span class="nc"&gt;MaildroidX&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Builder&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;smtp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;//Add your smtp provider&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;smtpUsername&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; 
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;smtpPassword&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;smtpAuthentication&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="c1"&gt;//true&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;port&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;type&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;MaildroidX&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;HTML&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;//Type of email&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;subject&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;body&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;onCompleteCallback&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;object&lt;/span&gt; &lt;span class="err"&gt;: &lt;/span&gt;&lt;span class="nc"&gt;MaildroidX&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;onCompleteCallback&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="k"&gt;override&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;onSuccess&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="c1"&gt;//Place for your code when email is sent successfully!&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;
                &lt;span class="k"&gt;override&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;onFail&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                   &lt;span class="c1"&gt;//Place for your code when email is not sent!&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="mi"&gt;3000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mail&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h4&gt;
  
  
  Testing
&lt;/h4&gt;

&lt;p&gt;Create account on [mailtrap](&lt;a href="https://mailtrap.io/"&gt;https://mailtrap.io/&lt;/a&gt; to test your emails. T&lt;br&gt;
Add username and password in those constructor field.&lt;/p&gt;

</description>
      <category>android</category>
      <category>library</category>
      <category>beginners</category>
      <category>kotlin</category>
    </item>
    <item>
      <title>My own android library?</title>
      <dc:creator>Nedim</dc:creator>
      <pubDate>Fri, 02 Aug 2019 15:12:37 +0000</pubDate>
      <link>https://dev.to/_nedimf/my-own-android-library-3n3j</link>
      <guid>https://dev.to/_nedimf/my-own-android-library-3n3j</guid>
      <description>&lt;h3&gt;
  
  
  Introduction to  topic
&lt;/h3&gt;

&lt;p&gt;I am doing android development for over one and half year.  I have been making app after app using different third libraries to achieve my end goal and getting all sorts of app features figured out.&lt;br&gt;
In latest android app that I am building for client, little thought crossed my  mind. What if I wanted to change behavior of the library and add my functions to it?&lt;br&gt;
What then happens?&lt;/p&gt;

&lt;h3&gt;
  
  
  Eureka part
&lt;/h3&gt;

&lt;p&gt;If you have good grap of Java or Kotlin this will be easy to follow. If not go build more apps and get better at it.Then come back here I promise we won't run away.&lt;/p&gt;

&lt;p&gt;We need that one thing changed or library is really great but kind of buggy we are on mission to fix it.  First step check if wanted library is open source . Open source means that we can do what ever we want with it in terms of coding of course.&lt;/p&gt;

&lt;h4&gt;
  
  
  Follow trough
&lt;/h4&gt;

&lt;p&gt;What are steps we need to take to get our own version of library.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fork the existing project or clone project you wanna change and push it new repository on Bitbucket or Github&lt;/li&gt;
&lt;li&gt;Go to file you want a change ,in our example we want to change only res value of the library.&lt;/li&gt;
&lt;li&gt;Save changes&lt;/li&gt;
&lt;li&gt;Go to &lt;a href="https://jitpack.io"&gt;JitPack&lt;/a&gt; and sign in with your Github account.&lt;/li&gt;
&lt;li&gt;Add name of your project to Lookup spot [username]/[NameOfTheLib]&lt;/li&gt;
&lt;li&gt;Get version and click on GET it button &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now you have all parts to use and implement it in your app&lt;/p&gt;

&lt;h3&gt;
  
  
  End result
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Add  &lt;a href="https://jitpack.io"&gt;JitPack&lt;/a&gt; in your app &lt;strong&gt;build.gradle&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    allprojects {
        repositories {
            ...
            maven { url 'https://jitpack.io' }
        }
    }
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Implementation in app
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dependencies {
            implementation 'com.github.username:LibName:Tag'
    }
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Source &lt;a href="https://nedim.co/article/id/bm68aj3665ykkllh2b1c"&gt;nedim.co&lt;/a&gt;&lt;/p&gt;

</description>
      <category>android</category>
      <category>lib</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
