<?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 I A KHAN on Medium]]></title>
        <description><![CDATA[Stories by I A KHAN on Medium]]></description>
        <link>https://medium.com/@imitiyaz125?source=rss-5dcb3e997e0a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*89p9nK31YjBgfMvJGZHXSQ.jpeg</url>
            <title>Stories by I A KHAN on Medium</title>
            <link>https://medium.com/@imitiyaz125?source=rss-5dcb3e997e0a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:40:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@imitiyaz125/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[Building a Production AI Keyboard on Android — OpenAi, Gemini & Groq]]></title>
            <link>https://medium.com/@imitiyaz125/building-a-production-ai-keyboard-on-android-openai-gemini-groq-391f2ed6cf64?source=rss-5dcb3e997e0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/391f2ed6cf64</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[ai-keyboard]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[ai-android-app]]></category>
            <category><![CDATA[ai-on-device]]></category>
            <dc:creator><![CDATA[I A KHAN]]></dc:creator>
            <pubDate>Thu, 11 Jun 2026 04:39:19 GMT</pubDate>
            <atom:updated>2026-06-11T04:39:19.298Z</atom:updated>
            <content:encoded><![CDATA[<p>AI Keyboard available on Playstore : <a href="https://play.google.com/store/apps/details?id=im.ai.keyboard.clevertype.cleverreply&amp;hl=en_IN">CleverReply</a></p><p><strong>## Architecture, Scalability &amp; Multi-Source AI Orchestration</strong></p><p>&gt; How SmartKeyboard wires together six AI engines, on-device ML, and a resilient fallback system — all inside an Android IME.</p><p><strong>## The Problem Space</strong></p><p>Building an AI-powered keyboard is deceptively hard. A keyboard is not a normal Android app. It lives as a persistent background service — an `InputMethodService` — with no Activity lifecycle to lean on. It must respond in milliseconds, and it runs continuously across every app on the device.</p><p>Layer on top of that the ambition of integrating multiple AI providers, on-device ML, voice input, multilingual dictionaries, and a floating side panel, and you have one of the more architecturally interesting problems in Android engineering.</p><p>This post walks through how SmartKeyboard tackles architecture, scalability, and multi-source AI — what worked, what the trade-offs were, and what patterns are worth carrying into your own projects.</p><p><strong>— -</strong></p><p><strong>## High-Level Architecture</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*gmpbz_7Nxil4cC5KCA3tEg.png" /></figure><p>The architecture breaks into four vertical concerns:</p><p>The <strong>**host application**</strong> interacts with the keyboard exclusively through Android’s `InputConnection` API — it never knows what is happening inside the keyboard service.</p><p>`SmartKeyboardService` is the core. It owns a `CoroutineScope` backed by a `SupervisorJob`, and it coordinates a set of feature managers: `AISuggestionEngine`, `TextRewritingManager`, `MLKitManager`, and `SpeechRecognitionManager`. All UI is built with Jetpack Compose — no XML layouts anywhere.</p><p><strong>**Cloud AI providers**</strong> sit behind a factory abstraction. Six backends (Google Gemini, OpenAI, Groq, Saeta, a built-in pool, and a ChatGPT WebView fallback) all implement the same `AIProvider` interface. Calling code never knows which backend is active.</p><p><strong>**On-device AI**</strong> handles privacy-sensitive operations — translation and text rewriting — via ML Kit and Gemini Nano through Android’s AICore, with zero network round-trips.</p><p>The <strong>**side panel**</strong> is a separate Gradle module: a floating overlay that any app can trigger, communicating with the keyboard service through a thin `SidePanelAIBridge` interface.</p><p><strong>### Why SupervisorJob matters</strong></p><p>A suggestion fetch failing, a translation timing out, or a voice recognition error must never crash the keyboard itself. `SupervisorJob` ensures each child coroutine is independent — one failure does not cascade to its siblings.</p><p>```kotlin</p><p>private val serviceScope = CoroutineScope(SupervisorJob() + Dispatchers.Main)</p><p>```</p><p><strong>### No Room, no Hilt — on purpose</strong></p><p>Both add startup overhead. A keyboard service must be available instantly after boot. The data model is small enough for `SharedPreferences` and in-memory caches. DI is handled with lazy-initialized singletons scoped to the service — simpler, lighter, and faster to cold-start.</p><p><strong>— -</strong></p><p><strong>## The Input-to-AI Pipeline</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*3g8Xkh-w_iSC3e3B4nbkNQ.png" /></figure><p>Here is exactly what happens between a keypress and a suggestion chip appearing on screen.</p><p>When the user presses a key, `handleKeyPress` runs a Unicode font transformation if enabled, then immediately commits the character to the host app’s `InputConnection`. The text field updates before any suggestion logic runs — perceived input latency is zero.</p><p>Then `AISuggestionEngine.getAISuggestions(context)` fires. It runs ten suggestion types concurrently, emitting results as a `Flow&lt;List&lt;TextSuggestion&gt;&gt;`. The Compose UI collects the flow and updates the suggestion bar reactively as results arrive — no blocking, no waiting for the slowest worker.</p><p>The ten types split into three tiers:</p><p><strong>**Local (fast):**</strong> Word completions from the base dictionary, user-learned completions from a personal `LruCache`, frequent-word completions from a user frequency map, and N-gram next-word prediction using bigram and trigram context built from the user’s typing history.</p><p><strong>**Contextual (medium):**</strong> Multi-word phrase completions, contextual suggestions aware of the current app context (email, SMS, time/date), ML Kit smart replies, and emoji suggestions.</p><p><strong>**Correction (background):**</strong> Fuzzy matching using Levenshtein distance (typos within two edits of a dictionary word), and grammar and spelling corrections running as lower-priority background work.</p><p>Results are ranked — user-learned beats N-gram beats fuzzy beats base dictionary — deduplicated, and capped at a top-N per update cycle.</p><p><strong>### The rewrite / tone flow</strong></p><p>When the user taps a tone chip (Professional, Casual, Formal, Enthusiastic, or a platform-specific tone like LinkedIn or Twitter), `TextRewritingManager` fires a prompt to whichever `AIProvider` is currently active. The result streams into `NativeAIResultOverlay` — the same reactive pattern, just routed through the cloud instead of local dictionaries.</p><p><strong>— -</strong></p><p><strong>## Multi-Source AI — The Core Challenge</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*JaqFfPM8j4UTm07Zo-i2xw.png" /></figure><p>This is where SmartKeyboard gets genuinely interesting. The keyboard supports six AI backends, and the system must decide which to use at any moment — transparently, reliably, and without burning the user’s quota unnecessarily.</p><p>The central abstraction is a single interface:</p><p>```kotlin</p><p>interface AIProvider {</p><p>suspend fun complete(prompt: String, systemInstruction: String): String?</p><p>}</p><p>```</p><p>Every backend implements it. Switching providers or falling back to a different one requires zero changes anywhere in the suggestion or rewriting logic.</p><p><strong>### Decision flow</strong></p><p>When a request arrives, `AIProviderFactory` first checks whether the user has configured their own API key. If yes, that provider is used directly.</p><p>If not, the request goes to `BuiltInProviderOrchestrator`, which manages a pool of key slots across Gemini, OpenAI, and Saeta. Two strategies keep that pool reliable at scale.</p><p><strong>**LRU load balancing.**</strong> The orchestrator tracks when each slot was last used and always picks the least-recently-used healthy slot first. This distributes requests evenly across the pool, maximizing combined quota before any single slot hits a rate limit.</p><p><strong>**Health tracking.**</strong> Every HTTP response goes through `ProviderHealthTracker`. Status codes 400, 401, 402, 403, and 429 mark a slot as unhealthy. Unhealthy slots are skipped for subsequent requests and re-evaluated after a cooldown window. This is the circuit-breaker pattern applied to API key management — it prevents hammering a rate-limited endpoint and burning retry budget.</p><p>The fallback chain terminates at a WebView-based ChatGPT integration: always available, no key required. Users never hit a dead end.</p><p><strong>### Word limits as a cost ceiling</strong></p><p>The orchestrator enforces daily word limits per tier — a free cap and a higher premium cap — tracked in `SharedPreferences`. Crossing the limit shifts provider selection transparently toward the WebView fallback. Monetization and reliability are handled in the same place.</p><p><strong>— -</strong></p><p><strong>## AI Provider Deep Dive</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*mp5WjQbUVALCVPf2Zcx9bw.png" /></figure><p>All five concrete provider implementations sit behind the same `AIProvider` interface. Here are the key differences:</p><p><strong>**Gemini API**</strong> sends a JSON body to Google’s `generativelanguage.googleapis.com` endpoint with the API key as a URL query parameter. The system instruction goes in a top-level `systemInstruction` field alongside the `contents` array.</p><p><strong>**OpenAI**</strong> and <strong>**Groq**</strong> both use the OpenAI chat completions schema — an array of `messages` with `system` and `user` roles, a `Bearer` token in the `Authorization` header. Groq’s endpoint is OpenAI-compatible, so the only difference is the base URL and model name (`llama-3.3–70b-versatile`).</p><p><strong>**Saeta AI [internal build tool]**</strong> uses a URL-encoded form body with an MD5 signature computed from the credential fields, a timestamp, a nonce, and a content hash. The response is a JSON envelope with `Header.status` and `Content.text`.</p><p><strong>**BuiltInProviderOrchestrator**</strong> is not a provider itself — it wraps Gemini, OpenAI, and Saeta into a pool and applies the LRU and health-tracking logic described above.</p><p>All providers go through a `LoggingHttpInterceptor` in debug builds and use Java’s `HttpURLConnection` directly — no OkHttp or Retrofit.</p><p><strong>— -</strong></p><p><strong>## On-Device AI vs Cloud AI</strong></p><p>Not everything should leave the device. SmartKeyboard makes a deliberate split:</p><p><strong>**Translation**</strong> uses ML Kit Translate. Language models (~30 MB each) download on demand and run entirely locally. Zero network latency, zero data sent to a server, works offline.</p><p><strong>**Text rewriting**</strong> on supported devices uses Gemini Nano via Android’s AICore infrastructure. The model lives on the device, shared across apps.</p><p><strong>**Word suggestions, N-gram prediction, and fuzzy spell-check**</strong> are pure local computation — in-memory dictionaries, frequency maps, Levenshtein distance — with no network dependency at all.</p><p><strong>**Complex generation**</strong> (tone rewriting, expanding, shortening) goes to the cloud via `AIProviderFactory`.</p><p>This tiering is a principled privacy architecture. Sensitive text — documents, messages, drafts — is processed without leaving the hardware for the operations where local models are capable enough. Cloud is reserved for the operations that genuinely require it.</p><p><strong>— -</strong></p><p><strong>## Side Panel — The Standalone Module</strong></p><p>The `sidepanel` Gradle module extends the keyboard’s reach beyond the IME. It is a floating Compose overlay that can be triggered from any app.</p><p>`ScreenContext` reads visible text from the screen. `SidePanelAIBridge` passes it as a prompt to the same `AIProviderFactory` used by the keyboard. `SidePanelComposable` renders the floating result UI.</p><p>The module boundary is intentional. The side panel does not touch `SmartKeyboardService` internals — it communicates only through `SidePanelAIBridge`. This means the panel can be versioned and deployed independently, embedded in other apps as a standalone library, or optionally moved to a separate process to reduce IME memory pressure.</p><p><strong>— -</strong></p><p><strong>## Scalability Decisions</strong></p><p>| Decision | Why it scales |</p><p>| — -| — -|</p><p>| Factory pattern for AI providers | Add a new backend by adding one class — zero changes to call sites |</p><p>| LRU + health tracking | Fair quota distribution; auto-recovery without user-visible errors |</p><p>| ML Kit for translation | On-device means zero server cost; scales to unlimited users |</p><p>| SupervisorJob coroutine scope | Fault isolation per feature — one crash never kills the keyboard |</p><p>| Gradle module split | Independent versioning; panel embeddable in other apps |</p><p>| SharedPreferences over Room | Lower cold-start overhead — acceptable for IME data volume |</p><p>| Flow-based suggestion pipeline | Non-blocking; partial results shown as they arrive |</p><p>| In-memory LruCache dictionaries | Zero disk I/O during typing; sub-millisecond lookups |</p><p>| Tiered word limits | Cost ceiling enforced at the orchestrator; premium unlocks more |</p><p><strong>### Five fault-tolerance layers</strong></p><p>The system degrades gracefully through five layers before a user ever sees a failure:</p><p>1. Provider health tracking disables bad keys automatically</p><p>2. LRU pool rotation distributes load; no single point of failure</p><p>3. Fallback chain tries the next healthy slot transparently</p><p>4. ChatGPT WebView is always available as the last cloud option</p><p>5. Local suggestions work entirely without any cloud dependency</p><p><strong>— -</strong></p><p><strong>## What Could Improve</strong></p><p><strong>**HTTP client.**</strong> All six providers use Java’s raw `HttpURLConnection`. OkHttp would add connection pooling, transparent GZIP, and a cleaner interceptor model — meaningful wins at higher request volume.</p><p><strong>**Dependency injection.**</strong> Manual singleton wiring becomes harder to test as the number of managers grows. Hilt with `@ServiceScoped` bindings would make the service layer unit-testable.</p><p><strong>**Service class size.**</strong> `SmartKeyboardService` is 2,700 lines. Extracting input handling, suggestion orchestration, and UI coordination into dedicated coordinator classes would improve readability and make the seams between concerns easier to test independently.</p><p><strong>**On-device LLM coverage.**</strong> Gemini Nano via AICore is only available on supported devices. A small TFLite quantized model as a universal on-device fallback would close that gap.</p><p><strong>**Streaming responses.**</strong> Currently, providers return a complete response before anything is displayed. Streaming APIs would allow word-by-word output in the result overlay — a significant UX improvement for longer rewrites.</p><p><strong>— -</strong></p><p><strong>## Conclusion</strong></p><p>SmartKeyboard’s architecture earns its complexity. The challenges specific to an always-on Android IME — instant startup, fault tolerance, multilingual support, privacy constraints, and AI everywhere — push you toward every pattern in this post.</p><p>The most transferable insight is the multi-provider AI strategy. Treating every backend as interchangeable behind a common interface, with health tracking and LRU balancing across a key pool, delivers a reliable AI experience even when individual providers are down, rate-limited, or exhausted. That pattern applies directly to any application that depends on third-party AI APIs for core functionality.</p><p>The fundamentals: isolate faults with SupervisorJob, balance load with LRU, degrade gracefully through a fallback chain, and keep on-device models as the last line of defense.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=391f2ed6cf64" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ribbon Stretchable Alphabet Sidebar]]></title>
            <link>https://medium.com/@imitiyaz125/ribbon-stretchable-alphabet-sidebar-aa27a524958b?source=rss-5dcb3e997e0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa27a524958b</guid>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[I A KHAN]]></dc:creator>
            <pubDate>Tue, 07 Oct 2025 15:46:34 GMT</pubDate>
            <atom:updated>2025-10-07T15:46:34.294Z</atom:updated>
            <content:encoded><![CDATA[<h4>Ribbon Stretchable Alphabet Sidebar: A Niagara &amp; <a href="https://play.google.com/store/apps/details?id=com.im.focus_ui_homescreen_launcher&amp;hl=en_IN">Focus UI Launcher</a>-Style Curved Alphabet Sidebar in Jetpack Compose</h4><h3>Overview</h3><p>RibbonStretchableAlphabetSidebar is a custom Jetpack Compose component that implements a visually dynamic, interactive alphabet sidebar inspired by the Niagara &amp; <a href="https://play.google.com/store/apps/details?id=com.im.focus_ui_homescreen_launcher&amp;hl=en_IN">Focus UI Launcher</a>. It provides a smooth, curved ribbon of letters for fast app navigation, with animated scaling, stretching, and rotation effects as users drag or tap.</p><h3>Key Features</h3><ul><li><strong>Curved Ribbon Layout:</strong> Letters are distributed along a visually appealing arc, mimicking the Niagara &amp; <a href="https://play.google.com/store/apps/details?id=com.im.focus_ui_homescreen_launcher&amp;hl=en_IN">Focus UI Launcher</a>’s sidebar.</li><li><strong>Interactive Stretching:</strong> When dragging, nearby letters stretch and scale, creating a “rubber band” effect for tactile feedback.</li><li><strong>Animated Transitions:</strong> Uses Compose’s animation APIs for smooth scaling, alpha, and rotation transitions.</li><li><strong>Haptic Feedback:</strong> Tapping or dragging triggers subtle haptic feedback for a premium user experience.</li><li><strong>Customizable Callbacks:</strong> Easily hook into drag/tap events for navigation or filtering.</li></ul><h3>Ready to Integrate Implementation</h3><pre>import androidx.compose.animation.core.Spring<br>import androidx.compose.animation.core.animateFloatAsState<br>import androidx.compose.animation.core.spring<br>import androidx.compose.animation.core.tween<br>import androidx.compose.foundation.background<br>import androidx.compose.foundation.clickable<br>import androidx.compose.foundation.gestures.detectDragGestures<br>import androidx.compose.foundation.layout.Box<br>import androidx.compose.foundation.layout.fillMaxHeight<br>import androidx.compose.foundation.layout.offset<br>import androidx.compose.foundation.layout.size<br>import androidx.compose.foundation.layout.wrapContentSize<br>import androidx.compose.foundation.shape.CircleShape<br>import androidx.compose.material3.Text<br>import androidx.compose.runtime.Composable<br>import androidx.compose.runtime.getValue<br>import androidx.compose.ui.Alignment<br>import androidx.compose.ui.Modifier<br>import androidx.compose.ui.draw.clip<br>import androidx.compose.ui.draw.scale<br>import androidx.compose.ui.graphics.Color<br>import androidx.compose.ui.graphics.graphicsLayer<br>import androidx.compose.ui.hapticfeedback.HapticFeedbackType<br>import androidx.compose.ui.input.pointer.pointerInput<br>import androidx.compose.ui.platform.LocalConfiguration<br>import androidx.compose.ui.platform.LocalDensity<br>import androidx.compose.ui.platform.LocalHapticFeedback<br>import androidx.compose.ui.text.font.FontWeight<br>import androidx.compose.ui.unit.dp<br>import androidx.compose.ui.unit.sp<br>import kotlin.math.PI<br>import kotlin.math.abs<br>import kotlin.math.pow<br>import kotlin.math.sign<br>import kotlin.math.sin<br><br>@Composable<br>fun RibbonStretchableAlphabetSidebar(<br>    alphabet: List&lt;Char&gt;,<br>    selectedLetter: Char?,<br>    isDragging: Boolean,<br>    onLetterSelected: (Char) -&gt; Unit,<br>    onDragStart: () -&gt; Unit,<br>    onDragEnd: () -&gt; Unit,<br>    onDragOffsetChange: (Float) -&gt; Unit<br>) {<br>    val density = LocalDensity.current<br>    val haptic = LocalHapticFeedback.current<br>    Box(<br>        modifier = Modifier<br>            .fillMaxHeight()<br>            .pointerInput(Unit) {<br>                detectDragGestures(<br>                    onDragStart = { offset -&gt;<br>                        onDragStart()<br>                        val letterIndex = calculateLetterIndex(offset.y, size.height, alphabet.size)<br>                        val letter = alphabet.getOrNull(letterIndex)<br>                        if (letter != null) {<br>                            onLetterSelected(letter)<br>                            onDragOffsetChange(offset.y - size.height / 2)<br>                            haptic.performHapticFeedback(HapticFeedbackType.KeyboardTap)<br>                        }<br>                    },<br>                    onDragEnd = {<br>                        onDragEnd()<br>                    },<br>                    onDrag = { change, _ -&gt;<br>                        val letterIndex =<br>                            calculateLetterIndex(change.position.y, size.height, alphabet.size)<br>                        val letter = alphabet.getOrNull(letterIndex)<br>                        if (letter != null) {<br>                            onLetterSelected(letter)<br>                            haptic.performHapticFeedback(HapticFeedbackType.KeyboardTap)<br>                            onDragOffsetChange(change.position.y - size.height / 2)<br>                        }<br>                    }<br>                )<br>            }<br>    ) {<br>        // Get the height from LocalDensity and screen metrics<br>        val configuration = LocalConfiguration.current<br>        val maxHeight = configuration.screenHeightDp.dp<br>        val maxHeightPx = with(density) { maxHeight.toPx() }<br>        val totalLetters = alphabet.size<br><br>        alphabet.forEachIndexed { index, letter -&gt;<br>            val hasApps = true<br>            val isSelected = selectedLetter == letter<br><br>            val progress = index.toFloat() / (totalLetters - 1)<br><br>            // Base Y position distributed across screen height<br>            val baseY = progress * maxHeightPx * 0.55f + maxHeightPx * 0.075f<br><br>            val normalizedProgress = (progress - 0.5f) * 2f // -1 to 1<br>            val curveIntensity = 1f - abs(normalizedProgress) // 0 to 1, max at center<br>            val baseCurveOffset = curveIntensity * 5f // Base curve - stronger in middle<br><br>            // Interactive curve - create the &quot;bubble&quot; effect when dragging<br>            val selectedIndex = selectedLetter?.let { alphabet.indexOf(it) } ?: -1<br>            val distanceFromSelected = if (selectedIndex &gt;= 0) {<br>                abs(index - selectedIndex).toFloat()<br>            } else {<br>                Float.MAX_VALUE<br>            }<br>            val interactiveCurveOffset = if (isDragging &amp;&amp; distanceFromSelected &lt;= 16f) {<br>                val influence = maxOf(0f, 1f - distanceFromSelected / 16f)<br><br>                // Elastic ease-out stretch: starts strong, decays fast<br>                val elasticStretch = sin(influence * PI / 2).toFloat().pow(1.2f) // 0 to 1<br><br>                val stretchAmount = 90f // tweak for more/less rubber stretch<br><br>                // Only stretch letters to the left (from the right edge)<br>                elasticStretch * stretchAmount<br>            } else {<br>                0f<br>            }<br><br>            // Final X position - negative for leftward curve from right edge<br>            val finalX = -(baseCurveOffset + 8 * interactiveCurveOffset)<br>            val finalY = baseY<br><br>            val animatedScale by animateFloatAsState(<br>                targetValue = when {<br>                    isSelected -&gt; 2.5f // Much larger selected scale<br>                    isDragging &amp;&amp; distanceFromSelected &lt;= 1f -&gt; 1.9f<br>                    isDragging &amp;&amp; distanceFromSelected &lt;= 2f -&gt; 1.6f<br>                    isDragging &amp;&amp; distanceFromSelected &lt;= 3f -&gt; 1.3f<br>                    isDragging &amp;&amp; distanceFromSelected &lt;= 4f -&gt; 1.1f<br>                    hasApps -&gt; 1f<br>                    else -&gt; 0.85f<br>                },<br>                animationSpec = spring(<br>                    dampingRatio = 0.4f,<br>                    stiffness = Spring.StiffnessMediumLow<br>                ),<br>                label = &quot;letter_scale_$letter&quot;<br>            )<br><br>            val animatedAlpha by animateFloatAsState(<br>                targetValue = when {<br>                    isSelected -&gt; 1f<br>                    isDragging &amp;&amp; distanceFromSelected &lt;= 4f -&gt; 0.95f<br>                    hasApps -&gt; 0.75f<br>                    else -&gt; 0.35f<br>                },<br>                animationSpec = tween(durationMillis = 200),<br>                label = &quot;letter_alpha_$letter&quot;<br>            )<br><br>            val animatedX by animateFloatAsState(<br>                targetValue = finalX,<br>                animationSpec = spring(<br>                    dampingRatio = 0.5f, // Fluid, bouncy movement<br>                    stiffness = Spring.StiffnessLow<br>                ),<br>                label = &quot;letter_x_$letter&quot;<br>            )<br><br>            val animatedRotation by animateFloatAsState(<br>                targetValue = if (isDragging &amp;&amp; distanceFromSelected &lt;= 3f) {<br>                    val rotationIntensity = maxOf(0f, 1f - (distanceFromSelected / 3f))<br>                    val baseRotation = normalizedProgress * 8f // Base curve rotation<br>                    val interactiveRotation = rotationIntensity * 15f * sign(normalizedProgress)<br>                    baseRotation + interactiveRotation<br>                } else {<br>                    normalizedProgress * 5f // Subtle base rotation<br>                },<br>                animationSpec = spring(dampingRatio = 0.6f),<br>                label = &quot;letter_rotation_$letter&quot;<br>            )<br><br>            Box(<br>                modifier = Modifier<br>                    .wrapContentSize()<br>                    .offset(<br>                        x = with(density) { if (isSelected) animatedX.toDp() - 40.dp else animatedX.toDp() },<br>                        y = with(density) { finalY.toDp() }<br>                    )<br>                    .size(24.dp)<br>                    .scale(animatedScale)<br>                    .clip(CircleShape)<br>                    .background(<br>                        color = if (isSelected) {<br>                            Color.White.copy(alpha = 0.3f)<br>                        } else {<br>                            Color.Transparent<br>                        },<br>                        shape = CircleShape<br>                    )<br>                    .clickable(<br>                        enabled = hasApps,<br>                        onClick = {<br>                            onLetterSelected(letter)<br>                            haptic.performHapticFeedback(HapticFeedbackType.KeyboardTap)<br>                        }<br>                    )<br>                    .graphicsLayer {<br>                        alpha = animatedAlpha<br>                        rotationZ = animatedRotation<br>                        // Add subtle glow effect for selected letter<br>                        if (isSelected) {<br>                            shadowElevation = 12.dp.toPx()<br>                            spotShadowColor = Color.Black<br>                            ambientShadowColor = Color.Black<br>                        }<br>                    },<br>                contentAlignment = Alignment.TopCenter<br>            ) {<br>                Text(<br>                    modifier = Modifier.align(Alignment.TopCenter),<br>                    text = letter.toString(),<br>                    fontSize = when {<br>                        isSelected -&gt; 20.sp<br>                        isDragging &amp;&amp; distanceFromSelected &lt;= 2f -&gt; 12.sp<br>                        else -&gt; 12.sp<br>                    },<br>                    fontWeight = when {<br>                        isSelected -&gt; FontWeight.Bold<br>                        isDragging &amp;&amp; distanceFromSelected &lt;= 2f -&gt; FontWeight.SemiBold<br>                        hasApps -&gt; FontWeight.Medium<br>                        else -&gt; FontWeight.Normal<br>                    },<br>                    color = when {<br>                        isSelected -&gt; Color.White<br>                        hasApps -&gt;<br>                            Color.White<br>                                .copy(alpha = 0.9f)<br><br>                        else -&gt;<br>                            Color.White<br>                                .copy(alpha = 0.4f)<br>                    }<br>                )<br>            }<br>        }<br>    }<br>}<br><br>private fun calculateLetterIndex(y: Float, totalHeight: Int, totalLetters: Int): Int {<br>    val adjustedY = y - totalHeight * 0.1f<br>    val usableHeight = totalHeight * 0.8f<br>    val progress = (adjustedY / usableHeight).coerceIn(0f, 1f)<br>    return (progress * (totalLetters - 1)).toInt().coerceIn(0, totalLetters - 1)<br>}</pre><h3>How It Works</h3><ul><li><strong>Layout:</strong> Each letter’s position is calculated along a curved path, with additional offset and scaling applied when dragging.</li><li><strong>Animation:</strong> Letters animate their scale, alpha, and rotation based on selection and drag proximity.</li><li><strong>Interaction:</strong> Drag gestures are detected, and the closest letter to the drag position is selected and animated.</li><li><strong>Customization:</strong> The sidebar can be styled and integrated into any Compose layout, and callbacks allow for custom navigation logic.</li></ul><h3>Example Integration</h3><pre>Box(modifier = Modifier.fillMaxSize()) {<br>    RibbonStretchableAlphabetSidebar(<br>        alphabet = (&#39;A&#39;..&#39;Z&#39;).toList(),<br>        selectedLetter = selectedChar,<br>        isDragging = isDragging,<br>        onLetterSelected = { letter -&gt; /* update selection */ },<br>        onDragStart = { /* show drag UI */ },<br>        onDragEnd = { /* hide drag UI */ },<br>        onDragOffsetChange = { offset -&gt; /* animate UI */ }<br>    )<br>}</pre><h3>Customization Tips</h3><ul><li>Adjust curve intensity, stretch amount, and animation specs for different visual effects.</li><li>Combine with app lists or search for fast navigation.</li><li>Use with any set of characters, not just the alphabet.</li></ul><h3>Conclusion</h3><p>RibbonStretchableAlphabetSidebar brings a modern, interactive navigation experience to your Compose app. With its Niagara &amp; <a href="https://play.google.com/store/apps/details?id=com.im.focus_ui_homescreen_launcher&amp;hl=en_IN">Focus UI Launcher</a> -inspired design and smooth animations, it’s perfect for launchers, contact lists, or any UI needing fast, tactile navigation.</p><p>Reach out to me <a href="https://www.linkedin.com/in/imtiyaz-ahmad-khan-65843a126?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=android_app"><strong><em>LinkedIn</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa27a524958b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android System Design For Image Loading Library]]></title>
            <link>https://medium.com/@imitiyaz125/android-system-design-for-image-loading-library-dc14b12620d8?source=rss-5dcb3e997e0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc14b12620d8</guid>
            <category><![CDATA[image-loading-and-caching]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[I A KHAN]]></dc:creator>
            <pubDate>Wed, 05 Jun 2024 05:12:23 GMT</pubDate>
            <atom:updated>2024-06-05T05:12:23.640Z</atom:updated>
            <content:encoded><![CDATA[<p>This blog post will delve into the necessity of image loading libraries and provide insights into crafting our custom image loading library akin to Glide or Picasso.</p><p>Why do we need a library for image loading? Can’t we simply download an image and load it directly into an ImageView like this?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*Ipk2QMxvtY2AphI-TWFxcg.png" /><figcaption>Load image to ImageView</figcaption></figure><p>While the direct approach might suffice for a single image, it poses challenges when dealing with multiple images or a list of images. Here are a few major issues we might encounter:</p><ol><li>App performance , UI Laggy</li><li>OOM</li><li>Too much time to load</li><li>Manage download requests</li></ol><p>Due to above reasons we should have our own library for loading image or use any existing solutions which will provide solution for above problems.</p><p>Now we understands why we need library to load image but we still not clear how we will address these issues , Let’s get started</p><ol><li><strong>App performance , UI Laggy:</strong></li></ol><p>Bitmap pool should be used to improve app responsiveness as Downloading image &amp; converting it into Bitmap is CPU &amp; memory intensive work .</p><p>Bitmap pool will share the memory allocated to one bitmap will be reused by another when that bitmap is no longer needed &amp; this way new memory allocation will not need to be done which is very expensive work.</p><p><strong>2. OOM:</strong></p><p>OOM can be addressed by downsampling downloaded image for e.g if we downloading image of size 1000*1000 pixels &amp; our image view is of size 500*500 then why need to decode &amp; operate 1000*1000 size image in our memory so for this we will downsample original image to 500*500 which will help to save memory &amp; prevent OOM in our app.</p><p><strong>3. Too much time to load:</strong></p><p>To address load time , we will be doing Caching there will be 2 types of caching that can be used memory cache &amp; disk cache</p><p>memory cache: temporary stores data &amp; can be accessed quickly , this is recommended for frequently accessed data/images.</p><p>disk cache: stores data/image in local file storage &amp; accessing it may take some time , this is recommended for infrequently accessed data</p><p>4.<strong> Manage download requests</strong></p><p>There will be case when we scrolling list of image view &amp; keep scrolling in that case number of image views will come to screen &amp; goes off in fraction of milliseconds so in those cases we don’t need to download all images what we can do is keeping track of view lifecyclye &amp; based on that only we should download or cancel ongoing download request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cDvr0cF3u27qMeU2rr7hKw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc14b12620d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decode Netflix Android App]]></title>
            <link>https://medium.com/@imitiyaz125/decode-netflix-android-app-9e218e72ad83?source=rss-5dcb3e997e0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e218e72ad83</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[netflix]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[I A KHAN]]></dc:creator>
            <pubDate>Tue, 21 May 2024 05:50:52 GMT</pubDate>
            <atom:updated>2024-05-21T05:50:52.261Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog post, we’ll explore how a minor engineering error can result in significant revenue loss. To illustrate this, we’ll use Netflix as a case study.</p><p>**Often, understanding the fundamentals of the tech domain proves more beneficial than relentlessly focusing on topics like trees and graphs.**</p><p>Netflix halted password sharing in India approximately a year ago to bolster their revenue. This decision was made because people were sharing passwords with friends and family, resulting in a loss of potential new premium subscribers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m7rXX4_mdmwLqvt1f9eIzg.png" /></figure><p>for more info about stopping password shairing you can <a href="https://www.indiatoday.in/technology/news/story/netflix-india-ends-password-sharing-who-is-eligible-to-use-it-for-free-and-who-will-have-to-pay-2419119-2023-08-10">visit this news article</a>.</p><p>Returning to the focus of our blog, let’s examine how overlooking small details in technology and quality assurance can create backdoors in an application, potentially leading to significant revenue loss. This is precisely what Netflix aimed to prevent by implementing the strategy mentioned earlier.</p><p><strong>Code Source</strong>:</p><p>I’ve decompiled the source code of Netflix using the APK available on the Play Store. Upon reviewing the code, I’ve made several observations that confirm my ability to bypass their password sharing warning screen. As a result, I’ve been able to use my friend’s account for an extended period.</p><p><strong>Note: I’ve notified the Netflix support team about this issue, but it appears that they either lack interest in addressing it or may struggle to identify the problem themselves. Therefore, I’ve decided to write a brief technical blog about it.</strong></p><p><strong>Observable in Android</strong>:</p><p>As observable is lifecycle Aware &amp; if fragment/activity moves to pause state then it will not be listen in parent .</p><p>As far as i have gone through code i can see Whenever user selects any profile on below screen</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*tOIpXZd-7BHG0QBxG-utPA.jpeg" /><figcaption>Prifile selections</figcaption></figure><p>Users redirected to home screen &amp; if he is using other user’s password &amp; both are not on same wifi network then the user will see below screen [Expected]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Q_BblYz7MDz9NBcux8tctQ.jpeg" /></figure><p>However, if a user somehow navigates to the <strong>“News &amp; Hot” or any other tab</strong>, they can bypass the previously mentioned warning screen. It’s noticeable that the warning screen, which is active on the home screen, becomes inactive in this scenario. Although the logic for displaying the warning screen is still executed, it fails to block the user from proceeding beyond this screen because of expected observable behaviour.</p><p>Now question comes how can user lands to <strong>“News &amp; Hot” or any other Tab ?</strong></p><p>Upon selecting a profile, the screen transitions to the home screen with an animation that lasts a few milliseconds. During this brief interval, if the user performs a “secret action” made possible by a small technical oversight by the Netflix tech team, Netflix becomes unlocked for use.To know the <strong>secret action </strong>drop me mail : imitiyaz125@gmail.com or can connect me on <a href="https://in.linkedin.com/in/imtiyaz-ahmad-khan-65843a126">LinkedIn</a> .</p><p>Netflix team don’t hesitate to reach out to me if you need any help from me to fix this issue😎 .</p><p>I am willing to buy subscription but as of now can’t as i know little tech to use it for free.</p><p><strong>observable code reference:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m30IXsGs2emIsVjMX6APxQ.png" /></figure><p>I’m about to continue watching “Hiramandi” using a friend’s account. :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*K2JnMOzWg_dzdGv01V9_qw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e218e72ad83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Star Rating Bar In Jetpack compose]]></title>
            <link>https://medium.com/@imitiyaz125/star-rating-bar-in-jetpack-compose-5ae54a2b5b23?source=rss-5dcb3e997e0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ae54a2b5b23</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[play-store-reviews]]></category>
            <category><![CDATA[star-rating-widget]]></category>
            <category><![CDATA[review-widget]]></category>
            <dc:creator><![CDATA[I A KHAN]]></dc:creator>
            <pubDate>Wed, 06 Dec 2023 10:54:11 GMT</pubDate>
            <atom:updated>2023-12-06T10:54:11.352Z</atom:updated>
            <content:encoded><![CDATA[<p>Here we will focussed on generic star based progress which can be used in Showing rating dialog in app flow , similar to Play store rating star .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7oZO1rSZoe2jW1KQerfojw.png" /><figcaption>Star rating bar</figcaption></figure><pre>@Composable<br>fun StarRatingBar(<br>    maxStars: Int = 5,<br>    rating: Float,<br>    onRatingChanged: (Float) -&gt; Unit<br>) {<br>    val density = LocalDensity.current.density<br>    val starSize = (12f * density).dp<br>    val starSpacing = (0.5f * density).dp<br><br>    Row(<br>        modifier = Modifier.selectableGroup(),<br>        verticalAlignment = Alignment.CenterVertically<br>    ) {<br>        for (i in 1..maxStars) {<br>            val isSelected = i &lt;= rating<br>            val icon = if (isSelected) Icons.Filled.Star else Icons.Default.Star<br>            val iconTintColor = if (isSelected) Color(0xFFFFC700) else Color(0x20FFFFFF)<br>            Icon(<br>                imageVector = icon,<br>                contentDescription = null,<br>                tint = iconTintColor,<br>                modifier = Modifier<br>                    .selectable(<br>                        selected = isSelected,<br>                        onClick = {<br>                            onRatingChanged(i.toFloat())<br>                        }<br>                    )<br>                    .width(starSize).height(starSize)<br>            )<br><br>            if (i &lt; maxStars) {<br>                Spacer(modifier = Modifier.width(starSpacing))<br>            }<br>        }<br>    }<br>}</pre><p>How to use above block of code :</p><pre>@Composable<br>fun StarRatingSample() {<br>    var rating by remember { mutableStateOf(1f) } //default rating will be 1<br><br>    StarRatingBar(<br>        maxStars = 5,<br>        rating = rating,<br>        onRatingChanged = {<br>            rating = it<br>        }<br>    )<br>}</pre><p>Connect Me On</p><p>LinkedIn: <a href="https://in.linkedin.com/in/imtiyaz-ahmad-khan-65843a126">https://in.linkedin.com/in/imtiyaz-ahmad-khan-65843a126</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ae54a2b5b23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[System Design for Caller suggestion & spam block - Truecaller way]]></title>
            <link>https://medium.com/@imitiyaz125/hld-for-truecaller-callapp-spam-blocker-mobile-67dc8c90aa40?source=rss-5dcb3e997e0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/67dc8c90aa40</guid>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[high-level-design]]></category>
            <category><![CDATA[block-spam-calls]]></category>
            <category><![CDATA[truecaller]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <dc:creator><![CDATA[I A KHAN]]></dc:creator>
            <pubDate>Fri, 01 Dec 2023 05:52:54 GMT</pubDate>
            <atom:updated>2023-12-02T08:15:12.700Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog we will discuss <strong>High level system design</strong> for Spam call blocker which i have developed like <strong>TrueCaller</strong>.</p><p>Here is the app which i developed to understand working of truecaller :</p><p><a href="https://play.google.com/store/apps/details?id=com.im.block_spam_call_caller_id&amp;hl=en&amp;gl=US">https://play.google.com/store/apps/details?id=com.im.block_spam_call_caller_id&amp;hl=en&amp;gl=US</a></p><h3><strong>Features Covered</strong></h3><ol><li>Suggest caller name</li><li>Detect spam call</li><li>Block detected incoming spam call</li><li>Suggest caller name</li><li>Mark call as spam/report/job etc.</li><li>Basic contact features like save/edit/delete contact.</li></ol><p>We will be discussing design for each features individually &amp; at the end i will be shairing overall design for discussed features all combined</p><h4><strong>Caller name suggestion</strong></h4><p>Caller name suggestion is all about suggesting name to incoming/outgoing calls which is not saved in user’s mobile contact &amp; if contact is already saved we will be displaying saved name as suggested names.</p><p>Now you guys will be thinking how name suggestion works , don’t worry we will be covering that also another blog in detail. for now just consider that there is one service which return name to requested numbers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8uLtLA_GbbZGGCar1xY_jA.png" /><figcaption><strong>Caller Name suggestion HLD</strong></figcaption></figure><h4><strong>Detect spam call</strong></h4><p>When call is detected request will be sent to Spam call engine whose responsibility to return spam status which consist of spam count, number of users who market this numbers as spam &amp; other details.</p><p>Spam Call Engine -&gt; This will check for local cache first is this spam details are already available in cache this will be returned from here , otherwise request to Api service will be sent to get spam details for mobile number.</p><p>whenever Api service return updated result we will be refreshing our cache so that user will always get recently updated details.</p><p>Cache -&gt; We will be clearing our cache for specified number after every “x” days so that user will not get stucked with stale data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uF0ltkvMwvGCGmr3TGVD8w.png" /><figcaption><strong>Spam Suggestion HLD</strong></figcaption></figure><h4><strong>Block detected incoming spam call</strong></h4><p>Once we get result from spam check engine, call can be blocked/silenced &amp; whatever other option we want to perform/display etc.</p><p>for HLD you can refer <strong>Detect spam call </strong>section.</p><h4><strong>Suggest caller name &amp; </strong>Mark call as spam/report/job etc.</h4><p>Once user recieved call from any number , feedback screen will be displayed which has option to suggest better name for person who called.</p><p>Also user have option to mark call as number as Spam, Job , Report etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x-ZIKEau3mo6oSD5GrQgQQ.png" /><figcaption><strong>Push name &amp; Call Type info HLD</strong></figcaption></figure><p><strong>Basic contact features like save/edit/delete contact</strong></p><p>Basic features are developed using content provider which will help in save, delete,update etc.</p><p>Let me know in comments if you guys need HLD for this also, will add here .</p><p>Here is Full HLD for above discussed features of CallApp - Spam call blocker</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FyExPR2Xqs3GGnWMb9F-7Q.png" /><figcaption>CallApp — HLD</figcaption></figure><p>For anything related to mobile , connect me on</p><p>LinkedIn: <a href="https://in.linkedin.com/in/imtiyaz-ahmad-khan-65843a126">https://in.linkedin.com/in/imtiyaz-ahmad-khan-65843a126</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67dc8c90aa40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build AOSP Emulator Image]]></title>
            <link>https://medium.com/@imitiyaz125/build-aosp-emulator-image-fd4ae86a39cc?source=rss-5dcb3e997e0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd4ae86a39cc</guid>
            <category><![CDATA[emulator]]></category>
            <category><![CDATA[aosp]]></category>
            <category><![CDATA[emulator-image]]></category>
            <category><![CDATA[pixel]]></category>
            <category><![CDATA[android-source-code]]></category>
            <dc:creator><![CDATA[I A KHAN]]></dc:creator>
            <pubDate>Tue, 14 Nov 2023 07:23:18 GMT</pubDate>
            <atom:updated>2023-11-14T07:30:08.107Z</atom:updated>
            <content:encoded><![CDATA[<p>This blog will help you to understand how to create emulator image from AOSP source code.</p><p>Let’s start without wasting time.</p><h3>For building emulator image please follow below steps</h3><p>Go to you source code directory &amp; run below commands</p><ol><li>source build/envsetup.sh</li><li>lunch sdk_phone_x86_64 [<strong>for intel chip with x86_64</strong>]</li><li>make emu_img_zip</li></ol><blockquote>If you want to build emulator image for other architecture instead of running “2” command just run “lunch” it will show list of images choose your one &amp; good to go.</blockquote><blockquote>This generates an <strong>sdk-repo-linux-system-images-eng.[username]].zip</strong> file.</blockquote><p>Download above zip file &amp; unzip it you will get x86_64 folder</p><p>Now comes<strong> 2 ways to create emulator image with custom system-image</strong> we have downloaded</p><h3><strong>First Way:</strong></h3><ol><li>create emulator via android studio &amp; select Api 33 etc.</li><li>now inside images go to android-33 or whatever you have used to create emulator in above steps</li><li>go inside “google_apis” folder &amp; replace x86_64 folder with new x86_64 folder we downloaded via above mentioned steps .</li></ol><p><strong>Path for system images:</strong></p><p><em>cd /Users/user_name/Library/Android/sdk/system-images</em></p><p>This will have images based on what you have downloaded via android studio while creating emulators</p><p><strong>Launch emulator via below commands</strong></p><p><em>cd Library/Android/sdk</em></p><p><em>~/Library/Android/sdk/emulator/emulator -avd </em><strong><em>Pixel_7_API_34</em></strong><em> -writable-system</em></p><p><strong>Pixel_7_API_34 -&gt; </strong>replace it with your emulator name</p><h3>Second way:</h3><ol><li>from home path run “<em>cd Library/Android/sdk</em>”</li><li>Go inside system-images → create folder “android-50” or any number 51,52 etc.</li><li>inside android-50 → create default folder &amp; paste downloaded x86_64 folder here.</li><li>Now try to create emulator image from android studio &amp; downloaded system-image will be shown as options with google-apis system image .</li><li>choose downloaded one &amp; create emulator.</li></ol><p><strong>Launch emulator via below commands</strong></p><p><em>cd Library/Android/sdk</em></p><p><em>~/Library/Android/sdk/emulator/emulator -avd </em><strong><em>Pixel_7_API_34</em></strong><em> -writable-system</em></p><p><strong>Pixel_7_API_34 -&gt; </strong>replace it with your emulator name</p><p>Now just &amp; wait watch you emulator will launch.</p><p>Both of the above way or atleast 1 should work for emulator image creation.</p><blockquote><strong>Note</strong>: If you are not able to create emulator image using above steps then update android studio, sdk, tools, avd, emulator then restarted android studio/system then it should work .</blockquote><blockquote>If you are using <strong>MAC with M1/M2 Chip </strong>then you have to do one more step to be able to support emulator image on your system</blockquote><p><strong>Open BoardConfig.mk file</strong></p><p><em>vi build/target/board/emulator_arm64/BoardConfig.mk</em></p><p><strong>check the source code you will find 2 lines related to kernel , Just remove those two lines related to kernel</strong></p><p>Now good to go just follow this blog from start.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd4ae86a39cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firebase Crashlytics Internals]]></title>
            <link>https://medium.com/@imitiyaz125/firebase-crashlytics-internals-cb295c4e930d?source=rss-5dcb3e997e0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb295c4e930d</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[firebase-crashlytics]]></category>
            <category><![CDATA[crashlytics]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[firebase-working]]></category>
            <dc:creator><![CDATA[I A KHAN]]></dc:creator>
            <pubDate>Tue, 14 Nov 2023 06:31:24 GMT</pubDate>
            <atom:updated>2023-11-14T06:31:24.533Z</atom:updated>
            <content:encoded><![CDATA[<p>This blog will help you to understand how crashlytics is implemented , Classes involved in handling crash-report capturing , storing &amp; sending to to server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XK81T9nmS7j_qACs.jpg" /></figure><p><strong>SessionReportingCoordinator -&gt;</strong></p><ul><li>capturing, storing and later uploading of events, crashes etc is coordinated by SessionReportingCoordinator</li><li>When crashlytics get initialised most important thing to do is open session which includes <strong>SessionReportingCoordinator.onBeginSession</strong> that creates the CrashlyticsReport [even there is no crash this will get created , separate process is there to delete old reports]</li><li>Also responsible coordination of storing logs, custom keys, usertId.</li><li>onLog is used to store logs.</li><li>onCustomKey is used to store custom information about the user or the app.</li><li>onUserId is used to define who the report belongs to.</li><li>Other important are Fatal,Non fatal exception &amp; ANR which also coordinated by SessionReportingCoordinator</li></ul><p><strong>Now coming to 3 Most important classes Which helps in generation of crashlytics report</strong></p><p><strong>CrashlyticsReportDataCapture</strong></p><ul><li>This will generate data from multiple places which needs to be merged .</li><li>Gets device version,API level, RAM usage, free disk space, screen rotation, battery level &amp; much more</li></ul><p><strong>CrashlyticsReportPersistence</strong></p><ul><li>Stores report on persistent media, method it used are persistReport and persistEvent.</li></ul><p><strong>DataTransportCrashlyticsReportSender</strong></p><ul><li>captured and stored data needs to uploaded to firebase this class does same. It has one main method sendReport that sends the CrashlyticsReport to Firebase.</li></ul><p><strong>DataCollectionArbiter</strong></p><ul><li>It checks if crashlytics is enabled then allow to upload report to firebase else it will stores crash or other event locally &amp; whenever in future crashlytics gets enabled then it will push to firebase.</li></ul><p><strong>CrashlyticsController</strong></p><p>Classes we have seen till now , no one do work by themselves , CrashlyticsController is the one who tells these classes to do work</p><ul><li>First a session is opened. This is when SessionReportingCoordinator.onBeginSession is called and the initial CrashlyticsReport is created.</li><li>Second the uncaught exception handler is set. In case you don’t know all threads have a default exception handler that sends the exception to the JVM thereby crashing the app. Crashlytics creates a exception handler that intercepts the exceptions that weren’t caught and does something with them but it also sends the exception to the previous exception handler, that’s why the app stills crashes.</li></ul><p><strong>what happens when an uncaught exception happens.</strong></p><ol><li>crashMarker.create is called to create a marker that indicates a crash happened.</li><li>reportingCoordinator.persistFatalEvent is called to persist the exception.</li><li>doCloseSessions is called and the current session is closed.</li><li>doOpenSession is called and a new session is opened.</li><li>logAnalyticsAppExceptionEvents and reportingCoordinator.sendReports are called if data collection is enabled. This causes all data that was collected to be uploaded to Crashlytics.</li></ol><p><strong>CrashlyticsCore</strong></p><ul><li>Responsible for initializing the library. The SessionReportingCoordinator, StackTraceTrimmingStrategy and CrashlyticsController are all created here.</li><li>FirebaseCrashlytics is the main API provided by Crashlytics and is basically a wrapper around CrashlyticsCore</li><li>most of its calls are delegated to CrashlyticsController.</li></ul><p><strong>CrashlyticsFileMarker</strong></p><ul><li>Sometimes you need to record some information and recover it the next time the app starts</li><li>CrashlyticsFileMarker is not like a database where you can store information, it simply creates a file as a marker. It’s three main methods are create, isPresent and remove.</li></ul><p><strong>StackTraceTrimmingStrategy</strong></p><ul><li>RemoveRepeatsStrategy: Removes stack traces if they repeated times more than the desired value.</li><li>MiddleOutStrategy: Removes stack traces from the middle of the list if it’s over the desired length.</li><li>MiddleOutFallbackStrategy: Runs one or more strategies to reduce the stack trace length and if the desired length was still not achived, the MiddleOutStrategy is used.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb295c4e930d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android GlassMorphic View (IOS like widget)]]></title>
            <link>https://medium.com/@imitiyaz125/android-glassmorphic-view-ios-like-widget-2e2fe1acae2a?source=rss-5dcb3e997e0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e2fe1acae2a</guid>
            <category><![CDATA[blur-image-background]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[glassmorphism]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[I A KHAN]]></dc:creator>
            <pubDate>Fri, 07 Jul 2023 04:20:28 GMT</pubDate>
            <atom:updated>2023-07-07T04:20:28.673Z</atom:updated>
            <content:encoded><![CDATA[<p>In Android there is no direct way to get affect like IOS have for their Lockscreen widget [refer IOS design below ]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*VQdR8lLK5-vDfzpiBWn7fA.png" /><figcaption>GlassMorph effect in IOS</figcaption></figure><p>Now coming to main part of this blog how we can achieve similar efffect in Android , Lets find out</p><p><strong>Step 1</strong>: Create Full screen Image View (background) like we have in above design .</p><pre>&lt;ImageView<br>        android:id=&quot;@+id/wallpaperIv&quot;<br>        android:layout_width=&quot;match_parent&quot;<br>        android:layout_height=&quot;match_parent&quot;<br>        android:scaleType=&quot;centerCrop&quot;<br>        android:src=&quot;@drawable/fullscreen_image&quot;/&gt;</pre><p>replace “fullscreen_image” with your image</p><p><strong>Step 2</strong>: Get bitmap from “wallpaperIv” like below</p><pre>val fullScreenBitmap =Bitmap.createBitmap(wallpaper.drawable.<br>                      toBitmap(wallpaper.width, wallpaper.height))</pre><p><strong>Step 3</strong>: Lets create “CustomShapeDrawable” to give color shade like we have white in design for GlassMorphic area,</p><pre>class CustomShapeDrawable(<br>    val context: Context,<br>    val startColor: String = &quot;#FFFFFF&quot;,<br>    val endColor: String = &quot;#FFFFFF&quot;<br>) : Drawable() {<br>    private val paint = Paint(Paint.ANTI_ALIAS_FLAG)<br>    private val rect = RectF()<br><br>    override fun draw(canvas: Canvas) {<br>        val left = bounds.left.toFloat()<br>        val top = bounds.top.toFloat()<br>        val right = bounds.right.toFloat()<br>        val bottom = bounds.bottom.toFloat()<br>        val startColor = Color.parseColor(startColor)<br>        val endColor = Color.parseColor(endColor)<br><br>        rect.set(left, top, right, bottom)<br><br>        // Create and set the gradient<br>        val gradient = LinearGradient(<br>            left, bottom, right, top,<br>            startColor, endColor,<br>            Shader.TileMode.CLAMP<br>        )<br>        paint.shader = gradient<br>        canvas.drawRoundRect(<br>            rect, context.resources.getDimension(R.dimen.dp20),<br>            context.resources.getDimension(R.dimen.dp20),<br>            paint<br>        )<br>    }<br><br>    override fun onBoundsChange(bounds: Rect) {<br>        super.onBoundsChange(bounds)<br>        rect.set(bounds)<br>    }<br><br>    override fun setAlpha(alpha: Int) {<br>        paint.alpha = alpha<br>    }<br><br>    override fun setColorFilter(colorFilter: ColorFilter?) {<br>        paint.colorFilter = colorFilter<br>    }<br><br>    override fun getOpacity(): Int {<br>        return PixelFormat.OPAQUE<br>    }<br>}</pre><p>below method will only assign bitmap to class member variable</p><pre>fun setBitmapWithOverlay(fullScreenBitmap: Bitmap) {<br>    GlobalScope.launch (Dispatchers.Default) {<br>        fullScreenBitmap.compress(Bitmap.CompressFormat.JPEG, 0, ByteArrayOutputStream())<br>        this.fullScreenBitmap = fullScreenBitmap<br>        val opacityPercentage = 25<br>        val alphaForBlurImageColor = (opacityPercentage * 255 / 100)<br>        val color = &quot;#${Integer.toHexString(alphaForBlurImageColor)}FFFFFF&quot;<br>        val overlayDrawable = CustomShapeDrawable(<br>            context, endColor = color, startColor = color<br>        )<br>        withContext(Dispatchers.Main){<br>            overlayShadeIv?.background = overlayDrawable<br>        }<br>    }<br>}</pre><p>overlayShadeIv -&gt; Image sitting above our wallpaperIv at the bottom (Just to give whitish shade like we have in design )</p><pre>&lt;ImageView<br>    android:id=&quot;@+id/overlayShadeIv&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;96dp&quot;<br>    android:layout_gravity=&quot;bottom&quot;<br>    android:layout_marginStart=&quot;10dp&quot;<br>    android:layout_marginTop=&quot;8dp&quot; /&gt;</pre><p>Now, we will also need one more Image View lets create here only</p><p>overlayBlurIv -&gt; Image sitting above our wallpaperIv at the bottom to give blurred effect like GlassMorphic view {don’t worry will explain when we use it}</p><pre>&lt;ImageView<br>    android:id=&quot;@+id/overlayBlurIv&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;96dp&quot;<br>    android:layout_gravity=&quot;bottom&quot;<br>    android:layout_marginStart=&quot;10dp&quot;<br>    android:layout_marginTop=&quot;8dp&quot; /&gt;</pre><p><strong>Step 4</strong> : Let’s give final GlassMorph effect to our design , Use above created bitmap to created Blurred portion bitmap</p><p>Now , we need to get portion of the bitmap from “fullscreenBitmap” (from wallpaperIv we have) &amp; make sure the portion is created from intersecting area of “overlayBlurIv” &amp; “wallpaperIv” otherwise it will not give perfect glassmorphic design.</p><pre>private fun applyGlassMorphism(<br>    multiTransformation: MultiTransformation&lt;Bitmap&gt;<br>) {<br>    if (fullScreenBitmap != null &amp;&amp; overlayBlurIv?.visibility == View.VISIBLE) {<br>        val rect = Rect()<br>        overlayBlurIv?.getGlobalVisibleRect(rect)<br>        val x = rect.left<br>        val y = rect.top<br><br>        val overlappingRect = Rect()<br>        overlayBlurIv?.getGlobalVisibleRect(overlappingRect)<br>        val width = rect.width()<br>        val height = rect.height()<br>        GlobalScope.launch(Dispatchers.IO) {<br>            val portionBitmap = Bitmap.createBitmap(fullScreenBitmap!!, x, y, width, height)<br><br>            withContext(Dispatchers.Main) {<br>                Glide.with(context)<br>                    .load(portionBitmap)<br>                    .apply(bitmapTransform(multiTransformation))<br>                    .into(overlayBlurIv)<br>            }<br>        }<br>    }<br>}</pre><p>We have used “Glide” library here to load image effectively &amp; also to give blur radius more than 25 (in our case i will be of 75)</p><p>As we can the method “applyGlassMorphism” is expecting “MultiTransformation&lt;Bitmap&gt;” , now we have to create same</p><p>Below two classes will give blurred effect when used to get “MultiTransformation&lt;Bitmap&gt;” like</p><pre>val blurRadius = 75<br>val roundedCorners: Transformation&lt;Bitmap&gt; = RoundedCorners(<br>    context.resources.getDimension(R.dimen.dp20).toInt()<br>)<br>val multiTransformation =<br>    MultiTransformation(roundedCorners, BlurTransformation(blurRadius))<br><br><br><br>// Now just need to call applyGlassMorphism(multiTransformation)</pre><pre>public class BlurredTransformation extends CustomBitmapTransformation {<br><br>    private static final int VERSION = 1;<br>    private static final String ID =<br>            &quot;jp.wasabeef.glide.transformations.BlurTransformation.&quot; + VERSION;<br><br>    public static final int MAX_RADIUS = 25;<br>    private static final int DEFAULT_DOWN_SAMPLING = 1;<br><br>    private final int radius;<br>    private final int sampling;<br><br>    public BlurTransformation() {<br>        this(MAX_RADIUS, DEFAULT_DOWN_SAMPLING);<br>    }<br><br>    public BlurTransformation(int radius) {<br>        this(radius, DEFAULT_DOWN_SAMPLING);<br>    }<br><br>    public BlurTransformation(int radius, int sampling) {<br>        this.radius = radius;<br>        this.sampling = sampling;<br>    }<br><br>    @Override<br>    protected Bitmap transform(@NonNull Context context, @NonNull BitmapPool pool,<br>                               @NonNull Bitmap toTransform, int outWidth, int outHeight) {<br><br>        int width = toTransform.getWidth();<br>        int height = toTransform.getHeight();<br>        int scaledWidth = width / sampling;<br>        int scaledHeight = height / sampling;<br><br>        Bitmap bitmap = pool.get(scaledWidth, scaledHeight, Bitmap.Config.ARGB_8888);<br><br>        setCanvasBitmapDensity(toTransform, bitmap);<br><br>        Canvas canvas = new Canvas(bitmap);<br>        canvas.scale(1 / (float) sampling, 1 / (float) sampling);<br>        Paint paint = new Paint();<br>        paint.setFlags(Paint.FILTER_BITMAP_FLAG);<br>        canvas.drawBitmap(toTransform, 0, 0, paint);<br><br>        try {<br>            bitmap = RSBlur.blur(context, bitmap, radius);<br>        } catch (RSRuntimeException e) {<br>            bitmap = FastBlur.blur(bitmap, radius, true);<br>        }<br><br>        return bitmap;<br>    }<br><br>    @Override<br>    public String toString() {<br>        return &quot;BlurTransformation(radius=&quot; + radius + &quot;, sampling=&quot; + sampling + &quot;)&quot;;<br>    }<br><br>    @Override<br>    public boolean equals(Object o) {<br>        return o instanceof BlurredTransformation &amp;&amp;<br>                ((BlurredTransformation) o).radius == radius &amp;&amp;<br>                ((BlurredTransformation) o).sampling == sampling;<br>    }<br><br>    @Override<br>    public int hashCode() {<br>        return ID.hashCode() + radius * 1000 + sampling * 10;<br>    }<br><br>    @Override<br>    public void updateDiskCacheKey(@NonNull MessageDigest messageDigest) {<br>        messageDigest.update((ID + radius + sampling).getBytes(CHARSET));<br>    }<br>}</pre><pre>public abstract class CustomBitmapTransformation implements Transformation&lt;Bitmap&gt; {<br><br>    @NonNull<br>    @Override<br>    public final Resource&lt;Bitmap&gt; transform(@NonNull Context context, @NonNull Resource&lt;Bitmap&gt; resource,<br>                                            int outWidth, int outHeight) {<br>        if (!Util.isValidDimensions(outWidth, outHeight)) {<br>            throw new IllegalArgumentException(<br>                    &quot;Cannot apply transformation on width: &quot; + outWidth + &quot; or height: &quot; + outHeight<br>                            + &quot; less than or equal to zero and not Target.SIZE_ORIGINAL&quot;);<br>        }<br>        BitmapPool bitmapPool = Glide.get(context).getBitmapPool();<br>        Bitmap toTransform = resource.get();<br>        int targetWidth = outWidth == Target.SIZE_ORIGINAL ? toTransform.getWidth() : outWidth;<br>        int targetHeight = outHeight == Target.SIZE_ORIGINAL ? toTransform.getHeight() : outHeight;<br>        Bitmap transformed = transform(context.getApplicationContext(), bitmapPool, toTransform, targetWidth, targetHeight);<br><br>        final Resource&lt;Bitmap&gt; result;<br>        if (toTransform.equals(transformed)) {<br>            result = resource;<br>        } else {<br>            result = BitmapResource.obtain(transformed, bitmapPool);<br>        }<br><br><br><br>        return result;<br>    }<br><br>    void setCanvasBitmapDensity(@NonNull Bitmap toTransform, @NonNull Bitmap canvasBitmap) {<br>        canvasBitmap.setDensity(toTransform.getDensity());<br>    }<br><br>    protected abstract Bitmap transform(@NonNull Context context, @NonNull BitmapPool pool,<br>                                        @NonNull Bitmap toTransform, int outWidth, int outHeight);<br><br>    @Override<br>    public abstract void updateDiskCacheKey(@NonNull MessageDigest messageDigest);<br><br>    @Override<br>    public abstract boolean equals(Object o);<br><br>    @Override<br>    public abstract int hashCode();<br>}</pre><p>Now we have similar GlassMorph view as we have in design see below screen shot</p><figure><img alt="Output of what we have done above" src="https://cdn-images-1.medium.com/max/840/1*cvHhGPx2rTR4FFnR42mkmQ.png" /></figure><p>Thanks for reading this article hope you have got some learning from this.</p><p>For any corrections/suggestions or just for chit chat reach out to me here: <a href="https://imtiyaz-khan-32866.web.app/#/">https://imtiyaz-khan-32866.web.app/#/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e2fe1acae2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter firebase web hosting]]></title>
            <link>https://medium.com/@imitiyaz125/flutter-firebase-web-hosting-20fd1cc0af78?source=rss-5dcb3e997e0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/20fd1cc0af78</guid>
            <category><![CDATA[website-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[firebase-hosting-example]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[flutter-web]]></category>
            <dc:creator><![CDATA[I A KHAN]]></dc:creator>
            <pubDate>Sun, 27 Nov 2022 07:43:44 GMT</pubDate>
            <atom:updated>2023-07-07T04:21:06.780Z</atom:updated>
            <content:encoded><![CDATA[<p>This article will guide you to deploy your first flutter web app using firebase hosting. It’s better to have basic knowledge of flutter &amp; firebase to be able to understand clearly…..</p><h3>Prerequisite</h3><p>If you are creating a new project then select the web as an option while creating the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*ZZfU37VeK69Ovrx4UaSZZQ.png" /></figure><p>Else if you want to setup in existing flutter project</p><p>Run “<strong>flutter create</strong>” command.</p><p>In both cases you will get web/index.html generated.</p><p><strong>Step 1:</strong> Setup firebase project for web, if not done already (refer: <a href="https://firebase.google.com/docs/web/setup">https://firebase.google.com/docs/web/setup</a> )</p><p><strong>Step 2:</strong> Install the firebase-tools CLI (refer: <a href="https://docs.npmjs.com/downloading-and-installing-node-js-and-npm">https://docs.npmjs.com/downloading-and-installing-node-js-and-npm</a>)</p><p>Once npm is installed, run the following command to install the firebase-tools:</p><pre>$ npm install -g firebase-tools</pre><p><strong>Step 3:</strong> Initialise firebase hosting</p><pre>$ firebase login</pre><p>if already loggedIn first do <strong>“firebase logout” &amp; </strong>then “<strong>firebase login</strong>” with same email Id you registered your app with firebase.</p><p>Once you run login command firebase login page will be open on browser asking you to allow to read &amp; other necessary permission do accept.</p><p><strong>Done with firebase Login</strong></p><p>Install the FlutterFire CLI by running the following command from any directory:</p><pre>dart pub global activate flutterfire_cli</pre><p><strong>Step 4</strong>: Configure your project to use firebase</p><p>From your <strong>Flutter project directory</strong>, run the following command to start the app configuration workflow:</p><pre>flutterfire configure</pre><p><strong>Step 5</strong>: Initialise firebase in your app</p><p>From your <strong>Flutter project directory</strong>, run the following command .</p><pre>flutter pub add firebase_core</pre><p>Now run</p><pre>$ firebase init</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mF4l1cDUqSuXBFRhrHPsyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DBqsINWcZmQ0oDH3t1RUEw.png" /></figure><p><strong>After above step, 2 new files are created (</strong><strong>.firebaserc and </strong><strong>firebase.json) in your root directory. Check and make sure they are there. If not, check for errors in the </strong><strong>firebase init step and retry.</strong></p><p>Step 6: Build &amp; deploy</p><p>run below commands</p><pre>$ flutter build web<br></pre><pre>$ firebase deploy</pre><p>After all the hard work, we are done now see your web app host live on firebase.</p><p><strong>Live website</strong> : <a href="https://imtiyaz-khan-32866.web.app/#/">https://imtiyaz-khan-32866.web.app/#/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EBSnYpk7xFVPAuvN4ZtsdA.png" /></figure><p>Share your own websites with friends &amp; family.</p><p>Want to start with System design? do not forgot to checkout : My reddit system design blog <a href="https://medium.com/@imitiyaz125/reddit-system-design-344485037902">https://medium.com/@imitiyaz125/reddit-system-design-344485037902</a></p><p>For any corrections/suggestions or just for chit chat reach out to me here: <a href="https://imtiyaz-khan-32866.web.app/#/">https://imtiyaz-khan-32866.web.app/#/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20fd1cc0af78" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>