|
Помогите перевести c JAVA 1 строку в Delphi XE5 (В сети не найти ответа всё перерыл)
|
|||
---|---|---|---|
#18+
package com.AndroidTelephonyManager; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.telephony.TelephonyManager; import android.telephony.gsm.GsmCellLocation; import android.widget.TextView; public class AndroidTelephonyManager extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TextView textGsmCellLocation = (TextView)findViewById(R.id.gsmcelllocation); TextView textCID = (TextView)findViewById(R.id.cid); TextView textLAC = (TextView)findViewById(R.id.lac); TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); //??????????? Помогите перевести строку в Delphi XE5 ???????????????????????????? с остальным кодом разобрался GsmCellLocation cellLocation = (GsmCellLocation)telephonyManager.getCellLocation(); //???????????????????????????????????????????????????????????????????????????????? int cid = cellLocation.getCid(); int lac = cellLocation.getLac(); textGsmCellLocation.setText(cellLocation.toString()); textCID.setText("gsm cell id: " + String.valueOf(cid)); textLAC.setText("gsm location area code: " + String.valueOf(lac)); } } ... |
|||
:
Нравится:
Не нравится:
|
|||
31.12.2015, 17:49 |
|
|
start [/forum/topic.php?fid=11&gotonew=1&tid=1329731]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
28ms |
get topic data: |
10ms |
get first new msg: |
6ms |
get forum data: |
2ms |
get page messages: |
42ms |
get tp. blocked users: |
1ms |
others: | 269ms |
total: | 388ms |
0 / 0 |