private String msrGetTrackData(int trackIndex) { int ret = MsrInterface.getTrackError(trackIndex); if (ret < 0) { Log.i(TAG, "msr track" + trackIndex + " error is = " + ret); return null; } byte[] byteArry = new byte[255]; int result = MsrInterface.getTrackData( trackIndex, byteArry, MsrInterface.getTrackDataLength(trackIndex)); if (result > 0) { return new String(byteArry, 0, result); } else { return null; } }