Version 17 released!
This commit is contained in:
parent
10a77ecc96
commit
d7d729f6c1
4 changed files with 11 additions and 7 deletions
4
.idea/libraries/GraphView_3_1_2.xml
generated
4
.idea/libraries/GraphView_3_1_2.xml
generated
|
|
@ -4,8 +4,6 @@
|
||||||
<root url="jar://$PROJECT_DIR$/app/libs/GraphView-3.1.2.jar!/" />
|
<root url="jar://$PROJECT_DIR$/app/libs/GraphView-3.1.2.jar!/" />
|
||||||
</CLASSES>
|
</CLASSES>
|
||||||
<JAVADOC />
|
<JAVADOC />
|
||||||
<SOURCES>
|
<SOURCES />
|
||||||
<root url="jar://$PROJECT_DIR$/app/libs/GraphView-master.zip!/GraphView-master/src/main/java" />
|
|
||||||
</SOURCES>
|
|
||||||
</library>
|
</library>
|
||||||
</component>
|
</component>
|
||||||
Binary file not shown.
|
|
@ -8,8 +8,8 @@ android {
|
||||||
applicationId "com.ericsson.uecontrol"
|
applicationId "com.ericsson.uecontrol"
|
||||||
minSdkVersion 15
|
minSdkVersion 15
|
||||||
targetSdkVersion 19
|
targetSdkVersion 19
|
||||||
versionCode 17
|
versionCode 18
|
||||||
versionName "1.0.17"
|
versionName "1.0.18"
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ import android.telephony.CellInfoLte;
|
||||||
import android.telephony.CellInfoWcdma;
|
import android.telephony.CellInfoWcdma;
|
||||||
import android.telephony.NeighboringCellInfo;
|
import android.telephony.NeighboringCellInfo;
|
||||||
import android.telephony.TelephonyManager;
|
import android.telephony.TelephonyManager;
|
||||||
|
import android.telephony.gsm.GsmCellLocation;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
|
|
@ -117,10 +118,15 @@ public class CSVWriter {
|
||||||
if(netInfo == null)
|
if(netInfo == null)
|
||||||
return "n/a";
|
return "n/a";
|
||||||
|
|
||||||
if(netInfo.getType() == ConnectivityManager.TYPE_MOBILE) {
|
|
||||||
TelephonyManager telMan = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
|
TelephonyManager telMan = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
|
||||||
|
if(telMan != null) {
|
||||||
StringBuilder data = new StringBuilder();
|
StringBuilder data = new StringBuilder();
|
||||||
|
|
||||||
|
GsmCellLocation location = (GsmCellLocation) telMan.getCellLocation();
|
||||||
|
if(location != null)
|
||||||
|
return ""+location.getCid();
|
||||||
|
|
||||||
List<NeighboringCellInfo> cellList = telMan.getNeighboringCellInfo();
|
List<NeighboringCellInfo> cellList = telMan.getNeighboringCellInfo();
|
||||||
if(cellList != null) {
|
if(cellList != null) {
|
||||||
for (int i = 0; i < cellList.size(); i++) {
|
for (int i = 0; i < cellList.size(); i++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue