Questions tagged as 'android'

1
answer

Opening a direct notification URL

I want to launch an app to open URLs that are redirected to the Play Store and I want it to just load the direct URL into the notification without opening any layout, and that appears in the android intent filter, Ex: (Finish this action using:...
asked by 10.12.2016 / 20:44
1
answer

Event when you click on a Google Maps marker

I would like to know if you can put event in Google Maps bookmarks to open a custom information window, such as a fragment, for example.     
asked by 30.05.2018 / 04:41
1
answer

Replace or treat obsolete method

I'm updating an Android application and I came across the following situation: I have a minimum sdk of 21 and a target of 27. A method that was obsolete version 24. My question is: what is the best way to fix an obsolete method? Rep...
asked by 10.07.2018 / 15:39
2
answers

Removing specific markers from a googlemap

So this app works like this: the user enters a journey from point C (collection) to point E (delivery). These points are shown on the map, in the form of markers, as in the figure below. Now I need to remove markers by clicking on X....
asked by 12.01.2017 / 16:52
1
answer

One touch for more than one event

I'm building a music keyboard, and I'm having trouble playing the next key sound if the user does not take my finger off the screen. Can anyone help me with this? botao1.setOnTouchListener(new View.OnTouchListener() { @Override...
asked by 29.09.2016 / 08:28
1
answer

Ignore attribute in POST using Retrofit

I would like to know how to ignore an attribute of a model in a POST request with Retrofit. In GET requests I want to bring all attributes, but in requests POST I need to send the object without id for example. Sam...
asked by 01.08.2017 / 22:11
2
answers

Error when using the sendMessage () method of the Handler class. "The message has not been posted or has already been removed"

I'm studying about Threads and Services and I know that to run a longer process, like searching internet signal or download, I must put it to run on a Background Thread and not on the UI (User Interface) Thread. In the app below I made an exampl...
asked by 27.04.2016 / 05:39
2
answers

Difference between setImageResource and setImageDrawable

To set an image in ImageView I did the following using setImageDrawable : imagem.setImageDrawable(ContextCompat.getDrawable(this,R.drawable.cliente)); When searching ImageView, I also found the setImageResource method and it al...
asked by 15.11.2016 / 17:11
1
answer

Error executing delete on Sqlite bank

I have a problem with my Android project. When I run a delete on the sqlite database, I get the following log message as a return: W/FileUtils: Failed to chmod(/storage/sdcard/Cardapio Digital/Database/dbcardapio.sqlite):...
asked by 01.11.2017 / 15:42
3
answers

Allow only upper case letters in EditText

I know I can make the EditText screen always rotated, now I want to know if you can only allow capital letters at the moment the user types something.     
asked by 30.10.2017 / 00:37