Need help making a GPS Tracking application on Android - android

I've searched a lot before asking, but I can't make it out.
I'm making a GPS Tracking application on Android for runners & cyclists, like KeepRunning for example.
I tried to use open-gpstracker : http://code.google.com/p/open-gpstracker/source/checkout which is doing exactly what I want with the GPS. But I can't make it to run, I always get errors because I cannot import httpmime, etc... Do you have an idea about this ?
I also tried to do it by myself, but the OnLocationChanged was never called. (Maybe because of the emulator ? I used the DDMS menu to change location, the dot moves but the function isn't loaded) Any idea ?
I was trying to make a "mix" of these two answers : Create an Android GPS tracking application and Drawing a line/path on Google Maps but couldn't manage to do it for now.
I also checked myTracks which seems to be the best, but it's way too complicated for me right now...
I just started coding on Android, I'm not very comfortable yet with all this stuff, so thanks in advance for taking the time to read and answer :)
Sylvain

you need to download following .jar file and import it in your project for httpmime
http://www.java2s.com/Code/Jar/h/Downloadhttpmime412jar.htm.
Hope this will help.

Related

How to implement Location Sensor?

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.

How to do a Google Image Search in an android app

I'm developing an Android app that will do a Google Image Search and return the images to the user in a list. I've looked around on StackOverflow and have run into some problems. First off, I'm a total newbie programmer with only 4 months' worth of programming experience, so I appreciate you guys being patient with me.
I looked through Google Image Search API and I know it's being depreciated and will get shut down someday. Because of this, I don't want to use it. After extensive research on the topic, I don't want to use Bing or another image search service, and I don't want to do a "reverse image search. I just want to use a simple image search via string. I've used this app (https://github.com/tonytamsf/Android-Image-Search) to look at the code, but in all honesty, it's just not helping and it's confusing me more on how to exactly search for an image on Google. Plus, the app won't compile in Eclipse :(
I've also looked around at Google Developer APIs, and I'm not sure if I need to turn on an API key for myself? Still, a bit confused about that. I thought I needed to do a custom search engine, but just by looking at that, I don't think it's exactly what I'm looking for.
Can anyone point me to some resources for this? I would really appreciate it. Thank you!
Just a heads up, but what you're asking is pretty challenging and it sounds like you're just getting started. Here's what I can suggest though:
To get that demo code working in eclipse, I had to right-click the project, click properties, click Android, then check the box for the version of android installed. (I had android 19 installed, and the code was expecting 16, so it was giving up. Tell it to use what you have, which probably is 19). This worked for me after using the git plugin in eclipse to import the project. If you are importing a different way, you may have different issues. * Using git and importing the project is a good skill to have, so if that's unfamiliar territory, take the time to look at that.
Ok, that's the end of what I am sure of. The rest is an educated guess, but I'm sure others can correct me.
Next, if tinkering with that project isn't enough, getting real google image search working will take several skills, especially since the old API is gone. In total you'll need to know:
Java
Android programming
google cloud services
google custom search API
REST
some other libraries to glue the custom search to your app
It's a big chunk there. Currently, it seems the only way to use google's image search is to run a google app engine (you basically set up an online account for google to run a server for you. It does computation and sends messages back and forth for you. You only get a little bit for free each day and then if you want more you have to pay. This is one-way Google earns money. It's not something they let you run on your own computer anymore.). Then you make your android app talk to that server using your new login ID, and the server will take the search term and send back the answers to your android app.
You can get the app engine running and use it in chrome without dealing with android to save yourself time, then add the android part later in the future. Good luck!

Creating my maps in android application

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

Unable to use chart libraries in Android

Can any one please tell me how to create a bar-chart in Android?
After I did some searches on Google then I got the solution as, there are two approaches to achieve this concept.
Using
"Achartengine" or
"kiCharts" approach
As per the search every one is recommending to use "Achartengine approach" because it is fully open source, this is the official link to this approach that I found.
Then I downloaded that file from the above link and I imported it into Eclipse but its not supporting. When I am trying to run that project it's showing like the below images.
Even though if I try to do access or while clicking any options on the emulator (here shown in the second image) it's showing up the with same result as "sorry your app unexpectedly closed!. Please try again. Force Close"
I don't know whether I am going in a wright way or not.
Can any one please explain this concept by sending at least one example program done using the AChartEngine approach.
OR
Please at least send me the steps to create a BAR-CHART using the AChartEngine approach.
Thanks for your precious time!..

Indoor positioning system in android

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.

Categories

Resources