首页 > TAG信息列表 > guuguo

Android面试抱佛脚:进程间通讯学习,从Binder使用看起

val file = File(“aaaa”) file.createNewFile() ///序列化过程 ObjectOutputStream(FileOutputStream(file)) .use { it.writeObject(User(“张三”)) } ///反序列化 val user: User? = ObjectInputStream(FileInputStream(file)).use { it.readObject() as User? } printl

Android面试抱佛脚:进程间通讯学习,从Binder使用看起

val file = File(“aaaa”) file.createNewFile() ///序列化过程 ObjectOutputStream(FileOutputStream(file)) .use { it.writeObject(User(“张三”)) } ///反序列化 val user: User? = ObjectInputStream(FileInputStream(file)).use { it.readObject() as User? } printl