Do you know this
Well I want create something like this screen. When I open for the first time the application I want open this screen and display a context.. How is possible? I don't know what search for this type of thing..
Do you know this
Well I want create something like this screen. When I open for the first time the application I want open this screen and display a context.. How is possible? I don't know what search for this type of thing..
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
if (isFirstTime()) {
// What you do when the Application is Opened First time Goes here
}
...
}
/***
* Checks that application runs first time and write flag at SharedPreferences
* @return true if 1st time
*/
private boolean isFirstTime()
{
SharedPreferences preferences = getPreferences(MODE_PRIVATE);
boolean ranBefore = preferences.getBoolean("RanBefore", false);
if (!ranBefore) {
// first time
SharedPreferences.Editor editor = preferences.edit();
editor.putBoolean("RanBefore", true);
editor.commit();
}
return !ranBefore;
}
isFirstTime
? –
Tapia RanBefore
value from one activity and writing it from another. getPreferences
is private to each activity. –
Aran I've found a nice library for showing a tutorial to the user about specific items on the screen, called "ShowCase view library" .
but the library quite buggy and sometimes puts its textural items outside the screen (for example when the device is rotated) .
the alternative similar library i've found is "SuperToolTips" .
I'm using MaterialShowcaseView https://github.com/deano2390/MaterialShowcaseView . Very easy to use, works well, it's customisable, has support for sequence of instructions. Solved many issued that ShowCase view library has.
© 2022 - 2024 — McMap. All rights reserved.