This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun openWhatsApp(fileName: String) { | |
val smsNumber = mobileNumber | |
val isWhatsappInstalled = "com.whatsapp".whatsappInstalledOrNot() | |
if (isWhatsappInstalled) { | |
val sendIntent = Intent(Intent.ACTION_SEND) | |
val outputFile = File( | |
requireContext().getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS), | |
fileName | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Socket mSocket; | |
{ | |
try { | |
mSocket = IO.socket("yourLinkToSocket"); | |
Log.d(TAG, "instance initializer: correct"); | |
} catch (URISyntaxException e) { | |
Log.d(TAG, "instance initializer: " + e.getMessage()); | |
} |