Posts by Léo Santos • 114 points
15 posts
-
0
votes1
answer554
viewsQ: Mixing versions can lead Runtime crashes
I’m having a problem with com.android.support:appcompat-v7:26.1.0. Anddroidstudio says that: All com.android.support Libraries must use the Exact same version Specification (Mixing versions can lead…
-
1
votes1
answer53
viewsQ: Check if current time is within the radius set in the database
I wanted to know how to see if the current system time is within a previously defined radius I currently have this code, but it always returns "Closed at the moment" Calendar calendar =…
-
1
votes1
answer807
viewsA: User permissions in firebase
You can block the Activity of registration for those who do not have the permission to register the user. If it is only a user as you wrote can do so FirebaseUser user =…
-
0
votes2
answers130
viewsA: Show Edittext by clicking the Floatingactionbutton
FrameLayout frameLayout = findViewbyId(frame_layout); FloatingActionButton fab = findViewById(R.id.fab) fab.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View view){…
-
1
votes1
answer582
viewsA: How to take the item information from a java listview and insert it into an android studio textview?
If you want to pass this information on to a TextView in another Activity you can use listView.setOnItemClickListener() and pass the data via Intent: Activity of the Team List public static final…
-
0
votes0
answers117
viewsQ: Authentication problem with Firebase
I’m using Firebase for authentication and database of my app, everything was perfectly fine until (I’ll tell you exactly what happened because I don’t know if it has relation or not) I start to move…
-
1
votes1
answer18
viewsA: Map stopped showing when changing PC
For those who have the same problem... It was a problem with the key API. I generated from a PC and it ran while running from it, then I generated another PC key giving problem and it worked. I was…
androidanswered Léo Santos 114 -
0
votes3
answers1559
viewsA: Map show current location
That’s how I do private FusedLocationProviderClient mFusedLocationProvider; MapView mMapView; GoogleMap googleMap; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,…
-
0
votes1
answer18
viewsQ: Map stopped showing when changing PC
I have a map in a Fragment that was working normally until I tried to run on another PC. I went all through Pen Drive and trying to run the map does not appear and logcat says the authorization…
androidasked Léo Santos 114 -
3
votes0
answers67
viewsQ: Drag View to open new Activity
I think it doesn’t need code because it is in extremely simple layout, just to give example. My question is how to do to hold and pull that Toolbar up, the Activity corresponding "climb" together.…
androidasked Léo Santos 114 -
0
votes1
answer265
viewsQ: setOnItemClickListener does not work in Custom Adapter
I have a custom Adapter that is displayed in the 'Listview', works normally at the time of creating it and so on. The problem is that I have 'Onitemclicklistener' but the method is never called. I…
androidasked Léo Santos 114 -
0
votes1
answer26
viewsQ: Problem opening Navigationdrawer
I implemented a NavigationDrawer, but I’m not able to open it.There’s that button on the side of the Activity name. I don’t know if I created it wrong. Code of Navigationdrawer in my Mainactivity…
androidasked Léo Santos 114 -
0
votes1
answer53
viewsQ: Removed items reappear on Landscape
I have a ArrayAdapter in a Listview and when the user clicks and holds it displays a Contextmenu with the Delete bookmark option. The delete function is working, but as I create the Adapter in the…
androidasked Léo Santos 114 -
1
votes2
answers444
viewsQ: How to make FAB overwrite items in a Listview
I have an Activity where I inflate custom items into a Listview. In setContentView() of this Activity I put a file that has only one Listview declared. <ListView…
androidasked Léo Santos 114 -
0
votes0
answers152
viewsQ: Onitemclicklistener and Onitemlongclicklistener working together
I have a listview inside a Fragment and from each item I open a different Activity, but after I put a Onitemlongclicklistener to open a Alertdialog when each item is pressed the Onlistitemclick…
androidasked Léo Santos 114