Questions tagged as 'android-activity'

3
answers

I made a SplashScreen it loads and will not go to the first activity what should I do? [closed]

What should I do? intro.javapublicclassintroextendsAppCompatActivity{protectedstaticfinalintTIMER_RUNTIME=5000;protectedbooleanmbActive;protectedProgressBarmProgressBar;@OverrideprotectedvoidonCreate(BundlesavedInstanceState){super.onCreate(...
asked by 27.09.2016 / 19:09
2
answers

What are the stages of the life cycle of an activity and fragment?

What are the steps in the lifecycle of an activity and fragment? What are the differences between these steps? And how can I identify in which step an activity or fragment of an application is currently in the process?     
asked by 02.10.2014 / 01:12
1
answer

Close two activities

I have two activities that are called in the following sequence: The first is inserted a text and once clicked on a button, it leads to a second activity. This second activity, when clicking on a next button, is then taken to a third activity, t...
asked by 14.09.2016 / 22:27
2
answers

How to force the Landscape / Landscape position? [duplicate]

How to force the Paiagem / Landscape position in my activity to always activate and lock the Portrait / Portrait position. I want my application to start in landscape position and not be able to turn to portrait position.     
asked by 01.05.2018 / 03:39
1
answer

Passing object by parameter causes error - Android Studio

I'm trying to pass an object by parameter, but an error occurs in the line "it.putExtra (" tag ", obj);":   Can not resolve method (java.lang.String, my package.minhaClasse) Follow the code Obj obj = new Obj(); Intent it; it = new Inten...
asked by 20.07.2015 / 15:29
2
answers

Choose which fragment will be shown in the activity

I have Activity that the email is requested and if the email exists it shows a Activity with a Fragment to enter the password. If this email does not exist, I want to display a Fragment , in the same Activity , f...
asked by 13.09.2016 / 21:34
2
answers

Activity does not return view

I'm trying to compile but it's not giving, my layoute looks like this: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:l...
asked by 22.05.2017 / 21:19
1
answer

Why does MainActivity inherit from ActionBarActivity?

I'm creating a new project and my Activity appears as ActionBarActivity: public class MainActivity extends ActionBarActivity Does anyone know why or how to fix it?     
asked by 10.05.2014 / 20:04
1
answer

ListActivity does not work Android

I have an Activity with a button calling a List Activity. This ListActivity quickly creates a string list, I just want to show this list on the screen and display the selected item in a Toast. But it's not working! Here is the code for the Li...
asked by 03.05.2014 / 03:01
1
answer

Start an activity from an item in the bottom navigation (menu bar)

I have the activity main and a bottom bar navigation with 4 items. When I start the application, it starts, it shows the activity of the first item. I wanted to get it "started" from item 3. Is it possible to do this? How?     
asked by 18.02.2018 / 05:03