<?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 Hüseyin Aslan on Medium]]></title>
        <description><![CDATA[Stories by Hüseyin Aslan on Medium]]></description>
        <link>https://medium.com/@ulbyy?source=rss-e42022b4b9b9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PMfBiD56Mp33xVO0PXQkkg.jpeg</url>
            <title>Stories by Hüseyin Aslan on Medium</title>
            <link>https://medium.com/@ulbyy?source=rss-e42022b4b9b9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:24:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ulbyy/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[Flutter’a Giriş]]></title>
            <link>https://medium.com/multinetinventiv/fluttera-giri%C5%9F-b8580e04dba7?source=rss-e42022b4b9b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8580e04dba7</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[türkçe]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Hüseyin Aslan]]></dc:creator>
            <pubDate>Fri, 07 Jan 2022 13:46:52 GMT</pubDate>
            <atom:updated>2022-01-07T16:11:50.236Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3YDerSf82hWzo8pVimKGQw.jpeg" /></figure><h3>Flutter Nedir?</h3><p>Flutter, Google tarafından oluşturulan ve Mayıs 2017&#39;de yayınlanan ücretsiz ve açık kaynaklı, mobil, web ve masaüstü uygulamaları geliştirmek için kullanabileceğiniz bir mobil UI frameworktür.</p><p>Flutter cross bir platformdur, aynı altyapıyı kullanarak hem IOS hemde Android tabanlı uygulamalar geliştirebilirsiniz.</p><p>Flutter <strong>Dart</strong> adında bir programlama dili kullanılır. Dil Google tarafından Ekim 2011&#39;de oluşturulmuştur.</p><h3>Flutter Kurulumu Nasıl Yapılır?</h3><p>İlk olarak <a href="https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_2.8.1-stable.zip">Flutter SDK</a>’yı indirmeniz gerekiyor.</p><p>İndirilme işlemi tamamlandıktan sonra SDK’yı Desktop üzerinde oluşturduğunuz bir Folder’a çıkarmanız gerekmektedir.</p><p>Çıkarma işlemi tamamlandıktan sonra terminal üzerinden Flutter komutlarını çalıştırabilmeniz için Shell’e ekmeniz gerekmektedir. Path güncellemenin nasıl yapıldığına <a href="https://docs.flutter.dev/get-started/install/macos#update-your-path">buradan</a> ulaşabilirsiniz.</p><p>Sonrasında terminalden flutter doctor komutunu çalıştırmanız gerekmektedir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HHDWudyC-RZi4_hoPJ7qdg.png" /></figure><p>Android Studio üzerinde gerekli kurulumlar sağlanacağı için yukarıdaki hataları çözümlemek gerekecektir.</p><p><strong><em>1-cmdline-tools component is missing hatası</em></strong></p><p>Android Studio üzerinden SDK Manager -&gt; SDK Tools -&gt;Android SDK Command-line Tools’un kulumunu yapmanız gerekmektedir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6CLcC6zHqxF6K_OztSFy8w.png" /></figure><p><strong><em>2-Android license status unknown hatası</em></strong></p><p>Hatanın çözümü için flutter doctor --android-licenses<strong> </strong>komutunu çalıştırmanız gerekmektedir.</p><p><strong><em>3-CocoaPods not installed hatası</em></strong></p><p>Android Studio üzerinden devam edecekseniz bu hatayı düzeltmenize gerek yoktur.</p><h3>Android Studio Üzerinde Flutter Projesi Nasıl Çalıştırılır?</h3><p>Hatalar çözümlendikten sonra Android Studio üzerinde Plugin kurulumlarının yapılması gerekiyor. <strong>Flutter</strong> ve <strong>Dart</strong> pluginleri kurulumları yapılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5VlvM2IAsz5XfOcCf0_lTA.png" /></figure><p>Kurulumlar tamamlandıktan sonra Android Studio üzerinden New Flutter Project seçilir. Sonrasında gelen ekranda Flutter SDK Path’i seçilir.(Daha önceden indirilen dosya konumudur.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yRqPICFJuDeXr9BboFZNiQ.png" /></figure><p>Next butonuna tıkladıktan sonraki ekranda proje ayarları tamamlanır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9BZxAYYiixe3SLC7AcRmyA.png" /></figure><p>Finish dedikten sonra uygulama run edilerek Flutter projesinin çalışması sağlanır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*LGfagJSmgOaM30wXvq0azw.png" /></figure><p>Flutter cross platform uygulama geliştirmek için yaygın olarak kullanılmaktadır. Daha detaylı incelemek isterseniz <a href="https://docs.flutter.dev/">buradan</a> dökümantasyon’a ulabilirsiniz.</p><h3>Kaynaklar</h3><p><a href="https://docs.flutter.dev/">https://docs.flutter.dev</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8580e04dba7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/multinetinventiv/fluttera-giri%C5%9F-b8580e04dba7">Flutter’a Giriş</a> was originally published in <a href="https://medium.com/multinetinventiv">inventiv</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring Boot ile REST Servis Geliştirmesi]]></title>
            <link>https://medium.com/multinetinventiv/spring-boot-ile-rest-servis-%C3%A7a%C4%9F%C4%B1r%C4%B1m%C4%B1-c96201971d93?source=rss-e42022b4b9b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c96201971d93</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[restful-api]]></category>
            <category><![CDATA[rest]]></category>
            <category><![CDATA[türkçe]]></category>
            <dc:creator><![CDATA[Hüseyin Aslan]]></dc:creator>
            <pubDate>Sun, 27 Jun 2021 10:05:03 GMT</pubDate>
            <atom:updated>2022-01-19T07:29:31.807Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dlh3H3ZjnvYFWy2ied9WNA.png" /></figure><h3><strong>1. Başlangıç</strong></h3><p>Başlangıç için bir IDE seçilmesi gerekiyor. Birden fazla IDE seçeneği mevcuttur.</p><ul><li>IntelliJ IDEA (Ücretli olup, Spring geliştirmesi için en ideal IDE’dir.)</li><li>Spring Tools (Ücretsiz olup Eclipse, VSCode ve Theia için entegrasyonları mevcuttur.)</li><li>NetBeans (Ücretsiz olup, pluginler ile Spring desteği sağlar.)</li></ul><p>Bu projede ücretsiz <strong>Spring Tools (Eclipse) </strong>üzerinden ilerlenilecektir.</p><h4>1.1 Kurulum</h4><p>İlk olarak <a href="https://spring.io/tools">Spring Tools (Eclipse)</a> indirilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rMdr3f274LvwxlQ-l3HAbg.png" /></figure><p>İndirme işlemi sonrasında kurulum tamamlanır. <strong>SpringToolSuite4</strong> çalıştırılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*mu9nsomVJf2_msvBeRvfeg.png" /></figure><p>Splash ekranından sonra <strong>Workspace</strong> seçme alanınında ilgili klasör seçimi yapılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*55flreIWsrNDv0MfDq1BoQ.png" /></figure><p>Workspace seçildikten sonra, <strong>SpringToolSuite4 </strong>başlangıç ekranıyla karşılaşılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iyX2H-uF8xugfeBfzCWS_g.png" /></figure><h4>1.2 Proje Template’nin Ayarlanması</h4><p>Proje kurulumu için <a href="https://start.spring.io/">Spring Initiliazr</a> kullanılır. Spring Initiliazr proje ayarlarını hızlı ve kolay bir şekilde tamamlamamızı sağlar. Bu projede kullanılacak ayarlar aşağıdaki şekildedir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eEuZMTkERtmpXG1etYE-Wg.png" /></figure><p>Proje ayarları seçildikten sonra, Spring’in kullanıcak özellikleri <strong>ADD DEPENDENCIES</strong> bölümünden eklenir. Bu projede RESTful kullanacağı için <strong>Spring Web</strong> eklenir. Seçimler tamamdıktan sonra <strong>GENERATE </strong>butonuna tıklanılır. Sonrasında generate edilen proje .zip uzantılı olarak indirilir.</p><h4>1.3 Kotlin Plugin Kurulması</h4><p>Bu projede Kotlin kullanılacağı için SpringToolSuite4&#39;e Kotlin Plugin’i kurulmalıdır. Kurulum için;</p><p><strong>Help -&gt; Eclipse Market Place</strong> üzerinden <strong>Kotlin Plugin For Eclipse</strong> kurulur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uqn6k-E4bP0iPzxerbjguQ.png" /></figure><h4>1.4 Projenin Import Edilmesi</h4><p><strong>File -&gt; Import </strong>seçildikten sonra gelen ekrandan <strong>Maven -&gt; Existing Maven Project</strong> seçilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xxI3Z9qnaHzM6bERdx5vrA.png" /></figure><p><strong>Root Directory </strong>olarak demo projesinin klasörü seçilir ve <strong>Finish</strong> butonuna basılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DIwMgKPl8vvQVkrafa3VIQ.png" /></figure><h3>2.Projenin Çalıştırılması</h3><h4>2.1 Sunucunun başlatılması</h4><p>Proje build edildikten sonra Application sınıfı karşımıza çıkar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PPdPpgSjTwBH8t4Xdbq4qw.png" /></figure><p><strong>@SpringBootApplication -&gt;</strong>Bir yapılandırma sınıfı olduğunu bildirir.</p><p><strong>runApplication&lt;DemoApplication&gt;(*args) -&gt; U</strong>ygulamanızın önyüklemesini ve otomatik yapılandırmasını yapar. Bu durumda eklenmiş bir Tomcat sunucusunu başlatır.</p><p>Sunucunun başlatılması için terminalden ilgili projenin klasörüne gidilir. <strong>./mvnw spring-boot:run </strong>komutu çalıştırılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EvXlmi4hdMdB1c8mhk-xvQ.png" /></figure><p>Browserdan <strong>localhost:8080 </strong>adresine girildiğinde;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*urDybD5aktcF1m6UAnAgxg.png" /></figure><p>şeklinde bir ekran karşınıza çıkar. Bu ekran server’ın başarılı bir şekilde çalıştığını gösterir.</p><h4>2.2 Basit RESTful Servis Yazılması</h4><p>RESTful servisi yazılması için öncelikle Controller’un oluşturulması gerekir. Controller sunuya gelen isteklerin routing işlerini yönetir. Bu proje için oluşturulan <strong>PostController</strong> isimli Controller sınıfı aşağıdaki gibidir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*V2j2GzFsz-1fGW9CKnBM9g.png" /></figure><p><strong>@RestController -&gt; </strong>Spring uygulamasında bir RESTful denetleyicisi oluşturmak için açıklamanın nasıl kullanılacağını gösterir.</p><p><strong>@RequestMapping -&gt;</strong> HTTP isteklerini belirli işleyici yöntemlerine eşlemek için kullanılır.</p><p>Oluşturalan <strong>hello()</strong> method’u String veritipinde “Hello” yazısı dönmektedir.</p><p>Browserden<strong> localhost:8080/hello</strong> adresine girildiğinde artık bizim <strong>hello() </strong>methoduna gireceği için ekranda “Hello” yazısı görülecektir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*A2ubfiZvIZ-6sU3VkbnbMA.png" /></figure><p>Örnekler daha da genişletilebilir ama basit anlamda bir RESTful isteğini tanımlamış olduk.</p><p>Teşekkürler.</p><h4>KAYNAKLAR</h4><p><a href="https://spring.io/">https://spring.io/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c96201971d93" width="1" height="1" alt=""><hr><p><a href="https://medium.com/multinetinventiv/spring-boot-ile-rest-servis-%C3%A7a%C4%9F%C4%B1r%C4%B1m%C4%B1-c96201971d93">Spring Boot ile REST Servis Geliştirmesi</a> was originally published in <a href="https://medium.com/multinetinventiv">inventiv</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KTOR’LA WEB SERVİS GELİŞTİRMEK]]></title>
            <link>https://medium.com/multinetinventiv/ktorla-web-servi%CC%87s-geli%CC%87%C5%9Fti%CC%87rmek-b3469d38ba06?source=rss-e42022b4b9b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3469d38ba06</guid>
            <category><![CDATA[ktor]]></category>
            <category><![CDATA[rest]]></category>
            <category><![CDATA[türkçe]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[coroutine]]></category>
            <dc:creator><![CDATA[Hüseyin Aslan]]></dc:creator>
            <pubDate>Fri, 13 Nov 2020 14:15:23 GMT</pubDate>
            <atom:updated>2020-11-13T14:53:56.961Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*5LoQNLP3j0_RWm3Pg15AUA.jpeg" /></figure><blockquote><a href="https://medium.com/@uLbyy/ktora-gi%CC%87ri%CC%87%C5%9F-9b3c5debed06">Bir önceki makalemizde</a> Ktor kurulumunu anlatmıştık. Bu makalemizde veritabanına ekleme ve çıkarma işlemi ile web servis sunulacaktır.</blockquote><h3>Projede hangi dependency’ler kullanılmıştır?</h3><h4><a href="https://github.com/JetBrains/Exposed">Exposed</a></h4><p>Kotlin için yazılmış olan bir ORM framework’üdür.</p><h4><a href="https://github.com/h2database/h2database">H2</a></h4><p>Açık kaynak kodlu ve hızlı çalışan gömülü bir veritabanıdır.</p><h4><a href="https://github.com/brettwooldridge/HikariCP">HikariCP</a></h4><p>JDBC için yapılmış hızlı ve rahat kullanımı olan bağlantı havuzudur.</p><h4><a href="https://github.com/FasterXML/jackson">Jackson</a></h4><p>JSON serialization/deserialization için kullanılan bir dependency’dir.</p><h3>WEB SERVİSİN OLUŞTURULMASI</h3><p>Post servisini oluşturmak için aşağıdaki aşamaları uygulayacağız.</p><ol><li>Post modelinin oluşturulması</li><li>Posts tablosunun oluşturulması</li><li>Posts tablosunun veritabanında oluşturulması ve mock verilerin eklenmesi</li><li>Post repository’sinin oluşturulması</li><li>Post Controller’ın oluşturulması</li><li>Application modülünün oluşturulması</li></ol><h4>Model’in oluşturulması</h4><p>Post modelimizde başlık ve içerik alanları olacaktır. Bu alanların haricinde her bir Post’a özel eşsiz değerin tutulacağı id alanı açılmıştır.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e989b91618478d5bde23840d0231d60f/href">https://medium.com/media/e989b91618478d5bde23840d0231d60f/href</a></iframe><h4>Tablonun oluşturulması</h4><p><strong><em>id</em></strong> alanımız herbir post eklemesinden sonra artacak şekilde ayarlanmıştır ve Primary anahtar olarak atanmıştır.</p><p><strong><em>title</em> </strong>alanımız 255 karakterle sınırlandırılmıştır.</p><p><strong><em>content</em></strong> alanımız text olarak ayarlanmış olup herhangi bir sınır bulunmamaktadır.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c72a0229c61501618b322145fdc87067/href">https://medium.com/media/c72a0229c61501618b322145fdc87067/href</a></iframe><h4>Tablonun oluşturulması ve mock verilerin eklenmesi</h4><ul><li>H2 veritabanımıza bağlanacak DataSource oluşturulur.</li><li>Ardından bu DataSource’a bağlantı atılır.</li><li>Posts tablosu oluşturulur ve aşağıdaki iki adet mock veri eklenir.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/094c78a1bc8a5f65e897e504a474a412/href">https://medium.com/media/094c78a1bc8a5f65e897e504a474a412/href</a></iframe><h4>Repository’nin oluşturulması</h4><p>Post servisi için CRUD işlemlerini destekleyecek ORM fonksiyonları aşağıdaki şekilde yazılmıştır.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad2c1d23a61a44cd66f3f0cc4ee3494c/href">https://medium.com/media/ad2c1d23a61a44cd66f3f0cc4ee3494c/href</a></iframe><h4>Controller’ın oluşturulması</h4><p>/post endpoint’i altında yönlendirmelerimizi REST operasyonlarını destekleyecek bir biçimde ayarlıyoruz ve bu yönlendirmeler sonrasında çağırılacak servisleri kullanıyoruz.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/abe4c0ce60d7d64f8c7ebb3110fdf020/href">https://medium.com/media/abe4c0ce60d7d64f8c7ebb3110fdf020/href</a></iframe><h4>Modülün oluşturulması</h4><p>Uygulama ilk çalıştığında Netty gömülü sunucusunu çalıştırarak modülümüzü başlatır.Modülün başlama aşamasında kullandığımız özelliklerin konfigürasyonları yapılır.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c7efceed6cbdd84d8b92fdcdd8773925/href">https://medium.com/media/c7efceed6cbdd84d8b92fdcdd8773925/href</a></iframe><h4>Örnek servis isteği</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*xuUzqGzfwcCxzWNx-_UqWg.jpeg" /></figure><h3>Referanslar</h3><p><a href="https://ktor.io/docs/quickstart-index.html#hello-world">Quick Start - Help | Ktor 1.4.0</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3469d38ba06" width="1" height="1" alt=""><hr><p><a href="https://medium.com/multinetinventiv/ktorla-web-servi%CC%87s-geli%CC%87%C5%9Fti%CC%87rmek-b3469d38ba06">KTOR’LA WEB SERVİS GELİŞTİRMEK</a> was originally published in <a href="https://medium.com/multinetinventiv">inventiv</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KTOR’A GİRİŞ]]></title>
            <link>https://medium.com/multinetinventiv/ktora-gi%CC%87ri%CC%87%C5%9F-9b3c5debed06?source=rss-e42022b4b9b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b3c5debed06</guid>
            <category><![CDATA[türkçe]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[ktor]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Hüseyin Aslan]]></dc:creator>
            <pubDate>Fri, 13 Nov 2020 14:05:08 GMT</pubDate>
            <atom:updated>2020-11-13T14:53:49.111Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D_9G07tcM81z2S-E5w7QgA.png" /></figure><h3>Ktor Nedir?</h3><p>Ktor, web uygulamalarını, HTTP hizmetlerini, mobil ve tarayıcı uygulamalarını kolayca oluşturmak için tasarlanmış bir framework’tür. Kullanıcılara en iyi deneyimi sağlamak için modern bağlantılı uygulamaların asenkron olması gerekir ve Kotlin coroutines, bunu kolay ve anlaşılır bir şekilde yapmak için hazır yapılar sağlar.</p><p>Henüz o aşamada olmasa da, Ktor’un amacı bağlantılı uygulamalar için uçtan uca çoklu platform uygulama çatısı sağlamaktır. JavaScript, iOS ve Android istemcilerinin yanı sıra JVM istemci ve sunucu senaryoları da desteklenmektedir.</p><h3>Ktor Nasıl Kurulur?</h3><h4>1. IntelliJ IDE ailesiyle kurulum</h4><p>IntelliJ IDE ailesi Ktor kurulumunu bir plugin yardımıyla desteklemektedir. IntelliJ IDE’nin plugins kısmından kurulumu yapabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*2JWwsaN3DjqncpPHebOuHQ.jpeg" /></figure><p>Ktor plugin kurulumunu tamamladıktan sonra yeni proje oluşturmaya çalıştığımızda aşağıdaki gibi bir ekrandan istediğiniz başlangıç modüllerini oluşturabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*NM4SScA2TvbGGJDZ6ZvXgA.jpeg" /></figure><h4>2. Ktor sitesinden hazır proje oluşturmak</h4><p>IntelliJ IDE’si olmayan veya plugin yüklemek istemeyenler için başlangıç projesini <a href="https://start.ktor.io/#">Ktor sitesi</a> üzerinden oluşturabilmekteyiz. Siteye girdiğinizde aşağıdaki gibi bir ekranla karşılacaksınız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*jE4vcU8tO0sJ7VU-loQjiA.jpeg" /></figure><p>Buradan plugindeki gibi modül seçenekleriyle projenizi oluşturup, ilgili ayarları hazırlanmış bir şekilde indirip kullanabilirsiniz.</p><h3>Referanslar</h3><p><a href="https://ktor.io/docs/quickstart-index.html#hello-world">Quick Start - Help | Ktor 1.4.0</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b3c5debed06" width="1" height="1" alt=""><hr><p><a href="https://medium.com/multinetinventiv/ktora-gi%CC%87ri%CC%87%C5%9F-9b3c5debed06">KTOR’A GİRİŞ</a> was originally published in <a href="https://medium.com/multinetinventiv">inventiv</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Dark Mode Kullanımı]]></title>
            <link>https://medium.com/multinetinventiv/android-dark-mode-kullan%C4%B1m%C4%B1-1b3e7c0f0c6f?source=rss-e42022b4b9b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b3e7c0f0c6f</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[türkçe]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Hüseyin Aslan]]></dc:creator>
            <pubDate>Mon, 06 Jul 2020 11:12:35 GMT</pubDate>
            <atom:updated>2020-07-06T11:12:35.711Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*9WWw3KcDkngwxvJlIc7KXw.png" /></figure><p>Google I/O 2019 ile birlikte kullanıma sunulan <strong><em>Karanlık Tema</em> (</strong>Dark Theme<strong>)</strong> özelliği birçok uygulama tarafından aktif olarak kullanılmaktadır. Bu yazıda <strong><em>Karanlık Mod</em></strong> (Dark Mode) kullanımı ve avantajlarından bahsedeceğiz. Avantajlarından başlayalım.</p><h3>Karanlık Mod Avantajları</h3><ul><li>Güç kullanımını önemli bir ölçüde azaltmaktadır.</li><li>Parlak ışığa duyarlı olan kullanıcılar için görünürlüğü arttırır.</li><li>Cihazın düşük ışıklı bir ortamda kullanmasını kolaylaştırır.</li></ul><p>Şimdi biraz kullanımından bahsedelim.</p><p>Karanlık mod özelliğini kullanabilmemiz için hard-coded geliştirmelerden kaçınmamız gerekir. Kullanacağımız attribute’leri bir <strong><em>themes</em></strong> veya <strong><em>styles</em></strong> ile kullanmamız gerekir. Ayrıca uygulamanın teması çalışma anında kullanıcı tarafından değiştirilmek istenebilir. Değiştirme seçeneklerini aşağıdaki gibi sıralayabiliriz.</p><p><strong><em>Android 9</em></strong> veya önceki sürümlerde önerilen tema seçenekleri:</p><ul><li><strong>Light</strong></li><li><strong>Dark</strong></li><li><strong>Set by Battery Saver </strong><em>(the recommended default option)</em></li></ul><p><strong><em>Android 10</em></strong> ve üst sürümlerde önerilen tema seçenekleri:</p><ul><li><strong>Light</strong></li><li><strong>Dark</strong></li><li><strong>System default </strong><em>(the recommended default option)</em></li></ul><p>Biraz kod üzerinden ilerleyelim.</p><p>Öncelikle yeni bir proje oluşturuyoruz. Sonrasında <strong><em>activity_main.xml</em> </strong>içerisi’ne temayı değiştirebileceğimiz bir buton ekleyelim.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5f1401ce0b8bd15ae4eacef8b4e74448/href">https://medium.com/media/5f1401ce0b8bd15ae4eacef8b4e74448/href</a></iframe><p>Sonrasında <strong><em>AndroidManifest.xml</em></strong> içerinde kullanılan <strong>AppThem</strong>e’yı değiştirelim.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d86444ace9fbe4e7c3c423abb64aa8f8/href">https://medium.com/media/d86444ace9fbe4e7c3c423abb64aa8f8/href</a></iframe><blockquote>Burada istersek <a href="https://material.io/develop/android/theming/dark/"><strong>MaterialComponent</strong></a>’ler için kullanılan karanlık temayı da kullabiliriz.</blockquote><p>Şimdi <strong><em>MainActivity.kt</em></strong> içerisinde kullanıcının tema değişikliği yapabileceği bir <strong>AlertDialog</strong> tanımlayalım.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/99b347d8c7a79a224c27e853f66fb173/href">https://medium.com/media/99b347d8c7a79a224c27e853f66fb173/href</a></iframe><p>Şimdi sıra tema değişikliği için kullanacağımız <strong>AppCompatDelegate </strong>sınıfının kullanımına geldi. Bu sınıf içerisindeki <strong>setDefaultNightMode() </strong>statik metodunu kullanarak temayı isteğimiz gibi değiştirebiliriz. Aldığı parametreler aşağıdaki gibidir.</p><ul><li><strong>AppCompatDelegate.MODE_NIGHT_NO:</strong> Light temayı kullanmamızı sağlar.</li><li><strong>AppCompatDelegate.MODE_NIGHT_YES:</strong> Dark temayı kullanmamızı sağlar.</li><li><strong>AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM:</strong> Sistemde tanımlı olan temayı kullanmamızı sağlar.</li></ul><p>Şimdi <strong>changeThemeDialog</strong> metodumuzu yukarıdaki bilgilere göre düzenleyebiliriz.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d479f41dc322fbb350947f758ef1eaae/href">https://medium.com/media/d479f41dc322fbb350947f758ef1eaae/href</a></iframe><p>Şu an için uygulamanın temasını istediğimiz gibi değiştirebiliyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*IbasBYJu2Ulv0sTjvqZUyw.gif" /></figure><p>Yazdığımız kodları biraz daha düzenlemek istersek <strong>SharedPreferences</strong> kullanabiliriz. Öncelikle <strong>build.gradle</strong>’a</p><blockquote>implementation “androidx.preference:preference-ktx:1.1.1”</blockquote><p>eklememiz gerekiyor. Sonrasında <strong>ThemePrefs.kt </strong>sınıfını aşağıdaki şekilde oluşturabiliriz.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7a036d468527a99ddde6112a54b894dd/href">https://medium.com/media/7a036d468527a99ddde6112a54b894dd/href</a></iframe><p>Artık oluşturduğumuz <strong>ThemePrefs.kt </strong>sınıfını <strong>MainActivity.kt </strong>içerisinde kullanabiliriz. ThemePrefs<strong>’</strong>teki değere göre <strong>onCreate </strong>methodu içerisinde bir seçili tema kontrolü yapıyoruz ve AlertDialog’un selected item’ını buna göre belirliyoruz. Düzenlenmiş MainActivity.kt aşağıdaki gibidir.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cde3c7b8562fc85f2596da1e20911c27/href">https://medium.com/media/cde3c7b8562fc85f2596da1e20911c27/href</a></iframe><h3>Sonuç</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*m13vNEN06iRsD8xJO2USSA.gif" /></figure><h3>Referanslar</h3><p><a href="https://developer.android.com/guide/topics/ui/look-and-feel/darktheme">Dark theme | Android Developers</a></p><p><em>Okuduğunuz için teşekkürler.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b3e7c0f0c6f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/multinetinventiv/android-dark-mode-kullan%C4%B1m%C4%B1-1b3e7c0f0c6f">Android Dark Mode Kullanımı</a> was originally published in <a href="https://medium.com/multinetinventiv">inventiv</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Play Console’da SMS veya CALL_LOG izni uyarısı neden alırsınız?]]></title>
            <link>https://medium.com/multinetinventiv/google-play-consoleda-sms-veya-call-log-izni-uyar%C4%B1s%C4%B1-neden-al%C4%B1rs%C4%B1n%C4%B1z-4e74844d9950?source=rss-e42022b4b9b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e74844d9950</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[türkçe]]></category>
            <dc:creator><![CDATA[Hüseyin Aslan]]></dc:creator>
            <pubDate>Tue, 26 Feb 2019 16:02:56 GMT</pubDate>
            <atom:updated>2019-02-28T06:43:48.846Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*j_nFvhqTdH9Ksp5BarTy6g.png" /></figure><p>Google Play’in SMS ve CALL_LOG izinlerindeki kısıtlamalarından sonra,<strong><em> </em></strong>mobil uygulamamızdan bu izinleri kaldırdık ve sorunsuz bir şekilde yolumuza devam ediyorduk ta ki geçen gün <strong><em>Google Play Console’</em></strong>a girdiğimizde</p><blockquote><strong>This app does not meet the Google Play permissions policy relating to the use of SMS or CALL_LOG. You must fix this before March 9. 2019 or your app will be removed from Google Play. Note: if you have recently made a change, it can take up to 12 hours to update this message.</strong></blockquote><p>şeklinde bir uyarıyla karşılaşıncaya kadar. Uygulamamızda herhangi bir SMS veya CALL_LOG izni olamamasına rağmen neden böyle bir uyarı alıyorduk? Sebebini biraz araştırdıktan sonra aşağıdaki nedenlerden bu durumun kaynaklanabileceği düşüncesine vardık.</p><h3><strong>- Doğrudan veya dolaylı olarak “Google Play İzin Politikasını” karşılamayan bazı izinler kullanılıyor olabilir.</strong></h3><p>Uygulamanızdaki <strong><em>AndroidManifest </em></strong>dosyanız doğrudan bu izinleri içeriyor olabilir veya kullandığınız <strong><em>3rd Party Library</em> ‘</strong>ler dolaylı yoldan bu izinleri içeriyor olabilir. 3rd Party Library’lerin içerdiği izinleri <strong><em>Merged Manifest</em>’</strong>ten görebiliriz. Bunun için projenizi build ettikten sonra,</p><ul><li><em>AndroidManifest dosyanızı açın.</em></li><li><em>Alt sekmeden Merged Manifest sekmesine tıklayın.</em></li><li><em>Bu sekmede kullanılan tüm izinleri görebilirsiniz.</em></li></ul><p>Örnek olarak, Merged Manifest dosyasındaki 3rd Party Library’in kullandığı <strong><em>READ_SMS</em></strong> iznini iptal etmek istersek,</p><p>&lt;uses-permission android:name=&quot;android.permission.READ_SMS&quot; tools:node=&quot;remove&quot; /&gt;</p><p>kodunu AndroidManifest’inize eklememiz yeterli olacaktır.</p><p>Diğer bir yöntem bu izni kullanan 3rd Party Library’i silmek veya bu izni gerektirmeyen başka bir 3rd Party Library’le değiştirmek olabilir.</p><p>Ben kendimi garantiye almak istiyorum derseniz aşağıdaki SMS ve CALL_LOG ile alakalı tüm izinleri kaldıran kodu AndroidManifest’inize ekleyebilirsiniz :)</p><pre>&lt;uses-permission<br>    android:name=&quot;android.permission.RECEIVE_SMS&quot;<br>    tools:node=&quot;remove&quot; /&gt;<br>&lt;uses-permission<br>    android:name=&quot;android.permission.READ_SMS&quot;<br>    tools:node=&quot;remove&quot; /&gt;<br>&lt;uses-permission<br>    android:name=&quot;android.permission.SEND_SMS&quot;<br>    tools:node=&quot;remove&quot; /&gt;<br>&lt;uses-permission<br>    android:name=&quot;android.permission.WRITE_SMS&quot;<br>    tools:node=&quot;remove&quot; /&gt;<br>&lt;uses-permission<br>    android:name=&quot;android.permission.RECEIVE_WAP_PUSH&quot;<br>    tools:node=&quot;remove&quot; /&gt;<br>&lt;uses-permission<br>    android:name=&quot;android.permission.RECEIVE_MMS&quot;<br>    tools:node=&quot;remove&quot; /&gt;<br>&lt;uses-permission<br>    android:name=&quot;android.permission.READ_CALL_LOG&quot;<br>    tools:node=&quot;remove&quot; /&gt;<br>&lt;uses-permission<br>    android:name=&quot;android.permission.WRITE_CALL_LOG&quot;<br>    tools:node=&quot;remove&quot; /&gt;<br>&lt;uses-permission<br>    android:name=&quot;android.permission.PROCESS_OUTGOING_CALLS&quot;<br>    tools:node=&quot;remove&quot; /&gt;</pre><h3>- Google Play Console’daki Alfa, Beta ve Dahili Test kanallarında SMS veya CALL_LOG izni gerektiren APK’lar bulunuyor olabilir.</h3><p>Uygulamanızın test aşamasında bu kanallardan SMS veya CALL_LOG izni gerektiren bir APK paylaştıysanız bu uyarı alıyor olabilirsiniz. Çözüm olarak SMS veya CALL_LOG izni içeren APK’yı deactivate edip yerine bu izinleri istemeyen bir APK ekleyip sonrasında çıkan “Google Play Permissions” formundan <strong><em>SMS veya CALL_LOG izni gerektirmediğini</em></strong> doldurup dağıtıma açarsanız bu uyarının 12 saat içinde değiştiğini görebilirsiniz.</p><p>Bizim karşılaştığımız sorun Alfa kanalında bu izinleri içeren bir APK’nın arşivlenmiş olmasıydı ve yukarıdaki adımı yaparak sorunu çözdük.</p><p><em>Okuduğunuz için teşekkürler.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e74844d9950" width="1" height="1" alt=""><hr><p><a href="https://medium.com/multinetinventiv/google-play-consoleda-sms-veya-call-log-izni-uyar%C4%B1s%C4%B1-neden-al%C4%B1rs%C4%B1n%C4%B1z-4e74844d9950">Google Play Console’da SMS veya CALL_LOG izni uyarısı neden alırsınız?</a> was originally published in <a href="https://medium.com/multinetinventiv">inventiv</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn Android App Shortcuts with 7 Questions]]></title>
            <link>https://medium.com/multinetinventiv/learn-android-app-shortcuts-with-7-questions-cb1ad0af1b8c?source=rss-e42022b4b9b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb1ad0af1b8c</guid>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[english]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Hüseyin Aslan]]></dc:creator>
            <pubDate>Tue, 05 Feb 2019 05:44:26 GMT</pubDate>
            <atom:updated>2019-02-21T13:54:25.031Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*2Ff5ZzBfkyuzVRZx8m4PGA.png" /></figure><h3><strong><em>1-What’s app shortcut ?</em></strong></h3><p>These shortcuts can be displayed in a supported launcher and help your users quickly start common or recommended tasks within your app.You can start app actions directly from their launcher, by long pressing the app icon.</p><h3>2-Which version we can use ?</h3><p>The App Shortcuts feature was included in Android 7.1.1. So we can use<strong> <em>API 25+.</em></strong></p><h3>3-What’s recommended count of app shortcut?</h3><p>You can use 5<em> </em>App Shortcuts for your applications. <strong><em>But Recommended number 4. </em></strong>Many applications using max 4 App Shortcuts.</p><h3>4-How many is there type of app shortcut ?</h3><p>There are 3 type of App Shortcuts.</p><ul><li><strong><em>Static shortcuts</em></strong> are defined in a resource file that is packaged into an APK or app bundle.</li><li><strong><em>Dynamic shortcuts</em></strong> can be published, updated, and removed by your app only at runtime.</li><li><strong><em>Pinned shortcuts</em></strong> can be added to supported launchers at runtime, if the user grants permission.</li></ul><h3>5-What’s static shortcut ?</h3><p>The static shortcuts are predefined and they can not be changed unless there is a new version of your app. To create a static shortcut, we must describe it with XML.</p><p>To create a static shortcut, complete the following sequence of steps:</p><ul><li>In your app’s manifest file (AndroidManifest.xml), find an activity whose intent filters are set to the android.intent.action.MAIN action and the android.intent.category.LAUNCHER category.</li><li>Add a &lt;meta-data&gt; element to this activity that references the resource file where the app&#39;s shortcuts are defined:</li></ul><pre>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>          package=&quot;com.example.myapplication&quot;&gt;<br>  &lt;application ... &gt;<br>    &lt;activity android:name=&quot;Main&quot;&gt;<br>      &lt;intent-filter&gt;<br>        &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;<br>        &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;<br>      &lt;/intent-filter&gt;<br>      <strong><br>      &lt;meta-data android:name=&quot;android.app.shortcuts&quot;<br>                 android:resource=&quot;@xml/shortcuts&quot; /&gt; </strong><br>    &lt;/activity&gt;<br>  &lt;/application&gt;<br>&lt;/manifest&gt;</pre><ul><li>Create a new resource file: res/xml/shortcuts.xml.</li><li>In this new resource file, add a &lt;shortcuts&gt; root element, which contains a list of &lt;shortcut&gt; elements. Each &lt;shortcut&gt; element contains information about a static shortcut, including its icon, its description labels, and the intents that it launches within the app:</li></ul><pre>&lt;shortcuts xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;<br>  &lt;shortcut<br>    <strong>android:shortcutId</strong>=&quot;compose&quot;<br>    <strong>android:enabled</strong>=&quot;true&quot;<br>    <strong>android:icon</strong>=&quot;@drawable/compose_icon&quot;<br>    <strong>android:shortcutShortLabel</strong>=&quot;@string/compose_shortcut_short_label1&quot;<br>    <strong>android:shortcutLongLabel</strong>=&quot;@string/compose_shortcut_long_label1&quot;<br>    <strong>android:shortcutDisabledMessage</strong>=&quot;@string/compose_disabled_message1&quot;&gt;<br>    &lt;intent<br>      android:action=&quot;android.intent.action.VIEW&quot;<br>      android:targetPackage=&quot;com.example.myapplication&quot;<br>      android:targetClass=&quot;com.example.myapplication.ComposeActivity&quot; /&gt;<br>    &lt;!-- If your shortcut is associated with <strong>multiple intents</strong>, include them<br>         here. The last intent in the list determines what the user sees when<br>         they launch this shortcut. --&gt;<br>    &lt;categories android:name=&quot;android.shortcut.conversation&quot; /&gt;<br>  &lt;/shortcut&gt;<br>  &lt;!-- Specify more shortcuts here. --&gt;<br>&lt;/shortcuts&gt;</pre><h4>android:shortcutId</h4><p>A string literal, which represents the shortcut when a ShortcutManager object performs operations on it.</p><h4>android:shortcutShortLabel</h4><p>A concise phrase that describes the shortcut’s purpose. When possible, limit the length of the “short description” of a shortcut to 10 characters.</p><h4>android:shortcutLongLabel</h4><p>An extended phrase that describes the shortcut’s purpose. If there’s enough space, the launcher displays this value instead of android:shortcutShortLabel. When possible, limit the length of the &quot;long description&quot; of a shortcut to 25 characters.</p><h4>android:shortcutDisabledMessage</h4><p>The message that appears in a supported launcher when the user attempts to launch a disabled shortcut. The message should explain to the user why the shortcut is now disabled. This attribute’s value has no effect if android:enabled is true.</p><h4>android:enabled</h4><p>Determines whether the user can interact with the shortcut from a supported launcher. The default value of android:enabled is true. If you set it to false, you should also set a android:shortcutDisabledMessagethat explains why you&#39;ve disabled the shortcut. If you don&#39;t think you need to provide such a message, it&#39;s easiest to remove the shortcut from the XML file entirely.</p><h4>android:icon</h4><p>The bitmap or adaptive icon that the launcher uses when displaying the shortcut to the user. This value can be either the path to an image or the resource file that contains the image. Use adaptive icons whenever possible to improve performance and consistency.</p><p><strong>Note: </strong>Shortcut icons cannot include tints.</p><p><strong><em>You can generate shortcut icons with Asset Studio.</em></strong></p><p><a href="https://romannurik.github.io/AndroidAssetStudio/">Android Asset Studio</a></p><h3>Configure inner elements</h3><p>The XML file that lists an app’s static shortcuts supports the following elements inside each &lt;shortcut&gt; element. You <strong>must</strong> include an intent inner element for each static shortcut that you define.</p><h4><strong>intent</strong></h4><p>The action that the system launches when the user selects the shortcut. This intent must provide a value for the android:action attribute.You can provide multiple intents for a single shortcut.</p><h4>categories</h4><p>Provides a grouping for the types of actions that your app’s shortcuts perform, such as creating new chat messages.</p><h3>6-What’s d<strong>ynamic shortcut</strong> ?</h3><p>Dynamic shortcuts provide links to specific, context-sensitive actions within your app. These actions can change between uses of your app, and they can change even while your app is running. The ShortcutManager API allows you to complete the following operations on dynamic shortcuts:</p><ul><li><strong>Publish: </strong>Use setDynamicShortcuts() to redefine the entire list of dynamic shortcuts, or useaddDynamicShortcuts() to augment an existing list of dynamic shortcuts.</li><li><strong>Update: </strong>Use the updateShortcuts() method.</li><li><strong>Remove: </strong>Remove a set of dynamic shortcuts using removeDynamicShortcuts(), or remove all dynamic shortcuts using removeAllDynamicShortcuts().</li></ul><p>An example of creating a dynamic shortcut and associating it with your app appears in the following code snippet:</p><pre>val shortcutManager = getSystemService&lt;ShortcutManager&gt;(ShortcutManager::class.java)<br><br>val shortcut = ShortcutInfo.Builder(context, &quot;id1&quot;)<br>        .setShortLabel(&quot;Website&quot;)<br>        .setLongLabel(&quot;Open the website&quot;)<br>        .setIcon(Icon.createWithResource(context, R.drawable.icon_website))<br>        .setIntent(Intent(Intent.ACTION_VIEW,<br>                Uri.parse(&quot;https://www.mysite.example.com/&quot;)))<br>        .build()<br><br>shortcutManager!!.dynamicShortcuts = Arrays.asList(shortcut)</pre><h3>7-What’s pinned shortcut ?</h3><p>On Android 8.0 (API level 26) and higher, you can create pinned shortcuts. Unlike static and dynamic shortcuts, pinned shortcuts appear in supported launchers as separate icons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*6K79LEH4PrAPQPw5daAxmQ.png" /></figure><p><strong>Note: </strong>If you are using dynamic shortcuts, when you remove dynamic shortcuts don’t forget disable pinned shortcuts.</p><h3>References</h3><p><a href="https://developer.android.com/guide/topics/ui/shortcuts/">App shortcuts overview | Android Developers</a></p><p><em>Thanks for reading.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb1ad0af1b8c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/multinetinventiv/learn-android-app-shortcuts-with-7-questions-cb1ad0af1b8c">Learn Android App Shortcuts with 7 Questions</a> was originally published in <a href="https://medium.com/multinetinventiv">inventiv</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>