|
Помогите перевести 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?desktop=1&fid=11&tid=1329731]: |
0ms |
get settings: |
10ms |
get forum list: |
16ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
33ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
36ms |
get tp. blocked users: |
2ms |
others: | 278ms |
total: | 396ms |
0 / 0 |