Skip to content

Commit b7cd735

Browse files
committed
docs: rename Activity to Screen in examples
1 parent ed26d4b commit b7cd735

6 files changed

Lines changed: 14 additions & 14 deletions

File tree

examples/build.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ In MainViewModel.kt, implement observers:
154154
11. **Triggers Section** (Add/Add Multiple/Remove Selected/Clear All - IN MEMORY ONLY)
155155
12. **Track Event Section** (Track Event with JSON validation)
156156
13. **Location Section** (Location Shared toggle, Prompt Location button)
157-
14. **Next Activity Button**
157+
14. **Next Screen Button**
158158

159159
### Prompt 2.1 - App Section
160160

@@ -374,12 +374,12 @@ Location Section:
374374
- PROMPT LOCATION button
375375
```
376376

377-
### Prompt 2.14 - Secondary Activity
377+
### Prompt 2.14 - Secondary Screen
378378

379379
```
380-
Secondary Activity (launched by "Next Activity" button at bottom of main screen):
381-
- Activity title: "Secondary Activity"
382-
- Page content: centered text "Secondary Activity" using headlineMedium style
380+
Secondary Screen (launched by "Next Screen" button at bottom of main screen):
381+
- Screen title: "Secondary Screen"
382+
- Page content: centered text "Secondary Screen" using headlineMedium style
383383
- Simple screen, no additional functionality needed
384384
```
385385

examples/demo/GettingStarted.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Send a named **event** with optional JSON properties for advanced analytics.
145145
### Location
146146
Toggle **location sharing** on or off and **prompt** for location permission.
147147

148-
### Secondary Activity
148+
### Secondary Screen
149149
Navigate to a second screen with buttons to **simulate a crash** (`RuntimeException`) and **simulate an ANR** (10-second main-thread block) — useful for testing crash and ANR reporting.
150150

151151
### Log Viewer

examples/demo/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
</intent-filter>
6363
</activity>
6464

65-
<!-- Secondary Activity -->
65+
<!-- Secondary Screen -->
6666
<activity
6767
android:name=".ui.secondary.SecondaryActivity"
6868
android:exported="false" />

examples/demo/app/src/main/java/com/onesignal/sdktest/ui/main/MainScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ fun MainScreen(viewModel: MainViewModel) {
263263

264264
Spacer(modifier = Modifier.height(8.dp))
265265

266-
// === NEXT ACTIVITY BUTTON ===
266+
// === NEXT SCREEN BUTTON ===
267267
PrimaryButton(
268-
text = "NEXT ACTIVITY",
268+
text = "NEXT SCREEN",
269269
onClick = {
270270
context.startActivity(Intent(context, SecondaryActivity::class.java))
271271
}

examples/demo/app/src/main/java/com/onesignal/sdktest/ui/secondary/SecondaryActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class SecondaryActivity : ComponentActivity() {
4242
Scaffold(
4343
topBar = {
4444
CenterAlignedTopAppBar(
45-
title = { Text("Secondary Activity", color = Color.White) },
45+
title = { Text("Secondary Screen", color = Color.White) },
4646
navigationIcon = {
4747
IconButton(onClick = { finish() }) {
4848
Icon(
@@ -67,7 +67,7 @@ class SecondaryActivity : ComponentActivity() {
6767
verticalArrangement = Arrangement.Center
6868
) {
6969
Text(
70-
text = "Secondary Activity",
70+
text = "Secondary Screen",
7171
style = MaterialTheme.typography.headlineMedium
7272
)
7373

examples/demo/app/src/main/res/values/strings.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@
105105
<!-- Send In-App Message -->
106106
<string name="send_in_app_message">Send In-App Message</string>
107107

108-
<!-- Next Activity -->
109-
<string name="next_activity">NEXT ACTIVITY</string>
110-
<string name="secondary_activity">Secondary Activity</string>
108+
<!-- Next Screen -->
109+
<string name="next_activity">NEXT SCREEN</string>
110+
<string name="secondary_activity">Secondary Screen</string>
111111

112112
<!-- Dialog -->
113113
<string name="external_user_id">External User Id</string>

0 commit comments

Comments
 (0)