1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-04 03:52:02 +02:00
Gadgetbridge/app/src/main
cpfeiffer a1cb246e27 Add and use a "client interface" for the actions of the service
Previously, the DeviceCommunicationService was invoked directly,
via
Intent intent = new Intent(foo, bar);
intent.setExtra(EXTRA_BAZ, baz);
startService(...);

and this was scattered throughout GadgetBridge.
Now there is a "frontend" available, so that you can call
the service more easily, like
GBApplication.deviceService().connect();

For a start, this client interface (DeviceService) actually
implements the same interface (EventHandler) as the receiving side
(DeviceSupport). This may change in the future.

This will also make testing much easier, because we can use
this client interface to invoke the test service as well.
2015-08-21 01:03:57 +02:00
..
.settings #15 Initial support for MI Band 2015-04-19 02:37:29 +02:00
aidl/com/android/internal/telephony Support for rejecting/ending calls via Pebble buttons 2015-03-07 17:44:39 +01:00
assets Remove the activity log debug file. 2015-06-12 22:30:14 +02:00
java/nodomain/freeyourgadget/gadgetbridge Add and use a "client interface" for the actions of the service 2015-08-21 01:03:57 +02:00
res Pebble: Emulator support 2015-08-19 00:06:15 +02:00
.classpath #15 Initial support for MI Band 2015-04-19 02:37:29 +02:00
.project #15 Initial support for MI Band 2015-04-19 02:37:29 +02:00
AndroidManifest.xml Remove INTERNET permission 2015-08-20 22:41:38 +02:00
lint.xml #15 Initial support for MI Band 2015-04-19 02:37:29 +02:00
project.properties #15 Initial support for MI Band 2015-04-19 02:37:29 +02:00