<project version="4">
<component name="ProjectModuleManager">
<modules>
- <module fileurl="file://$PROJECT_DIR$/A01d.iml" filepath="$PROJECT_DIR$/A01d.iml" group="A01d" />
- <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" group="A01d/app" />
+ <module fileurl="file://$PROJECT_DIR$/A01d.iml" filepath="$PROJECT_DIR$/A01d.iml" />
+ <module fileurl="file://$PROJECT_DIR$/.idea/modules/app/A01d.app.iml" filepath="$PROJECT_DIR$/.idea/modules/app/A01d.app.iml" />
</modules>
</component>
</project>
\ No newline at end of file
implementation 'androidx.exifinterface:exifinterface:1.3.0'
implementation 'androidx.preference:preference:1.1.1'
implementation 'com.google.android.material:material:1.2.1'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
+ implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
api files('libs/olycamerakit.jar')
- implementation "androidx.core:core-ktx:1.3.1"
+ implementation "androidx.core:core-ktx:1.3.2"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
repositories {
class StoreImage(private val context: Context, private val dumpLog : Boolean = false) : IStoreImage
{
- private val TAG = toString()
- private val FILENAME_FORMAT = "yyyyMMdd_HHmmss"
override fun doStore(bitmapToStore: Bitmap)
{
try
{
- // 保存処理(プログレスダイアログ(「保存中...」)を表示
+ // ここで 保存処理(プログレスダイアログ(「保存中...」)を表示
val preference = PreferenceManager.getDefaultSharedPreferences(context)
- val isLocalLocation = preference.getBoolean(
- IPreferencePropertyAccessor.SAVE_LOCAL_LOCATION,
- IPreferencePropertyAccessor.SAVE_LOCAL_LOCATION_DEFAULT_VALUE
+ val isLocalLocation = preference.getBoolean(
+ IPreferencePropertyAccessor.SAVE_LOCAL_LOCATION,
+ IPreferencePropertyAccessor.SAVE_LOCAL_LOCATION_DEFAULT_VALUE
)
if (isLocalLocation)
{
saveImageExternal(bitmapToStore)
}
- // 保存処理(プログレスダイアログ(「保存中...」)を削除
+ // ここで 保存処理(プログレスダイアログ(「保存中...」)を削除
}
catch (t: Throwable)
{
val outputDir = getExternalOutputDirectory()
val resolver = context.contentResolver
val mimeType = "image/jpeg"
- //val now = System.currentTimeMillis()
val path = Environment.DIRECTORY_DCIM + File.separator + context.getString(R.string.app_name2)
val fileName = SimpleDateFormat(FILENAME_FORMAT, Locale.US).format(Calendar.getInstance().time) + ".jpg"
- val extStorageUri : Uri
+ val extStorageUri: Uri
val values = ContentValues()
values.put(MediaStore.Images.Media.TITLE, fileName)
values.put(MediaStore.Images.Media.DISPLAY_NAME, fileName)
values.put(MediaStore.Images.Media.DATA, outputDir.absolutePath + File.separator + fileName)
extStorageUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI
}
+
val imageUri = resolver.insert(extStorageUri, values)
if (imageUri != null)
{
- resolver.update(imageUri, values, null, null)
-
////////////////////////////////////////////////////////////////
if (dumpLog)
{
}
}
+ else
+ {
+ Log.v(TAG, " cannot get imageUri...")
+ }
}
catch (t: Throwable)
{
return (Environment.getExternalStorageState() == Environment.MEDIA_MOUNTED)
}
+ companion object
+ {
+ private val TAG = this.toString()
+ private const val FILENAME_FORMAT = "yyyyMMdd_HHmmss"
+ }
}
-#Sat May 30 16:05:10 JST 2020
+#Wed Oct 14 21:48:19 JST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip