Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 11th, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How can i access static class without using object in android? [closed]
  2. public class TestStatic
  3. {
  4. public static int x =10;
  5. }
  6.  
  7. public class YourClass
  8. {
  9.  
  10. public void yourMethod()
  11. {
  12. int yourVar = TestStatic.x;
  13. }
  14. }