tag:blogger.com,1999:blog-1853768304794693097.post8864612851871989335..comments2024-03-10T08:33:47.120-07:00Comments on It's a blong, blong, blong road...: C++Builder's Android location sensor woesblonghttp://www.blogger.com/profile/15865043713752235355noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-1853768304794693097.post-31474104589346821422021-04-08T11:29:48.815-07:002021-04-08T11:29:48.815-07:00I'm not entirely sure if Community Edition com...I'm not entirely sure if Community Edition comes with source, however normal C++Builder comes with the Delphi VCL source etc. In C++Builder you can add a Delphi unit to a C++ project, but I don't have a Community Edition installation to try this with. You'll have to try it and see.blonghttps://www.blogger.com/profile/08453267054013423188noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-15114322262961965532021-02-17T20:32:37.705-08:002021-02-17T20:32:37.705-08:00I am a C++ developer.
You said that we need to ad...I am a C++ developer.<br /><br />You said that we need to add Androidapi.Sensor.pas to the project. That file is a Delphi file. So, adding it to a Delphi project surely no problem. But, what if I want to add it on a C++ project? And, I am using C++ Builder Community Edition. Some of the features were not available. Wouldn't it have error?Weehttps://www.blogger.com/profile/10563335889768249661noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-12016957862244299672020-09-09T10:20:53.543-07:002020-09-09T10:20:53.543-07:00Hello Ben. Sorry I missed the comment. I thought B...Hello Ben. Sorry I missed the comment. I thought Blogger emailed me about new ones (nope!). Did you sort this in the end? Or did the issue resolve itself for you with 10.4?blonghttps://www.blogger.com/profile/08453267054013423188noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-21220595810931201482020-09-09T10:19:12.019-07:002020-09-09T10:19:12.019-07:00Hi Andrew - sorry, I thought Blogger emailed me wi...Hi Andrew - sorry, I thought Blogger emailed me with new comments. Apparently it does not. It's the *NDK* that defines these functions, not the *SDK*.blonghttps://www.blogger.com/profile/08453267054013423188noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-17349285966255632672020-03-16T21:37:57.950-07:002020-03-16T21:37:57.950-07:00Does any version of the Android SDK define these f...Does any version of the Android SDK define these functions? I am assuming you are talking about Android SDK version 22 in this post, right? I got mine working using your guide, jsut wondering if the definitions are anywhere to be found in case they might actually be useful. Thanks for your insights!Andrew Ahttps://www.blogger.com/profile/06515948876255989223noreply@blogger.comtag:blogger.com,1999:blog-1853768304794693097.post-3770761521554767972020-03-13T15:26:37.187-07:002020-03-13T15:26:37.187-07:00Hi! I've tried this and it still doesn't w...Hi! I've tried this and it still doesn't work. I created a blank project and added only a TLocationSensor object and followed the steps (which are quite simple) and I still get the error. I am using 10.3 Version 26.0.36039.7899 purchased February 2020. <br /><br />I doubt I missed anything. I mean, I copied both the Androidapi.Sensor.pas and Androidapi.inc files to my project folder, then I added them in my Rad Studio project, I modified the .pas file to comment-out the symbols and recompiled and it still fails.<br /><br />This is really frustrating.<br /><br />Any idea?<br /><br />Thanks!<br /><br />Ben<br />BenoitQuebechttps://www.blogger.com/profile/13916235441148446563noreply@blogger.com