i can get first sim cell tower id with this below code. but i want to get second sim2 cell id.
TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
GsmCellLocation cellLocation = (GsmCellLocation) telephonyManager.getCellLocation();
int nowcid = cellLocation.getCid();
int nowlac = cellLocation.getLac();
there is many questions about this. but i tested all codes with android 6.0 samsung j7 2016 but didnt got the sim2 cell id. some people say this is impossible on other questions but Network Cell Info Lite app https://play.google.com/store/apps/details?id=com.wilysis.cellinfolite&hl=en gets cell id from sim2 on every device i tested.