| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
9年前发布

App错误报告捕获工具:Telescope

一个简单的工具能够轻松在你的App中捕获Bug报告的工具。

Usage

Place aTelescopeLayoutat the root of your hierarchy.

Add a callback to the view group withsetLens(Lens). Telescope provides two default implementations:

  • EmailLens: Compose an email with the provided addresses and subject (optional).
  • EmailDeviceInfoLens: EnhancesEmailLensby pre-populating the email body with app and device info

Screenshots will be stored on the external storage in/Telescope/com.app.package/. To have Telescope clean up the screenshots folder, callTelescopeLayout.cleanUp(Context). Ideally, this would be called in theonDestroy()method of yourActivityorFragment.

If you are using the Gradle-based build system, you can wrap this view group around your activity layouts only in the debug builds.

Permissions

Pre-KitKat,WRITE_EXTERNAL_STORAGEis required for saving screenshots. Screenshots can be disabled using the configuration options below.

Configuration

The view group can be configured as follows:

  • Set the number of fingers to trigger withapp:pointerCount/setPointerCount(int)
  • Set the progress color withapp:progressColor/setProgressColor(int)
  • Disable screenshots withapp:screenshot/setScreenshot(boolean)
  • Screenshot children only withapp:screenshotChildrenOnly/setScreenshotChildrenOnly(boolean)
  • Set the screenshot target withsetScreenshotTarget(View)
  • Disable vibration withapp:vibrate/setVibrate(boolean)

Download

Download the latest JAR or grab via Gradle:

compile 'com.mattprecious.telescope:telescope:1.4.0@aar'

or Maven:

<dependency>    <groupId>com.mattprecious.telescope</groupId>    <artifactId>telescope</artifactId>    <version>1.4.0</version>    <type>apklib</type>  </dependency>

项目主页:http://www.open-open.com/lib/view/home/1442239469383

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1442239469383.html
Telescope Android开发 移动开发