From caa798a08db9fe12648170b96f4e06c6fbedb2b0 Mon Sep 17 00:00:00 2001 From: vadym Date: Thu, 6 Aug 2020 22:54:14 -0700 Subject: [PATCH] 1. list of java methods --- .../io/github/chronosx88/yggdrasil/MainActivity.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt index 7234558..af0e46c 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt @@ -22,11 +22,7 @@ import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.deserializeS import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.deserializeStringSet2PeerInfoSet import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.serializeDNSInfoSet2StringList import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.serializePeerInfoSet2StringList -import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.GlobalScope -import kotlinx.coroutines.launch -import kotlinx.coroutines.withContext -import java.net.InetAddress +import java.lang.reflect.Method import kotlin.concurrent.thread @@ -143,7 +139,11 @@ class MainActivity : AppCompatActivity() { ipLayout.visibility = View.VISIBLE findViewById(R.id.ip).text = address } - + val c: Class<*> = dummy.Dummy::class.java + val methods: Array = c.declaredMethods + for (i in methods.indices) { + Log.d(TAG,"The method is: " + methods[i].toString()) + } } private fun stopVpn(){