<?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 Göktürk Bilgetürk on Medium]]></title>
        <description><![CDATA[Stories by Göktürk Bilgetürk on Medium]]></description>
        <link>https://medium.com/@gbilgeturk?source=rss-390df07ebdc1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_aoBAW8vuOBBmF03UxWTqA.jpeg</url>
            <title>Stories by Göktürk Bilgetürk on Medium</title>
            <link>https://medium.com/@gbilgeturk?source=rss-390df07ebdc1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 05:23:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gbilgeturk/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[Kotlin — High-Order Function]]></title>
            <link>https://medium.com/@gbilgeturk/kotlin-high-order-function-da660eba5160?source=rss-390df07ebdc1------2</link>
            <guid isPermaLink="false">https://medium.com/p/da660eba5160</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Göktürk Bilgetürk]]></dc:creator>
            <pubDate>Sun, 15 Oct 2023 11:57:54 GMT</pubDate>
            <atom:updated>2023-10-15T11:57:54.123Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kotlin — High-Order Function</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hiV_JGpUTVqTZMNVGLn6hQ.png" /></figure><p>Before I talk about high order functions, I would like to talk about the old usage. Previously we used listeners to move data and return values ​​between classes. The most common usage was the operations related to which element clicked in click jobs in adapter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EK926D09Ewj-JywTe4Wzlg.png" /></figure><p>The class in which the adapter was created would be derived from an interface, and the process would be performed by calling the function in the listener in the click process by giving the instance to the adapter. The worst part of this method was that with time, everywhere in the application was filled with listener and it was difficult to control.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*WnwN-oBIFmiobc-E1uZogA.gif" /></figure><p>We get rid of this situation with higher order functions, which is only one of the blessings of Kotlin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wwPMVuqTyIbl8sG4ubMWlA.png" /></figure><p>The function we created with the name “highOrderFun” expects a function as a parameter. When we give the “helloWorldPrinter” function as a parameter, we can call it and perform our operations. Possible to make it nicer using lambda notation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SIB7Ce8OYAkv3qI9RL0nTg.png" /></figure><p>By opening the curly brackets at the bottom, you can do the things you would do in your function directly here.</p><p>If there is a place you think is missing or you want to contribute, please do feel free to <a href="https://www.linkedin.com/in/gbilgeturk/">contact me</a>.</p><p>Thanks for reading. If you like my article, please don’t forget to click 👏👏👏 to recommend it to others 🚀🚀🚀.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da660eba5160" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android — Build Types & Product Flavors]]></title>
            <link>https://medium.com/@gbilgeturk/android-build-types-product-flavors-a16fcba968be?source=rss-390df07ebdc1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a16fcba968be</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[gradle]]></category>
            <dc:creator><![CDATA[Göktürk Bilgetürk]]></dc:creator>
            <pubDate>Fri, 05 Aug 2022 17:59:08 GMT</pubDate>
            <atom:updated>2022-08-05T17:59:08.506Z</atom:updated>
            <content:encoded><![CDATA[<h3>Android — Build Types &amp; Product Flavors</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*BhO-3LREL3itU_8-TYBW9Q.png" /></figure><h3>1- What is Build Type?</h3><p>Once the new project is created, by default it consists of two build types/variants — <strong>debug, release</strong></p><p>We usually use the <strong>debug</strong> option when we are going to run the application directly from the IDE. We can think of it more as a <em>developer mode</em>. In <strong>release</strong> option, we need to sign APK. This option is mostly used in versions that are ready to be published on the <strong>Google Play Store</strong>. <em>ProGuard</em> rules settings are made inside to prevent reverse engineering.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4fad484c70a5b91ece5f719d3a9441c7/href">https://medium.com/media/4fad484c70a5b91ece5f719d3a9441c7/href</a></iframe><h3>2- What about Product Flavor?</h3><p>The product flavor allows the application to be divided into different versions. We can think of it like making <strong>pizza </strong>🍕. In fact, even if what we are making is pizza, we can offer different experiences by changing the thickness of the dough or the ingredients on the pizza. To give some concrete examples, let alone pizzas, we can do the following things using product flavor.</p><ul><li>We can separate the <em>paid/free</em> versions of the application.</li><li>We can set which <em>services</em> it will connect.</li><li>We can adjust its display by changing the<em> theme colors</em>.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a4035e5243c0bb0cca9325d323d01c4/href">https://medium.com/media/8a4035e5243c0bb0cca9325d323d01c4/href</a></iframe><p>After these changes, when you sync your project, you will see your combinations of build types and product flavors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*5GJ7bO4q3xWvBVE1A49oxg.png" /><figcaption>Sample Build Variants</figcaption></figure><h3>Conclusion</h3><p>Let’s finish our article with a real-life usage. We use a distribution tool such as App Center. With this tool, we send applications that look at both test services and live services to people who test our application.</p><pre>BuildConfig.<em>BASE_URL</em></pre><p>When we make a definition as above for the address we specified in Retrofit builder, we will have services that change with flavor.</p><p>If there is a place you think is missing or you want to contribute, please do feel free to <a href="https://www.linkedin.com/in/gbilgeturk/">contact me</a>.</p><p>Thanks for reading. If you like my article, please don’t forget to click 👏👏👏 to recommend it to others 🚀🚀🚀.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a16fcba968be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android — Shortcut Manager]]></title>
            <link>https://medium.com/@gbilgeturk/android-shortcut-manager-e88690eed200?source=rss-390df07ebdc1------2</link>
            <guid isPermaLink="false">https://medium.com/p/e88690eed200</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Göktürk Bilgetürk]]></dc:creator>
            <pubDate>Fri, 01 Jul 2022 14:16:11 GMT</pubDate>
            <atom:updated>2022-07-01T14:16:11.906Z</atom:updated>
            <content:encoded><![CDATA[<h3>Android — Shortcut Manager</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hsgQu39ENodBCe6a7W4GSw.jpeg" /></figure><p>I have prepared a coffee application to explain the <strong>Shortcut</strong>. In this application, user will be able to order coffee with using shortcuts.</p><h3>1-What’s App Shortcut ?</h3><p>Nowadays, users have become very lazy, they want to do the same or more work with less “clicks”. To handle this, there is a widget that <strong>Android</strong> offers. <strong>Shortcuts</strong> that allow us to perform certain actions in our application. It is used to open messages or create new posts in popular applications such as <strong>Twitter</strong> and <strong>Instagram</strong>.</p><h3>2-Requirements</h3><p>The App Shortcuts feature was included in <strong>Android 7.1.1</strong>. We can use<strong> <em>API 25+.</em></strong></p><h3>3-Shortcut Types</h3><p>Shortcut is used in three different ways.</p><ul><li>Static Shortcut</li><li>Dynamic Shortcut</li><li>Pinned Shortcut</li></ul><p>In this article, I will talk about static and dynamic shortcuts.</p><h4>3.1- Static Shortcut</h4><p>we need to create a xml resource file that contains the shortcuts. Sample shortcuts as follows. You can add more shortcuts by increasing &lt;shortcut/&gt; tags. The maximum number of shortcuts is five, but the ideal use is <strong>four</strong>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f41eb22c84cfa85cc4067a902a8f200/href">https://medium.com/media/3f41eb22c84cfa85cc4067a902a8f200/href</a></iframe><p>We need to add the xml file we created to the manifest.<strong> <em>The important point in this step is that we add it to the activity, which is the launcher.</em></strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a7f520d209e9d0f08abcba9d553d14c/href">https://medium.com/media/8a7f520d209e9d0f08abcba9d553d14c/href</a></iframe><p>Ratata! Cappuccino shortcut is ready to use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9f7vtuf7WctwBfzAdxxo3A.gif" /><figcaption>Static Cappuccino Shortcut</figcaption></figure><h4>3.2- Dynamic Shortcut</h4><p>We use the dynamic shortcut when we want to create a changing shortcut within the application. For example; the level of the game or the last person we messaged.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1fe55d5e6b984576e54a6c228f39c52e/href">https://medium.com/media/1fe55d5e6b984576e54a6c228f39c52e/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2EtL0dE_WawDjNoGfQIMow.gif" /><figcaption>Dynamic Mocha Shortcut</figcaption></figure><p>Voila! you can order mocha with dynamic shortcut.</p><h4>Bonus</h4><p>If you drag and drop the shortcut, you can put it anywhere on the screen like a separate application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*co3VGlP-qeQv-CB_Ef1quA.gif" /><figcaption>Drag and Drop Shortcut</figcaption></figure><p>You can visit github to review the whole project.</p><p><strong>Github: </strong><a href="https://github.com/gbilgeturk/ShortcutManager">https://github.com/gbilgeturk/ShortcutManager</a></p><p>If there is a place you think is missing or you want to contribute, please do feel free to contact me.</p><p>Thanks for reading. If you like my article, please don’t forget to click 👏👏👏 to recommend it to others 👏👏👏.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e88690eed200" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>