Skip to content

Commit

Permalink
Allow adding Java activities to the manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
bauerj committed Dec 29, 2017
1 parent 7b48f20 commit 94e9172
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildozer/default.spec
Expand Up @@ -146,6 +146,9 @@ fullscreen = 0
# bootstrap)
#android.gradle_dependencies =

# (list) Java classes to add as activities to the manifest.
#android.add_activites = com.example.ExampleActivity

# (str) python-for-android branch to use, defaults to stable
#p4a.branch = stable

Expand Down
5 changes: 5 additions & 0 deletions buildozer/targets/android.py
Expand Up @@ -719,6 +719,11 @@ def build_package(self):
raise SystemError('Failed to find jar file: {}'.format(
pattern))

# add Java activity
add_activities = config.getlist('app', 'android.add_activities', [])
for activity in add_activities:
build_cmd += [("--add-activity", activity)]

# add presplash
presplash = config.getdefault('app', 'presplash.filename', '')
if presplash:
Expand Down

0 comments on commit 94e9172

Please sign in to comment.