<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: proindra</title>
    <description>The latest articles on DEV Community by proindra (@proindra).</description>
    <link>https://dev.to/proindra</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4283995%2Ff369603f-e9d7-45fb-9fd4-c3cae696115e.jpg</url>
      <title>DEV Community: proindra</title>
      <link>https://dev.to/proindra</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/proindra"/>
    <language>en</language>
    <item>
      <title>Android Emulator Running but Not Visible on Windows</title>
      <dc:creator>proindra</dc:creator>
      <pubDate>Sat, 05 Dec 2026 05:59:50 +0000</pubDate>
      <link>https://dev.to/proindra/solved-android-emulator-running-but-not-visible-on-windows-43pm</link>
      <guid>https://dev.to/proindra/solved-android-emulator-running-but-not-visible-on-windows-43pm</guid>
      <description>&lt;p&gt;I recently encountered an issue while setting up my React Native development environment using Android Studio on Windows.&lt;/p&gt;

&lt;p&gt;The Android Emulator worked perfectly in embedded mode. However, after switching to standalone mode, the emulator was running but its window was not visible on the desktop. I could only see the Android home screen by hovering over the taskbar icon.&lt;/p&gt;

&lt;h2&gt;
  
  
  Environment
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Windows (build 26300.10075)&lt;/li&gt;
&lt;li&gt;Android Emulator 37.3.10.0&lt;/li&gt;
&lt;li&gt;Pixel 8 Pro — API 36&lt;/li&gt;
&lt;li&gt;NVIDIA GeForce RTX 3050 Laptop GPU&lt;/li&gt;
&lt;li&gt;Windows Hypervisor Platform (WHPX)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Launching the emulator through CMD and checking the error logs
&lt;/h2&gt;

&lt;p&gt;To investigate the issue, I decided to launch the Android Emulator directly through Windows Command Prompt instead of Android Studio.&lt;/p&gt;

&lt;p&gt;First, navigate to the Android Emulator directory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /d "%LOCALAPPDATA%\Android\Sdk\emulator"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;List the available Android Virtual Devices:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;emulator.exe -list-avds
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Pixel_8_Pro
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Launch the emulator with a fresh boot:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;emulator.exe -avd Pixel_8_Pro -no-snapshot-load
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;While monitoring the terminal output, I noticed the following logs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;INFO | Boot completed in 24349 ms
INFO | Critical: UpdateLayeredWindowIndirect failed for ptDst=(349, -1265)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The logs confirmed that Android had booted successfully in approximately 24 seconds. However, the negative Y coordinate (&lt;code&gt;-1265&lt;/code&gt;) suggested that the emulator window might be positioned outside the visible desktop area.&lt;/p&gt;

&lt;h2&gt;
  
  
  Solutions I tried that didn't work
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Restarting the ADB server.&lt;/li&gt;
&lt;li&gt;Performing a cold boot.&lt;/li&gt;
&lt;li&gt;Checking and resetting &lt;code&gt;window.x&lt;/code&gt; and &lt;code&gt;window.y&lt;/code&gt; in &lt;code&gt;emulator-user.ini&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Changing &lt;code&gt;window.scale&lt;/code&gt; to &lt;code&gt;1.000000&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Using &lt;code&gt;Alt + Space&lt;/code&gt; to move the window.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Visual representation of the problem
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1rbzy3djm2dra1fsk9un.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1rbzy3djm2dra1fsk9un.png" alt=" " width="787" height="543"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Before:&lt;/strong&gt; The emulator is running, but its window appears to be outside the visible desktop area.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;After:&lt;/strong&gt; The emulator window is restored and repositioned within the visible desktop.&lt;/p&gt;
&lt;h2&gt;
  
  
  Working solution
&lt;/h2&gt;

&lt;p&gt;I finally resolved the issue using PowerShell and the Windows Win32 API to force the emulator window back onto the visible desktop.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 1: Keep the emulator running
&lt;/h3&gt;

&lt;p&gt;Make sure the Android Emulator is running in the background.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 2: Open Windows PowerShell
&lt;/h3&gt;

&lt;p&gt;Open a new Windows PowerShell terminal without closing the emulator.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 3: Execute the following script
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Add&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Type&lt;/span&gt; @&lt;span class="s2"&gt;"
using System;
using System.Runtime.InteropServices;
public class WindowFix {
    [DllImport("&lt;/span&gt;&lt;span class="n"&gt;user32&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dll&lt;/span&gt;&lt;span class="s2"&gt;")]
    public static extern bool SetWindowPos(
        IntPtr h, IntPtr z, int x, int y,
        int w, int ht, uint flags);

    [DllImport("&lt;/span&gt;&lt;span class="n"&gt;user32&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dll&lt;/span&gt;&lt;span class="s2"&gt;")]
    public static extern bool ShowWindow(
        IntPtr h, int cmd);
}
"&lt;/span&gt;@

&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="k"&gt;Process&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Where&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ProcessName&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;match&lt;/span&gt; &lt;span class="s1"&gt;'^(emulator|qemu-system)'&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="ow"&gt;and&lt;/span&gt;
    &lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;MainWindowHandle&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;ne&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="k"&gt;ForEach&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;WindowFix&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;ShowWindow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;MainWindowHandle&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;WindowFix&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;SetWindowPos&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;MainWindowHandle&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;IntPtr&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;Zero&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mh"&gt;0x45&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Step 4: Verify the output
&lt;/h3&gt;

&lt;p&gt;In my case, PowerShell returned:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;True
True
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The emulator window immediately became visible and worked normally in standalone mode.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Get-Process&lt;/code&gt; identifies the running emulator process.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;MainWindowHandle&lt;/code&gt; retrieves its Windows window handle.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ShowWindow()&lt;/code&gt; restores the window.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;SetWindowPos()&lt;/code&gt; repositions the window to coordinates &lt;code&gt;(100, 100)&lt;/code&gt; without resizing it.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;0x45&lt;/code&gt; combines the &lt;code&gt;SWP_NOSIZE&lt;/code&gt;, &lt;code&gt;SWP_NOZORDER&lt;/code&gt;, and &lt;code&gt;SWP_SHOWWINDOW&lt;/code&gt; flags.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In my case, the emulator itself was functioning correctly. The issue was related to the visibility and positioning of its standalone window.&lt;/p&gt;

&lt;p&gt;This solution worked without:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reinstalling Android Studio.&lt;/li&gt;
&lt;li&gt;Deleting the virtual device.&lt;/li&gt;
&lt;li&gt;Wiping emulator data.&lt;/li&gt;
&lt;li&gt;Downloading the Android system image again.&lt;/li&gt;
&lt;li&gt;Changing hardware acceleration settings.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I have not yet verified whether the corrected window position persists across future restarts.&lt;/p&gt;

&lt;p&gt;Hopefully, this saves someone else the time I spent troubleshooting this issue!&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: AI assisted with troubleshooting, preparing the diagram, and writing this article. The solution was personally tested and verified on my laptop.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>android</category>
      <category>reactnative</category>
      <category>windows</category>
      <category>powershell</category>
    </item>
  </channel>
</rss>
