Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

Updated AndroidImplementation.java to handle the ACCESS_BACKGROUND_LOCATION permission separately on Android 11 (API 30) and newer. Instead of the standard permission request, which is often silently ignored or restricted by the OS for background location, the app now presents a dialog explaining the requirement and then directs the user to the app's settings page to manually enable "Allow all the time".

The dialog strings are customizable via Display properties:

  • android.permission.ACCESS_BACKGROUND_LOCATION.title
  • android.permission.ACCESS_BACKGROUND_LOCATION.settings
  • android.permission.ACCESS_BACKGROUND_LOCATION.cancel
  • android.permission.ACCESS_BACKGROUND_LOCATION.explanation_title
  • android.permission.ACCESS_BACKGROUND_LOCATION.explanation_body
  • android.permission.ACCESS_BACKGROUND_LOCATION.ok

Updated docs/developer-guide/Miscellaneous-Features.asciidoc to document this new behavior and the android.requiresBackgroundLocationPermissionForAPI29 build hint.


PR created automatically by Jules for task 11775562847077425485 started by @shai-almog

- Implement special handling for `ACCESS_BACKGROUND_LOCATION` on API >= 30 in `AndroidImplementation.java`.
- Bypass `ActivityCompat.requestPermissions` and guide users to Settings.
- Add localization keys for new dialog strings.
- Update developer guide with instructions on new behavior and build hint requirements.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

@github-actions
Copy link

github-actions bot commented Dec 23, 2025

Developer Guide build artifacts are available for download from this workflow run:

Developer Guide quality checks:

  • AsciiDoc linter: No issues found (report)
  • Vale: 18753 alert(s) (2757 errors, 6361 warnings, 9635 suggestions) (exit code 1) (report)
  • Image references: No unused images detected (report)

@github-actions
Copy link

github-actions bot commented Dec 23, 2025

✅ Continuous Quality Report

Test & Coverage

Static Analysis

Generated automatically by the PR CI workflow.

@shai-almog
Copy link
Collaborator

shai-almog commented Dec 23, 2025

Compared 30 screenshots: 30 matched.

Native Android coverage

  • 📊 Line coverage: 24.51% (2620/10688 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 24.25% (12231/50433), branch 15.22% (708/4652), complexity 17.29% (731/4227), method 32.43% (589/1816), class 34.32% (104/303)
    • Lowest covered classes
      • com.codename1.impl.android.com.codename1.impl.android.AndroidContactsManager – 0.00% (0/400 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidImplementation$Video – 0.00% (0/168 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.IntentIntegrator – 0.00% (0/139 lines covered)
      • com.codename1.impl.android.util.com.codename1.impl.android.util.Base64 – 0.00% (0/117 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidImplementation$SocketImpl – 0.00% (0/77 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidTextureView – 0.00% (0/76 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidSurfaceView – 0.00% (0/73 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.LocalNotificationPublisher – 0.00% (0/65 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.FridaDetectionUtil – 0.00% (0/64 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidDB – 0.00% (0/57 lines covered)

✅ Native Android screenshot tests passed.

Native Android coverage

  • 📊 Line coverage: 24.51% (2620/10688 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 24.25% (12231/50433), branch 15.22% (708/4652), complexity 17.29% (731/4227), method 32.43% (589/1816), class 34.32% (104/303)
    • Lowest covered classes
      • com.codename1.impl.android.com.codename1.impl.android.AndroidContactsManager – 0.00% (0/400 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidImplementation$Video – 0.00% (0/168 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.IntentIntegrator – 0.00% (0/139 lines covered)
      • com.codename1.impl.android.util.com.codename1.impl.android.util.Base64 – 0.00% (0/117 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidImplementation$SocketImpl – 0.00% (0/77 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidTextureView – 0.00% (0/76 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidSurfaceView – 0.00% (0/73 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.LocalNotificationPublisher – 0.00% (0/65 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.FridaDetectionUtil – 0.00% (0/64 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidDB – 0.00% (0/57 lines covered)

google-labs-jules bot and others added 2 commits December 23, 2025 03:12
- Implement special handling for `ACCESS_BACKGROUND_LOCATION` on API >= 30 in `AndroidImplementation.java`.
- Bypass `ActivityCompat.requestPermissions` and guide users to Settings.
- Add localization keys for new dialog strings.
- Update developer guide with instructions on new behavior and build hint requirements.
Clarified the process for requesting background location permissions on Android 11 and higher, including details about Codename One's handling of the flow and customization options.
@shai-almog shai-almog marked this pull request as ready for review December 23, 2025 04:12
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@shai-almog shai-almog merged commit c2a1706 into master Dec 23, 2025
14 checks passed
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.

2 participants