I am working with android studio for last few days, and I am pretty new here with this work. I am trying to implement a location sensor app. The basic idea is if my phone enters into some restricted area (would be predefined in app), some voice message will be popped up, Surely I have to keep the app running on background to test this. I headed with FusedLocationProviderClient and implemented a very basic getmylocation app for now, where my actual obstacle I found. The co-ordinates keep fluctuating all the time for a same place after the decimal points by some values[(xx.xfffff,yy.yfffff) where f are the fluctuating figures,and the app is supposed to work on the truth of that figures], so the sensor can never implemented if the measurement is wrong.
Anyone having idea, how to fix this or may be there are better alternatives to implement this thing? I am pretty new to this work, so I would request you to give explanation or some attachment/article links in support of your answer so that I can get things clear and straight forward.
If any details is required from my work, Please mention , so that I can update this question on next round edit.
Thanks in advance.
Related
I'm a beginner in android development. I need some idea about how can I make an app which can track a phone's live location. I want to use the same app on 2 devices and both of them should be able to track each other. Can someone please help?
the good starting point is https://developer.android.com/training/location where you can find examples and best practices. Depending on your application please consider a suitable strategy (background tracking, geofencing, and impact on the battery). The second thing you have to solve is how to exchange/share information between devices. There are ways how to deal with it. For example, google API, web socket or something else. Sorry for the general answer.
Is there any workaround get exact location inside building or still it's not possible..
I've checked few things like
https://developer.foursquare.com/docs/venues/venues
http://www.walkbase.com/
http://www.directionsmag.com/articles/10-things-you-need-to-know-about-indoor-positioning/324602
But didn't able to find what I want!!
I want my app to know weather user in in particular restaurant or not!! I'v also tried http://developer.android.com/training/location/geofencing.html
but not sure how to use it..
It'll be great if someone help me with where to start and which is best?
Thanks :)
no it is not possible. some companies experiment: for some buildings, that have to be measured to the specific technologiy that those companies use, it may work a bit, but not in general case.
if you want to know the restaurant, enable gps before the user enters the restaurant.
that way you get the position via gps when the user stands before the restaurants door.
as long as the restaurant is not inside a huge indoor shopping center, chances are good.
Hey guys i am looking for an application that can navigate inside a mall.We can adopt the idea of inputting our current location through a QR code or by taking a snap of any near landmark(like shop,name boards..),Then we can input where we want go?But the actual problem is How to build a map of the indoor?Can u suggest any such tool to create a map for android phones.Because after creating the map by programming the gyroscope sensor in android for proper routing,because application now knows the source and destination,so i think it can display the shortest route(like GPS),then we can start walking through that path with our phone.Whenever we violates route using gyroscope we can track it.I think it is possible,if we turn left instead of taking right then app will direct us it is a wrong way.But i need help to create the map.Can anyone please suggest any idea?
my email:anishubais#gmail.com
please----
I might be wrong, but I think that going off of GPS would be inaccurate. If I remember right, GPS is only accurate up to 10 meters or something like that.
Like I said, I might be horribly wrong, I'm just going off of what I remember
I would like to ask a question regarding redpin indoor positioning system on android. I read somewhere stackoverflow about redpin and visited their website. From there i followed their instructions on how to set up redpin on android, but i only get a red dot pointing on the top left corner of the map i uploaded. I would like to know if anyone has successfully gotten redpin to work for android and assist me in doing so?....or maybe can tell me what am I doing wrong. Sorry to ask, I am very new at this, thank you.
For what I could experiment, it doesn't really work at first, probably because of the lack of fingerprints or something like that.
But when you have added quite a few locations, and try again to take locate, it starts pointing at a particular location.
For what I could notice, it works well on android 2.2, but there is some debug to do on 4.1 and 4.2 for it to work fine.
I hope this will help
U would better read about INS (inertial navigation system), it is a navigation system that uses your phone sensors for calculation your position.
It happens to me as well, but which is not an error, and I guess it's just a failure of updating. Press the redpin image, if it can start the measurement, then it works well.
I was wondering if anyone could explain or clear me out -- I am currently doing some project to identify trees using android. I suppose the main components I must use at this project is GPS, Camera API and Compass (Please let me know if anyone can think anything) -- I am still in a middle of researching about the project and the possible problems that might arise during implement the project for example if there are two trees are in the same line of sight or same line (overlapping), what information is going to be displayed? How I can tell my software that I am actually want to display the front tree not the back of the tree? What sort of information or API will determine this? I mean does the camera or compass or GPS or even the database of the location of tree will determine it?
Can anyone please give me some idea, how I can tackle this kind of problem? Or perhaps if anyone know any tutorials that I can learn etc?
Much appreciated.
theBorneo
There is no existing api that would let you determine this specifically. I can image that you could estimate object identifications based on gps location. If you had waypoints in front, you could use the compass to get a direction and then approximate the gps region in front of you. Then try to see if you know of any prior waypoints that are in that area. Obviously, the one you see in direct line sight is the closest, and this would probably be the heuristic.
The camera will have almost no use in this case other than a view finder. If you are looking to segment images in order to differentiate between different objects, consider this impossible with google api, or any mobile application. This is difficult enough to do for professional researchers who can isolate variables..
The gps approximations are pretty trivial, however I am not confident as to how accurate or often a compass returns direction.