[JAVA] Technical causes and countermeasures for the points I was addicted to with the first Android app & Kotlin

Introduction

Lack of technology

Since I was new to * Android * apps and * OpenCV *, I had a series of errors when I tried to build a * OpenCV * sample as a new project in * Android Studio *. Just before the release, I learned that you can easily switch between debug (test) and release resources and builds by setting * Gradle * build variants and product flavors. These were not addicted to people who experienced similar troubles, thanks to the disclosure of information led by * Qiita *.

Even though I'm new to * Android * apps, as I've experienced since the days of * Java 1.2 *, developing with compatible * Kotlin * is many times more beneficial than developing with * Java *. felt.

Speaking of official docs, the official docs for * Android * were a bit confusing because they were mixed with old information.

Target person

Execution environment

[Execution environment when a problem occurs]

Android Studio 3.1.4

* build.gradle * com.android.tools.build:gradle:3.1.4 org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.61

[* build.gradle *](module: * app *) minSdkVersion 19(API 19/Android 4.4/KitKat) (Because the version of the device you have is * Android 4.4 *) compileSdkVersion 27(API 27/Android 8.1/Oreo) targetSdkVersion 27

[Execution environment at the time of release]

Android Studio 3.2.1

* build.gradle * com.android.tools.build:gradle:3.2.1 org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.0

[* build.gradle *](module: * app *) minSdkVersion 19(API 19/Android 4.4/KitKat) (Because the version of the device you have is * Android 4.4 *) compileSdkVersion 28(API 28/Android 9.0/Pie) targetSdkVersion 28(API 28/Android 9.0/Pie)

[Used * Open Source *]

Android-Image-Cropper 2.7.0 lottie-android 2.5.0 OpenCV 3.4.3

Prerequisites

In this research under development, I learned about * Android * material design, * Android Jetpack *, and * ReactiveX / RxJava / RxAndroid *, but I have not used them in this application (excluding * Fragment *). (The reason is that we gave priority to the release of this application and could not afford it)

table of contents

1. * Android * screen transition (fragment) processing

--1.1 Process of pasting the image after screen transition --1.2 Animation image display processing during seamless image composition after screen transition --1.3 Back stack processing on the seamless composition result screen

2. * Android * camera function processing

--2.1 * Chooser * processing to select the gallery or camera function when selecting an image --2.2 Processing to exclude other camera apps from the camera function of * Chooser * --2.3 * Intent * parameter processing of * onActivityResult () * when shooting with camera

3. * Android * image processing

--3.1 * createTempFile * (unique file name) processing of * File * class --3.2 Mirror processing of images using * OpenCV * --3.3 Seamless composition processing using * OpenCV * --3.4 Seamless composite image gallery registration process

Recommended Posts

Technical causes and countermeasures for the points I was addicted to with the first Android app & Kotlin
Technical causes and countermeasures for the points that I was addicted to with the Android app & Kotlin (2. Processing related to the camera function of Android *)
Technical causes and countermeasures for points addicted to Android apps & Kotlin (3. Processing related to Android images)
Technical causes and countermeasures for points addicted to Android apps & Kotlin (1. Android screen transition (fragment) processing)
What I was addicted to with the Redmine REST API
I want to return to the previous screen with kotlin and java!
I was addicted to the roll method
I was addicted to the Spring-Batch test
Problems I was addicted to when building the digdag environment with docker
The story of releasing the Android app to the Play Store for the first time.
I was addicted to unit testing with the buffer operator in RxJava
I was addicted to doing onActivityResult () with DialogFragment
I was addicted to the NoSuchMethodError in Cloud Endpoints
I was addicted to the record of the associated model
I want to dark mode with the SWT app
I want to transition screens with kotlin and java!
A memorandum because I was addicted to the setting of the Android project of IntelliJ IDEA
How to study kotlin for the first time ~ Part 2 ~
How to study kotlin for the first time ~ Part 1 ~
What I did to get out of the first wall I was assigned to the SRE team and bumped into, "What should I start with?"
I was addicted to WSl when trying to build an android application development environment with Vue.js
I tried to introduce Bootstrap 4 to the Rails 6 app [for beginners]
What I was addicted to when introducing the JNI library
I tried to summarize the basics of kotlin and java
I was addicted to setting default_url_options with Rails devise introduction
I was addicted to looping the Update statement on MyBatis
Android app to select and display images from the gallery
I want to make a list with kotlin and java!
I want to make a function with kotlin and java!
I was addicted to the setting of laradock + VSCode + xdebug
Beginner-friendly Android app publishing procedure, struggling for the first release⁈
I want to implement various functions with kotlin and java!
[Android] Change the app name and app icon for each Flavor
The story I was addicted to when setting up STS
I want to create a chat screen for the Swift chat app!
[Swift 5] Processing and precautions for transitioning to the iOS settings app
What I was addicted to when implementing google authentication with rails
About the matter that I was addicted to how to use hashmap
I was addicted to the API version min23 setting of registerTorchCallback
Introduction to Android App Development 1 Installing JDK and Android Studio for mac
I was able to deploy the Docker + laravel + MySQL app to Heroku!
I was addicted to starting sbt
A story that I was addicted to twice with the automatic startup setting of Tomcat 8 on CentOS 8
Android memo-I was addicted to Permission
Memorandum: What I was addicted to when I hit the accounting freee API
I summarized the points to note when using resources and resources in combination
Wait for PostgreSQL to start with Docker and then start the WEB service
[Rails] I was addicted to the nginx settings when using Action Cable.
I tried to summarize the stumbling points when developing an Android application
A story I was addicted to when testing the API using MockMVC
Recorded because I was addicted to the standard input of the Scanner class
I tried to summarize the key points of gRPC design and development
I stumbled upon the development and publication of my first iPhone app
I was a little addicted to running old Ruby environment and old Rails
I was addicted to scrollview because I couldn't tap the variable size UIView
[CircleCI] I was addicted to the automatic test of CircleCI (rails + mysql) [Memo]
Creating an app and deploying it for the first time on heroku
Kotlin vs. Java: Which Programming Language to Choose for Your Android App
I tried to measure and compare the speed of GraalVM with JMH
Introduction to java for the first time # 2
Touching kotlin for the first time-Enum Classes