Last active
June 25, 2020 03:53
-
-
Save ImanX/5e53aa9d95cf0b1221c881c939e87219 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Activity extends AppCompatActivity { | |
@Override | |
protected void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
SingletonSharePrefrences.getInstance().putString("KEY_NAME" , "MACK"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Application; | |
public class App extends Application { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
SingletonSharePrefrences.init(this, "PERSON_STORE"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment