Category Archives: Android

About Google Play Protect.

The Google Play Protect is part of the Google Play Store app, uses machine learning and app usage analysis to weed out the dangerous and malicious applications.
Google Play Protect for Android devices consists into this security features:

  • App scanning
  • Anti-Theft Measures
  • Browser Protection

You can read more here.

Posted in All, Android, web. Tagged with , , , , , .

Android UI – SeekBar example.

Today I will tell you how to make a user interface element called the seekbar with the Android Studio I.D.E.
On Android Studio select a new Empty Activity project, named it uiseekbar001.
You need to add the SeekBar UI and TextView UI into activity_main.xml file.
The textView, seekBar are variable for id into user interface elements and call by java file.
See the result:

You must interact with the user interface through the java file called MainActivity.java.
The
See this file:

The output will be a number text with value 24 sized by SeekBar up to value 100.

Posted in All, Android, Programming. Tagged with , , , , , , .

Wifi Analyzer – tool for your wifi network.

The interference from other routers in the vicinity is a common source of connectivity problems, especially in densely populated areas (apartment, congested buildings, conference halls and shopping centers). To fix this problem you need a tool to see where you can set your wifi channel.
You can use this android application.
As you can see, this application shows us the overload level of channels WiFi.
wifi_analyzer
It also comes with other options that you’ll find yourself

Posted in All, Android. Tagged with , , .

Android ABIs list application.

This application will show us about ABIs (Application Binary Interface support).
Basically get the information about CPU and ABIs.
You can read more about this at ARM website.
The result will come like this screenshot.
device-2016-01-26-161709
The main problem was the SDK: minSdkVersion 21 / targetSdkVersion 23 and the emulator with Nexus 6P API 23. That make me to increase the RAM – 1Gb. The hardware is old and working hard with this settings , but finally I make the screenshot.
Let’s see the source code of two files: MainActivity.java

package com.free_tutorials.catalin.abi_list;

import android.os.Build;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

TextView textSupportedABIs = (TextView)findViewById(R.id.supportedabis);

textSupportedABIs.setText(“Build.SUPPORTED_ABIS:\n”);
String[] SUPPORTED_ABIS = Build.SUPPORTED_ABIS;
for(String abi : SUPPORTED_ABIS){
textSupportedABIs.append(abi + “\n”);
}
textSupportedABIs.append(“\n”);

textSupportedABIs.append(“Build.SUPPORTED_32_BIT_ABIS:\n”);
String[] SUPPORTED_32_BIT_ABIS = Build.SUPPORTED_32_BIT_ABIS;
for(String abi32 : SUPPORTED_32_BIT_ABIS){
textSupportedABIs.append(abi32 + “\n”);
}
textSupportedABIs.append(“\n”);

textSupportedABIs.append(“Build.SUPPORTED_64_BIT_ABIS:\n”);
String[] SUPPORTED_64_BIT_ABIS = Build.SUPPORTED_64_BIT_ABIS;
for(String abi64 : SUPPORTED_64_BIT_ABIS){
textSupportedABIs.append(abi64 + “\n”);
}
textSupportedABIs.append(“\n”);
}
}

…and activity_main.xml:

<?xml version=”1.0″ encoding=”utf-8″?>
<LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android”
xmlns:tools=”http://schemas.android.com/tools”
android:layout_width=”match_parent”
android:layout_height=”match_parent”
android:padding=”16dp”
android:orientation=”vertical”
tools:context=”com.free_tutorials.catalin.abi_list.MainActivity”>

<TextView
android:layout_width=”wrap_content”
android:layout_height=”wrap_content”
android:layout_gravity=”center_horizontal”
android:autoLink=”web”
android:text=”http://catalin-festila.blogspot.com”
android:textStyle=”bold” />

<TextView
android:id=”@+id/supportedabis”
android:layout_width=”match_parent”
android:layout_height=”wrap_content” />
</LinearLayout>

You can see the supportedabis is a string fill by MainActivity.java and show under activity_main.xml .
And that all about sources you need to make the aplication. All files you see is make by Android Studio 2.0. Also you need to have same function like java file and take a look at android manifest intro.

I used the default AndroidManifest.xml :

Posted in All, Android, Programming, Windows 10. Tagged with , , , .

Android emulation with Intel® HAXM.

The Intel Hardware Accelerated Execution Manager named Intel® HAXM is a a hardware-assisted virtualization engine that help Android application emulation on a host machine.
You need to install it from here..
After that you can run the commands to install it, see the next image how to do it:
haxm_001
Update tool from android with Android SDK Tools to last version. Also check if the memory of HAXM is exceeded by emulator memory. You can see that into log windows of bottom of Android Studio when you start the emulator.
Also you need to have all Android Studio SDK update because you can try to use some functions from the new Android SDK.
Be advice when you start the android project. If the emulator works slow then try to use new hardware.
Also check BIOS to enable virtualization.
Android_SDK_Tools_001
After that when you run the Android Studio to setup your emulator then you will see it’s working.

Posted in All, Android, Programming, Windows 10. Tagged with , , , , , , , , .