Création des premiers sketchs, recherche sur la caméra et sur la possible api (voir Google Reverse Image SERPAPI) 🍱

BottomNav
Pierre FERREIRA 2 years ago
parent 9ded743cc5
commit c7d91b28d8

@ -0,0 +1,2 @@
#Fri Mar 03 15:47:12 CET 2023
gradle.version=7.4

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>

@ -2,6 +2,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-feature android:name="android.hardware.camera"
android:required="true" /> <!-- demande a l'utilisateur l'accés à la caméra, le require true permet de dire que la caméra est essentiel a l'appli-->
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
@ -12,6 +15,7 @@
android:supportsRtl="true"
android:theme="@style/Theme.PierrePierre"
tools:targetApi="31">
<activity android:name=".MainActivity"
android:exported="true">
<intent-filter>
@ -19,5 +23,6 @@
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>

@ -1,5 +1,7 @@
package iut.android.pierrepierre
import android.content.Intent
import android.graphics.Bitmap
import android.os.Bundle
import android.os.PersistableBundle
import androidx.appcompat.app.AppCompatActivity
@ -10,4 +12,12 @@ class MainActivity : AppCompatActivity() {
super.onCreate(savedInstanceState, persistentState)
setContentView(R.layout.main_activity)
}
// override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
// if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == RESULT_OK) {
// val imageBitmap = data.extras.get("data") as Bitmap
// imageView.setImageBitmap(imageBitmap)
// }
// }
}

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.constraintlayout.widget.ConstraintLayout>
android:layout_height="match_parent"/>

@ -0,0 +1,8 @@
## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Fri Mar 03 15:47:03 CET 2023
sdk.dir=/opt/android-sdk
Loading…
Cancel
Save