Questions tagged as 'android-activity'

1
answer

showing only part of the screen when the android keyboard is active

I have the following screen in android and would like that when the user clicks on one of the editText, only the 3 fields (name, birth date and phone) are shown at the top of the screen (above the keyboard). These components are separated...
asked by 22.05.2018 / 21:48
0
answers

Why, sometimes, the URI passed in EXTRA_OUTPUT is null in onActivityResult?

A variable is declared at the beginning of the class: private Uri UriPhoto; When the user selects the button to take the photo the function below is called: public void takePicture() { try { File localFile = new File(this.dirF...
asked by 19.04.2018 / 14:48
0
answers

Add login to android project

I'm sorry if this is very trivial, but I'm starting to study android, I have an example project that you add note to and edit them, this project is already working with this mainActivity: public class MainActivity extends AppCompatActivity {...
asked by 26.04.2018 / 14:28
1
answer

Error running Android app on mobile phone but working on other devices and emulator

I've been tinkering with Android for a while and got this error recently during an evaluative activity at school, where we had to make a basic app for two activities, the second getting data from the first. On my cell phone it locks and closes w...
asked by 16.04.2018 / 21:20
1
answer

Title in Scrolling activity

Hello, I have a problem with scrolling activity. I would like to hide the title when the appbar is fully stretched, and when it retracts, the title will be visible again. Is this possible? My xml: <?xml version="1.0" encoding="utf-8"?&...
asked by 12.04.2018 / 06:29
1
answer

Change visibility

How do I change the visibility of a layout that is in another activity? I want to do this by clicking on an image .. I know how to use the onClick method. it just lacks the imagination of how to change visibility at runtime. I've tried: a...
asked by 01.04.2018 / 02:29
0
answers

Refresh Image

I have a question, since I'm setting the image from the Spinner position. Then, when you open the activity, the OnCreate method will read the position of the spinner and load the image according to its type. However, I would like to know how...
asked by 24.03.2018 / 21:52
0
answers

"Unfortunately MyApp has stopped" error when clicking the application button

I'm running my app on Genymotion, developing on Android Studio. Every time I run my application I click on the button to register, but when I click, I find the following message "Unfortunately MyApp has stopped", where after the application i...
asked by 17.02.2018 / 19:49
0
answers

onActivityResult in another class

I am creating an app where I have several camera calls, and I would like to create a class to call the camera to use in the project, well, the activity call is being made with the activityforresult in this class, the photo is captured when retur...
asked by 18.02.2018 / 17:49
0
answers

Fragment problem

I have a class that uses fragment, but I'm having trouble calling one of these activity . When I do it for my App . I want to click on the MsgFragment fragment. Below is the main class and class I want to call. public class Pr...
asked by 09.02.2018 / 18:09