• Stars
    star
    102
  • Rank 335,584 (Top 7 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created almost 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A library for Android Wear projects to handle exceptions properly.

ExceptionWear - library for handling Exceptions on Android Wear

Android Arsenal Maven Central

ExceptionWear () is very simple library to solve problem of not passing exceptions from Android Wear devices to the phone. So if you release an app for smartwatches to Google Play and it will crash (and it will) you won't get any information about it (sic!).

###How to start? To start with handling your exceptions, all you need is to add one line to Application class on Wear device. From now on all your exceptions from smartwatch will be thrown as well on the phone. Plus you can add custom handlers for them!

###Custom Handler After receiving exception on a phone you can send a email with log, save it for any crash reporting app etc. - just add own class that implements ExceptionWearHandler and set using ExceptionDataListenerService.setHandler() before receiving a crash.

###Add ExceptionWear to your project

Gradle:

    //library:
    compile 'pl.tajchert:exceptionwear:0.1.2'
    //needed dependency:
    compile 'com.google.android.gms:play-services-wearable:+'

Add it to both projects - mobile and wear.

Maven:

<dependency>
    <groupId>pl.tajchert</groupId>
    <artifactId>exceptionwear</artifactId>
    <version>0.1.2</version>
</dependency>

Maven Central Link

###Code Wear app:

public class WearableApplication extends Application {
    public void onCreate() {
        //...
        ExceptionWear.initialize(this);
    }
}

Phone (for custom handler):

public class PhoneApplication extends Application {
    public void onCreate() {
        //...
        ExceptionDataListenerService.setHandler(new CustomExceptionHandler());//need to implements ExceptionWearHandler
    }
}

Other sample handlers are already implemented in sample project. There are: Log only handler, sending email, Crashlytics handler.

###License

ExceptionWear binaries and source code can be used according to the Apache License, Version 2.0.

###Thanks

Goes to Sebastian Mauer for that gist (whole library is based on it), and also to: Aleksander Piotrowski, David Vavra.

More Repositories

1

WaitingDots

Kotlin
739
star
2

Nammu

Permission helper for Android M - background check, monitoring and more
Kotlin
713
star
3

BusWear

EventBus for Android Wear devices.
Java
257
star
4

NotificationResponse

Java
52
star
5

RuntimePermissionWorkshop

Android Runtime Permissions workshop.
Java
32
star
6

ShapeWear

One class example for simple detecting screen shape on Android Wear devices.
Java
27
star
7

Houston

Helper for managing notification stack - dismiss only part of notifications (category), by id (as usually), get list of active if possible and more.
Kotlin
24
star
8

SWear_Weather

Nothing fancy... just a weather clockface for AndroidWear
Java
13
star
9

Wearly

Android Wear watch face with Timely like style of animations.
Java
11
star
10

Faceboard

Google Cardboard app that uses OpenCV for Terminator style face detection.
Java
9
star
11

Glass_QRCards

Google Glass QR Codes reader, scan&store them.
Java
8
star
12

ServiceWear

Android Wear library to enable more than one WearableListenerService.
Java
7
star
13

DetectWear

Small library to detect if Android Wear device is connected to Android phone.
Java
7
star
14

Huawei-Mobile-Services-with-GPS

Sample integration of Huawei Mobile Services (HMS, Map Kit) for existing app with Google Mobile Services. This repo show how to create HMS flavour of your app and split GPS/HMS imports when using Android Architecture components (LiveData and ModelView).
Kotlin
7
star
15

Glass_Wallet

Expenses manager for keeping track of your finances, on Google Glass.
Java
6
star
16

AndroidWearScripts

ADB bash scripts to speed up work with Android Wear
Shell
6
star
17

LiveWatch

Android Wear watch face with background that depends on a accelerometer reading.
Java
4
star
18

RegistrationPlate

Java
3
star
19

FitSurvivor

Java
2
star
20

Glass_NumPad

Java
2
star
21

Glass_Keyboard

Java
2
star
22

WearBusinessCard

Java
2
star
23

SpritzerWear

A SpritzerTextView implementation for Android Wear.
Java
2
star
24

CEEHack

Central Open Data Hackathon ceehack.org
Java
2
star
25

Ender-5-Marlin

Precompiled Marlin firmware for Creality Ender 5
C++
1
star
26

MineWatcher

An app for Windows Phone (>7.1), to monitor Bitcoin miner at polmine.pl (other pools will be added in future).
C#
1
star
27

BiometricPromptSample

Sample of usage BiometricPrompt And BiometricPromptCompat
Kotlin
1
star
28

CheatWear

Java
1
star
29

WearWorkshops

Java
1
star
30

PlayerStatsGames

Java
1
star
31

WearBankCode

Android Wear app for handling bank code and displaying it on the Android Wear device
Java
1
star
32

securetime

Library for Roughtime protocol on Android. Superior to NTP protocol in terms of security. Based on Java library by int08h https://github.com/int08h/nearenough
Java
1
star
33

DevLiner

Java program to count number of code lines in your workspace, organize it into Projects and keep history of line number in each of them. After that it would generate WWW with charts so you can easily share it.
JavaScript
1
star