Skip to content
Advertisement

Tag: android-studio

Fragment display different content

Can I make a Fragment to display different content depending on what was selected in the previous screen. For example: I create Fragment with ImageView and TextView. In MainActivity I click Button1 and the Fragment opens and shows some content, and if I click Button2 the same Fragment opens but different content is displayed. Is it possible to do this?

added library to my custom library could not be found

I built an android library and added a library to it for a custom rating bar. used it in my library and everything was ok until i added my library to an empty app for test. then I get this error while trying to build the app. … Execution failed for task ‘:app:checkDebugAarMetadata’. Could not resolve all files for configuration

Finishing an Activity with transition shows the previous Activity from the activity stack first and then transitions to the new Activity

I have 2 Activities in my Android application – Activity A and Activity B. When the user presses a button on Activity A, he is navigated to Activity B. I want Activity A to close after going to the next activity and is completely removed from the activity stack. I tried adding intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); , but this not work

Java problem, run time error, maybe problem occurs on numbers activity.xml file, tried to configure problem but still app is not working [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question MainActivity.java activity_main.xml numberActivity.java activity_numbers.xml Debugging error (in Logcat)= numbersactivity.java file numbersactivity.xml file mainactivity.java

AM Emulator: Library vulkan-1.dll: failed for handleCPUAcceleration [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question The Emulator shows following error when you run it in Android Studio on

Advertisement