<?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 Nikhil Solanki on Medium]]></title>
        <description><![CDATA[Stories by Nikhil Solanki on Medium]]></description>
        <link>https://medium.com/@nikhilschumifanikhil?source=rss-f13662e9bdf6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Nikhil Solanki on Medium</title>
            <link>https://medium.com/@nikhilschumifanikhil?source=rss-f13662e9bdf6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:42:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nikhilschumifanikhil/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[Android P : What’s new or different from previous versions of Android.]]></title>
            <link>https://medium.com/@nikhilschumifanikhil/android-p-how-is-it-different-from-previous-versions-of-android-38614e038e76?source=rss-f13662e9bdf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/38614e038e76</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android-development]]></category>
            <dc:creator><![CDATA[Nikhil Solanki]]></dc:creator>
            <pubDate>Tue, 05 Jun 2018 14:01:10 GMT</pubDate>
            <atom:updated>2018-06-07T06:43:38.881Z</atom:updated>
            <content:encoded><![CDATA[<p>Google launched the Developer preview version of Android P (DP1) in march 2018, later during the Google I/O 2018, they launched the Android P Beta version for the enthusiasts, developers and early adopters to flash the shiny new OS on their devices,try out the new OS version and share the feed backs for the same.</p><p>All of us cannot try out this new version of Android OS because as of now it is limited to few high end devices only from Google like Pixel2 , Pixel2 XL, Pixel, Pixel XL , Nokia 7 Plus(Android One),Oppo r15 pro, Mi Mix 2s,Sony Xperia Xz2 and few others.</p><p>But this blog is an effort to make everybody aware of the new features which are most likely to be shipped once the stable version of Android P goes out somewhere in third quarter of 2018.</p><ol><li><strong>Adaptive Battery Optimizations</strong></li></ol><p>Android P makes a smart phone even more smarter by employing on device Machine learning to observe the user patterns and classifying the apps as per their utilization of the system resources. It classifies the apps under 4 different buckets ranging from “most active” apps to “rare” apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*HctqwLPkQkP-pqhMl4CPRA.png" /></figure><p>Apps can change buckets over time depending on the usage of the app and apps which are not in active state, the system enforces restrictions on their jobs, alarms, network and high-priority Firebase Cloud Messages.</p><p>Under settings section, we can enable the Use adaptive battery feature to get benefits of the battery optimizations.</p><p><strong>2. App Actions</strong></p><p>App actions is a new way to increase the visibility of a particular app , presenting the user with an option to use the suggested apps. Like when we are using google assistant to assist us in booking a cab, App actions uses machine learning to surface just the right app to the user like in this case , it could be booking a cab with OLA or UBER and this way app actions help to engage the users in a more interactive manner and providing an immersive experience to the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nDcNs6-vVXTwHprg6x4TBg.gif" /></figure><p><strong>3.Slices</strong></p><p>Slices along with App actions is a new way to provide an immersive experience to the users,providing remote content to the users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*CoMmhQelAEKxn48tcsDzbQ.png" /></figure><p>Using slices the users can interact without actually going into the application, like if we want to adjust the brightness of the devices we can make a slice available for this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*DkjuP0DN2gwYonvYvkT2MQ.png" /><figcaption>Slice for adjusting the brightness level</figcaption></figure><p><strong>4. Smart Reply in Notifications</strong></p><p>Machine learning has already been employed in Gmail Inbox to give out the smart replies by analyzing the content of the mail.</p><p>In android P, the same machine learning has been extended across the notifications as well to give out smart replies from the notification panel itself.</p><p><strong>5. New Navigation System</strong></p><p>With Android P, Google has introduced a new navigation system which gives the users easier access to Home, Overview, and the Assistant from a single button on every screen. In the Overview, users have a much larger view of what they were doing when they left each app, making it much easier to see and resume the activity. The Overview also provides access to search, predicted apps, and App Actions, and takes users to All Apps with another swipe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iIDsO1cYHBsXfN5wZqXErw.gif" /><figcaption>Android P’s new Navigation panel using a single button.</figcaption></figure><p><strong>6. Text Magnifier</strong></p><p>Android P has yet another useful feature the “Text Magnifier”, many a times while selecting a portion of text for copying we are exactly not sure at which character the cursor is currently is hence resulting in repeated efforts for such simple text selection and copying tasks, With Android P google has introduced the text magnifier which magnifies the portion of the text within the cursor’s range hence exactly pointing out which part of the text is selected and which is not.</p><p><strong>7. Android Background Restrictions</strong></p><p>In Android P, Using the android Vitals Dashboard, the users can easily identify the apps which are consuming a lot of battery due to various operations the device might be performing when the app is in background like data syncing and other operations, users can just simply tap on them to restrict these background operations . When an app is restricted, its background jobs, alarms, services, and network access are affected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ouR4vd8b1rsSaKTlaAXJCw.png" /></figure><p><strong>8. Security — Biometric Prompt</strong></p><p>Apps can use the new <a href="https://developer.android.com/reference/android/hardware/biometrics/BiometricPrompt">BiometricPrompt API</a> instead of displaying their own biometric auth dialogs.New Biometric supports face and iris recognizition as well providing an additional layer of biometric security apart from the regular fingerprint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QU5jcOW-DID-F6qbglbXvg.png" /></figure><p>This was just a glimpse of a line of features which would be rolled out along with the Android P Release, hoping everybody is eagerly waiting to have a try on these improved features of Android P .</p><p>Note : Image/GIFS/Videos Courtesy Google.</p><p>If you liked the article , please press the clap icon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38614e038e76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android basics : Difference between @+id and @id.]]></title>
            <link>https://medium.com/@nikhilschumifanikhil/android-basics-difference-between-id-and-id-f4eb66915361?source=rss-f13662e9bdf6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4eb66915361</guid>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Nikhil Solanki]]></dc:creator>
            <pubDate>Thu, 24 May 2018 17:15:30 GMT</pubDate>
            <atom:updated>2018-05-24T17:15:30.008Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of the times while creating layouts we wonder how to assign the ids to the various views in the .xml files.</p><p>As a developer, we need to be sure of what exactly we are doing while assigning ids to the views and using them judiciously.</p><p>For example : we can create a text view and follow the below mentioned 2 different id assignment mechanism to the view(TextView in our case).</p><pre>Pattern 1 :</pre><pre>&lt;<strong>android.support.constraint.ConstraintLayout<br>android:layout_width=&quot;match_parent&quot;<br>android:layout_height=&quot;wrap_content&quot;</strong>&gt;<br><br>&lt;<strong>TextView<br>    android:id=&quot;@+id/textView1&quot;<br>    style=&quot;@style/job_overview_label&quot;<br>    android:layout_width=&quot;wrap_content&quot;<br>    android:layout_height=&quot;wrap_content&quot;<br><br></strong>&lt;<strong>android.support.v7.widget.RecyclerView<br>    android:id=&quot;@+id/skills&quot;<br>    android:layout_width=&quot;0dp&quot;<br>    android:layout_height=&quot;wrap_content&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_toBottomOf=&quot;@+id/textView1&quot; </strong>/&gt;<br><br>&lt;/<strong>android.support.constraint.ConstraintLayout</strong>&gt;</pre><pre>Pattern 2 :</pre><pre>&lt;<strong>android.support.constraint.ConstraintLayout<br>android:layout_width=&quot;match_parent&quot;<br>android:layout_height=&quot;wrap_content&quot;</strong>&gt;<br><br>&lt;<strong>TextView<br>    android:id=&quot;@+id/textView1&quot;<br>    style=&quot;@style/job_overview_label&quot;<br>    android:layout_width=&quot;wrap_content&quot;<br>    android:layout_height=&quot;wrap_content&quot;<br><br></strong>&lt;<strong>android.support.v7.widget.RecyclerView<br>    android:id=&quot;@+id/skills&quot;<br>    android:layout_width=&quot;0dp&quot;<br>    android:layout_height=&quot;wrap_content&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_toBottomOf=&quot;@id/textView1&quot; </strong>/&gt;<br><br>&lt;/<strong>android.support.constraint.ConstraintLayout</strong>&gt;</pre><p>So, we have taken a constraint layout having 2 child elements: 1 textview with id: @+id/textview1 and a recyclerView id: @+id/skills, with the recyclerview having constraintTop_toBottomOf in reference with to the textView.</p><p>Now there are two ways, in first pattern we put the constraint for recycler view as</p><p><strong>app:layout_constraintTop_toBottomOf=”@+id/textView1&quot;</strong></p><p>and in 2nd pattern we have put the constraint for recycler view as</p><pre><strong>app:layout_constraintTop_toBottomOf=&quot;@id/textView1&quot;</strong></pre><p>Simply putting it together, the @+id/textview1 denotes that a view with this id has not yet been generated in R.java file and it would be created now.</p><p>whereas the @id/textview1 signifies that a view with this id already exists in R.java and we are referring to that same view.</p><p>Hence concluding the explanation, we need not use @+id/…. everytime, once created it would be available for further reference using@id/…., If used multiple times it would be added to R.java once and does not regenerate again in R.java.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4eb66915361" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>