Questions tagged as 'android'

1
answer

List within the Spinner Layout

Hello, I would like to know if you have how to put the list that is inside Spinner directly in the layout. I usually do this: horario = new ArrayList<>(); horario.add(""); horario.add("Aberto Hoje"); horario.add("Não impo...
asked by 06.12.2016 / 03:36
1
answer

Send address to search google maps

Hello, I ask for help on the following: I have a TextView with an address, I would like it when I clicked to make an Intent by sending this address to search the user's Google Maps app itself. I know I can use the Google Maps API, but I'd lik...
asked by 04.12.2016 / 14:44
2
answers

Make an Acitivity on Android appear once only [duplicate]

Well, my question is: How do I make an activity appear only once, and then when the user opens the app again this screen does not appear, just the others. I'll explain how my project is to become clearer. My project is very simple. There ar...
asked by 07.12.2016 / 23:33
1
answer

Pick up an Image from the gallery and move to a folder

I am using the following code to get the path of an image from the system: { Intent intent = new Intent(Intent.ACTION_PICK); intent.setType("image/*"); startActivityForResult(intent, IMAGEM_INTERNA);...
asked by 02.03.2017 / 17:56
1
answer

Android - How to enable and disable the wifi

I have a java app with two buttons. How to do when to press the first the wifi to be activated, and when to press the second it to be disabled? Thank you.     
asked by 04.09.2016 / 20:46
1
answer

Take current activity and put in another activity

My app has an activity that is a list of clients and also a sales activity. When I click only on a name in the client list it opens the client details. There you have all the customer data. So far so good. But when I go into the sales activity I...
asked by 23.09.2016 / 13:16
2
answers

I need to click the button twice to get the value

Someone knows what I did wrong, because I need to double-click the button to pull the value. package fabiohcnobre.jhotelcolonialdosnobres; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.wi...
asked by 15.09.2016 / 04:43
1
answer

Problem in OnClick, I can not pass the Array information to a text view

I'm having problems to inflate a list with information from the bank, I want to get the information from the user and be in a list, but only with a data type as a name, but it presents the following error: Error message: FATAL EXCEPTION: ma...
asked by 13.09.2016 / 02:43
1
answer

Application to make emergency calls [closed]

I am trying to make my application make an emergency call when clicking the button, but when running it it presents the following error: ERROR: FATAL EXCEPTION: main Process: com.example.matheus.privatewalletm, PID: 28931 java.lang.IllegalS...
asked by 13.09.2016 / 20:03
2
answers

Show all content of a layout in the preview of Android Studio

Hello, I would like to know how (if possible) to show the entire contents of a layout in the preview of Android Studio. Here is an example image: The blue marking is a button that is in the layout, but I can not manipulate or prev...
asked by 08.08.2016 / 23:21