\'m developing an Android Application in which I have
I\'ve two classes class A and Class B .
In class A , I tried the code Snippets like below,
Simple, use static.
In activity you have the method you want to call:
private static String name = "Robert"; ... public static String getData() { return name; }
And in your activity where you make the call:
private static String name; ... name = SplashActivity.getData();