Questions tagged as 'android'

0
answers

Transform meters into Pixels

I would like to transform a metric value into pixels to add to a Marker. In earlier versions I used it as follows: import com.google.android.maps.Projection; Projection projection = mapView.getProjection(); float raio = projection.metersToE...
asked by 22.03.2016 / 19:42
0
answers

App gets white and Suspending All Threads in LogCat

Galera, I'm studying Android on my own and in my studies I created a game of the gallows, except that when I replace the word to be discovered in String "word" with a word that contains repeated letters like "Horse" white for a few moments in th...
asked by 20.01.2016 / 15:38
0
answers

Activity does not work as it should

Good afternoon, I have a class that receives parameters from another try to search in a webservice, when it enters the onCreate, checks if the instance is being created the first time and if it does not call another TagsHolder class to do the en...
asked by 19.01.2016 / 19:32
0
answers

PopupMenu appearing at the top of the screen

I made an implementation of a PopupMenu being called inside a Adapter of a ListView , the error that is happening is that when I call PopupMenu , it is being displayed at the top of Activity . The correct one is t...
asked by 21.01.2016 / 19:54
0
answers

Security with AccountManager

I'm using the following method to collect the user's email to serve as authentication (email only) in my app: AccountManager.newChooseAccountIntent(null, null, new String[]{"com.google"}, false, null, null, null, null); My question is if th...
asked by 21.01.2016 / 18:41
1
answer

By pressing the Play button more than once the sound plays simultaneously

My problem is this: I have an Android application that runs a Player, containing a "play" button, after the click appears "stop" and executes the sound. It works in a Navigation Drawer, so far so good and runs right, when I open another scree...
asked by 17.03.2016 / 05:27
1
answer

ImageView displays the image rotated by 90 degrees

When I upload a photo to the server and I'm going to display it using Picasso.with(getApplicationContext()).load(Caminhofoto).into(fotoalerta); If the photo was taken with the mobile phone vertically, it is loaded horizontally and could dis...
asked by 17.03.2016 / 15:57
0
answers

How to keep the GPS coordinates obtained between Activities?

I'm trying to get the GPS coordinates on Android. I developed the search class and I get the position normally, but the problem is that the user does not have time to wait for the device to search the position and when browsing and a new Activi...
asked by 18.03.2016 / 14:07
0
answers

Print via bluetooth using PHP on ANDROID

Hello! I'm participating in a project made in PHP, which will run on ANDROID (via PhoneGap). The application will print to a portable printer via Bluetooth communication. The printer is already paired with the tablet, but how to send the print v...
asked by 16.03.2016 / 14:22
0
answers

POST requisition on retrofit2

How do I send data from a form on android using retrofit2? The way I'm doing the information stored in the database are being sent through a pass by parameter, I would like to retrieve the data from an EditText for example, can anyone help me?...
asked by 17.04.2016 / 09:13