android / android/android-test

Provide api for setting START_ACTIVITY_TIMEOUT_SECONDS

Open
#484 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
11h 29m
Merged PRs (30d)
2

Description

### Description

androidx.test.runner.MonitoringInstrumentation#startActivitySync has fixed allowed activity start timeout 45 seconds which in some scenarios can be insufficient. E.g. when activity is starting some long background task in onCreate and ProgressBar is constantly refreshing.

### AndroidX Test and Android OS Versions

1.2.0

Contributor guide

Open the contributing guide

Research direction

Start at androidx.test.runner.MonitoringInstrumentation#startActivitySync and locate the fixed START_ACTIVITY_TIMEOUT_SECONDS value. Trace how the timeout is used, then identify the existing tests for activity startup. Done means callers can set the timeout through a public API and the configured value governs the wait without breaking current behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.