Questions tagged as 'android-activity'

1
answer

Call a class method of the fragment itself

Good afternoon, I have a fragment that has the following XML <Button android:id="@+id/salvar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/gradiente_azul_semconor"...
asked by 20.06.2017 / 19:09
2
answers

Send data from a Fragment to an Activity

Good Morning Personal I have a fragment containing a listview where it clears the data coming from a webservice. In the onclick method I have the following code where I pass some values to another activity according to the code below. ltwPacot...
asked by 27.04.2017 / 13:58
2
answers

It is possible to open activity within framelayout

Is it possible to "inflate" an activity (in this activity has a recicleview) inside a framelayout? if not, what I use to open 3 different activitys, keeping the navigation bar down as in the screenshot    public class PrincipalActivity extend...
asked by 23.06.2017 / 05:09
1
answer

Receive parameters of different activity and add

Hello, I need to pass the two-screen parameters to the home screen , or the "BALANCE" parameters of the balance screen where it will be passed to an EditText (lblStandard) start screen and then take a value set to "EXTRA" on the addarsal...
asked by 25.10.2016 / 21:42
1
answer

Pick selected image and send to another Activity

I wonder if it's possible to grab a selected image and send it to another activity. I'm using fragments and wanted the layout to look like the image below. I would like that when the user selects the image, pick this one and send it to ano...
asked by 25.10.2016 / 20:11
1
answer

Pass data from api volley to another screen

I have an app that gets given via api using volley My code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tela1); ImageView m...
asked by 03.01.2017 / 19:32
1
answer

Why when I start Activity does the app close?

I have in my onClick method the button to open the Activity within the PagerCronActivityActivity, as follows. Bundle args = new Bundle(); Intent i = new Intent(CadastroProntuarioActivity.this, ProntuarioActivity.class); args.putString("nomeCo...
asked by 01.02.2016 / 16:42
2
answers

What is the correct way to call a method from a class that inherits from an activity?

Because if I instantiate the class with "new" and call the same method as Java does not work. I have a class that inherits from an activity and I needed to use its method in several classes. Does anyone know how to do this? Thank you in advance....
asked by 22.10.2015 / 16:33
1
answer

Skip User registration activities already logged in the application

Good afternoon. I'd like to know the best way to skip Activities registration when initializing the application on Android when the user is already registered in the application, as in Facebook and other applications that require login...
asked by 04.09.2015 / 22:18
1
answer

Go from Main Activity to Fragment

I'm building an app on Android and it will have among the various activities a fragment for user profile. The problem is that, from the selection of the profile, you need to go from the main activity to the fragment. But I'm having trouble wi...
asked by 27.11.2018 / 12:26