Android Example Pebble Example

postasat

Active Member
Licensed User
Longtime User

postasat

Active Member
Licensed User
Longtime User
I found how to start and stop Sports App on Pebble:

B4X:
Sub StartSPORTPebble

Dim I1 As Intent,P As Phone

I1.Initialize("com.getpebble.action.app.START", "")
I1.putExtra("uuid", "4dab81a6-d2fc-458a-992c-7a1f3b96a970")
P.SendBroadcastIntent(I1)

End Sub

Sub StopSPORTPebble

Dim I1 As Intent,P As Phone

I1.Initialize("com.getpebble.action.app.STOP", "")
I1.putExtra("uuid", "4dab81a6-d2fc-458a-992c-7a1f3b96a970")
P.SendBroadcastIntent(I1)

End Sub

Now I "only" need to know how to:
- send real time data (distance, time,...)
- set metric unit
- know which button was pressed (receive data from Pebble...)

Thank you in advance.
 
Top