How to transfer a variable with method1 () to method2 ()?
The variable is not visible because it is declared inside the method, and there is no hard link to it. In other words, after executing the method, the variable is really erased from memory, what can you think of?
Maybe there is an option to write data to a temporary file?
public class Test1 { ... @JavascriptInterface public String method1() { String title = 1; return title; } } public class Test2 { public void method2() { title //ΠΎΡΠΈΠ±ΠΊΠ° ΠΊΠΎΠΌΠΏΠΈΠ»ΡΡΠΈΠΈ - ΠΏΠ΅ΡΠ΅ΠΌΠ΅Π½Π½Π°Ρ title Π½Π΅ Π²ΠΈΠ΄Π½Π° ΠΈΠ· ΡΡΠΎΠ³ΠΎ Π±Π»ΠΎΠΊΠ° ΠΊΠΎΠ΄Π° } }