Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shohiebsense authored Jul 28, 2019
1 parent 59ccc3a commit 7e8890e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ dependencies{
```
Usage

Of course you have to add ACCESS_FINE_LOCATION permission

```
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
```

also if you want it to run on background. Add this in AndroidManifest.xml inside application.

```
<receiver android:name="com.shohiebsense.loclib.service.LocationUpdateBroadcastReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.shohiebsense.loclib.action.ACTION_PROCESS_UPDATES" />
</intent-filter>
</receiver>
```

In your activity file, implement LocationService.LocationServiceListener :

```
Expand Down

0 comments on commit 7e8890e

Please sign in to comment.