Activity crash without errors
See original GitHub issueMy activity layout:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Activities.ActAdelante">
<nl.dionsegijn.konfetti.KonfettiView
android:id="@+id/viewKonfetti"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
And my activity:
public class ActAdelante extends AppCompatActivity {
private MediaPlayer mp;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_act_adelante);
mp = MediaPlayer.create(this, R.raw.best_part);
mp.start();
KonfettiView viewKonfetti = findViewById(R.id.viewKonfetti);
viewKonfetti.build()
.addColors(Color.YELLOW, Color.GREEN, Color.MAGENTA)
.setDirection(0.0, 359.0)
.setSpeed(1f, 5f)
.setFadeOutEnabled(true)
.setTimeToLive(2000L)
.addShapes(Shape.RECT, Shape.CIRCLE)
.addSizes(new Size(12, 5f))
.setPosition(-50f, viewKonfetti.getWidth() + 50f, -50f, -50f)
.streamFor(300, 5000L);
}
@Override
protected void onPause() {
super.onPause();
mp.stop();
mp.release();
}
}
Not working and also not showing any error why is crashing.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Android App crashes without any logcat or any exception
The app crashes on some point but not as it usually will crash.The app goes back to previous activity or completelly quiting the...
Read more >Android App Crashes without any Error or Exception in Logcat
Android app crashes without any error or exception in logcat | Fixed: · 1. Remove filters · 2. Remove noHistory property of Activity...
Read more >Detect and diagnose crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >Why do my apps keep crashing on Android, How to fix it
1. Force stop the app · 2. Restart the device · 3 . Clear app data · 4. Reinstall the app · 5....
Read more >Why does my Android app keep crashing even when there is ...
Compile-Time Errors and Run-Time Errors. Compile-Time Errors can be syntax errors , class not found errors , overloading errors whic...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Didn’t mention it. This was tested on:
In case it helps you in something.
I’m closing this issue, feel free to re-open if you ever come across a similar problem.