I am using your library in my program to show the User where North and South is, when setting out a coordinate.
When I lay my Controller flat on the desk with the "long" side of the Controller "up and down" from me, the North arrow is correct. But if I rotate the Controller through 90 degrees, the North and South swap around. If I turn it through 180 degrees, it is still correct.
This is something that I have messed around with in Sep 2022. It only uses B4A core libraries. See if it works for you - else change the code to suite your needs. The project "includes" compensation for magnetic declination via inline Java code
This is something that I have messed around with in Sep 2022. It only uses B4A core libraries. See if it works for you - else change the code to suite your needs. The project "includes" compensation for magnetic declination via inline Java code
When the button text says "Dec Comp Off" it means that magnetic declination is ignored. When button text says "Dec Comp On" it means that magnetic declination is taken into account.
I am not concerned with the magnetic declination, so I switched it off. I was also able to my own "Compass" Bitmap to the program. I am busy with adding a new "Compass" Bitmap that when the Surveyor is say within 1m of the Point, that the Compass picture changes.
I am not concerned with the magnetic declination, so I switched it off. I was also able to my own "Compass" Bitmap to the program. I am busy with adding a new "Compass" Bitmap that when the Surveyor is say within 1m of the Point, that the Compass picture changes.
Beware. The Orientation sensor was deprecated in Android 8 and removed in the later Android versions. It is not present at all on my Android 12 and 13 devices.
Beware. The Orientation sensor was deprecated in Android 8 and removed in the later Android versions. It is not present at all on my Android 12 and 13 devices.
Beware. The Orientation sensor was deprecated in Android 8 and removed in the later Android versions. It is not present at all on my Android 12 and 13 devices.
No. I just tried. It's not present on the later devices regardless of manifest setting. There is a Google recommended alternative but I didn't get it to ever work smoothly. You might have better luck as I didn't try too hard.
No. I just tried. It's not present on the later devices regardless of manifest setting. There is a Google recommended alternative but I didn't get it to ever work smoothly. You might have better luck as I didn't try too hard.
I give up with Android. They have taken out the joy and fun of trying to develop apps. Elon Musk should buy it and shut it down - or open it.
I can actually get along very well without these irritating and for ever changing android rubbish where they keep on limiting access to whatever. I actually dont need a cell phone. I did not own one in the early 1980's so wtf. Why does anyone want to carry around a device where employers can send you sh1t 24 hours a day?
I give up with Android. They have taken out the joy and fun of trying to develop apps. Elon Musk should buy it and shut it down - or open it.
I can actually get along very well without these irritating and for ever changing android rubbish where they keep on limiting access to whatever. I actually dont need a cell phone. I did not own one in the early 1980's so wtf. Why does anyone want to carry around a device where employers can send you sh1t 24 hours a day?
Those were exactly my thoughts following this thread here. Google itself is neutering a promising operating system more and more with each update, turning it into a data-collecting cash machine and "expanding" the system with perverse innovations with each new release for alleged security reasons.
I, too, have largely given up developing Android apps. Too many system-side restrictions now prevent the development of truly new and innovative apps. At the moment, my focus is definitely on B4J, where almost anything is possible and you can let off steam without having to constantly circumvent system-side hurdles and then find out with the next release: It doesn't work any more. Android finally needs a functioning alternative. This system has long since become the same proprietary monster that Apple used to be accused of being.
And Johan, why don't you try this out? What will surprise you is the battery life: