Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.telephony.SignalStrength;

public class Main {
    public static int getSignalField(SignalStrength signalStrength, int num) {
        if (signalStrength == null)
            return -10101;
        String[] datas = signalStrength.toString().split("\\s");
        return Integer.parseInt(datas[num]);

    }
}