-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intent interface for MainService #98
Conversation
fb38b3c
to
f5b2e58
Compare
challenge w/ https://github.com/bk138/droidVNC-NG/tree/feat-intent-remote-control-orig
approach 1
👎 introduces state into Intent interface approach 2
👎 some extras invalid, state went into extra valid/invalid approach 3 (bit broader)
👍 can init several outgoing conns at once |
cc0a669
to
1e37abe
Compare
intent interface, take 2verb approach 1 ⛔
verbs w/ args
verb approach 2
verbs w/ args
|
cbe718c
to
8469863
Compare
362ef15
to
45b44d9
Compare
c4d4bef
to
bd03db1
Compare
An approach with broadcast intents being sent on create/destroy was evaluated, but there is no nice way for 3rd party apps to query whether or not the service is running, see https://stackoverflow.com/questions/600207/how-to-check-if-a-service-is-running-on-android So, there is no use making this a public API, thus mark it as package-private.
...and the server is not active.
This is a Defaults implementation detail and not to be used by other components.
They are a MainActivity implementation detail and not to be used by other components.
They are a MainService implementation detail and not to be used by other components.
...not only Defaults.
bd03db1
to
e76521a
Compare
DoidVNC-NG is very cool, I have been looking for a way to control a allwiner H313/X96Q smartbox/TV because it starts mumla client connected with a real radio via a soundcard making a analog to digital solution - both mumla app and DroidVNC-NG start at boot it give a warning and I need to confirm that remote control is allowed else its cool if I add maybe openvpn to the tv box. |
This refactors the code to enable starting the MainService from the outside via an Intent interface.
Closes #83, closes #71, closes #40, closes #50, closes #95, closes #118.
Builds upon and obsoletes #84.
adb pm grant
also does not work because those 3rd party apps have not declared to use our custom permission...