Questions tagged as 'android'

1
answer

WebView Android Studio with HTML5

How do you leave a 100% responsive layout in WebView? Do I have to configure in WebView or and my HTML that is not Responsive? Code:protectedvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);requestWindowFeature(Windo...
asked by 17.08.2017 / 16:00
1
answer

Runtime Permissions Android

I'm having trouble getting the runtime permissions request, and only the permissions acceptance dialog for one of the two required permissions is shown when I click the button. /*Button PANIC Button @ Click this button to send a PANIC mes...
asked by 14.02.2017 / 22:27
1
answer

Pick up address when adding bookmark on the map

I would like to know how to get the address when the client adds the marker on the map, and already save on the firebase server. Thank you in advance:) @Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; // Add...
asked by 12.03.2017 / 18:02
1
answer

alertDialog with confusing layout in fragment

I can not change the layout of a alertDialog() that inherited a layout I do not know from where. I've already tried to set a customAlertDialogLayout also unsuccessful. I already tried to change the context and nothing seems to work...
asked by 13.03.2017 / 20:33
1
answer

Change the FAB color via code (programmatically)

I'm developing a custom%%, where the colors of the screen elements will vary depending on their properties. Example: If the type property of the Message object displayed is Activity , then the following elements of the "Azul"...
asked by 01.09.2017 / 05:44
1
answer

Only install the app without overwriting the sqlite bank that is already being used

I'm developing an application using Delphi Tokyo for Android. But when compiling, it always takes the sqlite database and writes the which is already full of data. As this app goes to the client, I would like to know how to update the pr...
asked by 25.08.2017 / 22:31
1
answer

How do I know if the device is a Smathphone or Tablet and / or is it capable of sending SMS?

I developed an application that is able to send an SMS with some information at the touch of a button, but one issue that concerns me is the devices that can not send SMS, type tablet's without a SIM card. Is there any way I can validate this...
asked by 26.02.2017 / 16:43
2
answers

Passing parameter to another activity with sharedPreference [duplicate]

I have a code where I will access a webservice that will be changing the ip weekly, I created a sharedpreference for the user to save the new ip and when that save my activity would pull that ip saved in the shared preference and would end up...
asked by 29.08.2017 / 20:35
1
answer

Stop playing the sound when exiting the application

I'm creating an application, in JAVA , which plays songs by pressing a button. But when you press the button again, the song is repeated. And I'd like to stop it by touching the same button. package dagustin.southamericamemes; import android...
asked by 20.03.2017 / 20:07
1
answer

How to use Shadows?

How to use the shadows effect on my components?     
asked by 23.03.2017 / 20:27