codepath / codepath/android_guides

How to change a parameter in Service/Activity other than MainActivity for testing

Open
#309 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
28.3k
Forks
6.2k
PR merge metrics
No merged PRs in 30d

Description

I want to write a test app that invokes another activity/service of my product code. But I need to make some customization during the creation of the activity/service, that means I need to set a parameter to be test app's parameter in these activity/service during or before the onCreate(). But I don't want to alter product code to add these parameters. Is there anyway I can set these parameters using test app's MainActivity?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.