Dave Hubbard

-1

votes
0

answer
7

views

Cannot find default config in AndroidStudio 3.4

Since upgrading to 3.4, I can't seem to find a GUI way to edit the 'defaultConfig' info. Do I have to edit the Gradle file directly? I can edit my two 'Flavors' fine, but not the defaults. Thoughts?
Dave Hubbard
1

votes
2

answer
584

views

How to restrict mouse events to current element with JavaScript

I'm trying to change the background image of a div when a user hovers over and clicks it. I'm stuck on limiting the images from changing to ONLY the element on which the user is hovering/clicking. In this example, all of the buttons will change when one div is hovered on/clicked. This is somethin...
Dave Hubbard
1

votes
2

answer
612

views

Android onLocationChanged only called once a second at fastest

I'm using the FusedLocationApi to get updates. But in spite of setting the LocationRequest.setInterval to say 500 or even 200 millis, I only get one update per second. I'd like to get two a second if possible (to do a moving average of speed). Is there a hard limit? In my onCreate for the Activit...
Dave Hubbard
1

votes
1

answer
462

views

Can I detect physical vs virtual magnetic field sensor on Android?

The 'Moto E' devices do not have magnetic field sensors. Yet they seem to emulate it using GPS. But of course that only really works if you are moving. I would prefer to know that it is doing that, so I could disable some functions, or warn the user. I can't seem to find a way of doing it like yo...
Dave Hubbard
3

votes
1

answer
902

views

CSS or jQuery modification to prevent screen flicker

I've got an image viewer/enlarger working with jQuery UI sortable. When there are quite a few images, the window becomes scrollable in order to accomodate them. When this is the case, the images are jerky when dragged from one place to another. The scrollbar that appears will jump as well. The...
Dave Hubbard
1

votes
3

answer
324

views

JavaScript Click Events - Why do I need two addEventListeners?

I'm trying my best to learn unobtrusive JavaScript. The code below is an attempt to change an existing practice piece I had with the getArrays function called from within the HTML tag. This is the only version I could get to work. While it's nice that it works, I feel like there may be some unnec...
Dave Hubbard