use different intents for message tx and rx

beta11
Georg Lukas 2011-07-31 02:01:09 +02:00
rodzic d0b6640da3
commit 9c9a71354d
2 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -16,8 +16,9 @@ object AprsService {
val SERVICE = PACKAGE + ".SERVICE"
val SERVICE_ONCE = PACKAGE + ".ONCE"
// broadcast actions
val UPDATE = PACKAGE + ".UPDATE"
val MESSAGE = PACKAGE + ".MESSAGE"
val UPDATE = PACKAGE + ".UPDATE" // something added to the log
val MESSAGE = PACKAGE + ".MESSAGE" // we received a message/ack
val MESSAGETX = PACKAGE + ".MESSAGETX" // we created a message for TX
// broadcast intent extras
val LOCATION = PACKAGE + ".LOCATION"
val STATUS = PACKAGE + ".STATUS"
@ -115,7 +116,7 @@ class AprsService extends Service with LocationListener {
startPoster()
// register for outgoing message notifications
registerReceiver(msgNotifier, new IntentFilter(AprsService.MESSAGE))
registerReceiver(msgNotifier, new IntentFilter(AprsService.MESSAGETX))
}
// continuous GPS tracking for single shot mode

Wyświetl plik

@ -98,7 +98,7 @@ class MessageActivity extends LoadingListActivity
cv.put(TEXT, msg)
storage.addMessage(cv)
// notify backend
sendBroadcast(new Intent(AprsService.MESSAGE))
sendBroadcast(new Intent(AprsService.MESSAGETX))
}
// button actions