Questions tagged as 'android'

2
answers

How to apply attributes of a ViewGroup from parent to child in android studio?

How do children in a ViewGroup inherit an attribute from the parent? For example, I would like to set layout_marginTop="16dp" to all TextView daughters <LinearLayout android:layout_width="match_parent" android:layout_heigh...
asked by 27.10.2017 / 15:39
1
answer

Basic HTTP Authentication

I have a question about basic authentication. The problem is that I have a webservice with slim framework and I would like only my application to access the routes that I created without user or password. How can I do this? All my routes are ava...
asked by 16.03.2018 / 19:56
1
answer

Problems with EditText in a listview

I'm trying to get my listview to hold the values placed in EditText , but every time I scroll I lose the data or it multiplies to other fields. Can anyone help? Below is my adapter : public class WorkoutAdapter extends Arra...
asked by 08.07.2015 / 02:06
1
answer

Share audio file

I recorded a .3gp audio file through my phone's microphone in my own Android application. I would like to know how to share via Intent, because I only share texts. Note: I have the file address and everything. I only need the file sharing...
asked by 01.07.2015 / 14:52
1
answer

How to keep fixed the color of the selected item

Adding the listener to Listview through the setOnItemClickListener method, each time you click on one of your items, it changes color momentarily. Is there any way to keep this color fixed on the item that is clicked?     
asked by 10.07.2015 / 16:57
1
answer

Password validation saved in SQLite

Hello, I'm doing a project for college and I'm new to Android, I'm making an application that it's intended to check if the password is correct to finish the application, but I'm not able to validate the password, I do not need validate somethin...
asked by 16.11.2016 / 19:21
1
answer

Picasso image cache

I'm testing the Picasso library on android in two situations: 1 - When uploading an image, in a url post (without sending% of authentication%), the image is loaded into headers , and ImageView keeps a Pica...
asked by 23.02.2017 / 15:39
1
answer

Push Notification Amazon SNS - Message Cut

Hello, I'm using Amazon SNS to do Push shots through C #. On the Android device, the message is cut on a line, and when you click it, the application is redirected directly to the application. But there are other pushs, in the same device,...
asked by 22.09.2016 / 18:49
1
answer

Error implementing method to take photo by application

I want to add the method of taking pictures by the application only when running my application error: belowismyformclasscode:Spinneroption;ButtonbtnSend;EditTextNome;EditTextMessage;EditTextEndereco;EditTextTelefone;EditTextEmail;ImageViewimg;...
asked by 29.05.2016 / 17:10
2
answers

Change fragment when clicking on a button inside another fragment

I have a button inside my fragment that I want it to call another fragment that is over the current when it is clicked. follows the fragment code: @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedIns...
asked by 28.06.2016 / 15:40