Questions tagged as 'android-activity'

0
answers

How to use another class for the same layout

It is as follows: I made adaptations in the codes to work the Slider Menu style so I had to use the Fragment interface, as shown in the code below, but in this same layout in this case it is called the xml "fragment_listen", the problem is that...
asked by 04.11.2014 / 22:06
2
answers

Problem dragging components in Android Studio

I'm starting to use android studio today, this blue box on the side of the layout is right? And whenever I drag components into the middle, the button goes up alone, but the button's selection box remains in the middle. Does anyone know...
asked by 15.04.2018 / 01:03
1
answer

Execute a function from a class [closed]

I would like to know if it is possible to execute a certain function only when the activity is called by another particular activity . for example: Activity A called Activity B , in this case execute Y function, but if...
asked by 06.01.2017 / 12:35
3
answers

Fragment error "Unable to start activity"

My application error when opening on a tablet and I can not identify the error it informs that I have to enable:    Unable to start activity   ComponentInfo {com.example.everton.horoscope / com.example.everton.horoscopo.MainActivity}:   andro...
asked by 09.10.2016 / 22:57
1
answer

Home screen for android app

I created an APP with a drawer menu, the drawable menu that appears as a template when creating a project in Android Studio. I was able to create the fragments and relate to the menu, it is working beauty, my problem is that I can not d...
asked by 08.09.2017 / 21:11
1
answer

How to display a textView of an Activity in another Activity

     <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:weightSum="1.0"> <TextView android:layout_wid...
asked by 21.06.2018 / 16:11
1
answer

Problem with BottomNavigationView: Unable to find resource ID

Good morning, I searched several times and could not find a solution to solve a problem I'm having with BottomNavigationView. Come on, in my Activity I have the following code <?xml version="1.0" encoding="utf-8"?> <android.su...
asked by 26.06.2018 / 15:45
1
answer

application crashes when entering landscape mode

My app has two layouts, one pro portrait mode and the other pro landscape. When assigning an event to open another activity to the onscreen button, when I rotate the mobile, (I put it in landscape mode) crasha app. If you do not rotate the devic...
asked by 03.06.2018 / 04:56
2
answers

Android Studio 3.2.1 does not find "Default Activity"

I've been having this problem since Android 3.2. I have already done the following procedures to try to fix the problem: - I've done clean and rebuild of the project - I already cleared the cache and restarted Android Studio - I already sync...
asked by 20.10.2018 / 20:01
1
answer

Button to open a new activity is returning to the initial activity

In my application I made a login screen and put a button to authenticate the user through Facebook, after login comes the main screen and in this screen has a button that calls a new Activity. So far so good. Now the problem is, I put a button o...
asked by 15.04.2017 / 20:50