jenly1314 / Nevercrash
🌍 全局捕获Crash。信NeverCrash,永不Crash。
Stars: ✭ 170
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Nevercrash
Xcrash
🔥 xCrash provides the Android app with the ability to capture java crash, native crash and ANR. No root permission or any system permissions are required.
Stars: ✭ 2,689 (+1481.76%)
Mutual labels: handler, crash
Xcrash
🔥 xCrash provides the Android app with the ability to capture java crash, native crash and ANR. No root permission or any system permissions are required.
Stars: ✭ 148 (-12.94%)
Mutual labels: handler, crash
Avoid Memory Leak Android
🔥 Examples of memory leaks and common patterns that cause them in Android development and how to fix/avoid them
Stars: ✭ 140 (-17.65%)
Mutual labels: thread, handler
Taskscheduler
A concise,practical async library for Android project,already was used in million devices
Stars: ✭ 385 (+126.47%)
Mutual labels: thread, handler
Bugsnag Go
Automatic panic monitoring for Go and Go web frameworks, like negroni, gin, and revel
Stars: ✭ 155 (-8.82%)
Mutual labels: crash
M5p01 muprokaron
A tiny real-time kernel focusing on formal reliability and simplicity.
Stars: ✭ 132 (-22.35%)
Mutual labels: thread
Async Sockets Cpp
Simple thread-based asynchronous TCP & UDP Socket classes in C++.
Stars: ✭ 127 (-25.29%)
Mutual labels: thread
Examples
Examples of Mock Service Worker usage with various frameworks and libraries.
Stars: ✭ 163 (-4.12%)
Mutual labels: handler
Workly
A really simple way to move a function or class to a web worker. 🏋️♀️→ 😄
Stars: ✭ 1,848 (+987.06%)
Mutual labels: thread
Func timeout
Python module which allows you to specify timeouts when calling any existing function, and support for stoppable threads
Stars: ✭ 146 (-14.12%)
Mutual labels: thread
Arcanus
ARCANUS is a customized payload generator/handler.
Stars: ✭ 130 (-23.53%)
Mutual labels: handler
Lightio
LightIO is a userland implemented green thread library for ruby
Stars: ✭ 165 (-2.94%)
Mutual labels: thread
Gl vk threaded cadscene
OpenGL and Vulkan comparison on rendering a CAD scene using various techniques
Stars: ✭ 143 (-15.88%)
Mutual labels: thread
Kommander Ios
A lightweight, pure-Swift library for manage the task execution in different threads. Through the definition a simple but powerful concept, Kommand.
Stars: ✭ 167 (-1.76%)
Mutual labels: thread
NeverCrash
NeverCrash for Android 一个全局捕获Crash的库。信NeverCrash,永不Crash。
Gif 展示
引入
Maven:
<dependency>
<groupId>com.king.thread</groupId>
<artifactId>nevercrash</artifactId>
<version>1.0.0</version>
<type>pom</type>
</dependency>
Gradle:
compile 'com.king.thread:nevercrash:1.0.0'
Lvy:
<dependency org='com.king.thread' name='nevercrash' rev='1.0.0'>
<artifact name='$AID' ext='pom'></artifact>
</dependency>
如果Gradle出现compile失败的情况,可以在Project的build.gradle里面添加如下:(也可以使用上面的GitPack来complie)
allprojects {
repositories {
maven { url 'https://dl.bintray.com/jenly/maven' }
}
}
示例
核心代码(大道至简)
NeverCrash.init(CrashHandler);
代码示例
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
NeverCrash.init(new NeverCrash.CrashHandler() {
@Override
public void uncaughtException(Thread t, Throwable e) {
Log.d("Jenly", Log.getStackTraceString(e));
// e.printStackTrace();
showToast(e.getMessage());
}
});
}
private void showToast(final String text){
new Handler(Looper.getMainLooper()).post(new Runnable() {
@Override
public void run() {
Toast.makeText(getApplicationContext(),text,Toast.LENGTH_SHORT).show();
}
});
}
}
赞赏
如果您喜欢NeverCrash,或感觉NeverCrash帮助到了您,可以点右上角“Star”支持一下,您的支持就是我的动力,谢谢 😃
您也可以扫描下面的二维码,请作者喝杯咖啡 ☕️
关于我
Name: Jenly
Email: jenly1314#gmail.com / jenly1314#vip.qq.com
CSDN: jenly121
Github: jenly1314
加入QQ群: 20867961
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].