Questions tagged as 'activity'

0
answers

ListView shows 1 item only

Wenas People, I have a Fragment where the listView is. And I do not understand why it does not add to the list. I'm going to try to be as clear as possible in the code because I can not think of anything else anymore. When I debug it appears tha...
asked by 12.12.2018 / 04:57
0
answers

Help with calculation exercise in hours in android studio

In this exercise, I have to start with one hour of entry (example: 20:30), after that, I have to add the minutes to get the time of departure. But I have two details which I do not know what they are, the first one indicates an error of "Wron...
asked by 02.12.2018 / 05:20
0
answers

Error Android Studio Default activity not found

I have a very big problem. From time to time, Android Studio gives an error saying that it has not found the default activity. It does not follow a specific pattern, since sometimes it appears after a while of being using the program, others...
asked by 06.11.2018 / 21:06
2
answers

How can I get the current android activity?

I'm doing some tests of android apps in eclipse, and I have a method to click the back arrow to which I pass a Activity : public void flechaAtras(Activity activity) { Display mdisp = activity.getWindowManager().getDefaultDisplay();...
asked by 22.10.2018 / 16:20
2
answers

Problems when calling a Fragment from an Activity

My problem is this: I have a MyLocationActivity.java that gives me the location in google maps, the example that I have to send to call that file is to call a fragment that I have declared in my MainActivity.java and what I wan...
asked by 16.10.2018 / 20:58
0
answers

setResult () and finish () From RecyclerView Adapter

I make a startActivityForResult () from an activity, and I need that from the activity that the user sent to click on one of the cards that I have in a RecyclerView and once clicked it has to return the value to the previous activity, the proble...
asked by 02.10.2018 / 17:41
2
answers

How to invoke a fragment from another activity?

I have MainActivity 2 fragments, when I go to SecondActivity from there I want to go back to the fragment2 of MainActivity by passing some data to it. But I get an overflow error trying to get the fragment from MainActivity: getSupportFragm...
asked by 13.09.2018 / 23:01
1
answer

Change element in an Application

I am working with the altbeacon library using beacons background I use it to get events with firebase, when this background notifies the events that are scheduled on the same day, when it is open shows the events in a recycler view, I need tha...
asked by 14.09.2018 / 01:43
1
answer

The data in my ListView is not refreshed until I press my EditText

I hope you can help me, you will see I have a hamburger menu which loads in its main activity a FRAGMENT with a LISTVIEW and an EDIT TEXT (to search the list), When it starts it fills up normally and shows the info ok, BUT when in the side menu...
asked by 07.09.2018 / 00:20
0
answers

Android: Full screen for screens like iPhone X - Huawei P20

good to all! I wanted to know how to configure a Activity in fullscreen for screens like the Huawei p20 or iPhone X. At the moment when you configure the Activity in fullscreen it looks like what this green color, the rest of the sc...
asked by 16.08.2018 / 18:30