Questions tagged as 'android'

1
answer

Data sharing between android applications

I created an application that works as a calendar, where you can register contacts with a few more fields in relation to the calendars that are pre-installed on the device. My question is, if it is possible to share the data registered with o...
asked by 28.10.2017 / 17:37
1
answer

Method invocation may produce NullPointerException

I'm using geocoder to transform the address of the edit text into Longitude and Latitude. I have a problem with the app, but it does not cause any problem in the app, but it gets the error on the screen and I have to press ok every time, and it...
asked by 13.11.2015 / 01:02
1
answer

Format date in Android and SQLite

I am having difficulty setting the current date of my SQLite database in the% type attribute of my object. The SQLite date comes in the format "yyyy-MM-dd". I'm trying to convert to the format accepted in type java.util.Date and that a...
asked by 15.11.2015 / 06:27
4
answers

Define coordinates when opening map

I need to open a map with specific coordinates (latitude and longitude). This data I already have, but I do not know how to set them on the map. PS: Is it possible to open directly to Google Maps?     
asked by 02.10.2015 / 06:35
2
answers

Android studio has ndk support?

I will start development geared towards digital tv, and will be 50% ndk.Android studio caters well? or is it better to eclipse?     
asked by 05.06.2015 / 14:51
3
answers

How do I leave a round image?

I need the image to be round as well as the WhatsApp contact images. I've tried to do it in some ways, for example with the tag < shape > , but I did not get the correct result. How could you get this result? Example:     
asked by 12.04.2016 / 19:15
1
answer

Different source code for release / debug version

I saw that in android studio it is possible to have one AndroidManifest.xml for the debug version and another for release version. Well, I have an "AppMock.java" file with constants for testing. I would like to not compile this source code in...
asked by 27.09.2016 / 22:44
1
answer

How do I get TimePickerDialog to start with the current time?

I made TimePickerDialog , but I can not get it to call the current time at the beginning, it always calls 00h00. I wonder where I'm going wrong. Code: private void chamarTimePickerDialog() { TimePickerDialog.OnTimeSetListener mTi...
asked by 02.11.2016 / 03:53
1
answer

Return data obtained from OnResponse

How do I return this String reponse? If I give the return there it does not accept ... and if and by at the end of the method and using an auxiliary variable it risks returning null. public String getData(){ StringRequest request = new Str...
asked by 20.10.2016 / 01:41
1
answer

How to provide support for foreign languages in android applications?

How to internationalize a TextView on Android, could someone give me an example. <TextView android:id="@+id/textView4" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1"...
asked by 04.04.2015 / 18:01