From 7a08106abe22538fcc06bf9e4d7e09e468a92a15 Mon Sep 17 00:00:00 2001 From: "Your laurynas.lopata@epfl.ch" Date: Wed, 13 Apr 2022 21:02:24 +0200 Subject: [PATCH 1/6] Started to work on image upload --- .../activity/CreateProfileActivity.kt | 27 +++++++++++++++++++ .../res/layout/activity_create_profile.xml | 14 ++++++++++ 2 files changed, 41 insertions(+) diff --git a/app/src/main/java/ch/sdp/vibester/activity/CreateProfileActivity.kt b/app/src/main/java/ch/sdp/vibester/activity/CreateProfileActivity.kt index 8a8b64199..ad5e1c612 100644 --- a/app/src/main/java/ch/sdp/vibester/activity/CreateProfileActivity.kt +++ b/app/src/main/java/ch/sdp/vibester/activity/CreateProfileActivity.kt @@ -1,10 +1,13 @@ package ch.sdp.vibester.activity +import android.app.Activity import android.content.Intent +import android.graphics.drawable.BitmapDrawable import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.Button import android.widget.EditText +import android.widget.ImageView import ch.sdp.vibester.R import ch.sdp.vibester.database.UsersRepo import dagger.hilt.android.AndroidEntryPoint @@ -16,6 +19,8 @@ class CreateProfileActivity : AppCompatActivity() { @Inject lateinit var usersRepo: UsersRepo + private val REQUEST_CODE = 500 + override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_create_profile) @@ -25,6 +30,8 @@ class CreateProfileActivity : AppCompatActivity() { var handle = findViewById(R.id.accountHandle) val btCreateAcc = findViewById