This is what my test looks like: I won’t use the fields above, it’s just a dummy. But I would like to go through all the children on “users” and for each email return a: The only way I found of listing an object is using firebaseAdapter, is there another way of doing it? Answer The eas…
Tag: android
Set custom view for my location button in google map
I am using the Google Maps Android API v2, and I need a way to change the view (icon, color, etc.) of “My Location” button. now i can change the position of that but i need a way to do a full customization. can somebody help me please? Answer The location button is actually an ImageView. You shoul…
RelativeLayout dosen’t get OnClick Events because of the DrawerLayout
If I set the order as seen in the picture –> Image The DrawerLayout is drawn under the content_main And the DrawerLayout dosen’t get OnClickEvents If I set The Order: first content_main then drawer_layout The DrawerLayout is drawn over the content_main but the content_main doesn’t get OnC…
How to request Location Permission at runtime
In the manifest file I added permissions coarse and fine, and when I run on device with Android 6, nothing happens! I try everything but no way to get location updates… What am I doing wrong? Answer You need to actually request the Location permission at runtime (notice the comments in your code stating…
What is a StringIndexOutOfBoundsException? How can I fix it?
This is my code: It’s the default given from the android documentation. I only changed the url. This is my error message: java.lang.StringIndexOutOfBoundsException: length=28; regionStart=1; regionLength=499 at java.lang.String.substring(String.java:1931) at com.example.my.app.MainActivity$2.onResponse(…
Retrofit2, Android, @Get Parsing for the Array of Array
I am parsing the title correctly and displaying it in a listview. I cant seem to access the seen below. Here are the two objects, sample response and my call. response pojo: first object second object response: I am getting the title just by passing ‘result’ into the adapter and using result[i].ge…
addView adds the view but it’s not showing it
I know this has already been asked, but I tried everything and I couldn’t solve my problem. When I create the views programmatically, they are definitely added. I checked in the debugger and everything is in it’s place, even the parent view gets bigger in height because they are using space. But I…
How to show a notification without a sound java
How can I make a notification that doesn’t make a sound when I build it? I am building a notification, and my users don’t like the fact that it makes a sound. How can I change it to a silent one / no sound at all? How I show notification: I tried to search on google, but the only results
What is the difference between “Explicitly” and “Implicitly” in programming language?
I would like to have a clear and precise understanding of the difference between the two. Also is the this keyword used to implicitly reference or explicitly ? This is also why I want clarification between the two? I assume to use the this keyword is to reference implicitly (being something withing the class)…
adb logcat returns “Logcat read failure”
After noticing that Logcat messages were not showing up in Android Studio, I tried every solution out there, and nothing worked. I eventually tried the command adb devices and sure enough my device was there, but as soon as I tried adb logcat it returned “logcat read failure”. Developer settings a…