Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MySingleton extends AppCompatActivity {
- private static MySingleton mInstance;
- public static MySingleton getInstance() {
- if (mInstance == null) {
- mInstance = new MySingleton();
- }
- return mInstance;
- }
- private MySingleton() {}
- private Drawable getDrawable() {
- return getResources().getDrawable(R.drawable.ic_favorite);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement