diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 28af404..ede1191 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -36,7 +36,6 @@ android { } dependencies { - implementation(libs.androidx.core.ktx) implementation(libs.androidx.appcompat) implementation(libs.material) @@ -45,4 +44,5 @@ dependencies { testImplementation(libs.junit) androidTestImplementation(libs.androidx.junit) androidTestImplementation(libs.androidx.espresso.core) + implementation("com.android.volley:volley:1.2.1") } \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 15cbb63..edd4bfe 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,6 +2,9 @@ + + + + tools:targetApi="31" + android:usesCleartextTraffic="true" + > diff --git a/app/src/main/java/com/example/depanntout/Home.kt b/app/src/main/java/com/example/depanntout/Home.kt index 583fecf..27ade39 100644 --- a/app/src/main/java/com/example/depanntout/Home.kt +++ b/app/src/main/java/com/example/depanntout/Home.kt @@ -7,6 +7,9 @@ import androidx.activity.enableEdgeToEdge import androidx.appcompat.app.AppCompatActivity import androidx.core.view.ViewCompat import androidx.core.view.WindowInsetsCompat +import com.android.volley.toolbox.JsonObjectRequest +import com.android.volley.toolbox.Volley +import org.json.JSONObject class Home : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { @@ -30,5 +33,32 @@ class Home : AppCompatActivity() { val intent = Intent(this, ListeInterventions::class.java) startActivity(intent) } + + val buttonImport = findViewById