Bart Kindt

No Rank
Points: 0
By doing a 'grep' on the Embarcadero directory tree (else I would never have know it existed), I found this unit, which contains functions to deal with the Android Permissions.
Nowhere can I find ANY documentation on this, and I have no idea how to use it.
Now with Android 8 I need to check for every single 'dangerous' permission when I start my App, how can I use this unit, how do I call the functions, how do I then call the Android procedure which pops up a special window for the User to enable the specific Permission?
I desperately need a working Pascal example...
Thanks,
Bart
Read More...
I would try this:
'"docPath := 'C:\Program Files (x86)\MyPath\MyDir\docs\"';
Double quotes around it because it has spaces in it.
Read More...
All Delphi users:
After Embarcadero's Forum became unavailable, we have been waiting for a long time for them to come up with a replacement.
As nothing has happened, and we where stuck with this bad pre-historic 'forum' I have decided to start a complete replacement Delphi Forum, which uses the same layout as the now defunct forums.embarcadero.com (which fortunately can still be read, but cannot be posted to).
www.delphiforum.net
All developers who previously used the original Embarcadero forum, please *Spread The Word* that a full replacement is now available.
This Forum website is here to STAY and I will keep paying the bills for it.
The Forum runs on a Linux Debian based VPS with a MariaDB (MySQL) back-end, located at a major site in the Netherlands.
Note the correct URL: delphiforum.net, NOT delphiforum.net which is a domain stolen by GoDaddy.com to make money out of.
*Spread The Word*
Thanks,
Bart Kindt
Administrator
CEO and Developer, SARTrack Limited
www.sartrack.nz
This email address is being protected from spambots. You need JavaScript enabled to view it.
Read More...
All Delphi users:
After Embarcadero's Forum became unavailable, we have been waiting for a long time for them to come up with a replacement.
As nothing has happened, and we where stuck with this bad pre-historic 'forum' I have decided to start a complete replacement Delphi Forum, which uses the same layout as the now defunct forums.embarcadero.com (which fortunately can still be read, but cannot be posted to).
www.delphiforum.net
All developers who previously used the original Embarcadero forum, please *Spread The Word* that a full replacement is now available.
This Forum website is here to STAY and I will keep paying the bills for it.
The Forum runs on a Linux Debian based VPS with a MariaDB (MySQL) back-end, located at a major site in the Netherlands.
Note the correct URL: delphiforum.net, NOT delphiforum.net which is a domain stolen by GoDaddy.com to make money out of.
*Spread The Word*
Thanks,
Bart Kindt
Administrator
CEO and Developer, SARTrack Limited
www.sartrack.nz
This email address is being protected from spambots. You need JavaScript enabled to view it.
Read More...
Simply use a TCP connection on 'localhost' on any port of your choosing. That bypasses all hassles of Windows based stuff, and you can send anything whatsoever using Streams (or just text strings if you want).
I use Indy10 TCPServer and TCPClient, included with Delphi. And as you say, you can have one 'server' and lots of local clients if you want.
AND you can also use any other PC's on the same local network also accessing the same data.
Bart
Read More...
The fact that the "forums.embarcdero.com" has been down is not just an inconvenience, it is simply catastrophic for all Delphi users, but also for Embarcadero itself.
Does this company has any idea what an absolute critical place this Forum has in the success of Delphi? The many amazing (unpaid) support developers, who have answered the endless thousands of questions... without these the beginner and intermediate developers would NEVER ever have been able to get their developments of the ground, and who would therefore also NEVER have gotten to the stage of actually purchasing Embarcadero Delphi products for thousands of dollars... And ALL this because the "forums.embarcdero.com" has always been there to get their questions answered.
I do NOT understand how a Software Development company like Embarcadero cannot keep a Forum server running properly!
Do not even *think* of removing the forums.embarcdero.com because a very high percentage of Google searches related to Delphi point directly to this Forum! And endless years of work will get lost when this server is taken down!
But must more important is that THIS Forum server is IHMO the best I have ever used for software development issues,
The utter JOKE of THIS very so-called forum I am now posting this on, what is wrong with Embarcadero that they ever let this happen?
Do they NOT understand anything of how the original Forum in fact is the *main* reason they are still in business???
For God sake, just properly REPAIR the original Forum without losing any of its many years of important data.
It is totally irrelevant if it would cost money to (for example) transfer the entire system to a better hardware platform if that would be required.
I say this again: Embarcadero would NOT be where it is now (and still in business) if it was not for this very "forums.embarcdero.com" and the many experienced programmers who endlessly answered the questions of the beginners... who NOW are way further down the line, purchasing Embarcadero products, but otherwise would have given up a long time ago.
And I am one of these.
Bart Kindt
CEO
SARTrack Limited, New Zealand
www.sartrack.nz
Email: This email address is being protected from spambots. You need JavaScript enabled to view it.
And I am happy to discuss this with anybody via my email address.
If the CEO of Embarcadero ever reads this (and he *should* !!) I am happy to discuss this with him as well.
Bart
Read More...
While waiting in desperation on a proper working Delphi Forums...
I have worked on this for days, and found absolutely nothing on the Internet on how to do this.
The few Android examples I found seem to be based on Android sensor information which is in a different format than what I can get from the Delphi version of the magnetic and gravity sensors.
I simply need a working Compas based on the data from the sensors.
I tried this Java example, and (tried to) convert it into Pascal but to me it looks like this example is expecting the incoming sensor data to be in a different format than what i get.
www.codesd.com/item/android-compass-that...-tilt-and-pitch.html
For example, this line:
m_pitch_radians = (float) Math.acos(m_NormGravityVector[2]); which I converted into
m_pitch_radians := ArcCos(m_NormGravityVector[2]);
where m_NormGravityVector[2] = OrientationSensor.Sensor.HeadingY
is causing an error, because the actual values I see are somewhere between -160 and +160 and the ArcCos can only seal with -1 to +1.
To me this means that the Android/Java examples are based on different values from the Sensor, and I have no access to this.
Come somebody PLEASE post an example on how to get the magnetic North from the Sensor.Tilt and Sensor Heading data, in such a way that it is corrected for the position (tilt) of the device...
Thanks, Bart
Read More...