Questions tagged as 'android'

1
answer

Change Navigation Drawer menu icons

I would like to know how to change these icons: Ifoundthescreen,butwhenIclickitdoesnotshowmethewaytomakethechange,butonlycolorsinRGBA:     
asked by 04.05.2016 / 02:45
1
answer

Is it possible to set Android Camera resolution?

I'm developing an Android application, and would like to know if I could have my application when calling the camera pass the resolution values of Photo, eg: 1024 X 1024 ?     
asked by 17.07.2014 / 13:41
1
answer

Android - DatePicker in an editText

Next, I would like a date selector to appear as soon as I click on the editText that I have, but what I found is automatically placing the current date, I want it to be chosen ... Here is the code I've tried so far: public class AtividadePr...
asked by 23.05.2017 / 07:41
1
answer

How do I change the background of a button when clicked?

I need to change the background of a button when it is clicked. Here is the code I tried: private Button btn; private int colorFlag = 0; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);...
asked by 30.05.2017 / 16:39
1
answer

How do I perform an algorithm when the user stops touching the screen?

I would like, when the user presses the screen, open a horizontal menu with 4 options where the option to which he will release his finger on top will be the one selected. The press event I already know. would be this: btn_operacao.setOnLon...
asked by 16.01.2018 / 00:13
1
answer

Set MIME-type of a file on Android

I need to dynamically find out what the MIME-type of a file is. Initially, I only need to identify videos, but I intend to use this to identify HTML pages, photos, PDF etc.     
asked by 29.06.2017 / 14:17
1
answer

How to update RecyclerView simply and efficiently?

The ways I know to update a RecyclerView most efficiently is to use adapter methods notifyItemMoved notifyItemRangeChanged notifyItemRangeInserted notifyItemRangeRemoved They, unlike notifyDataSetChanged() , only cause refres...
asked by 18.01.2017 / 00:08
2
answers

Which method to get the full volume of media on Android?

My application needs the user to choose at startup whether they want to hear the sounds of the app or not, as it is an application to also be used in the classroom and in that environment the volume of the app must be zeroed. > So I created a...
asked by 31.01.2017 / 16:37
1
answer

Error retrieving SQLite data

I'm starting to work with database and I'm already in trouble. Ask for a hand! Well, I have a database, apparently there is no error adding data to it. I have a DBHelper class that inherits from SQLiteOpenHelper and I have another...
asked by 04.02.2017 / 10:30
1
answer

How do I enable my app to be moved to the memory card?

All the apps I'm testing are not allowing me to move them to the memory card. Can you do that? Do you have to ask for some permission on Manifest.xml ? I put the property that android:installLocation in Manifest.xml and even work...
asked by 20.09.2014 / 23:50