Questions tagged as 'android'

1
answer

How do I lock the back button (that little set on the hardware)?

I need to block that arrow so the user does not come back, does anyone know how? Thank you in advance.     
asked by 08.09.2015 / 17:41
1
answer

How to create a txt file?

In Java I use PrintWriter and it works perfectly, but on Android I'm getting a lot, it does not work at all. Can anyone help me with this? It's a simple thing, but I'm stuck. I needed to create a simple .txt with a string . Tha...
asked by 25.08.2015 / 18:00
2
answers

How to subtract hours in java?

I'm trying to make the difference in hours in my application. The case is as follows: Based on the current current time and current minute , I want to compare another time I have in a string and I need to know how many hours and how many minute...
asked by 02.09.2017 / 18:16
2
answers

Should I encrypt the password on the application or server?

I'm making an application that requires user registration and my question is whether to do the encryption in the application and save it to the server or send the password and do the encryption on the server at the time of the registry?     
asked by 24.08.2017 / 16:27
1
answer

Error opening new Activity

I'm picking up here to get you to click a button to open a new Activity. I looked at the Android documentation on Activity, Intent, methods to create and yet, it does not work. Basically, I did the following steps: I created a new Android...
asked by 30.05.2014 / 03:04
3
answers

File read only by the Android Java application

I'm doing an application that reads images from a folder, but I have a problem, I need to prevent other applications (eg gallery) and even file manager from being able to open this image ... How can I make only my application read (write, del...
asked by 26.06.2014 / 07:06
1
answer

Relationship background color of an app x energy efficiency

Thinking about a mobile application, what is the best color palette in relation to energy consumption? For example, let's say I'm developing an app and want to focus on the app's battery consumption. Imagining an ideal environment in which br...
asked by 25.04.2018 / 00:21
2
answers

How to count the number of occurrences of a String in a JSONArray?

I'm trying to show the Strings of " specialty " strings that are in my JSON, but when I try to show the count of each "specialty" I can not succeed. JSON [ { "id": "20", "medico": "ACASIO MENDES", "paciente": "APARECIDO SOUZA...
asked by 11.09.2017 / 19:11
3
answers

Remove from a List of Integers

I have a ImageButton o imgB1 : When I click on imgB1 , I add it to a list of integers, 1. If you re-click the imagB1 , it removes the 1 and places the 6. List<Integer> list = new ArrayList<>();...
asked by 30.01.2017 / 13:29
1
answer

AlertDialog Android "comment" PopupMenu

How do I get this result? The3dotsinthisimagehavealreadybeenpressed.Mylayout<android.support.v7.widget.CardViewxmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:to...
asked by 13.02.2017 / 23:45