Questions tagged as 'android-studio'

2
answers

Because when comparing two Drawable resources the value is not the same?

Good morning, I'm trying to make the next comparison. I have verified that both Backgrounds are the same, but still the comparison does not return a True. if(contenedorMarcas.getBackground() == getResources().getDrawable(R.drawable.conte...
asked by 21.06.2017 / 21:35
1
answer

How to make the button back in android studio?

Hello friends, I would like to know how I can create the back button in the ActionBar in android studio, as well as the image, which when pressed will bring me back to the previous class. I hope you can help me and thank you very much.   ...
asked by 03.06.2017 / 22:08
2
answers

event onclick on a spinner

I'm doing an activity that uses a spinner to enable several options but within the spinner I want to put an event onclick to communicate with a button in the activity and this performs an operation. This is the code. pu...
asked by 13.05.2017 / 05:17
1
answer

Error starting Android Studio on Win10

I'm having an error wanting to start my Android Studio. I have already modified the environment variables, however the error keeps appearing. The error is as follows:     
asked by 05.04.2018 / 19:17
1
answer

Delete marker from a button

By clicking on the marker, I get your ID mMap = googleMap; mMap.setMapStyle(MapStyleOptions.loadRawResourceStyle(this, R.raw.tema_gris)); this.miUbicacion(); mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {...
asked by 20.12.2017 / 09:36
2
answers

Show information FireBase

Hi, I have a PPP where I keep information about a notice in FireBase, when I have it and keep it fairly well and will keep me on each user sending notices. Now I need to show all that information on a different screen, I tried to do it with a...
asked by 26.04.2017 / 15:09
1
answer

how to know if there is connection or not with download manager on android

I have the url to connect but I need to verify to know in what way I can say when there is connection or not through a toast.Greetings and thanks in advance     
asked by 27.02.2017 / 05:32
1
answer

Change the font type only in the title of the Activity

Cordial greeting, In my styles.xml file I have managed to change the title of my second activity with title_activity_options, as well as the color of the bar: <resources> <!-- Base application theme. --> <style name="Ap...
asked by 02.03.2017 / 05:31
2
answers

program my content on a 3.2 "mdpi screen and I realize that there is another 5.1" mdpi and its content looks small?

program the content of my app for a 3.2 "mdpi screen and it fits well, but when changing the view mode to a 5.1" mdpi it does not fit, help with this problem. 3.2 "mdpi 5.1 "mdpi     
asked by 27.01.2017 / 05:36
2
answers

How to hide menus on Android

As shown in the image I need to hide certain menus depending on the type of account. I'm using the Navigation Drawer Activity, I've seen that in the onCreateOptionsMenu I can do it but I do not really know how to do that, someo...
asked by 29.01.2017 / 06:22