Skip to content

Issue #107 solution candidate (Android service)#108

Merged
tito merged 5 commits into
kivy:masterfrom
b3b:service
Apr 24, 2013
Merged

Issue #107 solution candidate (Android service)#108
tito merged 5 commits into
kivy:masterfrom
b3b:service

Conversation

@b3b

@b3b b3b commented Apr 21, 2013

Copy link
Copy Markdown
Contributor

Service part implementation, with start and stop operations.
File 'service/main.py' from the application directory is treated as the service code.

Usage example, Kivy Remote Shell running in background: https://github.com/b3b/kivy-remote-shell .

@tito

tito commented Apr 23, 2013

Copy link
Copy Markdown
Member

That's absolutely so cool. If i correctly read the PR, you need a service/main.py to automatically start this file as a service. And more than that, the service can be started/stopped by the main-ui app.

Do you confirm ?

I guess only the documentation would be missing, and maybe a little example on how we could communicate between UI and service.

THAT'S UBER COOOOOOOL!

@b3b

b3b commented Apr 24, 2013

Copy link
Copy Markdown
Contributor Author

File service/main.py is started/stopped as service, but not automatically, only when appropriate function is called from the main-ui.

Communication is limited in current state, service receive one string as argument when started - that's all. Seems it need to be improved.

Also, may be some part better be done with PyJNIus, but i was not using it (just not tried it yet).

@tito

tito commented Apr 24, 2013

Copy link
Copy Markdown
Member

That's perfect for a PR. Thanks you very much for your contribution!

tito added a commit that referenced this pull request Apr 24, 2013
Issue #107 solution candidate (Android service)
@tito tito merged commit 354f6aa into kivy:master Apr 24, 2013
@akshayaurora

Copy link
Copy Markdown
Member

@b3b would greatly appreciate it if you could a pull for the changes you did to the remote-shell too.

@b3b

b3b commented Jul 20, 2013

Copy link
Copy Markdown
Contributor Author

@akshayaurora Not sure. These changes restrict the remote-shell usage, since commands are executed in the non-UI thread. Attempt to use UI, like this:

Popup(title="simple UI usage").open()

will crash the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants