[Q] App using Google Maps need overlay help - Android Software Development

Hey there I am currently on a team creating an application that will be using Google Maps. We are new to Android as well. One of the key features of our app is being able to see markers on the map that are populated from a database. Such as when you go into the actual Maps app and search 'hotels' or 'gas stations'.
We used this to get started: http://developer.android.com/resources/tutorials/views/hello-mapview.html
However both our group and another separate group (school project) that are using google maps are having a problem with this code on that page. When ever either of us go to "touch" the marker in the emulator, instead of the dialog box coming up, the app just crashes.
We used this code exactly how it was written.
How can we get this dialog box to come up when the marker is touched?
Also how can we get it to load a page when the dialog box is touched (such as when you search 'hotels' and then touch the marker, then touch the box and it loads an information page)

Bump. We would really like to know what is up with this seemingly simple task.

Related

[DEV] App to transfer GPS coordinates to a certain website (map service)

There's this free web service called "Citizen's MapSite", which is free to use, where you can browse detailed topological maps of Finland. It also has search functions to use with GPS coordinates..
I'm not sure if they have this kind of service in any other countries, but this seems like a great way of using detailed topology maps in a number of outdoor activities for free!
the site itself is kansalaisen.karttapaikka.fi. Now all we need is an application to start up the GPS and (at the push of a button) open up a browser with current GPS coordinates as the search terms. Basically an app that creates an http link using data from GPS.
..would anyone be interested in giving this a shot? In the mean while I need to manually copy and paste the coordinates
Here is a quick implementation which shows the current position.
Since I don't have a gps device and even don't live in Finland you are the first official beta tester!
known issues:
trackbar for the current zoom factor doesn't work
the network connection will not be closed on application exit
gps will be closed on application exit
Next time, please refer your requests to the Q&A section instead.
as this is already in development stages, change the subject to DEV and we'll leave it at that.
awesome heliosdev! I'll be leaving my "official beta test report" ASAP :-D
Teh Official Beta Test Report:
The search doesn't display any results and it seems its because the search is done with the wrong type of coordinates.. There's a drop down box with different types of coordinates and I think that the search should be done using "EUREF-FIN maantieteelliset (~WGS84)" ("EUREF-FIN geographical (~WGS84)" in English) instead of the "KKJ..." which is the default.
Here's an example of how the url behaves (if it's any help):
Using these coordinates N: "60.477603" E: "22.222587" (and "EUREF-FIN maantieteelliset (~WGS84)" in the drop down box) as search criteria, the site url becomes this:
http://kansalaisen.karttapaikka.fi/...ale=8000000&tool=siirra&styles=normal&lang=FI
Thanks for the feedback! I'm using the Lat/Lon coordinates. In the case of no gps device or no gps fix the application shows some fix place in Helsinki. This is the url.
Have you seen this?
To be sure that there is a gps fix try to use another gps application to be sure that gps is working and then open this application and see if it's showing the correct place.
I did some hasty conclusions yesterday, it seems.. Any-hoo: I got it working, sort of: I need to change the colon ( , ) to a comma ( . ) from the coordinates and then it displays the map of my surroundings beautifully ) for some reason it doesn't display the location arrow on the map though..? (when I search the same coordinates in opera manually the arrow is there)
new version is up which corrects the ',' to '.' issue.
Works beautifully (according to the few tests I've had time to do)!
Usability would improve greatly, if there was some sort of GPS status indication: GPS on/off, Lock/no lock and number of satellites tracked..?
updated with a statusbar showing
valid data: sat: number of sats for position|valid|total; altitude
no valid data: no position
Threre is more information like speed and heading which could be useful, too. Let's see if the new info works and then we can see how in terms of gui layout the additional information can be shown!
Btw, does the scale trackbar work for you?
Statusbar works ok, but only after 'refresh'. It would be more useful if it displayed the gps state 'live'. Ie. if there's no lock yet, but it's searching, it would show something like a row of dots scrolling. And after a lock it would display the sat info (This app has something like that for instance: http://forum.xda-developers.com/showthread.php?t=424423). Now I need to hit refresh manually to check if there's a lock or no; at the moment I use google maps to get the sat lock and then I fire up SuomiTracker (awesome name btw to get the topomap.
The scale trackbar isn't working for me either.
I hear this works beautifully in Omnia also; someone commented on it on a Finnish mobile forum :-D

Some tips for setting up favourite places in Google Maps for easy navigation...

I was finding it a bit of a struggle working out the best way to add my Google Contacts to the maps so they were organised sensibly and easy to lookup when using maps/navigation on the phone. Since I couldn’t find a step by step guide to piece it all together, I thought I’d post something here as it may be helpful to others muddling through like me.
I didn’t find an easy way to add all my contacts to the map, but then again I don’t think that’s a major problem - after all, I’m not likely to be visiting everyone listed in my address book.
Here’s what worked for me (there are two choices for the first step, depending whether your using the phone or tour desktop):
1. Adding Stars/Favourites To The Map (Phone)
You can add “Stars” to for your Google Contact from the People app on the phone. Select the contact, then "View home/work address", and assuming there's enough detail it will take you to that point on the map. Click on the marker, and you'll get the black Google Map screen which includes a greyed out star just below the clock. Click this and you’ll get a star on added to your map.
Or...
1. Adding Stars/Favourites To The Map (Desktop)
You can add “Stars” to for your Google Contact to Google Maps by going to the contacts page (http://www.google.com/contacts), selecting the contact and clicking the Map link (next to the address). This will bring up the Google Map page with a marker for that particular contact’s address. The address should also be listed at the left-hand side with a bold blue link. Next to that link will be a feint blue star outline. Click this and you’ll get a star on added to your map.
2. Renaming/Removing Favourites (Desktop)
That’s all well and good, but this star may not have the most convenient name. For example, it might be called “142 Main Street, Leicester”, but for the benefit of navigation, you may want to refer to it as “Home”, or “Dave’s House” etc.
To change the description to something more memorable, go to the Google Bookmarks page (https://www.google.com/bookmarks). Here you’ll be able to see all the starred items on your map and more importantly edit or delete them.
(Stared Items can also be viewed from the “My Maps” page from the main Google Maps site - but you can only view/select them, and not actually edit the details here.)
3. Using Your Favourites (Phone)
After synching your phone, when you bring up Google Maps Navigation Icon (i.e. the relatively new Blue Arrow that appeared in the 4.2.0 update) you’ll see all your favourite places, named accordingly under Choose Destination, “Starred Items”.
You can also access them from the main Google Maps App by clicking on the Bookmark icon next to the Start/End destination options that if you select “Directions”.
Hope this helps!
Matt
If you hold down the magnifying glass and say navigate (contact name) it will take you there,
Fon22
It's all a bit clunky though isn't it? You'd have thought that google would've come up with something at least as good as apple on one of their flagship products!? I got used to using my mrs iphone and it's so intuitive and integrated to add data between maps and contacts and the web.
Not on android. Took me a week to find out how to add a stupid star - which i don't seem to be able to turn off after either and have to have it on my screen. would be good to be able to toggle stars/pins in different layers - ie friends addresses, restaurants etc and to be able to easily integrate between web, maps and contacts.
You'll probably tell me you can - i hope so.
jooliohoolio said:
It's all a bit clunky though isn't it? You'd have thought that google would've come up with something at least as good as apple on one of their flagship products!? I got used to using my mrs iphone and it's so intuitive and integrated to add data between maps and contacts and the web.
Not on android. Took me a week to find out how to add a stupid star - which i don't seem to be able to turn off after either and have to have it on my screen. would be good to be able to toggle stars/pins in different layers - ie friends addresses, restaurants etc and to be able to easily integrate between web, maps and contacts.
You'll probably tell me you can - i hope so.
Click to expand...
Click to collapse
Well you can delete the stars from the bookmarks page (http://www.google.com/bookmarks).
I'm still learning myself, but you're right, it is very clunky. It'd be nice if you could just add a star for the contact to the map with a single click from the phone.
EDIT: You can also delete them using the phone by selecting a star on the map, then deselecting the star in the same way you add it. Whilst you can simply add a star, I can't see a simple way of giving it a sensible name - the one you get always seems to be the first line of the address. It's the renaming bit (Step 2 in my OP) that was the main "missing link" for me, but it's perhaps not quite as clunky as I first thought.
With regards to layers, you can create a map online (My Maps -> Create New Maps) then add/copy places to that map. From the phone, you can then see a specific map by selecting Layers -> More Layers -> My Maps.

Store Item Finder / Item Locator

I'm trying to build an app for a school project that will locate items in a grocery store. For example, if I type in "orange juice" into the app, it will create a marker on a floorplan of the store. In this way I want to be able to populate a map with markers that correspond to items in a grocery list. Users can then walk around the store and swipe off markers as they pick up the items.
Does anyone know how I could do this? Are there any open source Android apps currently out there I could look at?
I feel like this would be a fairly simple project involving just uploading a .jpeg into an app and assigning coordinates to classes of items, like "juice" to {20,30} or something like that, but I have very little programming experience and am lost as to how to start.
bump
Well, people normally do not get an answer if they ask how to do the whole app.
So try to find the solution yourself and ask the community if you've got more specific questions/problems.
nikwen said:
Well, people normally do not get an answer if they ask how to do the whole app.
So try to find the solution yourself and ask the community if you've got more specific questions/problems.
Click to expand...
Click to collapse
Yeah I realize that I'm not going to get a step by step process... but I was just asking for general advice. Somebody suggested I use a .shp file and use an overlay with all the markers corresponding to the items, then create a pop up marker event for every time the user selects an item, which was helpful.
I'm looking for general ideas on implementation, that's all.
justinyeh said:
Yeah I realize that I'm not going to get a step by step process... but I was just asking for general advice. Somebody suggested I use a .shp file and use an overlay with all the markers corresponding to the items, then create a pop up marker event for every time the user selects an item, which was helpful.
I'm looking for general ideas on implementation, that's all.
Click to expand...
Click to collapse
You could save the name and the coordinates to files using JSON which can easily be written manually.
Have a look at Google's gson library.

Offline Maps?

I want to use my device for offline maps, i think it would be the perfect device for that considering readability outdoors. I've had no success with google maps as they appear to only offer offline functionality for android 2.2 and up in version 6.9+, nor can i find a newish version that would run on the nook anyways. I was hoping someone else has found a solution for this be it with google maps or an alternative. Preferably with an ability to accept lat/long coordinates to find places.
Thanks a lot, i appreciate your time to read this and any input you may give the thread.
This would be a source of USGS topographical maps in PDF form: https://store.usgs.gov/
Unfortunately, the website seems borked.
There was a thread on GPS and Nooks.
Best bet is to interface it directly at 3.3V to ttyS1 (UART2).
You'd still need an app to deal with this all.
There's OruxMaps, it works with both online and offline maps.
to access the go-to-point feature, you need to to customize the interface:
Setting->user interface->buttons->buttons bar-> now you scroll that thing in the middle until you find an icon that looks like a marker over a line of dots and you put it in one of the side menus, now you have a go-to button.
on the same occasion you can get rid of all the GPS related buttons.

WebKey & Google Play on FTV2

So, I have a PM a while back about Webkey app on FTV. Here it is
@clembo100 said:
Hi there, I have just installed webkey on my Amazon TV Firestick in order to remote access Kodi installation configs etc.
When starting the app on the browser I can connect but get a plain replica of a phone on the screen with a small android icon on it but no actual way of viewing the screen or controlling anything. The mouse pointer changes when over some of the edges of the screen as though to do something but nothing seems to be working correctly. I wondered if you had come across this or can help with a fix? Thanks for reading this
Click to expand...
Click to collapse
I had the same problem on my FTV2 running version 3.2.6. The new version is not as feature rich (no terminal, no file transfers, no file system navigation, no way to input text easily) as the old one. Alas, you cannot run the older version on FTV2, it will refuse to start, either manually or auto-boot.
But, I have playing around with it and found that you can navigate menus using the keyboard arrow keys. Certain menu items can be invoked using mouse clicks as well (eg, if you go to Applications and open an app., you get different choices like "Run App" or "Clear Data". You can click on them and it seems to work). Also, usually once you are within an app, you can point and click using your mouse. So, even though it is crippled, it does work, though not as seamlessly as the older version. You can get the latest one at http://webkey.cc/ and there is a link for direct apk download.
One of the best uses I have for it right now is to interact with Google Play (system app). I have frozen my GPlay app at 5.6.8. As others have indicated, the mouse does not work (using K400) in the app. But, I can point and click in the GPlay app using Webkey and it makes it easy. Tip, if you need to click on the rectangle formed by 3 horizontal lines at the top of the page to get into your settings, click on the top left corner of that rectangle (of just those 3 lines) and the menu should pop down.
An interesting thing I found, if you install GPlay (5.6.8) as a user app, the mouse works, but it stops working when GPlay (same version) is installed as a system app. Of course as a user app, you get the error (976?) that won't allow you to install apps from within GPlay.

Categories

Resources