Guest User

Untitled

a guest
Nov 24th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. private Os mInstance = null;
  2. private int numeroOs, updateServer;
  3. Context context;
  4.  
  5. public synchronized Os getInstance(Context c, int numeroOs) {
  6. context = c;
  7. if (mInstance == null) {
  8. mInstance = new Os(context.getApplicationContext(), numeroOs);
  9. }
  10.  
  11. return mInstance;
  12. }
  13.  
  14. protected Os(Context context, int numeroOs) {
  15. this.numeroOs = numeroOs;
  16. this.context = context;
  17. }
Add Comment
Please, Sign In to add comment