Questions tagged as 'android-activity'

2
answers

Passing data between Activity Android

Well, I'm making an app and I have a login screen that connects to the database from a web service, but I have a problem, I want to get the user id and user name to pass these Data for another Activity and I am not getting .. For when the person...
asked by 13.05.2016 / 20:43
2
answers

What is the real difference between these three ways of switching from one activity to another?

I'm aware of three ways that by simply clicking a particular button, it moves from the current activity to another. I'd like to know which of these three ways is the best one to take into consideration, the fluidity of the application. And...
asked by 14.01.2017 / 20:07
2
answers

Configure "Activity" hierarchy in "AndroidManifest"

I'm trying to understand how can I set a Activity to return to Activity earlier in AndroidManifest ?     
asked by 28.10.2014 / 00:00
2
answers

Open a new Activity from within a Fragment

How do I exit the fragment screen ( extends Fragment ) and go to a normal Activity ( extends AppCompatActivity )? Either way, even using a button, I can not. It never works. public class Teste extends Activity { protected void...
asked by 18.12.2017 / 03:06
2
answers

Programming for Android with multiple screens

When I program to Android , I think of portability with the most diverse devices on the market. Seeing the layout of my Activity principal , I noticed that on small-screen devices (I did the 2-inch screen test) the views are HUGE...
asked by 06.06.2015 / 01:49
1
answer

Pick up Strings from other Activitys [closed]

How do I get a String, or more, from another Activity, and then use it in another Activity, does anyone there know how to tell me?     
asked by 24.10.2017 / 05:40
1
answer

Activity has Leaked window Android

I make a connection to MySQL and it returns me a JSON that I play in a list of products. When I click on any of these items it picks up the ID (called PID in the code) of the product and sends it to another Acitivity. In this other Activity the...
asked by 12.05.2015 / 18:37
1
answer

Error opening new Activity

I'm picking up here to get you to click a button to open a new Activity. I looked at the Android documentation on Activity, Intent, methods to create and yet, it does not work. Basically, I did the following steps: I created a new Android...
asked by 30.05.2014 / 03:04
2
answers

... on a null object reference

Hello, I'm at a time with this problem and I can not find a solution, I've already looked at thousands of topics and I still can not understand why this error appeared for me. Error java.lang.NullPointerException: Attempt to invoke virtua...
asked by 27.09.2017 / 05:48
1
answer

How to execute a method automatically outside Activity onCreate ()

I have a MainActivity that has 4 buttons, when the user selects one of them, the button method calls another Activity , which will display a query in an XML in a ListView of this new Activity . I'm doing this: Method% of new Activi...
asked by 20.04.2016 / 23:43