I want to convert this string into AppDatabase
type, I tried this Class.forName()
but this is not working properly.
val str = "com.crypto.wallet.data.AppDatabase_Impl@14731a42"
my class path is "com.crypto.wallet.data.AppDatabase"
I am new to Kotlin environment, please guide me.
Foot Note:
I need to pass the values to Main.kt to activityTwo.kt so here i use ShardPref for handling the data. Above the values are not String type so i need to convert this to string values and pass to ActivityTwo.kt class. Important: ActivityTwo.kt file have a one method, it will support args types are ClassA,ClassB, and ClassC e.g for MyFunctionSample(ClassA,ClassB,ClassC) but i have a values in String Type so i need to convert the type to String to ClassA type. Here is i struck.