Posts by Jefferson Rodrigues dos Santos • 139 points
9 posts
-
0
votes1
answer63
viewsA: getLastLocation sometimes returns null
Try to follow this Tutorial. The solution is to replace in your Androidmanifest.xml <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> for <uses-permission…
androidanswered Jefferson Rodrigues dos Santos 139 -
0
votes1
answer59
viewsA: Map only click on my device
Try following this tutorial video lesson is quite simple to see the implementation of one in the 1(v1) and 2(v2) versions of maps…
-
5
votes1
answer696
viewsQ: Recover firebase data with multiple parameters
I’m trying to recover a firebase node, but this one needs to meet two parameters, start date and end date. The knot stays the way they passed me an option would be to put one more value to…
-
1
votes3
answers686
viewsA: Programmatically change the background color of the Overflow Menu in the Toolbar
If you want to change at runtime according to the color of some image that the user clicked you can use the class Palette android. Class references:…
-
-1
votes3
answers1120
viewsA: Align visual components
<ImageView android:id="@+id/username_icon" android:layout_width="40dp" android:layout_height="40dp" android:layout_alignParentLeft="true" android:layout_alignParentStart="true"…
-
1
votes3
answers1120
viewsA: Align visual components
The icon would be the button or not? if it is you can use the code below: <Button android:id="@+id/buttonIdDoesntMatter" android:layout_height="wrap_content" android:layout_width="fill_parent"…
-
1
votes1
answer1024
viewsA: java.lang.Runtimeexception: Unable to start Activity Componentinfo {...}: java.lang.Nullpointerexception
I’ve been looking at your code and not whether the error was at the time of writing the question or really this coded like this ` activity main ImageView profileView =…
-
0
votes1
answer779
viewsA: Work with images in Android Studio
I don’t know if I understand your question. But have you considered creating an object that has the image reference and category reference? With this Voce could sort or filter according to objects.…
-
3
votes2
answers278
viewsA: Sending data between View and Edit Activity
To complement the @Leonardo Dias answer the use of the code passing the extra by Intent and more advised to do for primitive data such as int, byte, short, double and long and String that is an…