Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.1.8-alpha Several Bugs #44

Closed
E3V3A opened this issue Apr 25, 2014 · 6 comments
Closed

v0.1.8-alpha Several Bugs #44

E3V3A opened this issue Apr 25, 2014 · 6 comments
Labels

Comments

@E3V3A
Copy link
Contributor

E3V3A commented Apr 25, 2014

Hi I just tried this on a Samsung I9195 running stock 4.2.2. So to do this bug report quickly before I forget, I'll just list the issues. (I'll try to issues these as issues later.)

  • "Tracking signal strength" icon still show red cross, when tracking
  • [Menu] --> "Show Map" starts map centered on the sea outside Togo (Africa).
  • [Menu] --> Preferences --> Icon Theme is not showing the current theme selection. All radio buttons are empty.
  • Returning from "Show Map" using "top-left slider area" disables all tracking.
  • Maps are not showing any cell towers (from OpenCellD)
  • OpenCellID CSV file is empty (even after download)
  • Exported CSV files contain many entries where only time stamp has changed. If only time-stamp has changed since last entry, an nothing else, then try to keep only the 1st and the last entries. This gives us a time-span to work with, without filling DB.
  • Signal strength CSV is empty.
@xLaMbChOpSx
Copy link
Contributor

@E3V3A Thanks for putting all of these together I can provide some info about them all.
Map & Location This one is really doing my head in Google does not make it easy to grab you location without GPS/Network based location enabled basically at the moment the app will try and do the following steps in order:

  1. Current GPS location if available,
  2. Last location that is contained within the location tracking database
  3. Last known location held by the location manager service from either GPS or Network based details
  4. Place you in the sea near Africa! :)

I have tried a couple of different things with this but obviously it does not work well in all cases, I will investigate more for a better solution.

Following on from that I will add some better failure detection to the OpenCellID methods as it probably failed to download due to the fact it could not calculate the bounding coordinates as this calculation uses the coordinates following the above list, but the 4th option in the sea near Africa I believe is more of a maps default so AMISICD I am guessing did not actually have any coordinates to use for the calculation.

As no download actually worked for OpenCellID based on the above information the csv file would have been empty.

I am not sure about the loss of all tracking functions when returning from the Map Viewer using the action bar as you described, I just enabled all tracking and tried it with no issues including the notification remaining green and showing tracking is enabled, one thing I have just added is to invalidate the menu once the main activity resumes as this was only available for SDK 11 and above so we can now utilise that feature which will force the app to recheck and ensure the correct icons are displayed whenever the app is displayed.

The Signal tracking icon is weird the code should function correctly like the others do so I will look into this further.

@SecUpwN
Copy link
Member

SecUpwN commented Apr 26, 2014

@xLaMbChOpSx, how about using location through triangulation of cell towers? Just a thought. At least I am using NetworkLocation from the NoGAPPS-Project. Maybe @mar-v-in can help you solve this?

@E3V3A
Copy link
Contributor Author

E3V3A commented Apr 26, 2014

STOP! Let's not get into any new triangulation schemes. These location problems have already been seriously thought about before. I am sorry I have not had time to catch up on all these old docs as of today, but hope to do this within next week. If you are interested in this, please have a deeper look in the various documents provided by @He3556.

@xLaMbChOpSx
Copy link
Contributor

Latest release features a default mcc based location within the map viewer if the app was unable to find your location from any of the current methods. It is not perfect but will atleast place you near the capital city. The CSV file holding this info needs some further work but covers most mcc's and I will continue to improve this.

@mar-v-in
Copy link

@xLaMbChOpSx Android includes a list of country centers and desired zoom levels (code is untested)

// Array containing latitude in [0] and longitude in [1], each multiplied with 1E6
int[] latlonE6 = getResources().getIntArray(Class.forName("com.android.internal.R$array").getField("maps_starting_lat_lng").getInt(null)); 
int zoom = getResources().getIntArray(Class.forName("com.android.internal.R$array").getField("maps_starting_zoom"))[0];

You can use a resources object of another country if you want to display a country other than the current one.

@E3V3A
Copy link
Contributor Author

E3V3A commented Apr 30, 2014

@xLaMbChOpSx "That" mmc trick didn't seem to work in the latest v0.1.10..

Edit:
Actually, I can't reproduce this, since I think I had corrupt data, but I'm not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants