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
-
0
votes0
answers29
viewsRefresh Image
I have a question, because I’m setting the picture from Spinner’s position. Then, when you open Activity, the Oncreate method reads the position of the spinner and loads the image according to its…
-
0
votes1
answer89
viewsTitle in Scrolling Activity
Hello, I’m having a problem in the scrolling Activity. I would like to hide the title when the appbar is fully stretched and when retracted, the title is visible again. This is possible? my xml:…
-
0
votes1
answer218
viewsApplication closes when opening Activity
The app simply closes when I press the TextView. He should move on to another Activity. I’ve tried it many ways and it keeps crashing. package com.example.evellyn.auris; import…
-
0
votes1
answer182
viewsShared Preferences with Radio Button
I have a set of Radiogroup with 3 radios Buttons, and I need to save it in a Shared preferences. XML: <RadioGroup android:id="@+id/radioGroupOpcoes" android:layout_width="wrap_content"…
-
0
votes2
answers305
viewsSave data to an Activity when changing Activity
The program is a counter, by clicking the button + it adds +1 to the variable counts1...cont2..., I want when I click on the report and I return to this page, the data I added the variable to be…
-
0
votes1
answer625
viewsHow to change from second to third screen?
A little while ago I started to develop a small application that is totally based on changing screens from buttons. There are still many details to be solved, but what worries me now is how to make…
-
0
votes0
answers302
viewsHow to fix Activitynotfoundexception error?
I have two activities put in extremely different packages as shown in the codes below: Mainactivity package com.main.package; import ...; public class MainActivity extends Activity { @Override…
-
0
votes1
answer77
viewsopen a new Activity by clicking an item in the listview
I created a listview but I’m not sure which command should I make for my items to open a new activity for each one. Below follows my code until the moment: public class pg_apoio extends…
-
0
votes0
answers118
viewsPass parameters from one Adapter class to another Activity
I need the help of Voce, create a class called Itensadapter that creates a listview with the database data, until ai blz, now I need to capture this data in another Activity to enter the quantities…
java android android-studio android-activity android-adapterasked 6 years, 3 months ago Lioni Beats 1 -
0
votes0
answers374
viewsGet color name from HEX value
I’m trying to make an Android app that can capture the colors but I just figured out how I can get the HEX value but I really need the color name! Please I need an alternative that shows the name of…
-
0
votes0
answers78
viewsData via Query Webview String for Activity
I’m not big on android programming. What I do is based on something javascript I know, which is also not much. So I wanted your help. I have an app that runs webview on mainActivity. But I need to…
-
0
votes0
answers41
viewsError opening Android app project
When opening the Android app project of a friend of mine on my PC, I came across these errors. How do I fix it ? screen images : Grandle code ( app module ) : apply plugin: 'com.android.application'…
android android-studio android-layout android-activity android-fragmentasked 6 years, 3 months ago jhonatan santos 103 -
0
votes1
answer80
viewsNormal and long click only work after a first click on Imageview
I am with a problem that when I click on the image, the first time nothing happens, only after the first click it works simple click function and long click. XML code: <ImageView…
-
0
votes2
answers127
viewsAndroid - Edittext does not return typed value
I am trying to recover a value to generate a random password, however the field "size" is not returning what was typed. The error occurs in the following block: int tamanho =…
-
0
votes1
answer62
viewsWhen I click on Listview to open another Aciticity the app hangs and Fexa
I’m creating an App that looks for nearby wifi networks and then can connect to them, but locked at the beginning, because I can make it scan, but when I click on some network of the list, which…
android android-studio listview android-activity arraylistasked 6 years, 2 months ago Emanuel Boaventura Matos 9 -
0
votes2
answers449
viewsError opening another Activity
Error that appears: 2018-10-16 00:31:04.280 9433-9433/? E/AndroidRuntime: FATAL EXCEPTION: main Process: imobmobile.br.com.imobmobile, PID: 9433 java.lang.RuntimeException: Unable to start activity…
-
0
votes2
answers120
viewsAndroid Studio 3.2.1 does not locate "Default Activity"
Personal I am with this problem since Android 3.2. I have done the following procedures to try to fix the problem: - I’ve made clean and rebuild the project - I already cleared the cache and…
-
0
votes1
answer169
viewsButton to return to an Intent
My problem is: Back from an Activity to an Internet. I have the following sequence of pages: -MainActivity -Intent(Escolher foto) -DadosActivity In Mainactivity I have a button to open an Intent so…
-
0
votes1
answer41
viewsHow to make only one user have access to Activity?
I need some help from you because I’m having a hard time getting only one user to access a particular Activity. Ex: I am developing an App where the settings screen only I will have access with my…
-
0
votes1
answer94
viewsGo from main activity to fragment
I’m building an app on Android and in it will have among the various activities a Fragment for user profile. The problem is that it would need, from the profile selection, to go from the main…
-
0
votes2
answers40
viewsError trying to run firebase forgot-password
I am making the password forgot screen of firebase and is giving an error when I put the . sendPasswordResetEmail. That’s the version of my firebase : implementation…
-
0
votes1
answer158
viewsAndroid Studio Update: preview adding shadow in XML
Since the last update to Android Studio 3.3, a shadow appeared on each of my elements in the XML preview layout. Although it doesn’t appear in compiled rendering, it gets in the way of editing. How…
android android-studio android-layout android-activityasked 5 years, 10 months ago Leonardo Figueiredo 517 -
0
votes1
answer453
viewsHow to pass double type variable through Bundle class?
I cannot pass a textview value from an Activity A to Activity B to perform some calculations. I tried through the putExtra method to pass variable of type string and then convert to double and could…
-
0
votes0
answers38
viewsHow to check if a button is visible during Activity creation?
My screen has a button and a FAB that do the same thing and a scrollview, in case the scroll happens, I check if the button is visible or not, if it is visible, I hide the button. Okay, for the…
-
0
votes1
answer73
viewsHow to handle data entered into a fragment of a Tabbed Activity in Android Studio
I am learning to develop using Android Studio and I am with a beginner’s question: which class I perform data processing from a click of a fragment in a Tabbed Activity. To illustrate simply, I…
-
0
votes1
answer63
views"Annotations are not allowed here" when using @Click on android studio
I’m starting to use android Annotations now I have the following class @EActivity(R.layout.activity_login) public class Login extends AppCompatActivity { @ViewById(R.id.senha) private EditText…
-
0
votes1
answer47
viewsKEYBOARD DECREASES TO SETAR android:inputType="number""
Putting such a configuration in an Edittext, when compiling the keyboard is "dropped" on the screen follows the xml of Edittext <EditText android:id="@+id/edtIP" android:layout_width="652dp"…
-
0
votes1
answer559
viewsChange background when clicking and then return the original color
I’m having a hard time at the moment when I select several Textview, I can change the color normally and return when the id is the same as the one selected. My problem is this: When I change the…
-
0
votes1
answer30
viewsPass parameter in onItemClick
I’m having difficulty passing the parameter inside the repetition for in Android Studio. It lists the data coming from mysql, but I can’t pass the parameter to access the item. for (int i=0;…
java android android-studio android-activity android-adapterasked 5 years, 6 months ago Alexandre Gomes 45 -
0
votes0
answers91
viewsError calling android studio java method
I’m having the error of: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference when…
-
0
votes1
answer55
viewsI’m not getting to finish the Activitys
My problem is this... I have 3 Activitys: (Activitya), (Activityb) and (Activityc) From Activitya to Activityb I do the following: val intent = Intent(this, ActivityB::class.java)…
android android-studio android-activity kotlin android-intentasked 5 years, 5 months ago Carlos Henrique 9 -
0
votes1
answer173
viewsAccentuation in Edittext
I have an API 28 application that consumes Webservice and sends data by GET using Json, and I need a field EditText which accepts Accents, but when it arrives in the database it only records up to…
-
0
votes1
answer94
viewsStart with Splash Screen
I have a project and use the Navigation Drawer Activity, and there was the need to put a Splash screen at the beginning of the project, I tried to put and now is giving an error when opening the…
android android-studio android-layout android-activity android-fragmentasked 5 years, 5 months ago Ari Melo 131 -
0
votes2
answers66
viewsHow do I click on the listview and open an activyity?
I need to click on the view list and open a new activyte with the person’s name. Code: import android.content.Intent; import android.os.Bundle; import android.os.StrictMode; import…
-
0
votes1
answer278
viewsClose app upon checkout
Hello, I have an app, it comes down to: a Activity and a fragment. To activity calls the fragment through the onCreate: Code of Activivity who calls the fragment: @Override protected void…
android android-studio android-activity android-fragmentasked 5 years, 3 months ago Aristófanes Melo 89 -
0
votes1
answer120
viewsDefault Activity not found
I was making an app and at one point came across the error Default Activity not found. I tried to undo the changes and the error persisted . Trying to fix it I noticed that all the files .xml…
-
0
votes1
answer65
viewsBack to the main Fragment from a button
Hi, I have an app that uses NavigationDrawer, I have a fragment that has a AlertDialog, and in it I have two send and cancel buttons, no cancel wish back to the desired main Fragment. I managed to…
android android-studio android-activity android-fragmentasked 5 years, 3 months ago Aristófanes Melo 89 -
0
votes1
answer62
viewsActivity Access via Manisfest File - Android
Hello, everybody. I’m trying to build an app inspired by pokedex for a challenge, and trying to use the MVC architecture. I’m having problems accessing the activities (that are inside the packages I…
-
0
votes1
answer79
viewsContinue code after accepting permissions, Android Studio
Good night. I am trying to make a page just to request the necessary permissions and then forward users to another application activity, however I am not able to make after accepting the permissions…
-
0
votes0
answers24
viewsStone SDK Android integration - Android manifest no longer finds Activitys
Hey, how you doing? I have a problem with the integration of Stone SDK (because in the documentation, I did not find solution for the error I get in android studio). By integrating Stone libraries…
android android-studio android-activity gradle buildasked 3 years, 11 months ago Guilherme Santana 1 -
0
votes0
answers23
viewsHow to open Mainactivity when receiving a Push Notification from Onesignal?
Good morning community, first I wanted to thank the space and ask for your help with the following problem: I have a function of a class that is called every time a notification is received which is…
-
0
votes1
answer56
viewsApp closes when trying to access an Activity
My app closes whenever I press a button to access an Activity, this is the error q appears: 2020-12-13 18:15:40.182 6951-6951/br.edu.icomp.locadoramoto E/AndroidRuntime: FATAL EXCEPTION: main…
-
0
votes0
answers12
viewsSend Arraylist from an Acttivity to a Fragment
Good afternoon, everyone, I am trying to send an Arraylist of an Activity to a Fragment that will use it in a Gridview, but I have not been successful. When clicking the button the Activity creates…
-
0
votes0
answers43
viewsflutter - Migrate to Android embedding v2 - plugin audioplayers error
I have a bit of a problem (I believe). Earlier today, I was working on my app and everything was ok, but now at night I went running and got this error message: Upgrading to Android embedding v2 (I…
-
0
votes1
answer11
viewssetOnFocusChangeListener problem with edittext without filling
someone could help me please. I am with a problem, I made a setonfocus in my app, for it calculate and show the result as soon as the user click outside the edittext, however if the user does not…
java android android-studio android-activity android-adapterasked 3 years, 8 months ago Jonathan Castro 1 -
0
votes1
answer24
viewsHow to pass a parameter from an Activity b to Activity A
Good evening, I need help to solve the following problem, I’m doing a Million Dollar Show style game. I have a main activity that is where the questions occur and has the buttons that trigger the…
-
0
votes1
answer16
viewsSend data from one Activity to another
Good afternoon, I’ve been trying to pass an Edittext from one Activity to another, but I’m not getting it. Activity A. listaViewLivros.setOnItemClickListener(new AdapterView.OnItemClickListener() {…
-
-1
votes3
answers886
viewsFragment error "Unable to start Activity"
My error application when opening on a tablet and I can’t identify the error it informs that I have to enable: Unable to start Activity…
java android android-layout android-fragment android-activityasked 8 years, 1 month ago Everton de Freitas 41 -
-1
votes1
answer58
viewsRun a function from a class
I wonder if there is possibility to perform a certain function only when the Activity is called by another determined Activity specific. for example: Activity A called the Activity B, in this case…
-
-1
votes1
answer268
viewsHow to Set a Home Screen Fragment for Android App
I created an APP with a drawer menu, that menu drawable that appears as a template when creating a project in Android Studio. I managed to create the fragments and relate to the menu, is working…
android android-layout android-fragment android-activityasked 7 years, 2 months ago Thyago Dias 465