Questions tagged as 'android-studio'

1
answer

I need to place a MenuItem by default checked

I would like the Agrocentro item to be by default and setChequed only at the beginning But I only get the item if it is by default but not checked in the drawer. DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); Acti...
asked by 04.06.2017 / 23:58
2
answers

Error reloading fragment

Good afternoon I am presenting the following problem, when trying to reload a fragment the application is hung and then the cell phone restarts. The fragment AdminComment shows a listView that when you press one of these objects in the listVi...
asked by 24.02.2018 / 23:24
2
answers

How do I stop the sound from ringing until the touch finger is lifted?

how is it going? Could someone tell me what I would have to do to make the sound stop ringing until I left the button? Try the motion.event actiondown and actionup but the full sound sounds, but I just want it to play until the user releases the...
asked by 03.03.2018 / 19:35
1
answer

How can I compare geographical coordinates in android studio and google maps

I have a variable with which I get my location and now I want to compare my location with a fixed marker How can I do it? I try to do this protected void startLocationUpdates() { if (ActivityCompat.checkSelfPermission(this, Manifest.permis...
asked by 21.02.2018 / 10:25
1
answer

How to justify a text with XML

I'm trying to justify a text with some dots in XML, I've tried in several ways without success. Example: I need the text to be long, since I have to put several points, detailing each information in a different dot. It should also be j...
asked by 23.02.2018 / 05:21
1
answer

Percentage in android studio

hello friends that I have a doubt to get the percentage in Android is that I saw how it was done in android and it is supposed to be similar this is my code in android: Where I'm supposed to do this sum2 = to a total of a previous operation i...
asked by 24.02.2018 / 23:44
1
answer

My android app does not receive data

I am trying to send 2 coordinates (latitude and longitude) to a php server in netbeans. When executing the thread, the only thing I get is that the textview where the same coordinates sent by the server should be reflected, remains blank. Thi...
asked by 20.07.2017 / 20:25
1
answer

format of android text strings

Good, I have the following problem: I am making a query to a database, the query brings me a value type String with a format type ###. ###, ## the question I have are the following: 1.- How can I eliminate the commas and points to use that da...
asked by 11.08.2017 / 05:54
1
answer

Language error when installing Android Studio on Linux Mint 18.3

I am trying to install android Studio on Linux Mint 18.3 but it throws me the words as rectangles. Can someone help me please?     
asked by 21.12.2017 / 01:23
2
answers

How to send data from one activity to another in android studio [duplicated]

What happens is that the RESULT of the SUM of the activity IngresarDatos I want to reflect it in another activity but I do not know how to do it EnterData.java package com.example.asus.crudaplicacion; import android.content.Intent; impor...
asked by 24.10.2018 / 19:41