Android :: 2.2.1 FRG83D - Existing Map Tiles Are Unnecessarily Reloaded When Panning?
Nov 23, 2010
The Maps API always had its issues... since updating my Nexus One to 2.2.1 FRG83D earlier today, I see a problem more serious than anything prior. This applies to both Google Maps and (any) app that uses the Maps API (that I have tested). It's pretty obvious and simple, and cannot be remedied by rebooting the device: When panning the map view (no zooming that would trigger a complete re-load), map tiles that were already loaded, are cleared and reloaded. This can occur multiple times until the map view settles down. Looks pretty wild.
View 5 Replies
Oct 8, 2009
Being able to write Android apps in regular Java is a huge win. However, I am confused about unit testing Android apps. Many of the 'best practices' seem to boil down to 'split your business logic off, and test it separately using JUnit'. This is great as far as it goes. And I understand that truly testing the UI will require firing up the emulator. But it seems there is a category of UI tests that I should be able to run without the emulator. The various Mockxxx classes seem to be going a long way towards this. But why (oh why oh why!) do they all. throw new RuntimeException( "Stub!" ); in their constructors? I can understand them doing this in their METHODS (then I could subclass them as needed) but why their constructors? I cannot stop this functionality so I cannot do (limited but useful) UI tests such as public TextView createTextView ( Context context ) {return new TextView( context );
View 3 Replies
View Related
May 12, 2009
I have set an activity containing a webview which loads a page from the network. Each time the orientation of the screen changes the oncreate(...) method is called and the webview reloads its content again. Is there a way to avoid the webview to reload the web page?
View 3 Replies
View Related
Sep 25, 2010
I'm currently trying to port the famous complex event processing runtime "Esper" to the Android (2.2) platform and am facing a VerifyError, which I - although reading several other post on VerifyErrors - do not understand.
The project I am trying to build and run contains only Java sources (no libraries). Therefore, I assume, that if these are compiled successfully, they would pass the verification process. But during runtime, I get the following error:
CODE:......
The source of "EsperEPL2GrammarParser" is quite big ( > 40,000 lines) and so is the above mentioned inner class DFA156, which mainly contains a switch-statement (> 60 cases) and each case contains several (> 50?) if-then-else statements. Just an idea ... when reading the error message above (invalid switch start: at 8, switch offset -31132, count 34530) my alarm bells ring, cause some values around 32768 (16 bit range) always make me nervous.
Nevertheless, I am confused with this VerifyError and would appreciate any help getting closer to the error's source. What can I do to encircle the error ?
View 20 Replies
View Related
Oct 5, 2010
In a nutshell, I use regular views for all my application except for on that uses a GLSurfaceView.
The UI flow works well. I can navigate form one to the over except whith the GLSurfaceView
When I open the first time the GLSurfaceView everything works fine, but when I switch to another view and come back (pause menu) my view is completly black...
I tried several things and the closest I got from fixing it is to recreate the GLSurfaceView completly (but that takes too much time ...)
What I want is be able to do this:
CODE:........
what I'm doing wrong or point me to a tutorial that explain how to swap form GLViews to regular views
View 1 Replies
View Related
Feb 4, 2010
I am trying to write an app which has an ImageView and the app allows to perform panning on the image. I also want to register context menu with this ImageView so that on long press Context menu comes up. I tried playing around with the onTouch method, but could not get it working.
On long press, i do see context menu. But, while panning also the context menu comes up. I want that context menu is displayed only when long press is performed and not while panning. If I return true from the down event, the context menu fails to come up.
Please find the snippet of the code below for the reference. Code...
View 2 Replies
View Related
Feb 26, 2010
I have a png and a jpg image on disk. I'd like to use any built-in intent (if any are available) to view the image (just a single one at a time). Something like this:
Intent intent = new Intent();
intent.setImagePath("/blah/myimage.jpg");
startActivity(intent);
is there a built-in intent in android to do this, or do I have to write my own image viewing-activity? It would be cool if there was one that had panning/zooming as found in WebView.
View 1 Replies
View Related
Apr 3, 2010
I need to know when the user is panning the map so I can check if they've panned outside of the initial radius that I fetch data from the API with when the app launches. If the user pans outside this radius, when they stop panning I will get the new center point of the map and fetch new data with that geo-point. So far I can't find anything in the Google Maps API docs [and I've inspected the entire class tree] that notifies developers when any animation actions are occurring or completed.. It seems weird that Google wouldn't give us some sort of event listener or protected method to override on the MapView or something to do this.
I looked into what methods were available to override on the View class and it does have onAnimationEnd() but I guess panning or zooming the map doesn't count as an animation or is never passed up from the MapView or something... I tried running a simple log in onAnimationEnd() and it is never being called. Searching the interwebs gave me nothing but some never-successfully-answered posts.
View 6 Replies
View Related
Jun 21, 2010
I've had my Incredible for a couple months, and this just started happening a couple days ago. First, my home screens shifted to the left (as if I was doing it with my finger). I would leave the screen on, lay it down on a table top, a few seconds later, shifted to the far left again. I pulled up some things with text input boxes, and again it kept trying to shift the cursor to the left.
I checked and since it's still under warranty Verizon will swap it out. It only happened for a couple days, and has quit since (happened a few days ago). Any ideas what may have caused it? Think it's worth going ahead and swapping it while it's still under warranty? Hate to run the risk of it doing it again later, of course knowing my luck I'll get a screwed up one when I swap it out!
View 10 Replies
View Related
Mar 15, 2010
I'll start by saying that I'm REALLY new to OpenGL ES (I started yesterday =), but I do have some Java and other languages experience. I've looked a lot of tutorials, of course Nehe's ones and my work is mainly based on that. As a test, I started creating a "tile generator" in order to create a small Zelda-like game (just moving a dude in a textured square would be awesome So far, I have achieved a working tile generator, I define a char map[][] array to store which tile is on :Code...
View 2 Replies
View Related
Apr 4, 2010
In a feeble attempt to learn some Android development am I stuck at graphics. My aim here is pretty simple:Take n small images and build a random image, larger than the screen with possibility to scroll around.Have an animated object move around on it.I have looked at the SDK examples, Lunar Lander especially but there are a few things I utterly fail to wrap my head around. I've got a birds view plan (which in my head seems reasonably sane):How do I merge the tiles into one large image?t each onDraw redraw the background of the previous spot of the moving object, and the moving object at its new location
The problem is the hands on things. I load the small images with "Bitmap img1 = BitmapFactory.decodeResource (res, R.drawable.img1)", but then what? Should I make a canvas and draw the images on it with "canvas.drawBitmap (img1, x, y, null);"? If so how to get a Drawable/Bitmap from that?I'm totally lost here, and would really appreciate some hands on help (I would of course be grateful for general hints as well, but I'm primarily trying to understand the Graphics objects).
View 1 Replies
View Related
Apr 13, 2009
I tried to display map in emulator. But its showing just tiles only. I am attaching the screenshot and the log message is like this.
04-13 22:30:06.934: INFO/ActivityManager(48): Start proc org.me.map for activity org.me.map/.MapAct: pid=615 uid=10022 gids={3003} 04-13 22:30:06.944: DEBUG/dalvikvm(607): VM cleaning up 04-13 22:30:06.954: DEBUG/dalvikvm(607): LinearAlloc 0x0 used 541500 of 4194304 (12%) 04-13 22:30:06.976: ERROR/dalvikvm(607): pthread_setspecific failed, err=22 04-13 22:30:07.425: INFO/System.out(615): #### #### Setting locale to en_US 04-13 22:30:07.466: WARN/Maps_Persistence(615): Couldn't find file: /data/data/org.me.map/files/DATA_Preferences 04-13 22:30:07.545: INFO/jdwp(615): received file descriptor 27 from ADB 04-13 22:30:07.645: WARN/Maps_Persistence(615): Couldn't find file: /data/data/org.me.map/files/DATA_Tiles 04-13 22:30:07.675: WARN/Maps(615): Couldn't restore map info, data == null 04-13 22:30:07.995: INFO/MapActivity(615): Handling network change notification:CONNECTED 04-13 22:30:08.015: ERROR/MapActivity(615): Couldn't get connection factory client 04-13 22:30:08.194: INFO/ActivityManager(48): Displayed activity org.me.map/.MapAct: 1400 ms
Please tell whats wrong with this, My source code is very simple, I ididnt try anything special,
public class MapAct extends MapActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } }
View 9 Replies
View Related
Jan 30, 2010
I am having some issues getting tiles to load into my MapView in android development. I have searched and looked at similar problems on here but with no luck so far.
I have looked at the instructions here and have got hold of my debug API key. I have entered this into my MapView.
I have checked that my emulator and my debug device have got an internet connection.
I have move my Internet permission tag in my manifest file to be before the application tag.
I don't know what else to check.
I am also unsure of the best way to develop this. It seems that I can't debug with a properly signed app as the debug keystore needs the same password - android. This would imply that each time I go to do a release build I have to change the key - which seems very fragile!
Is there any way of developing and releasing builds with my own generated maps API key?
Some code for you to look at:
Main.xml:
CODE:.......................
AndroidManifest.xml:
CODE:.........................
View 1 Replies
View Related
Jun 29, 2009
For some reason I cannot get my first maps application to work. I have gone though the full process of getting the MD5 fingerprint for the debug.keystore, registered for the key on the website, put it into the xml file. Even had changed my computer's locale to US English. I also signed the application with my private key and pushed it via ADB to the emulator. All attempts so far resulted only in the grey Google Maps background with the tiles not loading. JAVA_HOME environment variable points to my JDK file. Not sure what else I can do. Even upgraded from SDK 1.1 to 1.5. No improvement. I am really stuck here. I am running WIN XP, Eclipse ganymede, SDK 1.5 r2, with the latest ADT. Here is my class file code: package com.mellagio.maps; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import android.app.Activity; import android.os.
View 8 Replies
View Related
Jul 6, 2010
I am using a gutted version of the Snake Android sample. Pretty much I am using the TileView class verbatim and am only trying to display a few tiles on the screen. Instead of the SnakeView class I am using a GameView class in which I only included the code I thought necessary to display a tile on the screen.
Here is the class
CODE:...............
Now what is happening is that when the updateWalls() method is called, the tiles are placed within the View and comes up like this:
Now when I uncomment out the updateCellularArray() method and comment out the updateWalls() the program force closes and throws a NullPointerException. After some debugging I figured out that when the updateCellular array method is called, the mTileGrid array in the TileView class is not initialized, but it is when updateWalls() is called. I am completely baffled as to why this is happening. It doesn't matter if i replace the for loop with a simple setTile(GREEN_STAR, 3, 3); it still force closes.
Here is the TileView class I am using (again this is the same one in the Snake sample that comes with the Android SDK):
CODE:.......
simplified GameView class
Alright after modifying the updateCellularArray() method to the following:
CODE:........
It finally placed the tile where I wanted it to...
I'm starting to wonder if it has something to do with the RefreshHandler. Possibly when the RedrawHandler's sleep method is called in the update method of the GameView class. I'm not quite sure how it works so I am going to try playing around with it and see what I can come up with.
View 1 Replies
View Related
May 18, 2010
Is it possible to determine the coordinates of the tiles that are visible in a MapView, relative to the first tile in the upper left corner of the entire map (including the invisible part)? I can't seem to find a way to get the tile coordinates.
View 1 Replies
View Related
Apr 14, 2010
I followed this guide here perfectly and have gone through it again but when I run the program on my google avd the page loads but only Grey tiles appear and it doesn't show a map which it should.
Does anyone have any ideas?
View 5 Replies
View Related
Jul 10, 2010
There are a number of posts (both here & elsewhere) about why a MapView might not be displaying tile info (personally, I've liked http://stackoverflow.com/questions/1809507/android-hello-mapview-tutorial-map-tiles-do-not-load, but there are other good ones, too).
My question is slightly different: I'm not getting tile info to show up (on my handset or in the emulator), and I'm looking for advice on what to try in order to debug this problem. As far as I can tell I've correctly located my debug.keystore, and used the Java JDK keytool to get the signature from it, which I then plugged into the Google web page, and then plugged THAT key back into my XML file. The app runs ok, it just doesn't display any tiles.
I was hoping that if I did something wrong here I'd see an error message in, say, logcat (or an exception that Eclipse might catch) that would confirm that this is the source of the error.
So here's my question - what would y'all recommend someone try in order to figure out what the actual problem is?
View 1 Replies
View Related
Nov 1, 2013
I just bought my nexus 5 and its pretty awesome but i was wondering if i could change a couple of questions...
Do you know the menu which appears when you press the lock button(i think its called power menu), is there a way of changing what icons appear there?
Can the tiles also in quick settings panel be changed?
Finally, if you press the middle button you see the google logo to laung google search, can that be changed to show other apps?
View 3 Replies
View Related
Jul 20, 2012
I'm trying to create an app to plot our mountain bike trails on a Google map. I've got the Google map part working. However, once I try to plot a couple of geopoints and connect them it does displays the geopoints and connects them, but the Google map stops displaying. Only grey tiles show. Here is my code before I plot the points which works. import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.Point;
import android.os.Bundle;
[Code]....
Then I change my code to this to plot and connect a couple of geopoint and it turns map tiles grey.
import java.util.List;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
[Code]....
View 1 Replies
View Related
Nov 16, 2012
I just got this samsung galaxy s relay 4g. I've gone and disabled the really nasty stuff. But i'm left with one real remaining problem.
most programs that have a single icon widget, end up taking up 2 tiles vertically. some 2x1's end up taking up 2x2. Here's some examples:
The task killer icon, and juice plotter should be taking up one tile, and they're taking up two.
The battery status icon is taking up four tiles, and should only take up two.
So how do I address this?
I suppose the next question, is it sane to try to get the vanilla launcher on here? Or should I just wait for a full cyanogen release for it?
View 3 Replies
View Related
May 2, 2009
Does AOP support with in Android sdk. If no, is it possible to use the existing AOP impl. and use them to bulild the application. Does AOP break Andriod applications design in any way.
View 2 Replies
View Related
Sep 9, 2010
I am just learning application development using Android platform. I want to know how if we post something in twitter app will go to twitter..how do they integrate these two ?
View 1 Replies
View Related
Jun 23, 2010
I'm faced to a big issue : I can't add datas to an existing contact I'm developing an application which manage contacts, I can add, delete or edit contacts. The creation is ok, because I create all types of datas (even if they are empty) for the contact (this is NOT a good way, I will change this later). So when I want to edit those datas I can find them to the data base (with Datas.CONTENT_URI) 'cause they already exist ! But if I create a new contact with the ANDROID contact application only the fill fatas are created for a contact. When I try to add new phone number for example with my application I get a error Here is my code to try to add phone number. Code...
View 2 Replies
View Related
May 9, 2009
is that possible or should i just throw away my AVD and create a new one with an SD Card?
View 4 Replies
View Related
Jun 9, 2010
I have an existing SQLite database file from another project.
Where do I include the database file into my Eclipse project to have it deploy with the app.
Do I need to indicate that the database file is writable? (In the iPhone world you need to copy the database file from the app's bundle to a writable folder on the iPhone proper before first use.)
Once I have the database file on the phone, how do I tell SQLiteOpenHelper to use it? (I extend SQLiteOpenHelper in a custom class.
View 1 Replies
View Related
Aug 18, 2009
How do I get (for example) the Android Calendar app into Eclipse so I can modify it and send in patches?
There's a ton of documentation on how to create *new* apps, but so far I've been unable to find any info on how to get *existing* apps into Eclipse. And my own attempts have gone so-so.
A good place for this information would be the developer FAQ for example: http://developer.android.com/guide/appendix/faq/commontasks.html
View 3 Replies
View Related
May 13, 2010
I have already having 2 tables in a database now i want to create a new table in that database it self how can i create?
View 3 Replies
View Related
Jun 18, 2009
I would like to create a user interface which would contain network indication icons (3G, WiFi...) and I would like to use existing graphic elements which are displayed in notification bar.
Does anyone know how to get these existing elements and use it in custom layout?
I guess these icons are all ImageView elements and I am wondering whether it is possible to retrieve them with findViewById() method...
View 2 Replies
View Related
Oct 22, 2011
I am looking to develop a new android application. I want to import already existed application. But i am unable to open it. I opened in this way. New-> project->android-> create project from existing source... I gave the project name and also given the path of the existing project but i am getting an error that " An SDK target must be specified "
View 1 Replies
View Related