Android :: Setting Up This Google Maps Class?
May 30, 2010
Firstly this has turned out to be quite a long post so please bear with me as its not too difficult but you may need to clarify something with me if i haven't explained it correctly.
So with some help the other day from guys on this forum, i managed to partially set up my 'mapClass' class, but i'm having trouble with it and its not running correctly so i would like some help if possible. I will post the code below so you can see.
What Ive got is a 'Dundrum' class which sets up the listView for an array of items.
Then ive got a 'dundrumSelector' class which I use to set up the setOnClickListener() methods on the listItems and link them to their correct views.
THIS IS MY DUNDDRUM SELECTOR CLASS....
CODE:...........
Then what i did was set up static ints to represent the buttons which you can see at the top of this class, the reason for this is because in my mapClass activity I just want to have one method, because the only thing that is varying is the coordinates to each location.
ie. i dont want to have 100+ map classes essentially doing the same thing other than different coordinates into the method.
So my map class is as follows...
CODE:...............
Now this is where my problem is. The onClick() events don't even work from the listView to get into the correct views. I have to comment out the methods in 'DundrumSelector' before I can get into their views.
And this is what I dont understand, firstly why wont the onClick() events work, because its not even on that next view where the map is.
I know this is a very long post and it might be quite confusing so let me know if you want any clarification..
Just to recap, what i'm trying to do is just have one class that sets up the map coordinates, like what i'm trying to do in my 'mapClass'.
View 1 Replies
May 19, 2010
I might have been hallucinating before, but I swear that the Google Maps app would track my location with the direction of travel always at the top of the screen - the 'track up' feature for most standalone GPS units.
Now when I track my location, it has me going left to right or right to left. Is there some setting that I changed? I recall several updates the past few days. Makes me wonder if that has anything to do with it. Thoughts?
View 2 Replies
View Related
Mar 9, 2010
When I load Google Maps and it first locates me, it centers the map on my location. Once I am travelling, the map does not follow my location. My location dot will go right off the map and I have to manually drag the map to see the next section I am now driving on.
Is there a setting to make Google Maps follow my position while driving?
View 4 Replies
View Related
Jan 11, 2012
I have started using Waze for my GPS navigation needs. The problem is, I had previously told my phone to use Google Maps Navigation (or simply "Navigation", the one with the blue arrow icon, instead of the other option at the time which was TeleNav GPS Navigator), but I can't seem to remove that default app setting.
I have gone to Settings->Applications->Manage Applications->All to look for the Navigation app and clear "Launch by Default" setting, but it does not appear in the list of apps at all.
Is this a thing about Google apps, that they are kept hidden and forever locked into being your default app once you tell it so? I thought maybe it was part of the regular Google Maps app, but the setting there says there are no defaults set to be cleared.
View 5 Replies
View Related
Sep 25, 2010
I use the google code from devloper.android.com I use that application but in the emulator it shows only the crossed lines not the map so is there any settings in emulator for displaying maps
CODE:.....
Android mainfest
CODE:..................
View 4 Replies
View Related
Jul 21, 2010
I set a toggle breakpoint at line 36 of the main class, of APIDemos 8, the debug begins at the OnCreate but never processes another line in the class. Why is that?
Here's the code starting a line 36. Code...
View 1 Replies
View Related
Jun 9, 2010
I'm new in Android development and I have the next question/problem. I'm playing around with the Media Recorder class to record just audio from the microphone. I'm following the steps indicated in the official site:
http://developer.android.com/reference/android/media/MediaRecorder.html
So I have a method that initializes and configure the MediaRecorder object in order to start recording. Here you have the code:
this.mr = new MediaRecorder();
this.mr.setAudioSource(MediaRecorder.AudioSource.MIC);
this.mr.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
this.mr.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
this.mr.setOutputFile(this.path + this.fileName);
try { this.mr.prepare();
} catch (IllegalStateException e) { Log.d("Syso", e.toString());
e.printStackTrace();
} catch (IOException e) { Log.d("Syso", e.toString());
e.printStackTrace();
}
When I execute this code in the simulator, thanks to logcat, I can see that the method setAudioSource(MediaRecorder.AudioSource.MIC) gives the next error (with the tag audio_ipunt) when it is called:
ERROR/audio_input(34): unsupported parameter: x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value
ERROR/audio_input(34): VerifyAndSetParameter failed
And then when the method prepare() is called, I get the another error again:
ERROR/PVOMXEncNode(34): PVMFOMXEncNode-Audio_AMRNB::DoPrepare(): Got Component OMX.PV.amrencnb handle
If I start to record by calling the method start(). I get lots of messages saying:
AudioFlinger(34):RecordThread: buffer overflow
Then after stop and release, I can see that a file has been created, but it doesn't seem that it been well recorded. Anyway, if I try this in a real device I can record with no problems, but I CAN'T play what I just recorded. I guess that the key is in these errors that I've mentioned before.
View 5 Replies
View Related
Jul 12, 2012
what is the path to the offline map files saved by Google Maps 6.9?
View 9 Replies
View Related
Mar 5, 2009
Is Google Latitude available in the UK or not, because it doesn't seem to be working for me? I have received the RC9 update for G1 and have Google Maps 3.0. Is there an a Google Latitude application that I should have or do I access everything through Google Maps? When I go the www.google.com/latitude on my G1, it offers me the option of "launching" Latitude but it just takes me to Google Maps. From there, I cannot see the locations of my Google "friends" (who have agreed to show location), neither does my own location show up on the Latitude homepage on the web (I have settings turned to "detect my location automatically").
View 13 Replies
View Related
Oct 19, 2010
I'm running Cyanogenmod 6. I just noticed that I can't find Google voice or Google maps in the market. I do have the apps installed, but can't see them int he market to get updates. I tried out LFY1.7 and Ultimate Droid 1.0.0, and see the same issue.
View 5 Replies
View Related
Apr 16, 2014
I am using Nexus 4 Bought from US thro my friend.Current Android version id 4.4.2..My Service Provider is Airtel. All my google applications like Gmail, Maps, Play,Google Plus are working fine in WIFI.But when i try to refresh or update these application thro Airtel 3g,i am getting No Connection Error.
All my 3rd party apps like Facebook,Whatsapp are working fine in 3G.
View 3 Replies
View Related
Apr 17, 2013
I'm using the latest version of Google Maps on JB 4.2.2 [Nexus 4]..I noticed that I cannot edit the names of my locations in "My Places" in the phone app. So I used Google Bookmarks (google.com/bookmarks) from my PC to edit/rename My Places. However, the names do not sync or carry through to the Google Maps app on the phone. The names in the app are still the generic names, coordinates or street names.
Is there any way to change the names of My Places and get them to sync with the phone app? Really baffling!
View 2 Replies
View Related
Nov 19, 2009
For Google about BaseAdapter class
In Android 1.6 and 2.0 the BaseAdapter class has apparently been modified to throw an exception when it sees the Adapter.getCount() method return a number different than what it picked up when BaseAdapter.notifyDataSetChanged() was called (at least I did not observe this behavior in pre 1.6).
So now the question is, when should one call notifyDataSetChanged() or more importantly, when can the count in the Adapter be safely changed?
Consider the case of an app with a background thread delivering data to a BaseAdapter at a rate faster than the ListView responds to notifyDataSetChanged(). Because notifyDataSetChanged() is a synchronous call and the ListView updates are taking place sometime in the indeterminate future on the UI thread, how can an app know when it is safe to change the adapter count?
If the app changes the count while the ListView is updating itself the exception will be thrown (and there is no way to catch the exception).
Is there a way to know when it is safe to change the count in the BaseAdapter?
View 10 Replies
View Related
Sep 4, 2012
I'm searching for an app or mod to google maps that allow to view maps (satellite view) offline
View 1 Replies
View Related
Nov 4, 2010
while signing up for google maps API, i entered the md5 string that was generated on issuing this command in cmd keytool.exe -list -alias androiddebugkey -keystore "C:androiddebug.keystore" -storepass android -keypass android but it says "The fingerprint that you entered is not valid".
View 2 Replies
View Related
Nov 22, 2010
Is there a way to use Google Sky maps on my app? I know we have Google maps API, but is there a Google Sky Maps API?
View 3 Replies
View Related
Jun 10, 2010
I have several Android devices and each of them has different version of Google Maps: 3.0 in HTC G1, 3.1.1 in HTC Dream and 3.4 in Nexus one and Motorola Droid. When i use the following code: Intent myIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("geo:0,0? q=Starbucks"); I get different behavior on the devices: On the latest versions of Google Maps application I see a map the term centered around my current location with a reasonable zoom radius while in Google Maps 3.0 I see list of results and button to the map. Is there a way to get the same behavior on all devices? of course i prefer the behavior of the latest versions
View 2 Replies
View Related
Aug 3, 2009
When I click the icon of My location, it opens a tag with information and when I touch this tag then I go a new Activity that give my more information,it same pass with StreetView, so How can I do that?
View 2 Replies
View Related
Jul 26, 2010
Google Maps 4.4.0 Update now in the Market.
View 15 Replies
View Related
May 16, 2010
I have some trouble testing my Android application which includes the google maps API. The ooficial API example worked just fine but if I copy the code into my own project it keeps saying: "The application has stopped unexpectedly". I looked up the key in the keystore several times and registered it with google. Even tried reinstalling the SDK.
CODE:.......
There are some exceptions following but none pointing to my code, everything in background processes.
View 2 Replies
View Related
Jun 15, 2010
I am a new user of google maps API in android OS. I have made a small application in which i am using google maps. I want to add a functionality that when i double click (multi touch) on a map the map should zoom in. IS there anybody who has an idea how to do this or if it is possible please provid a code example.
View 1 Replies
View Related
Apr 8, 2009
Can somebody please explain this to me. I have been looking through a number of forums relating to Android with maps (google). It costs money to use maps with tmobile as a data connection is required. That's fair enough. But some people say GPS is free (albeit heavy on the phone battery). What use is GPS without some form of maps?
View 11 Replies
View Related
May 25, 2010
Is there a different voice synthesiser that can be used for google maps navigation? To start with her mispronunciations and bizarre inflections were a source of amusement but now it is doing everyone's head in. I think I'd rather have Stephen Hawking than this deranged ladybot.
View 2 Replies
View Related
Nov 24, 2010
Google maps api is great for developing location based services for mobile phones. But for some reason the use of it is restricted for me in a special project.E.g. if your project is in conflict with the general terms and conditions of google it is not recommended to use google maps API.In my app (android, iOS) i want to display a location on a map by retrieving gps information. Overall the api should offer a similar scope of operation like google maps API.Which alternatives do you know? Maybe there are open source api's?
View 8 Replies
View Related
Sep 9, 2010
Google maps have been updated to include navigation for walking directions and filter search result by distance or ratings.
View 1 Replies
View Related
Oct 4, 2010
I'm trying to use Google Maps Navigation from within my application. I've found on the net it can be done with this intent : Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("geo:"+lat +","+lng)); where lat and lng are the latitude and longitude. Unfortunately, I get a SecurityException :'(. Can someone tell me which permission I should ask ?
View 3 Replies
View Related
Nov 1, 2009
I'd like to show you off-road GPS navigator utility, created for active people. I like no-map Garmin GPS handy navigators, so I created software, that has most functions of such navigator. TripComputer records tracks of your trips and stores your interesting waypoints. You can view them on map view, see stats like distances, speed, time, altitute graph, bearing, azimuth, and many more. Also, if you have internet connection, you can send your selected waypoints and find waypoints sent by others,to use in you own trips.
At this time, TripComputer does not use maps - because in off-road areas, maps are useless. However, topo maps will be supported in future versions. Also, I'm working on GPX files and some geocaching support.
View 23 Replies
View Related
Feb 5, 2010
looks like it has pinch to zoom multitouch which is fantastic..might have nightmode we have been hearing about. still playing with it
View 18 Replies
View Related
Jul 26, 2010
Gogole maps update 4.4.0. Doesn't seem too different yet.
View 18 Replies
View Related
Nov 15, 2010
Just wandered into the market and found an update for Google Maps, to 4.7. Hadn't heard anything about an update, and there's nothing that says what's new. Anyone know?
View 8 Replies
View Related