convert java code to kotlin online converter
Select the src/main/java folder in the project and choose Code->"Convert Java File to Kotlin File”
convert kotlin code to java
val pfd = context.contentResolver.openFileDescriptor(uri, "w") val fd = pfd.fileDescriptor val image = BitmapFactory.decodeFileDescriptor(fd) pfd.close()
convert kotlin code to java
/** * for place API Key */ fun getPlaceApiKey(): String { var placeApiKey = helper.mapKey?.let { it } ?: BuildConfig.MAP_KEY if (placeApiKey.isEmpty()) placeApiKey = BuildConfig.MAP_KEY if (BuildConfig.APPLICATION_ID.equals("com.uffizio.trakzee", ignoreCase = true) || BuildConfig.APPLICATION_ID.equals("com.uffizio.trakzeelocal", ignoreCase = true)) { placeApiKey = BuildConfig.TRAKZEE_GOOGLE_KEY } return placeApiKey }
convert kotlin to java online
Tools -> Kotlin -> Show Kotlin Bytecode