Monday, October 11, 2021

Android Mobile Simualtor for Microsoft Edge

 You have built a web application on your PC or laptop.  Now,  you want to see how it appears on a mobile device. This is the use case for a mobile simulator, an extension that displays how your site would appear on a handheld. It is a responsive testing tool.

It is available on Google Chrome Webstore. It can simulate 5 models of Android smartphones and 11 models of Apple smartphones.


Deatils here: Mobile Simulator


From the above site you can add it to Microsoft Edge where it will show as one of the extensions as shown.


How do you test it?

Just bring up a web page (any) as shown here:

Now click on this icon and see the simulator getting displayed as shown:


There is another web site here with some operational buttons on the right.

Tuesday, October 05, 2021

Locating the .apk file in the Android Studio Snow Cat

 The Android Studio has been changing (https://android-studio.en.uptodown.com/windows/versions). 

The version  I am using is the latest. The location of the APK file is found in the 'output' folder. In the Snow Cat version of the Android Studio the location of the APK (app-debug.apk) file is shown in this figure.

I copied the file and I installed it on an Android Phone where .apk files can be installed.

Sunday, October 03, 2021

Android app error net::ERR_CACHE_MISS and a fix

 I am a Windows Phone developer trying to get into Android App development.

I have been working with Android app development for the past couple of days with the latest Android Studio. 

I finally got an app that can display an URL . I had an important line missing in my Manifest file and when I corrected this it worked. It has to do with the browser permissions.

=========

<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

    package="com.example.mywview">

<uses-permission android:name="android.permission.INTERNET"/>

    <application

        android:allowBackup="true"

        android:icon="@mipmap/ic_launcher"

        android:label="@string/app_name"

        android:roundIcon="@mipmap/ic_launcher_round"

        android:supportsRtl="true"

        android:theme="@style/Theme.MyWView">

        <activity

            android:name=".MainActivity"

            android:exported="true">

            <intent-filter>

                <action android:name="android.intent.action.MAIN" />


                <category android:name="android.intent.category.LAUNCHER" />

            </intent-filter>

        </activity>

    </application>


</manifest>

============

Without this element highlighted in the above in the XML I was getting this error:


After adding this line to the Manifest I could get it working:

The app was deployed to the Galaxy S21+5G.


Saturday, September 25, 2021

Installing Android Studio on Windows 10 (x64)

 Android apps are becoming very popular. How do you build one on a Windows 10 computer/laptop? I am used to developing Windows Mobile (Microsoft gave up on this) using Visual Studio of various versions, but I wanted to try an Android app.

It is easy to get a link (Download Android Studio and SDK tools  |  Android Developers) to the download page for the latest version of Windows (x64). 



The problem was, after downloading the executable and running it was hampered by the Ransomeware protection of Windows 10.

I finally resolved it, as shown here.

Installing Android Studio

Here are some screenshots of the install process:






Hello, Arctic Fox, be good to me!

Setting up the development environment

Android studio setup is driven by a wizard and is very easy. Just follow the screenshots. It shows the variety of devices you can develop the apps.


Just click next or finish as the case may be.

Android starts other components needed for development as shown.


Well, there was a hiccup here.


I think this is needed for emulation and probably the problem is related to installing anything past the 'Ransomware' wall that Microsoft has constructed around the OS.

I did check all the requirements for HAXM installation. Not one less requirement but could not install.

Here are the details of my computer I checked.


I followed these instructions found on the Internet to manually install HAXM:

Downloading Manually Intel HAXM

  1. Go to http://software.intel.com/en-us/android.
  2. Choose the Intel HAXM installer package for your platform.
  3. Extract the installer and follow installation instructions for your platform.

The installed screen is as shown:


Again, I faced the same problem of installing. I would have succeeded had I tried, but I read that HAXM is not absolutely necessary for developing app or testing. I have a number of Android devices to run tests.

Maybe, I will come back and try to install HAXM. Right now I am eager to build and test.

Adios!



Friday, September 24, 2021

Windows 10 latest version

 You can find it in Settings/System. Go to the very bottom of this page and look up About.

There are issues in everything, and here is a link to resolved issues for the above version:
DMCA.com Protection Status