-
-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Freeze when switching Activity #304
Comments
If you cannot record a log, please record a screencast. |
package com.example.organize.activity;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.example.organize.R;
import com.heinrichreimersoftware.materialintro.app.IntroActivity;
import com.heinrichreimersoftware.materialintro.slide.FragmentSlide;
public class MainActivity extends IntroActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.activity_main);
setButtonBackVisible(false);
setButtonNextVisible(false);
addSlide(new FragmentSlide.Builder()
.background(android.R.color.white)
.fragment(R.layout.intro_1)
.build());
addSlide(new FragmentSlide.Builder()
.background(android.R.color.white)
.fragment(R.layout.intro_2)
.build());
addSlide(new FragmentSlide.Builder()
.background(android.R.color.white)
.fragment(R.layout.intro_3)
.build());
addSlide(new FragmentSlide.Builder()
.background(android.R.color.white)
.fragment(R.layout.intro_4)
.build());
addSlide(new FragmentSlide.Builder()
.background(android.R.color.white)
.fragment(R.layout.register_intro)
.build());
}
public void btnLogin(View view) {
Intent i = new Intent(MainActivity.this, LoginActivity.class);
startActivity(i);
}
public void btnRegister(View view) {
Intent i = new Intent(MainActivity.this, RegisterActivity.class);
startActivity(i);
}
} As you see in my code when I press the button for another activity my emulator is freeze and I didn't see any error message |
I use material intro version 2.0.0 and API level 30 |
Sorry, I still can't reproduce your issue. What code is calling |
Another relevant detail would be the startup code of both |
Sorry for the confusion: I meant a video recording of the emulator screen, so that I can see when exactly the freeze occurs. |
By the way, I reformatted the code snippet in your previous comment. You can do that yourself. Just refer to the GitHub Markdown guide. |
When I use the slider in my project and go from one activity to another Emulator freeze and I cannot see an error message in logact
The text was updated successfully, but these errors were encountered: