-
Notifications
You must be signed in to change notification settings - Fork 157
1.1 Configure
Oscar Gilberto Medina Cruz edited this page May 6, 2017
·
5 revisions
The first thing you have to do, is load this library to your project
With Gradle:
compile 'com.byox.drawview:drawview:##.##'With Maven:
<dependency>
<groupId>com.byox.drawview</groupId>
<artifactId>drawview</artifactId>
<version>##.##</version>
<type>pom</type>
</dependency>##Adding/requesting permissions If you need to save the current draw as an image file you need to add storage permissions
<!-- if you need to find a path or read storage state -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<!-- if you need to save a draw as an image -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> In case you want to use the camera option, you should use the camera permissions too:
<uses-permission android:name="android.permission.CAMERA"/>Or for versions of Android 5.0 or later, you need to do a permission request. See Android Requesting Permissions Doc
This is it for configuring the DrawView library. Next step Using DrawView