<?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 Md. Tanvir Hossain on Medium]]></title>
        <description><![CDATA[Stories by Md. Tanvir Hossain on Medium]]></description>
        <link>https://medium.com/@saad100104006?source=rss-183cbd92086c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*O6A015yfJxEn8WMN.jpg</url>
            <title>Stories by Md. Tanvir Hossain on Medium</title>
            <link>https://medium.com/@saad100104006?source=rss-183cbd92086c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 08:03:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saad100104006/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[State Flow vs Shared Flow in Kotlin]]></title>
            <link>https://medium.com/@saad100104006/state-flow-vs-shared-flow-in-kotlin-1e37bca4123c?source=rss-183cbd92086c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e37bca4123c</guid>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Md. Tanvir Hossain]]></dc:creator>
            <pubDate>Sat, 09 Dec 2023 10:13:18 GMT</pubDate>
            <atom:updated>2023-12-09T11:18:53.572Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EB8YzGh5kVgz2FT02tDcnA.png" /></figure><h3>State Flow</h3><ul><li>StateFlow is a state-holder observable flow that emits the current and new state updates to its collectors.</li><li>StateFlow is designed for representing a single state that can be observed over time.</li><li>StateFlow emits the current state and any subsequent changes to that state.</li><li>StateFlowexposes a single value that can be updated using the valueproperty. Changes to this value are automatically propagated to all observers of the state flow.</li><li>A StateFlow is a <em>hot</em> flow because its active instance exists independently of the presence of collectors.</li><li>A StateFlow is always active and in memory, and it becomes eligible for garbage collection only when there are no other references to it from a garbage collection root.</li><li>A mutable state flow is created using MutableStateFlow(value) constructor function with the initial value.</li><li>All methods of StateFlow are <strong>thread-safe</strong> and can be safely invoked from concurrent coroutines without external synchronization.</li></ul><p><strong>Example</strong></p><pre>class MyViewModel : ViewModel() {<br> private val _currentState = MutableStateFlow(&quot;Initial State&quot;)<br> val currentState: StateFlow&lt;String&gt; = _currentState.asStateFlow()<br><br>fun updateState(newState: String) {<br> _currentState.value = newState<br> }<br><br>}</pre><h3>Shared Flow</h3><ul><li>A SharedFlow is a type of flow that allows multiple collectors to receive emitted values from a single producer.</li><li>A SharedFlow can be useful in situations where you need to share a stream of data between multiple components of your application, such as when you want to notify multiple parts of your UI about a change in some data.</li><li>SharedFlow does not have an initial value, and you can configure its replay cache to store a certain number of previously emitted values for new collectors.</li></ul><p><strong>Example</strong></p><pre>val sharedFlow = MutableSharedFlow&lt;Int&gt;(<br> replay = 2, // Replay the last 2 emitted values to new collectors<br> extraBufferCapacity = 8 // Extra buffer capacity to avoid backpressure<br>)</pre><pre>val mySharedFlow = MutableSharedFlow&lt;String&gt;()<br><br>// Emit values<br>mySharedFlow.tryEmit(&quot;Value 1&quot;)<br>mySharedFlow.tryEmit(&quot;Value 2&quot;)<br><br>// Observe values<br>mySharedFlow.collect { value -&gt;<br>    println(&quot;Received: $value&quot;)<br>}</pre><h3>Difference between State flow and Shared flow</h3><p>Here are some of the key differences between SharedFlow and StateFlow in Kotlin</p><ol><li>Mutable vs. Immutable: StateFlow is an immutable data holder that represents a single value(state) that can be observed, while SharedFlow is a mutable data holder that can emit multiple values.</li><li>Choose the right flow: Use SharedFlow when you need to broadcast values to multiple collectors or when you want to have multiple subscribers to the same stream of data. Use StateFlow when you need to maintain and share a single source of truth for a state and automatically update all collectors with the latest state.</li><li>StateFlowonly emits last known value , whereas SharedFlow can configure how many previous values to be emitted. If you want emitting and collecting repeated values , use sharedflow.</li><li>Error handling: StateFlow does not have built-in error handling, while SharedFlow supports the tryEmit function which allows for safe emitting of values and propagating errors to downstream collectors.</li><li>Backpressure handling: StateFlow uses a backpressure strategy called conflation which automatically drops intermediate values that are emitted too quickly for the collector to keep up with. For StateFlow, keep in mind that it always has a replay cache of size 1, meaning it retains the latest value for new collectors. SharedFlow allows for more fine-grained control over backpressure handling through its buffer and onBufferOverflow parameters.</li><li>Broadcasting behavior: SharedFlow is designed for broadcasting values to multiple collectors, while StateFlow is designed for observing a single value.</li><li>Use cases: StateFlow is often used for representing a single source of truth in an application, such as the current state of a UI component or the data in a database. SharedFlow is often used for situations where multiple parts of an application need to observe the same data source, such as in a messaging app where multiple users need to observe the same chat room.</li></ol><p>In summary, use StateFlow when you need to manage and share a single state with multiple collectors. Use SharedFlow when you need to share a stream of events among collectors without holding any state.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e37bca4123c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Hsandle Multiple AsyncTasks]]></title>
            <link>https://medium.com/@saad100104006/android-hsandle-multiple-asynctasks-ae54ccea938f?source=rss-183cbd92086c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae54ccea938f</guid>
            <category><![CDATA[asynctask]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[threading]]></category>
            <category><![CDATA[thread-pool]]></category>
            <category><![CDATA[asynchronous]]></category>
            <dc:creator><![CDATA[Md. Tanvir Hossain]]></dc:creator>
            <pubDate>Fri, 14 Jun 2019 18:35:48 GMT</pubDate>
            <atom:updated>2019-06-14T18:40:26.508Z</atom:updated>
            <content:encoded><![CDATA[<h3>Android Handle Multiple AsyncTasks</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*379V8zkEnbPGQzhViqrSOA.gif" /></figure><p>In This Article we will see how we can run multiple asynctasks parallelly at the same time.</p><p>AsyncTask enables proper and easy use of the UI thread which allows you to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers.</p><p>According to google’s developer site- AsyncTask is designed to be a helper class around <a href="https://developer.android.com/reference/java/lang/Thread.html">Thread</a> and <a href="https://developer.android.com/reference/android/os/Handler.html">Handler</a> and does not constitute a generic threading framework. AsyncTasks should ideally be used for short operations (a few seconds at the most.) If you need to keep threads running for long periods of time, it is highly recommended you use the various APIs provided by the java.util.concurrent package such as <a href="https://developer.android.com/reference/java/util/concurrent/Executor.html">Executor</a>, <a href="https://developer.android.com/reference/java/util/concurrent/ThreadPoolExecutor.html">ThreadPoolExecutor</a> and <a href="https://developer.android.com/reference/java/util/concurrent/FutureTask.html">FutureTask</a>.</p><p>An asynchronous task is defined by a computation that runs on a background thread and whose result is published on the UI thread. An asynchronous task is defined by 3 generic types, called Params, Progress and Result, and 4 steps, called onPreExecute, doInBackground,onProgressUpdate and onPostExecute.</p><p>Internally the AsyncTask is implemented via an Executor and the default one is SerialExecutor.</p><p>So,Every AsyncTask created can have only 2 types of executor.</p><p>1.THREAD_POOL_EXECUTOR</p><p>2. SERIAL_EXECUTOR</p><p>SERIAL_EXECUTOR - This is the default executor used in AsyncTask, which executed the AsyncTask in sequential order, using a Queue implementation.</p><blockquote>Example: <strong>new MyAsyncTask().execute();</strong></blockquote><p>THREAD_POOL_EXECUTOR - This executor is used when the AsyncTask is executed using executeOnExecutor() method. This executor uses Java&#39;s ThreadPoolExecutor to maintain a pool of threads and execute all the asynctasks using the threads from that pool.</p><blockquote><strong>Example: new MyAsyncTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);</strong></blockquote><p>So in order to execute multiple AsyncTask in parallel, we have to use THREAD_POOL_EXECUTOR and execute the AsyncTasks.</p><p>What the above code does is, for all the parallel requests to be made, it creates a new AsyncTask and instead of executing it using SERIAL_EXECUTOR(by using execute() method), we pass in the AsyncTask.THREAD_POOL_EXECUTOR to be used as executor for executing tasks in parallel.</p><p>This AsyncTask.THREAD_POOL_EXECUTOR will queue up all the task and execute it 5 tasks at a time and when any of running task is completed, the next one from the queue is executed. This is repeated until the queue becomes empty. AsyncTask.THREAD_POOL_EXECUTOR cannot queue more than 128 tasks at a time. So if we submit more than that, an exception will be thrown.</p><p>Finally, if you really know what you&#39;re doing and have a solid reason to override Google&#39;s default behaviour you can do so by using AsyncTask.executeOnExecutor(Executor, Object[]) passing in a THREAD_POOL_EXECUTOR.</p><p>Here is a <a href="https://github.com/saad100104006/Android-Multiple-AsyncTasks">github link</a> of the multiple asynctask. Happy Coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae54ccea938f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Firebase Clould Function:Take Control Of Your Firebase Backend]]></title>
            <link>https://medium.com/oceanize-geeks/android-firebase-clould-function-take-control-of-your-firebase-backend-a9a996e8ad51?source=rss-183cbd92086c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9a996e8ad51</guid>
            <category><![CDATA[firebase-cloud-functions]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Md. Tanvir Hossain]]></dc:creator>
            <pubDate>Thu, 22 Mar 2018 07:41:54 GMT</pubDate>
            <atom:updated>2018-03-22T08:44:04.163Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vgy9tD1ixcaztpirUw0QCw.png" /></figure><h3>Introduction</h3><p>Firebase introduces cloud functions to write server side code in firebase. With firebase Cloud Functions, all you need to do to have the server side functionality is to write functions and deploy them.</p><p>Now as an Android Developer at first you might find it a little mess because you can’t write cloud functions in firebase in nativtive languages like kotlin or java.Instead you have to use either one of the two 1.Javascript 2.Typescript</p><p>In this post, i will show you how you can setup Firebase cloud functions project, cloud functions triggers, writing cloud functions, using node.js modules, deploying cloud functions and using cloud functions in android.</p><h3>Setting Up Cloud Functions Project</h3><p>To manage and deploy Firebase cloud functions project, Firebase command line interface needs to be installed on development machine. Below are the steps to complete the required setup.</p><p>To install Firebase CLI, <a href="https://nodejs.org/en/">NodeJS</a> and <a href="https://www.npmjs.com/">npm</a> needs to be installed. To install both Node.js and npm, go to <a href="https://nodejs.org/en/">Node Js</a> website and download Node.js windows installer package and follow these steps</p><p>1.run it to get setup wizard and click next.</p><p>2.Accept license by checking the check box and click next.</p><p>3.Choose destination folder and click next.</p><p>4.Select the way features are installed, if you don’t need documentation short cuts select the option from the drop down and then click next.</p><p>5.Then click install to complete node.js and npm installation.</p><p>Then install Firebase command line by opening command prompt and running below command.</p><blockquote>npm <strong>install</strong> -g firebase-tools</blockquote><p>Then login to Firebase from firebase command line by entering <em>firebase login</em> command in command prompt. It will open browser, enter your firebase account credentials and login.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/0*7GTAaZ8YaVPSqljJ." /></figure><p>Oncethis login is successful, create cloud functions project by going to the directory where you want to create the project and entering below command.</p><blockquote>firebase <strong>init</strong> functions</blockquote><p>It will prompt you to select existing Firebase project or create new project. Once project is selected, it will ask you to select language for writing cloud functions. It provides JavaScript and TypeScript options. Once language option is chosen, it will ask you if you want to install dependencies with npm.Finally it creates cloud functions project.</p><p>The structure of firebase cloud functions project consists oftThe main source file which is index.js.And there is another file called packages,json where you have write all of your dependencies.</p><p>With that, Firebase cloud functions project setup is complete and now you can start writing cloud functions.</p><h3>Cloud Function Triggers</h3><p>Before we start writing cloud functions, we need to know about the triggers which run the functions. Cloud functions are run in response to http requests, Firebase Firestore events, cloud pub/sub events, cloud storage events, analytics events, crashlytics events, realtime database events and authentication events.</p><p>When you write functions, you need to use the object exported by Cloud Functions for Firebase SDK that listens to the event provider that you are targeting. For example, to run your cloud function in response to http requests, you need to use functions.https provided by The Cloud Functions for Firebase SDK.</p><p>You can check this video series of firebase to get more details <a href="https://www.youtube.com/watch?v=EvV9Vk9iOCQ&amp;t=4s">here</a></p><p>And <a href="https://github.com/firebase/functions-samples/">here</a> goes some sample cloud function github source codes</p><h3>Writing Cloud Functions</h3><p>You can write your Firebase cloud functions in index.js file which is the main node.js source file. You can create java script functions in separate files and import and use them in index.js. There are several useful Node.js modules which make creating cloud functions easy. For example validator module for validating strings, moment module for handling dates and express modules provide web framework for developing websites, etc.</p><p>Let’s see an example of a cloud function. The example cloud function will be triggered in response to http requests and it validates the credit card number sent in http request. It can handle both Http Get and Post requests. The function uses validator module. Add this function to index.js and deploy it as described in the following section.</p><pre><strong>const</strong> moment = require(‘validator’);<br>exports.isCreditCard = functions.https.onRequest((req, res) =&gt; {<br> <strong>if</strong> (req.method === ‘PUT’) {<br> res.status(403).send(‘Forbidden!’);<br> }<br> cors(req, res, () =&gt; {<br> <strong>let</strong> ccnum = req.query.ccnum;<br> <strong>if</strong> (!ccnum) {<br> ccnum = req.body.ccnum;<br> }<br> <strong>let</strong> msg;<br> <strong>if</strong>(validator().isCreditCard(ccnum)){<br> msg = ‘Valid credit card’;<br> }<strong>else</strong>{<br> msg = ‘Invalid credit card’;<br> }<br> res.status(200).send(msg);<br> });<br>});</pre><h3>Deploying Cloud Functions</h3><p>You can deploy cloud functions to Firebase server using firebase deploy command.</p><blockquote>firebase deploy</blockquote><p>To deploy only specific functions, you can use below command specifying function name to be deployed. You can test your functions by using URL for each function that prints after the deployment.</p><blockquote><strong>firebase</strong> <strong>deploy</strong> <strong>— only</strong> <strong>functions</strong>:validateString</blockquote><p>To fix it, you need to install missing node.js modules by using bellow command from functions directory.</p><blockquote>npm <strong>install</strong></blockquote><p>To install specific node.js module, you need to use g option, for example to install express cors module below is the command.</p><blockquote>npm <strong>install</strong> -g cors</blockquote><p>So it is important that the node.js modules which you use in your cloud functions are added to package.json file. Below is an example package.json file with dependencies.</p><pre>{<br> “name”: “functions”,<br> “description”: “Cloud Functions for Firebase”,<br> “scripts”: {<br> “serve”: “firebase serve — only functions”,<br> “shell”: “firebase experimental:functions:shell”,<br> “start”: “npm run shell”,<br> “deploy”: “firebase deploy — only functions”,<br> “logs”: “firebase functions:log”<br> },<br> “dependencies”: {<br> “cors”: “².8.4”,<br> “firebase-admin”: “~5.4.2”,<br> “firebase-functions”: “⁰.7.1”,<br> “validator”: “⁹.2.0”<br> },<br> “private”: true<br>}</pre><h3>Monitoring Cloud Functions</h3><p>To view deployed cloud functions, login to <a href="https://console.firebase.google.com/">Firebase console</a> , click functions in the left navigation and view cloud functions dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*saydiPK5oW3cHxJV." /></figure><h3>Firebase Cloud Functions Android Example</h3><p>Below android example shows how to use of firebase cloud function in android. The example lets users enter the order amount to know the discount information. App sends https request to Firebase function using</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/0*SrPHgdG53utXNBl3." /></figure><p>OkHttp. Firebase function calculates discount using the order amount sent in http request and returns the discount information to app.</p><h3>Firebase Cloud Function Http</h3><p>For the android example, firebase cloud function that is trigged by http request is defined and deployed to firebase.</p><pre><strong>const</strong> functions = require(‘firebase-functions’);<br><strong>const</strong> cors = require(‘cors’)({origin: true});<br><strong>const</strong> validator = require(‘validator’);<br>exports.discount = functions.https.onRequest((req, res) =&gt; {<br> <strong>if</strong> (req.method === ‘PUT’) {<br> res.status(403).send(‘Forbidden!’);<br> }<br> cors(req, res, () =&gt; {<br> <strong>let</strong> amount = req.query.orderAmt;<br> <strong>if</strong> (!amount) {<br> amount = req.body.orderAmt;<br> }<br> <strong>let</strong> discount;<br> <strong>if</strong>(validator.isNumeric(amount)){<br> discount = ‘Invalid Order Amount’;<br> }<strong>else</strong>{<br> <strong>if</strong> (amount &lt; 200){<br> discount = ‘Eligible for extra 10% off’;<br> }<strong>else</strong> <strong>if</strong>(amount &gt; 199 &amp;&amp; amount &lt; 400){<br> discount = ‘Eligible for extra 15% off’;<br> }<strong>else</strong> <strong>if</strong>(amount &gt; 399 &amp;&amp; amount &lt; 600){<br> discount = ‘Eligible for extra 20% off’;<br> }<strong>else</strong>{<br> discount = ‘Eligible for extra 25% off’;<br> }<br> }<br> res.status(200).send(discount);<br>});<br>});</pre><h3>Activity</h3><pre><strong>import</strong> android.os.Bundle;<br><strong>import</strong> android.support.v7.app.AppCompatActivity;<br><strong>import</strong> android.support.v7.widget.Toolbar;<br><strong>import</strong> android.util.Log;<br><strong>import</strong> android.view.View;<br><strong>import</strong> android.widget.Button;<br><strong>import</strong> android.widget.EditText;<br><strong>import</strong> android.widget.Toast;</pre><pre><strong>import</strong> java.io.IOException;</pre><pre><strong>import</strong> okhttp3.Call;<br><strong>import</strong> okhttp3.Callback;<br><strong>import</strong> okhttp3.HttpUrl;<br><strong>import</strong> okhttp3.OkHttpClient;<br><strong>import</strong> okhttp3.Request;<br><strong>import</strong> okhttp3.Response;<br><strong>import</strong> okhttp3.ResponseBody;<br><strong>import</strong> zoftino.com.firestore.R;</pre><pre><strong>public</strong> <strong>class</strong> <strong>OrderDiscountActivity</strong> <strong>extends</strong> <strong>AppCompatActivity</strong> {</pre><pre><strong>private</strong> <strong>static</strong> <strong>final</strong> String TAG = “OrderDiscountActivity”;</pre><pre><strong>private</strong> String FIREBASE_CLOUD_FUNCTION_URL<br> = “https://us-central1-yourfirebaseproject.cloudfunctions.net/discount&quot;;<br> <strong>private</strong> EditText orderaAmt;</pre><pre><strong>@Override</strong><br> <strong>protected</strong> <strong>void</strong> <strong>onCreate</strong>(Bundle savedInstanceState) {<br> <strong>super</strong>.onCreate(savedInstanceState);<br> setContentView(R.layout.order_dicount_layout);</pre><pre>Toolbar tb = findViewById(R.id.toolbar);<br> setSupportActionBar(tb);</pre><pre>orderaAmt = findViewById(R.id.order_amt);<br> Button discountButton = findViewById(R.id.order_amt_b);<br> discountButton.setOnClickListener(<strong>new</strong> View.OnClickListener() {<br> <strong>@Override</strong><br> <strong>public</strong> <strong>void</strong> <strong>onClick</strong>(View view) {<br> findDiscountAmt();<br> }<br> });<br> }</pre><pre><strong>public</strong> <strong>void</strong> <strong>findDiscountAmt</strong>() {<br> String orderAmt = orderaAmt.getText().toString();<br> <strong>double</strong> orderAmount;<br> <strong>try</strong> {<br> orderAmount = Double.parseDouble(orderAmt);<br> }<strong>catch</strong> (Exception e){<br> orderaAmt.setError(“Enter valid amount”);<br> <strong>return</strong>;<br> }<br> sendMessageToFcm(orderAmount);<br> }</pre><pre><strong>private</strong> <strong>void</strong> <strong>sendMessageToFcm</strong>(<strong>double</strong> orderAmount) {</pre><pre>OkHttpClient httpClient = <strong>new</strong> OkHttpClient();</pre><pre>HttpUrl.Builder httpBuider =<br> HttpUrl.parse(FIREBASE_CLOUD_FUNCTION_URL).newBuilder();<br> httpBuider.addQueryParameter(“orderAmt”, “”+orderAmount);</pre><pre>Request request = <strong>new</strong> Request.Builder().<br> url(https://medium.com/httpBuider.build()).build();</pre><pre>httpClient.newCall(request).enqueue(<strong>new</strong> Callback() {<br> <strong>@Override</strong> <strong>public</strong> <strong>void</strong> <strong>onFailure</strong>(Call call, IOException e) {<br> Log.e(TAG, “error in getting response from firebase cloud function”);</pre><pre>runOnUiThread(<strong>new</strong> Runnable() {<br> <strong>@Override</strong><br> <strong>public</strong> <strong>void</strong> <strong>run</strong>() {<br> Toast.makeText(OrderDiscountActivity.<strong>this</strong>,<br> “Cound’t get response from cloud function”,<br> Toast.LENGTH_SHORT).show();<br> }<br> });<br> }<br> <strong>@Override</strong> <strong>public</strong> <strong>void</strong> <strong>onResponse</strong>(Call call, Response response){<br> ResponseBody responseBody = response.body();<br> String resp = “”;<br> <strong>if</strong> (!response.isSuccessful()) {<br> Log.e(TAG, “fail response from firebase cloud function”);<br> Toast.makeText(OrderDiscountActivity.<strong>this</strong>,<br> “Cound’t get response from cloud function”,<br> Toast.LENGTH_SHORT).show();<br> }<strong>else</strong> {<br> <strong>try</strong> {<br> resp = responseBody.string();<br> } <strong>catch</strong> (IOException e) {<br> resp = “Problem in getting discount info”;<br> Log.e(TAG, “Problem in reading response “ + e);<br> }<br> }<br> runOnUiThread(responseRunnable(resp));<br> }<br> });<br> }<br> <strong>private</strong> Runnable <strong>responseRunnable</strong>(<strong>final</strong> String responseStr){<br> Runnable resRunnable = <strong>new</strong> Runnable(){<br> <strong>public</strong> <strong>void</strong> <strong>run</strong>(){<br> Toast.makeText(OrderDiscountActivity.<strong>this</strong><br> ,responseStr,<br> Toast.LENGTH_SHORT).show();<br> }<br> };<br> <strong>return</strong> resRunnable;<br> }<br>}</pre><h3>Activity Layout</h3><pre><strong>&lt;?</strong>xml version=”1.0&quot; encoding=”utf-8&quot;<strong>?&gt;</strong><br>&lt;LinearLayout<br> xmlns:android=”http://schemas.android.com/apk/res/android&quot;<br> xmlns:tools=”http://schemas.android.com/tools&quot;<br> android:layout_width=”match_parent”<br> android:layout_height=”match_parent”<br> android:orientation=”vertical”<br> android:gravity=”center_horizontal”<br> tools:context=”zoftino.com.firebase.cloudfuncion.OrderDiscountActivity”&gt;<br> &lt;android.support.v7.widget.Toolbar<br> android:id=”@+id/toolbar”<br> android:layout_width=”match_parent”<br> android:layout_height=”?attr/actionBarSize”<br> android:background=”?attr/colorPrimary” /&gt;<br> &lt;TextView<br> android:layout_width=”wrap_content”<br> android:layout_height=”wrap_content”<br> android:layout_marginLeft=”4dp”<br> android:layout_marginRight=”4dp”<br> android:textAppearance=”@style/TextAppearance.AppCompat.Headline”<br> android:text=”Enter Order Amt &amp;amp; Find Discount”<br> android:layout_marginTop=”16dp”/&gt;<br> &lt;android.support.design.widget.TextInputLayout<br> android:id=”@+id/order_amt_l”<br> android:layout_width=”match_parent”<br> android:layout_height=”wrap_content”<br> android:layout_marginLeft=”4dp”<br> android:layout_marginRight=”4dp”&gt;<br> &lt;android.support.design.widget.TextInputEditText<br> android:id=”@+id/order_amt”<br> android:layout_width=”match_parent”<br> android:layout_height=”wrap_content”<br> android:inputType= “numberDecimal”<br> android:hint=”Enter Order Amount”/&gt;<br> &lt;/android.support.design.widget.TextInputLayout&gt;<br> &lt;Button<br> android:id=”@+id/order_amt_b”<br> android:layout_width=”wrap_content”<br> android:layout_height=”wrap_content”<br> style=”@style/Widget.AppCompat.Button.Colored”<br> android:text=”Know Discount Amount”/&gt;<br>&lt;/LinearLayout&gt;</pre><p>And that’s it.To explore more check out github firebase samples of cloud function!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9a996e8ad51" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oceanize-geeks/android-firebase-clould-function-take-control-of-your-firebase-backend-a9a996e8ad51">Android Firebase Clould Function:Take Control Of Your Firebase Backend</a> was originally published in <a href="https://medium.com/oceanize-geeks">Oceanize Lab Geeks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 5 Most Common Mistakes That App Developers Make]]></title>
            <link>https://medium.com/oceanize-geeks/top-5-most-common-mistakes-that-app-developers-make-8d0aa624bfdb?source=rss-183cbd92086c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d0aa624bfdb</guid>
            <category><![CDATA[mobile-app-developers]]></category>
            <category><![CDATA[android-developers]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Md. Tanvir Hossain]]></dc:creator>
            <pubDate>Mon, 29 Jan 2018 04:10:31 GMT</pubDate>
            <atom:updated>2018-01-30T04:46:01.281Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>1.Developing for Too Many Platforms</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pWil6adtmxH_foYXMLeNOg.png" /></figure><p>Android,iOS,Windows: Where should my app go? While any app developer will find themselves forced to confront this question, often they fail to comprehensively dissect each option at their disposal.</p><p>Android and iOS hold a majority of the market share. Today, Google Play has over 2.8 million apps while Apple comes in second with 2.2 million apps.</p><p>Often most developers attempt to develop for <strong><em>both</em></strong> of these major platforms at once — others even try to include the Microsoft Store in the mix. It’s an understandable dilemma; ideally, we want our app available on every platform at the same time. However, from a development standpoint, doing everything at once is often a mistake.</p><p>While iOS may be extremely popular in the U.S., Android reigns supreme globality, often in much larger margins than in the U.S. So if you intend on publishing your app in multiple countries, consider Android over iOS. When you make any platform decision, make sure you’re thinking of every possibility and alternative. If you fail to do so, you may run the risk of severely limiting your audience.</p><p>Also, consider choosing one of the major platforms first, based on your target audience’s mobile device usage, and then roll out your app to the other platforms a few months after the initial release. By doing so, you will not only save time and money, but you will also avoid major issues with your app during development and at release.</p><h3><strong>2. Building an application for “everything”</strong></h3><p>You may be tempted to develop an application that solves dozens of problems at once.Being a software developer, you may want to build an application that performs dozens of functions. You may want to build an one that’s an alternative for other applications. It may sound like a good idea ,have one application that is able to do everything you need — but the problem is that the more complex our program is, the higher the percentage of app errors we get, especially if you try to deploy all functions at once.</p><p>Try not to build a Swiss army knife-type application, especially if your app development experience is not that big. Keep your application simple, especially if you’re trying to build the minimum viable product or MVP. However, it does not mean that your app should have only one feature. You need to find the balance between the number of features your app will have with your programming experience. In other words, make sure your ideas correspond to your programming abilities.</p><h3><strong>3. A</strong>bsence <strong>of Marketing</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Q0nUFyF7I5l2qRH0BrVRfA.png" /></figure><p>However the main job of a developer is building app but unfortunately your job does end here. Releasing your app or game on relevant app store is not enough because the app is not going to sell itself. You need to market the app and advertise it to your target audience.Promotion is a very important stage.</p><p>If you do not tell people about your application, then nobody will know about it. If you are not lucky enough to have a separate marketing team then you need to invest in ads.</p><p>So, you need a marketing strategy. Many niche blogs, where you can promote your software, are available. Again, you need to understand who the potential users of your application are.</p><p>The next step is to determine what websites they visit and where you can promote your software. Another great option is to give a free copy of your application to an editor of a popular blog.</p><p>Your website is, of course, an option to inform people about your software. Keep it up to date and post news regularly. However, the website will not attract many visitors in the beginning. Some time is necessary to make your application popular. Describing your application and focus on advantages. Try to inform your website visitors when your software can be useful. It is always good to tell people what functions you are going to add. The great majority of Android apps display ads to make profits. Some of them even display ads of other apps. AdMob is the official advertising platform from Google that can help you with that. It also helps you understand the traffic and performance of your application.</p><p>You can buy ads from other apps so they would present your app inside their own. However, this strategy is not for everyone because of the cost involved. Social media like Facebook, Twitter and others are a great way to promote your app so thousands of people can discover it. The best thing about social media is you can use it for free.</p><p>Another good example of application promotion is customer stories. It demonstrates how users solve different problems and achieve certain goals with the help of your application. The best case is an article, when a well-known studio mentions your application.</p><h3><strong>4.Avoid beta testing</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*0YLPpyco4-XZdkk6Si7TOw.png" /></figure><p>Beta testing is an important stage and here you want to get as much information as you can from users of your application. The main thing you should understand is that you create an application for someone else and users of your software should not be confused by its user interface.</p><p>Let people try your application out and get as much feedback as you can. Feedback will guide you and tell you what users of your application expect from it. In addition, beta testing is a great way to test your application on different hardware and OS setups, which is key to understanding if your software works correctly.</p><p>Use app-analytics tools such as <a href="http://www.flurry.com/">Flurry</a> ,Google’s <a href="http://www.google.com/analytics/mobile/">Universal Analytics</a>,<a href="https://firebase.google.com/docs/analytics/">Firebase analytics</a> to see how your testers are using the app. The more people you can have beta test your app outside your own office, the more prepared you’ll be to send your app out into the real world.</p><h3>5. Not releasing updates</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*zrrbgTUjuBYlWPXluBURhQ.png" /></figure><p>Developers should consider their application as something that’s not perfect; as something that always requires improvements to make it better. It is hard to create a perfect application that will work flawlessly without any errors and have all functions that a user needs. But it is important to understand what users of your application expect from it.</p><p>Regular releasing better updates also increase user interaction and more available users.So,try to update current version in a regular basis is the best practice in app market.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d0aa624bfdb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oceanize-geeks/top-5-most-common-mistakes-that-app-developers-make-8d0aa624bfdb">Top 5 Most Common Mistakes That App Developers Make</a> was originally published in <a href="https://medium.com/oceanize-geeks">Oceanize Lab Geeks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Things:Introduction]]></title>
            <link>https://medium.com/oceanize-geeks/android-things-introduction-5851a7e80ba9?source=rss-183cbd92086c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5851a7e80ba9</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[android-things]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Md. Tanvir Hossain]]></dc:creator>
            <pubDate>Fri, 29 Dec 2017 10:40:53 GMT</pubDate>
            <atom:updated>2017-12-29T10:57:38.554Z</atom:updated>
            <content:encoded><![CDATA[<p>Android Things is designed for IoT systems. These may or may not have a display attached. The latest release of Android Things Developer Preview 6 (DP6) has lots of new features and bug fixes. Android Things is Google’s platform that enables Android Developers to create Internet of Things (IoT) devices with support for powerful applications such as video and audio processing and on-board machine learning with TensorFlow.</p><h3>Hardware</h3><p>Android Things supports three boards: the Intel Edison, the NXP Pico i.MX6UL and the Raspberry Pi 3. Support is coming for the Intel Joule and the NXP Argon i.MX6UL. The first thing you will notice is that these boards use a mixture of Intel and ARM based CPUs and that both 32-bits and 64-bits are supported. The minimum amount of RAM is 512MB and all the boards support Wi-Fi and Bluetooth.</p><h3>Booting</h3><p>The first step is to download the correct Android Things image for your board. For the Pi that means <a href="https://developer.android.com/things/hardware/raspberrypi.html">downloading the .img file</a> (which is wrapped up in a .zip file) and <a href="https://www.raspberrypi.org/documentation/installation/installing-images/windows.md">writing it to a microSD card</a>. Then you insert the card into the Pi, connect up the monitor (via HDMI) and then connect the power.</p><p>Android Things takes about 90 seconds to boot on the Pi 3. First you are shown some boot information (as text) in a similar vain to Linux booting, this is replaced after a few seconds with an Android Things loading screen which shows three pulsating dots (to show that it is working). Finally this is replaced by an Android Thing splash screen, which tells you about the status of the Ethernet and Wi-Fi connections and little else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*BdxCrt0NoEG0YtItMYeNvw.jpeg" /></figure><p>A minute and a half is quite a long time for an IoT device to boot, there might be a lots of scenarios were such a long boot time could lead people to think something is broken, especially it the product doesn’t include a display of any kind. Having said that, the level of complexity (and hopefully the abilities) of products based on Android Things will be similar to that of mobile devices rather than “simpler” microcontroller based systems.</p><h3>IoT launcher</h3><p>The latest release of Android Things Developer Preview 6 DP6 includes a new IoT launcher that allows the user to see the current state of the device and change settings using a touch screen or USB input devices. Settings such as configuring the WiFi, finding the build ID, and checking for updates is now something that can be done interactively, making it even easier to get started. This launcher is visible when no other developer-provided <a href="https://developer.android.com/things/sdk/index.html#home_activity_support">IOT_LAUNCHER</a> Activity is present.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*uRxrIATjVQtb4LqQD_dsiA.png" /></figure><h3>API 27 and Google Play Services</h3><p>DP6 is now based on the latest Android 8.1 developer preview, with API level 27. Most of the standard Android samples now work on DP6. For example, the <a href="https://github.com/googlesamples/android-Camera2Basic">Camera2Basic</a> sample using the Camera2 API and TextureView now works on both NXP and Raspberry Pi based devices (with the hardwareAccelerated flag set to true). Google Play Services has been updated to support SDK version 11.6, supporting all the <a href="https://developers.google.com/android/guides/releases">latest features</a>.</p><h3>Command-line flashing tool</h3><p>We heard from developers that flashing and configuring a board using fastboot can be tedious, so the <a href="https://partner.android.com/things/console/#/tools">Android Things Console</a> now brings a new and simpler way of flashing device images. Instead of using fastboot and adb commands manually, a new interactive command-line <a href="https://partner.android.com/things/console/#/tools">android-things-setup-utility</a> is now provided. This tool makes it much easier to get started with Android Things, and automates the download and flashing process.</p><h3>Android Things Console updates</h3><p>DP6 introduces the new partition scheme that will be used for the upcoming production release. Due to the new partition layout, the over-the-air update (OTA) system cannot update existing DP5.1 or earlier devices. Developers will need to go to the <a href="https://partner.android.com/things/console">Android Things Console</a>, and download and flash a new DP6 build. The Console UI has also been changed for DP6 features, and will only allow you to create new builds based on DP6. If you have any older existing builds, they are still available for download but will not support OTA updates. Developers are encouraged to move all work to DP6.</p><h3>Peripheral command-line tool</h3><p>There is a command-line tool <a href="https://developer.android.com/things/sdk/pio/pio-cli.html">pio</a> that gives developers access to the Peripheral API via the adb shell. Developers can interactively test GPIO, PWM, UART, I2C, SPI, and future interfaces from an adb shell, which is useful for debugging and automated testing.</p><h3>Disadvantages</h3><p>The key feature of Android Things is that it is based on the normal Android that we know and love. The idea is that Android developers can branch out into IoT and build some interesting products, maybe in conjunction with a mobile app. Or maybe there are existing Android apps that would work well as standalone devices. As a minimum there is lots of code out there that can be reused and repurposed for Android Things.</p><p>However this compatibility with Android comes at a cost. The system requirements for Android Things devices are quite high when compared to microcontroller based devices and operating systems like mbed OS. Does my refrigerator really need a quad-core processor and 512MB of RAM?</p><p>Of course there are advantages to having such processing power at your finger tips, maybe more computing will occur on the devices (like facial recognition, voice processing and parts of the AI infrastructure). However if these devices end up integrating with the cloud, which they will as they are Internet of Things devices, then there isn’t such a strong case for extra computing power at the point of user interface.</p><p>One annoying fact about my time testing Android Things is that the <em>adb</em>connection kept dropping. I would connect, work with Android Studio, upload the app etc. But then after a few minutes the connection would drop, which meant I was constantly using the command line to re-connect to the board. This obviously isn’t a workable solution in the long term and I hope Google sorts it out.</p><h3>Conclusion</h3><p>DP6 includes significant changes and improvements to the platform.To start using DP6, we need to use the <a href="https://partner.android.com/things/console">Android Things Console</a> to download system images and flash existing devices, or use the <a href="https://partner.android.com/things/console/#/tools">android-things-setup-utility</a>. More information about the changes are available in the <a href="https://developer.android.com/things/preview/releases.html">release notes</a>. You can also join <a href="https://g.co/iotdev">Google&#39;s IoT Developers Community</a> on Google+, a great resource to get updates and discuss ideas. Also, we have our new <a href="https://hackster.io/google">hackster.io community</a>, where everyone can share the amazing projects they have built.</p><p>The technology behind Android Things is well established and well known by developers across the world. Together with access to popular hardware platforms like the Raspberry Pi, Android Things could be a winning formula. However the high level of system requirements and the current lack of deployment infrastructure could mean that other platforms offer more for less.</p><p>Ultimately time will be the judge, if IoT device makers opt for Android Things then it will be a huge growth market for Google, not in terms of the actual devices, but in terms of the cloud services that these devices use.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5851a7e80ba9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oceanize-geeks/android-things-introduction-5851a7e80ba9">Android Things:Introduction</a> was originally published in <a href="https://medium.com/oceanize-geeks">Oceanize Lab Geeks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Awesome Android libraries you definitely want to try]]></title>
            <link>https://medium.com/oceanize-geeks/10-awesome-android-libraries-you-definitely-want-to-try-2f25e02be863?source=rss-183cbd92086c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f25e02be863</guid>
            <category><![CDATA[android-libraries]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[libraries]]></category>
            <category><![CDATA[android-app-developers]]></category>
            <dc:creator><![CDATA[Md. Tanvir Hossain]]></dc:creator>
            <pubDate>Thu, 30 Nov 2017 08:36:47 GMT</pubDate>
            <atom:updated>2017-11-30T08:43:25.663Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SETMkTr6fF9Sl1vruemALA.jpeg" /></figure><ol><li><a href="https://github.com/airbnb/lottie-android"><strong>Lottie</strong></a></li></ol><p>This is a library that parses <a href="http://www.adobe.com/products/aftereffects.html">Adobe After Effects</a> animations exported as JSON with <a href="https://github.com/bodymovin/bodymovin">Bodymovin</a> (After Effects plugin for exporting animations to SVG/Canvas/HTML + JavaScript) and renders them natively on mobile. <br>There is also an example app available in the <a href="https://play.google.com/store/apps/details?id=com.airbnb.lottie">Google Play Store</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*3tVHLt5lFZOU8unvGSWb-Q.gif" /></figure><p>2. <a href="https://github.com/Muddz/StyleableToast"><strong>StyleableToast</strong></a><strong><br></strong>This is library for Toasts customization. It adds variety of styling options that gives your app and user experience that little extra unique feeling! Style your toast either by code or in styles.xml</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gex0EMv54b-jGAkgkwfMEQ.png" /></figure><p>3. <a href="https://github.com/hugeterry/CoordinatorTabLayout"><strong>CoordinatorTabLayout</strong></a></p><p>CoordinatorTabLayout is a custom composite control that quickly implements the combination of TabLayout and CoordinatorLayout.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*Xg_z4v4huB_pQv76RCHxyQ.gif" /></figure><p>4. <a href="https://github.com/jrvansuita/MaterialAbout"><strong>Material About</strong></a><strong><br></strong>This library helps you to prepare an <em>About Me</em> screen to introduce you to your users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lu_VHhX3x-q2-_EjLWs0-Q.png" /></figure><p>5.<a href="https://github.com/yarolegovich/SlidingRootNav">SlidingRootNav</a></p><p>This library is a DrawerLayout-like ViewGroup, where a “drawer” is hidden under the content view, which can be shifted to make the drawer visible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*jJoZS_JY3t1l_AMb39d_Dg.gif" /></figure><p>6.<a href="https://github.com/Devlight/InfiniteCycleViewPager">InfiniteCycleViewPager</a></p><p>This library is Infinite cycle ViewPager with two-way orientation and interactive effect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*aKmmyz-UHqgFR_hcnhd3sw.gif" /></figure><p>7.<a href="https://github.com/jfeinstein10/JazzyViewPager">JazzyViewPager</a></p><p>An easy to use ViewPager that adds an awesome set of custom swiping animations. Just change your ViewPagers to JazzyViewPagers, two more steps, and you’re good to go!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/180/1*8_wHwH5_nV1ngFczgKBBPA.gif" /></figure><p>8.<a href="https://github.com/Yalantis/Side-Menu.Android">Side-Menu.Android</a></p><p>This library is a side menu with some categories to choose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*lw6kwB3R6cnIg-mY0lev0g.gif" /></figure><p>9. <a href="https://github.com/florent37/AwesomeBar"><strong>AwesomeBar</strong></a><strong><br></strong>This is another great implementation from <a href="https://medium.com/u/e649f2139220">Florent Champigny</a>. It is new approach to a design of a top bar (which we know from ActionBar/Toolbarimplementation), in conjunction with DrawerLayout, inspired by <a href="https://material.uplabs.com/posts/gmail-mobile-concept">Gmail Mobile from Weekz</a>. You can check, how it works below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*FDHgYJjwgPVydW2WA2p-HQ.gif" /></figure><p>10. <a href="https://github.com/sharish/ShimmerRecyclerView"><strong>ShimmerRecyclerView</strong></a></p><p>It is a custom RecyclerView implementation with shimmer views to indicate that views are loading. The RecyclerView has also a built-in adapter, to control the shimmer appearance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*iFpMEeJr8SJRjS1HDHspeg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f25e02be863" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oceanize-geeks/10-awesome-android-libraries-you-definitely-want-to-try-2f25e02be863">10 Awesome Android libraries you definitely want to try</a> was originally published in <a href="https://medium.com/oceanize-geeks">Oceanize Lab Geeks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kotlin: 10 reasons of gaining popularity among Android Developers]]></title>
            <link>https://medium.com/oceanize-geeks/kotlin-10-reasons-of-gaining-popularity-among-android-developers-c41ac0ef538c?source=rss-183cbd92086c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c41ac0ef538c</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Md. Tanvir Hossain]]></dc:creator>
            <pubDate>Tue, 31 Oct 2017 06:36:25 GMT</pubDate>
            <atom:updated>2017-11-01T04:52:35.031Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article first i am going to introduce kotlin and then 10 reasons for its gaining popularity among android developers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iB9TvIImYorKGvNrJB4nzg.jpeg" /></figure><h3>Introduction:kotlin</h3><p>Using Kotlin for Android development has grown in popularity over the last year. Even to those who are not currently using it, the value proposition of the language immediately increases, adding simplicity and power to existing paradigms of Java development. Kotlin is a language by the company <a href="https://www.jetbrains.com/">JetBrains</a>. They are developers of IDEs for tons of different languages, the Intelli J platform, which is the basis for Android Studio. On their website, they describe Kotlin as:</p><blockquote>Statically typed programming language for the JVM, Android and the browser.</blockquote><p>It targets the JVM and Android and Java 6 bytecodes. They want to add these new features in the language, while still supporting these markets of the Java 6 and up JVM, and, obviously, Android.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*YK5PLgDKciZ0J66Ilvb9wQ.png" /></figure><h3>Reasons of kotlin’s popularity over java</h3><ol><li>Kotlin is more Android Focused. Kotlin was written by the same folks who created popular integrated design environments (IDEs), so its background comes from mobile industry pros who were looking to solve specific problems.</li><li>Kotlin is more more concise than java,Java isn’t known for being the most succinct language, and while that isn’t a con in and of itself, when you’re programming for Android and using a bunch of common idioms, verbose code can lead to more chances for bugs. When you’re able to write less code with a language that’s more concise, there are less opportunities for errors, and it’s less tedious for developers.</li><li>Kotlin is versatile and introperable with java.Developers can write new modules in Kotlin that will work alongside existing Java code. It’s compatible with all existing Java libraries and frameworks, the JVM (Java Virtual Machine) and can integrate with the Gradle or Maven build systems. Whereas many languages are hardline functional or object-oriented, it’s not overly opinionated and doesn’t enforce one philosophy over another.</li><li>The Anko library is a Kotlin source file that eliminates a few XML-related headaches, too. <a href="https://kotlinlang.org/docs/resources.html">There are over 2000 Kotlin projects on Github</a>, with everything from frameworks to build systems to libraries.</li><li>Making the switch from java is easy.In IntelliJ or Android Studio, converting Java files to Kotlin just requires installing the Kotlin plugin, adding it to the Gradle build files, and clicking convert.</li><li>Restrictions in the Java language and the problems it presents and a language can’t be worked around. For example, we have this inability to add methods to types to classes or interfaces that we didn’t write ourselves. Traditionally, these wind up in util classes, just littered all over your code base or slammed together in one util package. While this is a solution, it’s certainly not ideal.</li><li>The type system in Java, and especially in using it on Android, has problems with null, since it has no first-class representation of types that may be null or may not be null. Therefore, oftentimes the so-called “billion dollar mistake” of the null pointer exception ends up killing your app.</li><li>Java is certainly not the most terse language. That’s not necessarily a bad thing by itself, but there’re many common idioms that just end up being overly verbose. This can potentially lead to errors and bugs in your code. On top of these, we have to deal with issues in the Android API.</li><li>Android is a big inheritance party; they love their inheritance, which works well for them, but it tends to push problems on us as application developers. Kotlin also avoids extra garbage collection.a common problem in Android development that adds inefficiency to Java code.</li><li>Furthermore, the nullability problem comes back, and this is especially apparent in Android, where they want things to be efficient. null is used in a lot of places to represent the absence of a value, instead of something that would wrap it in a more high-level type, like an either type or optional.</li></ol><h3>Conclusion</h3><p>There’s these very specific things which allow you to take the problems of Android and potentially remedy them. The <a href="https://kotlinlang.org/">Kotlin website</a> is absolutely fantastic with a ton of resources. There’s an interactive editor, where you can actually create and run Kotlin code in your browser. I encourage you all to go out and experiment with Kotlin.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c41ac0ef538c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oceanize-geeks/kotlin-10-reasons-of-gaining-popularity-among-android-developers-c41ac0ef538c">Kotlin: 10 reasons of gaining popularity among Android Developers</a> was originally published in <a href="https://medium.com/oceanize-geeks">Oceanize Lab Geeks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Dependency Injection: Dagger2]]></title>
            <link>https://medium.com/oceanize-geeks/android-dependency-injection-dragger2-d25b76c76f1c?source=rss-183cbd92086c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d25b76c76f1c</guid>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Md. Tanvir Hossain]]></dc:creator>
            <pubDate>Fri, 29 Sep 2017 08:40:24 GMT</pubDate>
            <atom:updated>2017-09-29T11:08:03.097Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*GD9vVPjn4hyhPA603L0e0A.jpeg" /></figure><p><strong>Dependency Injection </strong>is build upon the concept of <strong>Inversion of Control</strong>. Which says that a class should get its dependencies from outside. In simple words, no class should instantiate another class but should get the instances from a configuration class.</p><p>If a java class creates an instance of another class via the new operator, then it cannot be used and tested independently from that class and is called a <strong>hard dependency</strong>.</p><p>The most important advantage is that it increases the possibility of reusing the class and to be able to test them independent of other classes.</p><p>Lets see an example</p><blockquote>public class A {</blockquote><blockquote>private B b;</blockquote><blockquote>public A(B b) {</blockquote><blockquote>this.b = b;</blockquote><blockquote>}</blockquote><blockquote>}</blockquote><p>this is a dependency injection at its core! Rather than creating the b object in the A constructor, the b object is passed into or injected into A‘s constructor. The responsibility for configuring b is elsewhere, and the A class is simply a consumer of the B class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*tnP62Ancmu-XBhyfJI0nLw.png" /><figcaption>Dependency Injection</figcaption></figure><h3>The Dependency Inversion Principle</h3><p>Dependency injection is often discussed in conjunction with one of the five SOLID principles of Object-Oriented Design: the Dependency Inversion principle.</p><p>The gist of the <strong>Dependency Inversion principle</strong> is that it is important to depend on abstractions rather than concrete implementations.</p><p>In the simple example above, this means changing B to a Java interface rather than a Java class. With this change, many different types of concrete B type objects that adhere to the B interface can be passed into the A constructor. This presents several key benefits:</p><p>1.Allows for the A class to be tested with various kinds of B objects.</p><p>2.Mock B objects can be used as needed in certain test scenarios.</p><p>3.Testing of A is independent of the implementation of B.</p><p>While often discussed together,<strong> dependency injection</strong> and the<strong> Dependency Inversion principle</strong> are not the same. Essentially, dependency injection is a technique that is used as part of adhering to the Dependency Inversion Principle.</p><h3><strong>Dagger 1</strong></h3><p>A framework class called <strong>dependency container</strong> was used to analyzes the dependencies of a class. With this analysis, it was able to create an instance of the class and inject the objects into the defined dependencies via Java Reflections. This eliminated the hard dependencies. That way the class could be tested in isolation, ex. by using mock objects. This was <strong>Dagger1</strong>.</p><p>Main disadvantages of this process were two folds. First, the Reflection is slow in itself and second, it used to perform dependency resolution at runtime, leading to unexpected crashes.</p><p>This lead to the birth of <strong>Dagger2</strong> forked from Square <strong>Dagger1 </strong>by Google.</p><h3><strong>Dagger 2</strong></h3><p>The big changes that were brought in <strong>Dagger2</strong> were generating the dependency graph using annotation processor. The classes providing the dependencies were now generated at build time using javax inject package. This facilitated the possible error checking before the application runs. The generated code is highly readable as if written by hand.</p><p><strong>Annotation Processor</strong> is a way to read the compiled files during build time to generate source code files to be used in the project.</p><p>So,<strong>Dagger 2</strong> is dependency injection framework. It is based on the Java Specification Request (JSR) 330. It uses code generation and is based on annotations. The generated code is very relatively easy to read and debug.</p><p><strong>Dagger 2 </strong>uses the following annotations:</p><p>@Module and @Provides: define classes and methods which provide dependencies</p><p>@Inject: request dependencies. Can be used on a constructor, a field, or a method</p><p>@Component: enable selected modules and used for performing dependency injection</p><p>Dagger 2 uses generated code to access the fields and not reflection. Therefore it is not allowed to use private fields for field injection.</p><h4>Limitations of Dagger2:</h4><p>Dagger2 does not inject fields automatically.</p><p>It cannot inject private fields.</p><p>If you want to use field injection you have to define a method in your @Component annotated interface which takes the instance of the class into which you want to inject the member variable.</p><p>In the next article we will see a solid example of Dagger 2 and how Dependency Injection works.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d25b76c76f1c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oceanize-geeks/android-dependency-injection-dragger2-d25b76c76f1c">Android Dependency Injection: Dagger2</a> was originally published in <a href="https://medium.com/oceanize-geeks">Oceanize Lab Geeks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Application Architecture]]></title>
            <link>https://medium.com/oceanize-geeks/android-application-architecture-189b4721c7c5?source=rss-183cbd92086c------2</link>
            <guid isPermaLink="false">https://medium.com/p/189b4721c7c5</guid>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Md. Tanvir Hossain]]></dc:creator>
            <pubDate>Tue, 29 Aug 2017 06:56:51 GMT</pubDate>
            <atom:updated>2017-08-30T03:18:41.079Z</atom:updated>
            <content:encoded><![CDATA[<p>An application architecture is a consistent plan that needs to be made before the development process starts. This plan provides a map of how the different application components should be organized and tied together. It presents guidelines that should be followed during the development process and forces some sacrifices that in the end will help you to construct a well-written application that’s more testable, expandable, and maintainable.</p><p>Good architecture takes many factors into consideration, especially the system characteristics and limits. There are many different architectural solutions out there, all of them with pros and cons. However, some key concepts are common between all visions.</p><p>Until the last Google I/O, the Android system didn’t recommend any specific Architecture for application development. That means that you were completely free to adopt any model out there: MVP, MVC, MVPP, or even no pattern at all. On top of that, the Android framework didn’t even provide native solutions for problems created by the system itself, specifically the component’s lifecycle.</p><p>So, if we wanted to adopt a Model View Presenter pattern on your application, we needed to come up with your own solution from scratch, writing a lot of boilerplate code, or adopt a library without official support. And that absence of standards created a lot of poorly written applications, with codebases that were hard to maintain and test.</p><p>After 12 long years, the Android team finally decided to listen to our complaints and to help us with this problem.</p><h3>2. Android Architecture</h3><p>The new Android Architechture Guide defines some key principles that a good Android application should conform to and also proposes a secure path for the developer to create a good app.According to the guide, a good Android application should provide a solid <a href="https://en.wikipedia.org/wiki/Separation_of_concerns">separation of concerns</a> and drive the UI from a model. Any code that does not handle a UI or operating system interaction should not be in an Activity or Fragment, because keeping them as clean as possible will allow you to avoid many lifecycle-related problems. After all, the system can destroy Activities or Fragments at any time. Also, the data should be handled by models that are isolated from the UI, and consequently from lifecycle issues.</p><h3>The New Recommended Architecture</h3><p>The architecture that Android is recommending cannot be easily labeled among the standard patterns that we know. It looks like a Model View Controller pattern, but it is so closely tied to the system’s architecture that it’s hard to label each element using the known conventions. This isn’t relevant, though, as the important thing is that it relies on the new Architecture Components to create a separation of concerns, with excellent testability and maintainability. And better yet, it is easy to implement.</p><p>To understand what the Android team is proposing, we have to know all the elements of the Architecture Components, since they are the ones that will do the heavy lifting for us. There are four components, each with a specific role: <strong>Room</strong>, <strong>ViewModel, </strong><strong>LiveData</strong>, and <strong>Lifecycle</strong>. All of those parts have their own responsibilities, and they work together to create a solid architecture. Let&#39;s take a look at a simplified diagram of the proposed architecture to understand it better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*29EMJcTrYcRSn9rW.jpg" /></figure><p>As we can see, we have three main elements, each one with its responsibility.</p><ol><li>The <strong>Activity</strong> and <strong>Fragment</strong> represent the <strong>View</strong> layer, which doesn&#39;t deal with business logic and complex operations. It only configures the view, handles the user interaction, and most importantly, observes and exhibits <strong>LiveData</strong> elements taken from the <strong>ViewModel</strong>.</li><li>The <strong>ViewModel</strong> automatically observes the <strong>Lifecycle</strong> state of the view, maintaining consistency during configuration changes and other Android lifecycle events. It is also demanded by the view to fetch data from the <strong>Repository</strong>, which is provided as observable <strong>LiveData</strong>. It is important to understand that the ViewModel <em>never</em> references the View directly and that the updates on the data are always done by the <strong>LiveData</strong> entity.</li><li>The <strong>Repository</strong> isn&#39;t a special Android component. It is a simple class, without any particular implementation, which is responsible for fetching data from all available sources, from a database to web services. It handles all this data, generally transforming them to observable <strong>LiveData</strong>and making them available to the <strong>ViewModel</strong>.</li><li>The <strong>Room</strong> database is an SQLite mapping library that facilitates the process of dealing with a database. It automatically writes a ton of boilerplate, checks errors at compile time, and best of all, it can directly return queries with observable <strong>LiveData</strong>.</li></ol><p>The <a href="https://en.wikipedia.org/wiki/Observer_pattern">Observer Pattern</a> is one of the bases of the <strong>LiveData</strong> element and <strong>Lifecycle</strong> aware components. This pattern allows an object to notify a list of observers about any changes on its state or data. So when an Activity observes a LiveData entity, it will receive updates when that data undergoes any kind of modification.</p><p>Another Android recommendation is to consolidate its architecture using a <a href="https://en.wikipedia.org/wiki/Dependency_injection">Dependency Injection</a> system, like Google’s <a href="https://google.github.io/dagger/">Dagger 2</a> or using the <a href="https://en.wikipedia.org/wiki/Service_locator_pattern">Service Locator</a> pattern.</p><h3>Architecture Components</h3><p>We must dive deep into the aspects of the new components to be able to really understand and adopt this model of architecture. Due to the complexity of each element, in this article, we’ll only talk about the general idea behind each one and look at some simplified code snippets. We’ll try to cover enough ground to present the components and get you started. But fear not, because future articles in this series will dig deep and cover all the particularities of the Architecture Components.</p><h3>Lifecycle-Aware Components</h3><p>Most of the Android app components have lifecycles attached to them, which are managed directly by the system itself. Until recently it was up to the developer to monitor the components’ state and act accordingly, initializing and ending tasks at the appropriate time. However, it was really easy to get confused and make mistakes related to this type of operation. But the <a href="https://developer.android.com/reference/android/arch/lifecycle/package-summary.html">android.arch.lifecycle</a> package changed all that.</p><p>Now, Activities and Fragments have a <a href="https://developer.android.com/reference/android/arch/lifecycle/Lifecycle.html">Lifecycle</a> object attached to them that can be observed by <a href="https://developer.android.com/reference/android/arch/lifecycle/LifecycleObserver.html">LifecycleObserver</a> classes, like a <a href="https://developer.android.com/reference/android/arch/lifecycle/ViewModel.html">ViewModel</a> or any object that implements this interface. That means that the observer will receive updates about the state changes of the object that it is observing, like when an Activity is paused or when it is starting. It can also check the current state of the observed object. So it&#39;s much easier now to handle operations that must consider the framework lifecycles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*_752KdgMuAfHRlVA.jpg" /></figure><p>For now, to create an Activity or Fragment that conforms to this new standard, you have to extend a <a href="https://developer.android.com/reference/android/arch/lifecycle/LifecycleActivity.html">LifecycleActivity</a> or <a href="https://developer.android.com/reference/android/arch/lifecycle/LifecycleFragment.html">LifecycleFragment</a>. However, it&#39;s possible that this won&#39;t always be necessary, since the Android team is aiming to completely integrate these new tools with its framework.</p><p>The LifecycleObserver receives Lifecycle events and can react through annotation. No method override is necessary.</p><h3>The LiveData Component</h3><p>The LiveData component is a data holder that contains a value that can be observed. Given that the observer has provided a Lifecycle during the LiveData instantiation, LiveData will behave according to Lifecycle state. If the observer&#39;s Lifecycle state is STARTED or RESUMED, the observer is active; otherwise, it is inactive.</p><p>LiveData knows when the data was changed and also if the observer is active and should receive an update. Another interesting characteristic of the LiveData is that it&#39;s capable of removing the observer if it&#39;s in a Lifecycle.State.DESTROYED state, avoiding memory leaks when observed by Activities and Fragments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*3CJxYBYtFUNPHlQV.jpg" /></figure><h3>The ViewModel Component</h3><p>One of the most important classes of the new Architecture Components is the ViewModel, which is designed to hold data that is related to the UI, maintaining its integrity during configuration changes like screen rotations. The ViewModel is able to talk with the Repository, getting LiveData from it and making it available in turn to be observed by the view. ViewModel also won&#39;t need to make new calls to the Repository after configuration changes, which optimizes the code a lot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*G1QJhk8a6CpFfPb3.jpg" /></figure><h3>The Room Component</h3><p>Android supported SQLite from the start; however, to make it work, it was always necessary to write a lot of boilerplate. Also, SQLite didn’t save POJOs (plain-old Java objects), and didn’t check queries at compile time. Along comes Room to solve these issues! It is an SQLite mapping library, capable of persisting Java POJOs, directly converting queries to objects, checking errors at compile time, and producing LiveDataobservables from query results. Room is an <a href="https://en.wikipedia.org/wiki/Object-relational_mapping">Object Relational Mapping</a> library with some cool Android extras.</p><p>Until now, you could do most of what Room is capable of using other ORM Android libraries. However, none of them are officially supported and, most importantly, they can&#39;t produce LifeData results. The Roomlibrary fits perfectly as the persistent layer on the proposed Android Architecture.</p><p>To create a Room database, you&#39;ll need an @Entity to persist, which can be any Java POJO, a @Daointerface to make queries and input/output operations, and a @Database abstract class that must extend RoomDatabase.</p><h3>Conclusion</h3><p>The standardized architecture proposed by Android involves a lot of concepts. We can’t expect to have a complete understanding of this topic yet. After all, we’re merely introducing the theme. But we certainly have enough knowledge by now to understand the logic behind the architecture and the roles of the different Architecture Components.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=189b4721c7c5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oceanize-geeks/android-application-architecture-189b4721c7c5">Android Application Architecture</a> was originally published in <a href="https://medium.com/oceanize-geeks">Oceanize Lab Geeks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is VR?]]></title>
            <link>https://medium.com/techtunesbd/what-is-vr-3eda6b866437?source=rss-183cbd92086c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3eda6b866437</guid>
            <category><![CDATA[virtual-reality]]></category>
            <dc:creator><![CDATA[Md. Tanvir Hossain]]></dc:creator>
            <pubDate>Thu, 17 Aug 2017 02:49:02 GMT</pubDate>
            <atom:updated>2017-08-17T02:49:02.134Z</atom:updated>
            <content:encoded><![CDATA[<p>First i want to start with the formal introduction about VR(Virtual Reality)</p><p><strong>“Virtual Reality</strong> (<strong>VR</strong>) is the use of computer technology to create a simulated environment. Unlike traditional user interfaces, <strong>VR</strong> places the user inside an experience. Instead of viewing a screen in front of them, users are immersed and able to interact with 3D worlds.”</p><p><strong>VR Devices</strong></p><p>While devices generally take the same form, how they project imaging in front of our eyes varies greatly. The likes of the <a href="https://www.wareable.com/vr/htc-vive-review">HTC Vive</a> and <a href="https://www.wareable.com/oculus-rift/oculus-rift-review">Oculus Rift</a>provide PC-based operations, though major players such as Google and Samsung offer more affordable, smartphone-based headsets. Sony have also managed to crack the console scene with its <a href="https://www.wareable.com/sony/sony-playstation-vr-review">Playstation VR</a>.</p><p><strong>How to build your own VR Game or App?</strong></p><p>I am not going to discuss about programming here so the beginner programmer guys no need to hype,but i am sharing some important things how and where to start.</p><p>Designing for VR is much like designing videogames, as they are both 3D interactive experiences. The difference between designing for VR and designing for traditional videogames is that special considerations must be made for the nuanced experiences of presence and immersion, nonlinear storytelling, locomotion which reduces motion sickness, and graphical optimization.</p><p>Most VR developers opt to use a game engine, the two most popular being <a href="https://www.unrealengine.com/">Unreal Engine 4</a> (UE4) and <a href="https://unity3d.com/">Unity</a>(as i have done it with unity so the language gonna need for programming is C#/javascript/boo and also a VRStream a free plugin for unity for VR development). These are freely available software suites capable of managing 3D environments, importing custom assets (such as 3D models, imagery, sounds, video), and programming interactivity or gameplay. Even more, there are an insane number of YouTube tutorials for both engines, both official and fan-created.</p><p>Outside of game engines, you may opt to develop interactive VR webpages using <a href="https://aframe.io/">Mozilla’s A-Frame</a> markup language, or by using JavaScript (hack around with <a href="https://en.wikipedia.org/wiki/Three.js">Three.js</a>!), HTML5, and/or WebGL in the vein of web experiments recently put out by <a href="https://vr.chromeexperiments.com/">Chrome</a> and <a href="https://mozvr.com/">Mozilla</a>. Developing for web has the convenience of using a smartphone as the display, so you won’t need an expensive headset starting off. You also won’t need to compile or package any code, and can easily share your creations with your friends who also own smartphones. If this sounds like a lot of work, maybe try the easy-as pie VR scene editor <a href="http://blog.vizor.io/">Vizor</a>, which allows you to design VR imagery on the computer and then view it from mobile.</p><p><strong>Why VR and Why it is called to be future?</strong></p><p>It is the next step in consuming media.Virtual reality allows media consumers to submerge the senses, drowning out the rest of the world, eliminating distractions and magnifying the experience.VR is something that’s not a trend as much as it is another channel for media. Viewing content with or without being tethered to a computer is vastly different, as are the experiences that are possible.I am of the opinion that virtual reality <em>is</em> the future, just not necessarily in its current form. As with all new significant innovations, it can take time for mass product-market fit to occur.The issue is the mass perception that virtual reality is still in its infancy, and at it’s worst, is a toy. Until you can break the mental block that this is a real tool that can be used to promote a product or brand, it will be a difficult sell.Marketing today requires heavy engagement and consumers’ expectations are high. The virtual reality phenomenon is more than just a trend, it’s an opportunity for unique interaction and gamification on a new level of engagement.</p><p>The summary of the article is i think VR has the potential to be the next big medium but we have to make those potentials into in work and adopt it with its full potentials</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3eda6b866437" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techtunesbd/what-is-vr-3eda6b866437">What is VR?</a> was originally published in <a href="https://medium.com/techtunesbd">TechTunesBD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>