Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor Modifications #51

Merged
merged 1 commit into from
Sep 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ For other installation options, see [Android Setup](https://github.com/Tencent/M

### Quick Tutorial
You can use MMKV as you go. All changes are saved immediately, no `sync`, no `apply` calls needed.
Setup MMKV on App startup, say your `MainActivity`, add these code:
Setup MMKV on App startup, say your `MainActivity`, add these lines:

```Java
protected void onCreate(Bundle savedInstanceState) {
Expand All @@ -96,7 +96,7 @@ protected void onCreate(Bundle savedInstanceState) {
}
```

MMKV has a global instance, you can use it directly:
MMKV has a global instance, that can be used directly:

```Java
import com.tencent.mmkv.MMKV;
Expand All @@ -113,7 +113,7 @@ kv.encode("string", "Hello from mmkv");
String str = kv.decodeString("string");
```

MMKV also supports **Multi-Process Access**. Full tutorials is here [Android Tutorial](https://github.com/Tencent/MMKV/wiki/android_tutorial).
MMKV also supports **Multi-Process Access**. Full tutorials can be found here [Android Tutorial](https://github.com/Tencent/MMKV/wiki/android_tutorial).

## Performance
Writing random `int` for 1000 times, we get this chart:
Expand All @@ -128,4 +128,4 @@ MMKV is published under the BSD 3-Clause license. For details check out the [LIC
If you are interested in contributing, check out the [CONTRIBUTING.md](https://github.com/Tencent/MMKV/blob/master/CONTRIBUTING.md), also join our [Tencent OpenSource Plan](https://opensource.tencent.com/contribution).

## FAQ & Feedback
Check out the [FAQ](https://github.com/Tencent/MMKV/wiki/FAQ) first. Should there be any questions, don't hesitate to create [issuses](https://github.com/Tencent/MMKV/issues).
Check out the [FAQ](https://github.com/Tencent/MMKV/wiki/FAQ) first. Should there be any questions, don't hesitate to create [issues](https://github.com/Tencent/MMKV/issues).