Android :: Out Of Memory Error When Using Google Maps API

Sep 29, 2010

I have an application here that has a feature of showing a POI on the map. It's only one POI and it is only drawn when it's actually within the visible screen area. It works perfectly for a while but if I play around zooming in and out and dragging, it will eventually crash. According to Logcat, the reason is always an OutOfMemory error.

At first, I thought it was a bug on the Google Maps API. After some researching and seeing some Romain Guy posts, I was kind of convinced that I had done something stupid on my app that kept me running out of memory from time to time. Then I ran some more detailed tests with Heap Analyzer (Eclipse) on and I saw that even though I had 2+, sometimes 3+ megabytes left of free memory, I was still getting those annoyings Force Close messages caused by OutOfMemoryError. Most of the times it crashes when trying to alocate some 614kb chunk of memory regardless of how much I have left.

This problem happens a lot on Nexus One 2.2.1 and on HTC Evo 2.1. After some little testing, I got no crash neither on G1 1.6 nor Samsung Galaxy S i9000 2.1. But I cannot say for sure the G1 and Galaxy will not show this problem after more testing. I can only think of a memory fragmentation problem. I hope this problem has a solution. I will also be glad if I can just catch this error and prevent the app from crashing.................

Android :: Out of memory error when using Google Maps API


General :: Google Maps 6.10.0 And Extra Memory Consumption?

Aug 19, 2012

I own a (quite old now) Google Nexus One and I recently upgraded from Google Maps v6.9.0 to Google Maps v6.10.0

And I was quite surprised to see my user memory decrease a lot while the install apk is quite the same between both versions.

My Nexus One is rooted and running stock Android 2.3.6 (GB, not ICS)So I investigated and here is what I found about this new version of Google Maps.First, you must know that the memory available to the user to install new applications is mounted by the android system as '/data'.By running a 'du' command, I discovered that the following folder:

Code:
/data/data/com.google.android.apps.maps/app_
takes 11.9 Mo, which is a lot.[code].....

View 2 Replies View Related

HTC EVO 4G :: Google Maps Location Error?

Jun 26, 2010

Is anyone having issues with Google Maps being able to pinpoint your exact location while using the Evo?I used to use Google Maps all the time on my MyTouch, and it would always find my exact location with no problem. But I used it for the first time today on my Evo, and it was always a couple of streets off (not "general" location with the transparent blue circle, but "exact" location w/no circle). This is very inconvenient when using Navigation because it keeps wanting to redirect from a place that I'm not at.I made sure my GPS was on before I started using Maps. I haven't tried using Sprint Nav or any other Nav apps, so I'm not sure if it's a problem with Google Maps, or the Evo GPS.

View 6 Replies View Related

HTC Hero :: VillainROM 10.3.0 - Google Maps Error

Jun 22, 2010

I just installed VillainROM 10.3.0 Final and so far I noticed that Google Maps is not working.

View 6 Replies View Related

HTC Desire :: Google Maps - My Location Error

Sep 18, 2010

I am having trouble with Google Maps in my HTC Desire. When I look at My Location, it is completely wrong. When I rotate my phone, the arrow turns round, but the location is nowhere near where I actually am. Anybody have any idea what I can do about this, as I really need to use this feature.

View 4 Replies View Related

Motorola Droid X :: Car Dock And Google Maps Navigation Error

Jul 22, 2010

Just got off the phone with two VZW reps who couldn't give me an answer and suggested that I use VZ Navigator since Verizon can support that software, LOL. My Problem: Used Google Maps Navigator for the first time today. Was using my Motorola Car Dock I purchased and got the address put in and everything then tapped "Navigate". Si there I am and have my nice map view of the route I'm taking and every 30 or so seconds it would flip to a grey screen with multiple tiered options, first of which was "my location" and the address. Below that was the option to tap "Navigate" again which took me back to the map view as it should be. Problem is that it just kept popping back into the grey tier screen every 30 or so seconds. I took it off the dock and this doesn't seem to be happening while not on the dock although I get another message telling me to detach the charger from the wall to conserve battery...WTF? After speaking in depth with VZW reps they seem clueless. First rep told me to try and uninstall Google maps and reinstall (which come to find out I can't do after speaking to the second rep) while the second rep seemed to want to glorify his Droid Incredible and how great it was over the Droid X. he offered to reset my phone but advised I would have to sync all my contacts again, redo all my widgets and reconfigure all my e-mail addresses. Anybody else experiencing this problem with the car Dock and Google Navigation?

View 7 Replies View Related

Motorola Droid :: Error Downloading Update For Google Maps

Nov 5, 2010

My phone has been unsuccessfully trying to download the update for googlemaps.I've tried stopping, and restarting but it still won't work.Is anyone else having this problem? And is there a way to fix it?

View 7 Replies View Related

General :: Spice Mi-350 Phone - Google Maps Error After Rom Flash

Jan 9, 2013

I'm using a Spice Mi-350 phone (It is the same as Lenovo A60). On the stock Google Maps worked perfectly. But recently i flashed Yonip 5.3.7 Rebirth ROM. Since then Google Maps does not work anymore. When ever i open it, it says 'This application requires a working data connection'. I have a fully working data connection and every other app on my phone can access the internet except for Google Maps and it's related apps(like Navigation,Places,Local,etc).

Here is the download link for the Yonip 5.3.7 Rebirth ROM. [URL] .....

View 8 Replies View Related

Android :: Google Maps Traffic / "Low On Memory"

Sep 18, 2009

I am running a MT3G with Cyanogen's mod. I love it...the performance is good, the options are great. It's like having a Linux computer in my pocket (that's actually exactly what it is). The one consistent problem I am having is with the traffic layer in Google Maps. I can enable it and it shows the traffic information just fine. After a few seconds, however, I get a message that says, "low on memory, traffic has been turned off". If I leave GMaps and open another app that I used called TaskPanel, it tells me I have 30+ MB of available memory. I'm not sure what's going on. Any ideas? I have Googled the issue and seen a number of other people having the same problem, but I haven't found a fix yet.

View 10 Replies View Related

Android :: Error When Write Code Import Com.google.android.maps.MapView

Mar 29, 2010

i am new to android development. I got an error when write the code "import com.google.android.maps.MapView; in eclipse. The error is "The import com.google can not be resolved."

View 2 Replies View Related

Android :: Google Maps - Settings In Emulator For Displaying Maps

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

General :: Google Maps 6.9 - Where Are Offline Maps Stored

Jul 12, 2012

what is the path to the offline map files saved by Google Maps 6.9?

View 9 Replies View Related

Android :: Google Latitude Application For Access Through Google Maps?

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

Android :: Verify Error With Maps Add-ons?

May 7, 2009

After the first time I (re)install a new APK sometimes I get VerifyErrors when an Activity references another Activity that extends MapActivity. The app will crash, and then when I restart it it works fine.

This is only on 1.5 targets with the google API addons (target 3). If anyone has any suggestions please let me know.

Here is the logcat:

CODE:................

View 14 Replies View Related

Android : Verify Error With Maps Add-on?

Oct 8, 2009

I need Help for this issue :

http://code.google.com/p/android/issues/detail?id=4006

View 4 Replies View Related

HTC Desire : Maps For Memory And Use GPS To Show Location Just Like TomTom?

Apr 30, 2010

I would like to use My Desire with offline maps and GPs like a satnav eg TomTom. As I understand it Google maps requires the data connection up to load relevant map. This can be expensive when roaming in Europe. So is it possible to obtain maps for memory and use the GPS to show location just like a TomTom.

View 1 Replies View Related

Motorola Droid :: Unable To Find Google Voice Or Google Maps In Market

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

General :: Google Apps Like GMAIL / GOOGLE+ / PLAY / Maps Not Working In Airtel 3G

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

General :: Google Maps App Doesn't Sync Names With Google Bookmarks

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

Android :: Out Of Memory Error Due To App's Fault?

Jun 16, 2010

i have a aplication on the android market, in wich exceptions and errors are catched and sent to me by acra. But i receive quite a lot out of memory errors.. In different kind of classes...some my app, some general java.. Does this always mean there is a problem in my app, or can it also be the phone ran out of memory due to a other process? Will users also get a fc dialog?.....................

View 7 Replies View Related

Android :: SetImageURI Out Of Memory Error

Jun 11, 2010

I have a very small activity that must show an image.

If picture is not very small (for example 1.12 Mb 2560x1920) it produces out of memory on change screen orientation. I tried getDrawable.setCallback(null) but no luck.

CODE:...................

View 2 Replies View Related

Android :: Memory Error With UI Elements

Sep 1, 2010

In my application I change layouts very frequently with most of the user interactions. Each time when a new layout is drawn, the applications memory size is increasing. I can see this in DDMS. This is absolutely fine. I have analyzed my application with memory analyze tool and it shows that there around 42 Table layouts at some point of time and this number increase as user does more interactions with the app. Now my question is why doesn't the GC collect the stale layout objects. Does GC collect on UI widgets also??? I feel it does but can any one tell me what may be the reason for GC not collecting my UI elements.

View 4 Replies View Related

Android :: Memory Error With Threads

Mar 4, 2010

I have a couple of worker threads in my app which I stop and restart during onPause() and onResume(). I use a method that clears all the reference to and from the threads when stopping. However ThreadGroup is still retaining a reference to my threads and causing a small memory leak. After pausing and resuming my app about 40 to 50 times I will then get OutOfMemory Errors when loading bitmaps. Allthough this doesn't effect most of my users I do get occasional reports of crashes. How can I remove the references to my threads from ThreadGroup so that GC can do it's job.

View 4 Replies View Related

Android :: How To Handle Out Of Memory Error

Jun 14, 2010

I am using following code to display bitmap in my imageview.
when i try to load image of size for example bigger than 1.5MB it give me error
any one suggest me solution? code...

View 1 Replies View Related

Android :: Can't Launch Maps App In HTC Legend With Sense 2.1 / Solution To This Error?

Sep 29, 2010

I'm trying to launch the Maps application from my own activity and throws me an exception.

This is the code that I launch...

And this is the LogCat...

have you declared this activity in your AndroidManifest.xml?

This code executes OK in the stock Android but Sense seems to have something that revokes the launch of the activity. I launch some other apps like gMail without errors, it's only Maps application who gives that error. Do you know any solution to this error?

View 2 Replies View Related

General :: App Or Mod To Google Maps Allow To View Maps (satellite View) Offline

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

Android :: Out Of Memory Error In BitmapFactory.decodeFile

May 22, 2009

I was reading in some other posts that some developers have the same Problem, but till now, no solution. its about the gallery: I have a string array with photos, but when the gallery does show the 2nd Picture it crash with:...............

View 7 Replies View Related

Android :: Allocating Bitmaps And Out Of Memory Error

Jun 16, 2010

I'm running into OutOfMemoryErrors when allocating bitmaps. This is not something I can reproduce with emulators, and has been reported by a few beta testers with the HTC Incredible. I'm not sure I can solve this directly, and my best hope is to follow best practices for bitmaps and memory thereof. But looking for those best practices based on groups archives left me with more questions than answers. If anyone has a chapter about this in their book, I will buy the book. Here are the things I've mulled over so far:

1. I have a bitmap for a drawing buffer. It is about 3-4 megabytes on some devices. This is the biggest bitmap I have, and without it, I wouldn't be able to much of anything useful in my app. I am assuming that it would not be useful to use inPurgeable if this is a bitmap that is drawn into. Is this true?

2. Next biggest in the hierarchy are some bitmaps that are about 22K bytes and 256K unpacked. Since I believe about 25 of these might be used at one time, I have a cache with a size of 25. I am careful to use BitmapFactory.Options.InPurgeable, so I believe that could make them take only 22K each, but I don't see that as guaranteed. Maybe they are taking 256K each, which would put me in the danger zone. As they are cycled out of the cache, I call bitmap.recycle(). I think this a good practice. Is it?

3. Next are some resources with icon size 32x32 pixels. There are about 50 that could be used or reused. If I use code like this:

Drawable s = mCtx.getResources().getDrawable(R.drawable.symbol_icon);
Where s is a local variable to rendering. Suppose I call this 37 times. Am I to assume that Android will do something smart like create only one bitmap for this resource even if it is used 37 times? Or am I to assume that Android will do something stupid like create 37 bitmaps and keep references in an obscure location that will prevent garbage collection? Do I need to get more access to these bitmaps and do something smart myself?

4. Finally are some other icons used for menus and ImageButtons. Most are declared in layout files - so I don't touch the bitmaps directly.

I'd like to make my memory usage more efficient, but don't want to spend time on things that will amount to shuffling chairs on the Titanic. And how do I best measure this usage? Interestingly enough, I've tried using the Allocation Tracker and it says I haven't allocated a single bitmap. In light of the above, I don't think that's right.

View 11 Replies View Related

Android :: Out Of Memory Error On Eclipse / Avoid This?

Aug 27, 2009

I was using ADT for debugging and then I get this Internal error: out of memory error

Is there any way to avoid this?

View 3 Replies View Related

Android :: Out Of Memory Error .. Trying To Parse XML File

Nov 5, 2009

In my application. I tried to parse XML file. First time it executed correctly. Second time it is showing Out Of Memory Error.

My XML file contains 15000 lines.

can any one know about this?...

My log cat is given below:

CODE:................................

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved