skip to Main Content

Change the image of an ImageView by code in Android Studio

I'm trying to get an ImageView by code It's declared that way in my XML: <ImageView android:id="@+id/exo_image" android:layout_width="100dp" android:layout_height="100dp" android:src="@color/cardview_light_background"/> And I'm setting it by code that way: val bmp = BitmapFactory.decodeFile(mediaItem!!.mediaMetadata.artworkUri!!.path) view.setImageBitmap(null) if (bmp != null) { view.setImageBitmap(bmp) Log.d("TEMPS",…

VIEW QUESTION

React native – CMake Build Error with react-native-reanimated: 'mkdir: No such file or directory' (Path Length Issue)

I am trying to build my React Native application for Android, but I'm running into an issue when building react-native-reanimated with CMake. The error I get is : Task :react-native-reanimated:buildCMakeRelWithDebInfo[armeabi-v7a] FAILED C/C++: ninja: error: mkdir(src/main/cpp/reanimated/CMakeFiles/reanimated.dir/C_/Users/ricar/Documents/Github/StockItUp/node_modules/react-native-reanimated/Common): No such file or directory…

VIEW QUESTION

Flutter – error: attribute 'android:name' in <activity>tag must be a valid Java class name

FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:processDebugResources'. A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction Android resource linking failed C:UserschaukAndroidStudioProjectsTestft_androidbuildappintermediatespackaged_manifestsdebugAndroidManifest.xml:52: error: attribute 'android:name' in tag must be a valid Java class name. Here is my…

VIEW QUESTION
Back To Top
Search