Category Archives: Android

Go – Testing Golang with android application – part 001 .

This is my first tutorial in a long series about Go and Android programming. In the limit of my free time I will try to show you how to do simple applications with the Go programming language (or known as Golang).
You need to install the Go programming language using MSI installer from here.
I set the folder with this path – C:\Go\ but my windows also put some go files under Users folder.
If you want you can to add the Go path into windows environment.
You will have this path in this case: C:\Users\your_account\go\.
The next step is to install the Android NDK from here.
I install the Windows 64-bit into Users folder. You need to install at: C:\Users\your_account\go\.
Because I don’t have a good go programming android example I used the basic default example from golang mobile.
Let’s see the commands to install and used it:

About the gomobile command then the help tell us:

If you have the adb command installed on your machine, you can use gomobile command with the argument install to push the APK to your mobile device.
I used Bluestacks emulator for android and the basic example working well.

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

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