Questions tagged as 'android'

2
answers

Warning: (40, 5) Do not place Android context classes in static fields; this is a memory leak

I'm running into this warning from Android Studio. Warning: (40, 5) Do not place Android context classes in static fields; this is a memory leak (and also Instant Run breaks) I have a button that opens a DatePicker fragment to select the date....
asked by 24.10.2017 / 21:12
1
answer

How to get the device serial number?

I am using the following code to get the device serial number: String serial = Build.class.getField("SERIAL").get(null); But the result is not the same when I check the serial number on the device.     
asked by 08.03.2018 / 14:40
1
answer

Check in real time what you have typed in Edittext Android

I have an EditText that will receive the user data. It will click and enter a number between 1 and 10. I wanted to know if it has as I already checked so it jumps to another Edittext, if it actually put a number between 1 and 10. If it also post...
asked by 14.09.2017 / 20:02
1
answer

Code before or after super

When we override a method, it always comes with super of the parent class, but at the time of encoding the right thing to do would be before or after it? In the example below the right would be this: @Override public void onStart...
asked by 29.08.2018 / 06:24
2
answers

How to properly organize the DP and DPI for each type of screen in Android?

Is there any formula or way of knowing the following questions without having to "build up" every time to check? How to know if that Image / Text / Button or whatever is visibly good for the user on the particular screen that has an dpi type...
asked by 22.05.2017 / 16:27
2
answers

Date Mask in EditText

How do I put date masks on EditText of Android, so I get dd/mm/aaaa ?     
asked by 25.05.2017 / 02:25
4
answers

How to parse on Json Android

I need to parse to the following json { "rssEmpregados": { "pesquisa": "marcia", "registoInicial": "0", "ordem": "ASC", "parametrosList": [ { "parametros": [], "ta...
asked by 29.11.2017 / 20:17
1
answer

Application startup delay

I created a multiplatform application using Ionic 2 + Angular 2 according to Get started from Ionic documentation . The basic command to create a side menu project is as follows: $ionic start myApp sidemenu There is something that is bot...
asked by 06.12.2017 / 16:38
2
answers

Running on Multiple Screens

How to define a layout to run on multiple screens without having to create multiple Layouts? Is it possible or would you have to create specific Layouts?     
asked by 06.02.2014 / 12:35
1
answer

Device Id Access

I'm developing a Android application and would like to use Device ID where the application runs to compose an ID. Is it possible to access this information? The idea is to identify the user of the application by a field consi...
asked by 11.04.2017 / 14:14