Skip to content

Commit 49694c3

Browse files
author
Artemiy Garin
committed
- readme update
1 parent 6fa4ba4 commit 49694c3

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

readme.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,29 @@ public class MainApplication extends Application {
142142

143143
<h2>FTS (Full-Text Search)</h2>
144144

145-
todo: add documentation
145+
```java
146+
147+
...
148+
149+
private SQLiteSimpleFTS simpleFTS;
150+
151+
@Override
152+
public void onCreate(Bundle savedInstanceState) {
153+
super.onCreate(savedInstanceState);
154+
simpleFTS = new SQLiteSimpleFTS(this, false); // second parameter is a tables category,
155+
// search between several tables
156+
}
157+
158+
@Override
159+
protected void onDestroy() {
160+
super.onDestroy();
161+
simpleFTS.recycle();
162+
}
163+
164+
// That's all! Use methods as described below in appropriate places, like in a example.
165+
// simpleFTS.search(...), simpleFTS.create(...)
166+
167+
```
146168

147169
<h2>Tools</h2>
148170

0 commit comments

Comments
 (0)