Questions tagged as 'android-studio'

0
answers

Change variable from the button of a notification

This is the method that shows the notifications, what I want is that when one of the two notification buttons is changed, one of the global variables of the class in which that method is, that is, the dale to one of its two buttons that an int p...
asked by 16.04.2018 / 14:18
0
answers

as an attachment to a PDF file in gmail using an intent in android studio 3.1

Hi, I have this problem and I hope you can guide me. I'm programming an application and I need to send a PDF file, I've already made the program and it's like this: import android.content.Intent; import android.net.Uri; import android.os.En...
asked by 16.04.2018 / 17:55
0
answers

Error using Volley on Android 6

When making a request using volley in Android 6 gives this error: java.net.ProtocolException: Unexpected status line: <?xml version="1.0" encoding="UTF-8"?> But if I try it in Android 7 works perfectly. I am using...
asked by 07.04.2018 / 00:35
1
answer

The property of CardView layout_width="match_parent" is not taken into account

I am implementing an application where I show information from a database in a RecyclerView and in the use CardView (This RecyclerView is in a fragment), my problem is that the CardView does not respect the property "match_parent" as shown in th...
asked by 10.04.2018 / 06:22
1
answer

Problem sending an audio by WhatsApp from the raw folder

When I send to Whatsapp an audio that is saved in the folder raw of my application, the file is sent but without format, that is, a file is sent without title and without the extension. I have checked that file if I manually put...
asked by 07.04.2018 / 14:46
0
answers

How to give effect to an edit text that works as an android button?

It turns out that I'm doing a login / register in my App. But I need to give some effect to the editText and the cardview (this one with a button shape), which function as buttons in my APP. Since up to now they are listened to thanks to SetO...
asked by 06.04.2018 / 18:07
0
answers

Center Items in a dynamic ListView

I have this ListView that takes the Items of a String-arraay that I have defined in my strings.xml, how can I make these items appear in the center of the screen, with the text centered? <ListView android:id="@+id/listaprincipal" an...
asked by 12.04.2018 / 14:21
2
answers

Pass data from Adapter to an Android Studio Activity

Hello my problem is that I am developing an android app where I have an Activity and a RecyclerView.Adapter, and I want to send a serializable parameter from the adapter to the activity and receive it. I tried to do it with intent, it does not w...
asked by 01.04.2018 / 04:23
1
answer

I have problems with android study when entering variables and other

hello friends, how could you tell me why you mark error in these lines of code my android studio, the lines of code that appear in bold or with double asterisk are my mistakes, someone to help me please is urgent package com.example.danhermes....
asked by 31.03.2018 / 20:15
0
answers

Automatic reconnection with App in android Studio and Bluetooth HC - 05 - Arduino

I am developing an app in android studio, in which I connect via bluetooth to an arduino nano using a bluetooth hc-05. The problem is that whenever the connection is lost it is disconnected and I have to choose again the bluetooth device to w...
asked by 02.05.2018 / 20:13