Skip to content

Issue #107 solution candidate (Android service) #108

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

Merged
merged 5 commits into from
Apr 24, 2013
Merged

Conversation

b3b
Copy link
Contributor

@b3b b3b commented Apr 21, 2013

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
Copy link
Member

tito commented Apr 23, 2013

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
Copy link
Contributor Author

b3b commented Apr 24, 2013

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
Copy link
Member

tito commented Apr 24, 2013

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
Member

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

@b3b
Copy link
Contributor Author

b3b commented Jul 20, 2013

@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