boxme / SquareCamera

Android Camera Library For Square Photo Taking
MIT License
569 stars 189 forks source link

Changing Photo Save Directory Name #31

Open tahirSmartboy opened 8 years ago

tahirSmartboy commented 8 years ago

How can we change the name of the directory to which the camera saves after capturing...

rohanmahale commented 8 years ago

In the ImageUtility class, there is a static method savePicture. Set your own file path in that method.

tahirSmartboy commented 8 years ago

how to do that ...you cannot edit the ImageUtility class ...

philipgiuliani commented 8 years ago

Hi @tahirSmartboy

If you are using Android Studio + Gradle:

  1. Copy the "squarecamera" folder into your project
  2. Inside your settings.gradle add this line: include ':squarecamera'
  3. Then in your app/gradle.build replace your current squarecamera reference with compile project(':squarecamera')

I hope i could help. Then you can just edit all the sourcefiles :)

tahirSmartboy commented 8 years ago

@phillpgiuliani ..i did that but it gives some gradle error

Searched in the following locations:
    file:/opt/android-studio/gradle/m2repository/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.2/gradle-bintray-plugin-1.2.pom
    file:/opt/android-studio/gradle/m2repository/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.2/gradle-bintray-plugin-1.2.jar
    https://repo1.maven.org/maven2/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.2/gradle-bintray-plugin-1.2.pom
    https://repo1.maven.org/maven2/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.2/gradle-bintray-plugin-1.2.jar
Required by:
    :SquareCamera-master:unspecified
philipgiuliani commented 8 years ago

Hi i think you have added the "SquareCamera-master" folder instead of the "squarecamera" folder which is inside. Sorry for the very late answer.

tahirSmartboy commented 8 years ago

thank you @philipgiuliani

philipgiuliani commented 8 years ago

You are welcome! :)

andims commented 8 years ago

If you just want to change the foldername "squarecamera", just put the string bellow in your string file to override the library default string. was enough for me. <string name="squarecamera__app_name">MyAppName</string>

Codeglee commented 8 years ago

👍 to making this configurable.

sapnix commented 7 years ago

I tried to import project to change path, but I got error

Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
<a href="openFile:V:\android-studio\pictureproject\squarecamera\build.gradle">Open File</a>

After googling I found out that dcendents.android-maven plugin has moved to simpligility