Questions tagged as 'android'

2
answers

How to know the orientation of the screen?

What code that perceives and returns the screen orientation? If the cell phone is standing or lying down?     
asked by 28.06.2016 / 09:36
0
answers

Gyroscope in android studio

How to use the Gyroscope in android studio to know in which direction the vehicle with the device is walking? Through the GPS.     
asked by 16.11.2015 / 17:20
2
answers

NullPointerException error getting location

I'm making an application that shows the user's coordinates: This works correctly and checks to see if GPS is released: public void verificaGPS(){ if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) !=...
asked by 28.07.2016 / 23:01
1
answer

"java.lang.SecurityException: Permission Denial" on Android 6 Marshmallow (API 23)

I'm trying to register a broadcastreceiver so I can check out a new sms that might arrive on the device. I'm getting an error only in android marshmallow in the following snippet of code from my fragment: public static final String BROA...
asked by 30.03.2016 / 22:28
0
answers

How to change values of HTML input with EditText using WebView?

Is there any way to change a form field by taking the value of EditText, using a WebView client? I have an application in which you access my website and there are 2 fields, one user and one password, when I type in the "EditText" user and passw...
asked by 15.11.2015 / 05:23
1
answer

Incompatibility of blob types and byte sqlite

I am making an application to save the image in sqlite. However it is accusing the following error in my class dao: incompatible types byte cannnot be converted to byte. My Classes: import java.io.Serializable; public class Produto implem...
asked by 11.01.2016 / 21:47
3
answers

How to instantiate an Activity with EditText fields without being automatically selected?

Developing an Android application, I came across a problem, I have an Activity where there are EditText fields in the xml, and when I instantiate it, the first EditText field is selected and the keyboard appears to fill, and I do not I wanted th...
asked by 30.10.2015 / 18:15
3
answers

Is it possible to attach an Android res / drawable file to an email using JavaMail?

I'm looking for the solution in two ways: Get the file PATH: I would like to get the path of an image that is in res/drawable in my Android project. I'm needing path because I have to send it attached by email, a...
asked by 21.03.2014 / 15:49
3
answers

What is the best way to share variables between 3 Activity's?

I have the variables: photo_path audio_path commentary And I would like the TextActivity, SendAlertaActivity, and AudioActivity activities to share these variables and they would keep the same value regardless of how many screen changes I m...
asked by 10.10.2014 / 18:05
1
answer

Doubts how to jump 7 on 7 in the ids of the onItemClickListener itself android

How to make a condition in which it will jump from 7 to 7 because I'm having to set this manually in the hand, and if it has data above the ids defined, it will give error would complicate. Here is an example of the code I need to narrow down an...
asked by 10.12.2014 / 20:27