Questions tagged as 'android'

1
answer

Search for strings in string

In a java-filtered search using .startWith (query) for example: I want to search for "Military Police" in the search I type "Police" and police appears, okay. If I type "military", it does not appear in my search. How do I search th...
asked by 12.05.2018 / 13:43
1
answer

Recycleview item returning the same data for all items when clicked

I have a list of addresses in Recycleview and each address has its latitude and longitude coordinates retrieved from the database. But when I click on the list item to start a route from the coordinates always brings the same in all items. What...
asked by 06.05.2018 / 10:30
1
answer

RecyclerView Android

I wanted to make the imageButton appear in case item.getPrint () == true. It seems to work okay but if scrolling the RecyclerView down starts appearing problems, it starts appearing even where item.getPrint () == false. I know that recycleview w...
asked by 07.02.2018 / 18:53
1
answer

Compare Android Studio Strings

I started a few days to learn android development, I am trying to create a simple login system for testing only. But when I create an event for the login button, the EditText string comparison does not work. When I click the button it goes to th...
asked by 08.07.2018 / 20:43
1
answer

Change the Android App icon

I'm developing an app in Android Studio and while running the app on my smartphone, the icon that appears is Android's own. How do I change this icon for one I have on my computer?     
asked by 26.01.2018 / 02:10
1
answer

Runtime permissions on android

I have a code in android studio that asks the user, permission to use the phone service (to get the imei) Well, my code is working perfectly, with a problem, when entering the page, a message is displayed if the permission was not conceived,...
asked by 19.12.2017 / 07:03
2
answers

insert a cursor within a while in android

In android I have a cursor where it looks for the data in the database and perfectly returns the data but .. How do I insert a second cursor into the first one? to pull data from a second table My code try { StringBuilder sbQ...
asked by 20.12.2017 / 07:35
1
answer

BottomNavigationView does not work on first click

I have a problem with my advance menu, it does not work when I click the first time, it is necessary to double click to perform the action bottomNavigationView.setOnNavigationItemReselectedListener(new BottomNavigationView.OnNavigationItemRese...
asked by 13.12.2017 / 11:12
2
answers

NullPointerException while getting latitude and longitude

I'm developing a mobile app with Android Studio that aims to get the latitude and longitude information and use the Google Geocoder service to return the address of the geographic position. However, I am not able to capture the latitude and long...
asked by 15.12.2017 / 15:03
1
answer

FAB button does not stay in place [duplicate]

I do not know what's happening the FAB button goes up on top of another compile component, but in the preview it works fine. <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://s...
asked by 05.12.2017 / 14:13