Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Os mInstance = null;
- private int numeroOs, updateServer;
- Context context;
- public synchronized Os getInstance(Context c, int numeroOs) {
- context = c;
- if (mInstance == null) {
- mInstance = new Os(context.getApplicationContext(), numeroOs);
- }
- return mInstance;
- }
- protected Os(Context context, int numeroOs) {
- this.numeroOs = numeroOs;
- this.context = context;
- }
Add Comment
Please, Sign In to add comment