Questions tagged as 'android'

2
answers

Google Maps returning Latitude and Longitude as zero and problems when placing the Marker

I'm trying to use Google Maps, and set a location on it (pulling the user's Latitude and Longitude). It pulls and displays in a Toast, but it does not setta this in the onMapReady or Marker method, and if I put a Log in onResume (), it shows...
asked by 19.02.2018 / 15:42
1
answer

Enable and disable Android alarms via code

I'm creating an application, and in some parts I'll need the app to turn on and turn off alarms (from my phone itself). I searched the internet but did not find anything that would help me not described. I do not know which classes or library ca...
asked by 20.02.2018 / 12:53
2
answers

Component with same height

Is there a way to make a LinearLayout have the same height as a TextView? <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/blue"/>...
asked by 07.04.2018 / 17:49
3
answers

Dynamic Array - Android

How to create a dynamic array in this way: //Apenas um exemplo abaixo: String valor0 = "1;2;3;4;5;6;7;8;9;0"; String valor1 = "1;2;3;4;5;6;7;8;9;0"; String valor2 = "1;2;3;4;5;6;7;8;9;0"; //Um array dentro de outro array, porém sem definir s...
asked by 05.04.2018 / 22:31
1
answer

Upload Empty Spinner

When generating a Spinner , it returns the first value of the ArrayList generated already selected. How do I bring it "empty"? The best option would be to populate it with a onClick function instead of doing it in...
asked by 25.01.2018 / 16:07
1
answer

Error in inflating menu in navigation drawer in Nougat and Oreo version

Hello, I'm having a problem with Android's NavigationDrawer in versions 7 or higher. When I add the menu via xml, an exception is generated. However, in the MARSHMALLOW version it works correctly. Follow my code: activity_livros.xml <...
asked by 26.01.2018 / 12:27
1
answer

Error starting service at startup (ACTION_BOOT_COMPLETED)

I'm having a problem initiating a service on android as soon as the phone connects I followed several tutorials but it always causes this error    06-04 23: 56: 27.305 10948-10948 / pluswallpapers.devmarques.com.wallpapersall E / AndroidRunti...
asked by 05.06.2018 / 05:02
1
answer

Keep a TextView Changed even after you close the app

I'm having an application for financial management, spending control for college, it's my first experience with android studio and the java language, but I'm already evolving a lot, I need to keep changing the TextView of the user's balance, the...
asked by 07.06.2018 / 22:04
1
answer

Json Object for ListView

Good afternoon everyone, I have two classes, the bemVindo and the one that receives data in json and saves it in an object, and after the json data is received, the class sends the data to the bemVindo of the data received in St...
asked by 12.03.2018 / 16:49
1
answer

Count ListView items

I have a listview, which is populated with database data, and I need to make a comparison of the list data with an X value entered by the user. ListView listItens; listItens = findViewById(R.id.listItens); adapter = new ArrayAdapter<String&...
asked by 14.05.2018 / 04:49