You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -66,12 +70,19 @@ Add `android:extractNativeLibs="true"` to your `<application>` tag:
66
70
67
71
Here’s a complete example showing how to load the extension, create a table, initialize CloudSync, and perform network sync.
68
72
69
-
> **Important:** Replace the following placeholders with your actual values:
70
-
>
71
-
> -`database_name` - Your database name
72
-
> -`table_name` - Your table name
73
-
> -`<connection-string>` - Your SQLiteCloud connection string
74
-
> -`<api-key>` - Your SQLiteCloud API key
73
+
<Callouttype="note">
74
+
Replace the following placeholders with your actual values:
75
+
- `database_name` - Your database name
76
+
- `table_name` - Your table name
77
+
- `<connection-string>` - Your SQLiteCloud connection string
78
+
- `<api-key>` - Your SQLiteCloud API key
79
+
</Callout>
80
+
81
+
<Callouttype="warning">
82
+
CloudSync functions must be executed with `SELECT`. In Android, use
83
+
`rawQuery()` to call them, and always call `moveToFirst()` (or `moveToNext()`)
84
+
on the cursor to ensure the query actually executes.
85
+
</Callout>
75
86
76
87
```kotlin
77
88
importandroid.os.Bundle
@@ -179,9 +190,3 @@ class MainActivity : ComponentActivity() {
179
190
}
180
191
}
181
192
```
182
-
183
-
### 4. Notes on SQLite Usage in Android
184
-
185
-
CloudSync functions must be executed with `SELECT`. In Android, use `rawQuery()` to call them, and always call `moveToFirst()` (or `moveToNext()`) on the cursor to ensure the query actually executes.
186
-
187
-
For detailed SQLite Sync API documentation, see the main [documentation](https://github.com/sqliteai/sqlite-sync/blob/main/README.md).
0 commit comments