Questions tagged as 'android'

1
answer

java.lang.RuntimeException: Unable to start activity, java.lang.NullPointerException in Android Studio

Making a code to simply show Hello, world in a TextView named st, which is referred to by the variable stat, the error comes out: java.lang.RuntimeException: Unable to start activity ComponentInfo {com.aapps.vyber.clicker/com.aapps.vyber....
asked by 30.07.2018 / 12:26
1
answer

Remove Action Bar from a single Layout

I wanted to know how to do to remove the action bar from a single Layout, but in the others if it is. For example, in the login screen of the application that is not the Action bar, but once the session starts and changes layout if the action ba...
asked by 03.04.2016 / 08:07
3
answers

Get the remaining time between two Date dates on Android

I make an Application where I need to obtain the remaining time for the day of an event, using the class CountDownTimer I get a counter for days and dates but I can not think of how to get the remaining time. For this I have two dates...
asked by 02.06.2016 / 05:43
2
answers

Menu Color Hamburger NavigationView Android

Currently my menu looks black like the following image And I would like it to be white, my xml is the following: <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://s...
asked by 20.02.2018 / 14:59
1
answer

HDPI folders - MDPI - XHDPI etc

I would like to know what resolution my images should have for these different folders: The problem I have is that I only have 1 image that is 400px X 400px , so having a small screen for example, the images do not fit well and ar...
asked by 29.12.2017 / 13:33
1
answer

Full screen in WebView - Youtube?

The following code does its job perfectly: It takes me to YouTube using webview, that is, without leaving the application and the video plays perfectly. The problem is this: I can not rotate it to put it in full screen. I've tried with two mo...
asked by 26.01.2017 / 14:36
3
answers

Doubts about uses feature android.hardware.location.network and android.hardware.location.gps

I am somewhat confused with this issue and I would like to see if someone who has it clearer could explain to me well what it is about or answer the following questions. Does this change apply to applications compiled with api 21+ or does it...
asked by 12.10.2016 / 16:55
3
answers

Problem when casting variables in Java (Android): NumberFormatException: For input string: ""

I was starting with Android, but when doing something that in Java has never given me problems and launching it in an Android App, I have missed a lot of errors when executing it, because compiling does it without problems. The exercise I try...
asked by 09.10.2016 / 01:22
1
answer

Alertdialog, separate the title of the message

I am using the Holo_Dialog theme in an AlertDialog, the problem is that the title comes out below the line of separation, how could I put the title above ?, or if I use the theme Theme_AppCompat_Dialog_MinWidth, how could I separate the title fr...
asked by 04.03.2018 / 01:38
2
answers

Difference between "compile" and "implementation" in gradle file

I added firebase to my project using the wizard that AS provides, but when I added the dependency, it appears differently. implementation 'com.google.firebase:firebase-auth:11.8.0' But another google service compiles in the following way...
asked by 17.02.2018 / 22:29