Most voted "android-activity" questions
Activity is a component that provides a graphical interface (UI) to allow the user to interact with the application. Use this tag for questions related to the functionality and responsibilities of an Activity, such as its life cycle.
Learn more…373 questions
Sort by count of
-
-1
votes1
answer598
viewsButton to open a new Activity is returning to the initial Activity
In my application I made a login screen and put a button to authenticate the user through Facebook, after logging in the main screen and on this screen has a button that calls a new Activity. So far…
-
-1
votes1
answer109
viewsError while changing screen orientation using Fragments
While turning the screen orientation I get this error: Error android.view.Inflateexception: Binary XML file line #23: Binary XML file line #11: Error inflating class Fragment Question: What could be…
-
-1
votes1
answer719
viewsPass text to an Edittext
I’m making an android app that reads a barcode. I saw a video on Youtube that taught how to do and replicated to take as a basis and worked well. The problem was when I tried to put the read return…
-
-1
votes1
answer52
viewsIs it possible to create a Widget with multiple configuration screens?
I have a Widget that there is only one configuration screen but want to add one more how can I do it? I know that the first screen that appears is a Activity try to open with Intent normal but not…
-
-1
votes1
answer41
viewsCrash app when entering Landscape mode
My app has two layouts, a pro mode Portrait and another pro Landscape. When I assign an event to open another Activity to the screen button, when I turn the phone, (I put it in Landscape mode) the…
-
-1
votes1
answer548
viewsHow to display a textView of an Activity in another Activity
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:weightSum="1.0"> <TextView…
-
-1
votes1
answer149
viewsBottomnavigationview Problem: Unable to find Resource ID
Good morning, everyone, I searched several times and could not find a solution to solve a problem I am having with Bottomnavigationview. Come on, in my Activity I have the following code <?xml…
-
-1
votes1
answer131
viewsUse setSupportActionBar on Fragment
I have an app that uses NavigationDrawer, I need to change the name of toolbar for each fragment. My MainActivity extension of AppCompatActivity then I can change the fragment name using: toolbar =…
-
-1
votes1
answer30
viewsI cannot display a Toast in 2 activitys from the same package
I am doing a registration screen and login in my app, in the registration screen I implemented some exception treatments toasts, at the time of emulating the app the registration screen toasts…
-
-1
votes1
answer63
viewsTransition of activities with serializable classes (getIntent problem)
I have a problem while passing a serializable class. I insert it into the Bundle as follows. public void voltarMain(View view) { Intent myIntent = new Intent(getApplicationContext(),…
android android-activity nullpointerexception serialization android-intentasked 4 years, 9 months ago Filipe Torres 1 -
-1
votes1
answer208
viewsTextinputedittext cannot be converted
This here is my Activity class. import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.widget.EditText; import…
-
-1
votes1
answer44
viewsProblem with Java Activity in Android Studio
Good afternoon, I’m facing a problem that whenever I update two different nodes on Firebase from a single véz, a Activity simply opens again overlapping the Activity current. Follows the code below…
-
-1
votes1
answer46
viewsAndroid Studio Error: Unable to start Activity
I’m doing a basic CRUD with Realmdb. I made a list, and when some item of this list is selected, it is to open an Update Activity, where you can change the selected data. The problem is that the…
-
-1
votes1
answer52
viewsI cannot call an "id" of the "Mainactivity.kt" file inside the "activity_main.xml" file
Hello. I’m starting the program. I’m using Android Studio with the Kotlin language. I’m trying to call an "id", which is inside the file "activity_main.xml" in the file "Mainactivity.kt", I’m not…
-
-2
votes2
answers116
viewsGuys, does anyone know what call or perform this technique in the studio Android?
I want to make an APP for gym and need to use a smaller screen in front of the main screen as shown in the print of an existing APP that is attached. I want to blur the background and show a smaller…
android android-layout android-studio android-activityasked 6 years, 7 months ago Heverton Kleidson 23 -
-2
votes1
answer25
viewsDraw between Activities
Good afternoon, I was wondering how do I choose a maximum number in one Activity and the other make a draw with the maximum number being the one chosen in the first Activity
-
-2
votes1
answer20
viewsactivity_main.xml does not show layout, shows only a small English key icon and the message: "Toogle tools visibility and position"
This is a program I did some time ago. A simple calculator. I searched for options for viewing Android Studio, but it seems program thing. <?xml version="1.0" encoding="utf-8"?>…
-
-2
votes1
answer30
viewsI need to call an Activity through a Fragment, I looked for some answers but they didn’t work
JAVA public class Contactofragment extends Fragment { Button btnMaps; TextView txtMaps; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {…
-
-2
votes1
answer40
viewsError while creating a file
For some reason you can’t create a file. W/System.err: java.io.IOException: No such file or directory Follow the code below: public class MainActivity extends AppCompatActivity { ImageView…
-
-2
votes0
answers6
viewsClose multiple Activitys
I’m developing an application on Androidstudio using the JAVA language. In my app I have a screen that starts user interactions, where it selects options and other screens open. At the end of the…
android-activityasked 3 years, 3 months ago Ricardo Pitta 1 -
-3
votes0
answers14
viewsFragments "Navigation Drawer Activity"
In Android Studio when I use the "Navigation Drawer Activity" template which fragments are added when created?
android-activityasked 3 years, 2 months ago Cartolafc Pedro 1 -
-4
votes2
answers1275
viewsHow do I get the back button to close Activity without going back to the previous one (finish the app)?
Activity login is MAIN and is used to log in to firebase. If the user is already logged in goes straight to Activity from the main menu. I wanted that, in the Activity of the main menu, when the…
-
-4
votes1
answer558
viewsHow to read and display data in Android Studio?
How to read the data typed by the user in an Edittext and display in a new Activity in Android Studio? I’ve tried a few ways, but when showing it in the other Activity only appears "false".