Comments (5)
I was having the same problem but fixed it be passing
REQUEST_WELCOME_SCREEN_RESULT
to the
sampleWelcomeScreen.show()
method. Here is the code
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
sampleWelcomeScreen = new WelcomeHelper(this, WelcomeActivity.class);
sampleWelcomeScreen.show(savedInstanceState,REQUEST_WELCOME_SCREEN_RESULT);
}
from welcome-android.
Hey - thanks, glad it is useful. So what do you see when clicking done? Is the welcome screen closing?
from welcome-android.
Yes, the welcome screen closes and the app. When I reopen the app everything is OK, the welcome screen no longer appears and activity_main is displayed. Then I want you to click on done and go to activity_main without closing it.
from welcome-android.
Well, I'll answer my newbie question. I used the onstop method in WelcomeActivity to get back to MainActivity:
public void onStop () {
//do your stuff here
Intent intent = new Intent(WelcomeActivity.this, MainActivity.class);
startActivity(intent);
super.onStop();
}
Thanks again 👍
from welcome-android.
That's strange, the main activity should still be running underneath the welcome screen, and closing the welcome screen should just resume it. Are you calling finish()
or doing anything else that would cause MainActivity
to be closed?
from welcome-android.
Related Issues (20)
- Allow fragments to be garbage collected when scrolled away HOT 1
- cannot be cast to welcome.WelcomeViewPagerIndicator HOT 4
- Updating project causes issues with class resolution HOT 4
- Problem with release build
- prevent "back" from closing the welcome activity HOT 2
- Prevent next button HOT 1
- java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation HOT 3
- uanble to use on build 27 HOT 1
- Control visibility of the 'done' button HOT 2
- It is possible to Get Next Icon With Next Text ?? HOT 1
- How to change Skip Text ? And Skip Option Is Possible To Move Top Right ?? HOT 1
- FullScreen like “android:style/Theme.NoTitleBar.Fullscreen” HOT 1
- Leakcanary detects memory leak when using the library HOT 3
- Is it possible to have a scrollview within the layout and still have animations? HOT 1
- Change language of buttons HOT 1
- 请问一下最后一页左滑退出 HOT 1
- 请问一下现在是否能够设置背景图片? HOT 1
- android HOT 1
- not available on maven central
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from welcome-android.