Android Studio – Is there a way i can fix this ? i tried to copy the name of the package in the intent but it isn't working
Here I tried to copy the name of the package in the class part but apparently it isn't working please help
Here I tried to copy the name of the package in the class part but apparently it isn't working please help
I have made two textView in an xml file where one textView shows current date and another shows current time as text. Now, I have used the java Calendar.getInstance().getTime() method to get the date & time information. But it is…
Say we got this button in a layout file, say app/res/layout/activity_main.xml: <Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="50dp" android:background="@drawable/test" android:text="ok" /> Also say that @drawable/test is an SVG file (vector image) that gives a unique shape for the button as follows: The problem…
I'm setting up an application development environment with Flutter. I'm having trouble installing Android Studio: I can't set the directory where Android Studio is installed. I've got an error, as shown in the picture. How do I find the correct…
So I have this function below and I want to declare a textview inside it, however using findViewById seems not working. What should I do so I can declare a textview inside a function? fun addingNewText(idt: Int): TextView { //val…
hello i want to use androidx library but it's not showing for me and i tried Refactor->Migrate to androidx and it didn't work too can i get help please.. https://i.stack.imgur.com/xHNJ9.png
I am making an UI on Android Studio. I want to make a button with background image that I made. Then I want to write some text on it. However, when I set the background on button, it is just…
I switched my os windows to Mac os after installing android studio on mac os I can't import projects in android studio I want this type of popup on my mac screen when clicking on import project But Studio show…
I have a button and when I press it it show me in 2 TextView my location(in textview3 the X, and textview21 the Y) and I want to listen my location with text to speech. The problem is: The text…
Hi guys I've a more theorical question. Is AppCompatActivity a subclass of Activity? The AppCompatActivity class is a subclass of the FragmentActivity class directly and the ComponentActivity class indirectly, and these superclasses are subclasses of the Activity. This makes AppCompatActivity…