Questions tagged as 'android'

1
answer

CardView Android [closed]

I am participating in the creation of a project, and I need to create a list containing several CardViews , as the number of cards is not exact, I can not only do in XML . Does anyone have a clue which way to go right on...
asked by 03.01.2016 / 16:03
1
answer

How to change tab size and text size in tabHost?

I have a tabHost and needed to change the padding and size of the text in the tabs. Does anyone know how to do this? via code or via xml? Thank you in advance.     
asked by 19.07.2016 / 15:46
1
answer

How to know which error in my android program? [closed]

My app is giving a bug that I simply have no idea how to fix it, then I copied the error it gives (on mobile phone it looks like: "app app name 'stopped') can help me to identify the problem ?    10-14 00: 33: 41.677: E / AndroidRuntime (1226...
asked by 26.10.2015 / 12:22
1
answer

Android does not resolve Firebase dependencies

I'm having an error resolving gradle dependencies: I try to compile and get the following error: Error:FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > Could not resolve all de...
asked by 18.07.2016 / 21:06
2
answers

Navigation Drawer

Good evening, I have a problem that I can not solve. I used an adapter to make a list of items, but "item 1" is under the bar (will understand looking at the photo). But I do not know how to solve it. I will pass the code from my navigation....
asked by 28.04.2016 / 07:29
1
answer

How to use the power button on the mobile phone?

I wonder if you can use the power button on an app in your phone. Example: Performing some function if pressed the button three times in a row. If possible I would like some example. Thank you!     
asked by 30.04.2016 / 18:36
1
answer

How do I assign click effects to an ImageButton? [closed]

For example, I added to my xml layout an ImageButton, I put an image and left it with transparent background, for doing so it lost the characteristics of a button, how do I add click effect?     
asked by 07.06.2015 / 17:54
1
answer

How do I save user preferences?

I have a code in android that performs an alarm, but I have to register and then check some values, for example day of the week, and have an option called mode, which comes down to "Vibrate" and "Play". Pieces of code: public class Alar...
asked by 28.03.2016 / 20:55
1
answer

Capturing events on volume button

I'm trying to record and capture the events on the Android volume buttons in order to start and stop a service. Researching found several solutions, using BroadcastReceiver, but it seems that none is working for me. What I did so far was b...
asked by 02.07.2015 / 19:51
3
answers

startActivityForResult within an adapter?

Good evening guys. My scenario is as follows: In Activity A, I populate a list through a RecycleView with an ArrayList returned from my WebService. The layout of this list has an image, title, and button for each item. The button plays the ro...
asked by 15.07.2015 / 01:56