Tag 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 , , , , , .

News: Google launched Android Studio version 3.0 .

The Google launched Android Studio 3.0, the latest version of its integrated development environment (IDE) with a size of 681 Mb and many features.
The full released note can be found here, see:

  • Support for Android 8.0.
  • Support for building separate APKs based on language resources.
  • Support for Java 8 libraries and Java 8 language features (without the Jack compiler).
  • Support for Android Test Support Library 1.0 (Android Test Utility and Android Test Orchestrator).
  • Improved ndk-build and cmake build speeds.
  • Improved Gradle sync speed.
  • AAPT2 is now enabled by default.
  • Using ndkCompile is now more restricted. You should instead migrate to using either CMake or ndk-build to compile native code that you want to package into your APK. To learn more, read Migrate from ndkcompile.

Posted in news. 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 , , , .