Android :: Scrolling Large Image - Working Good But Slow
Nov 12, 2009
For a project, I'm displaying an image with sizes 800 x 600 and I've implemented my custom scrolling (horizontal and vertical) - which is works fine. However, my problem is that it's not fast enough. If you continuously move your finger on screen for instance, scrolling is not responding fast enough. There is a lag and you need to wait (say 400-500ms) for new scrolled image to be loaded. Now below I described how I implemented scrolling and my question is that
- How can I make it faster, if possible - Is there any other better way to implement this.
My custom scrolling solution:
* I have a Main activity, SurfaceView and a thread
* In main activity, I'm using GestureDetector and override onScroll method.
* In onScroll method of activity, I'm passing values to SurfaceView's "handleScrolling" method.
* In "handleScrolling" method, I'm calculating proper values and using "newImage = Bitmap.createBitmap(myImage, starX, stopY, SCREEN_WIDTH, SCREEN_HEIGHT)"; to create a new, "scrolled" image.
* Then in thread loop, I'm drawing this "newImage" to canvas.
View 5 Replies
Jun 27, 2010
I have a ListView with a scrolling issue. The Array contain a large number of items. When I try to scroll down, the listview displays the first items again. For example, if the initial view shows 12 items and I scroll down to view the next three, instead of showing 4 through 15, if shows 4 through 12 followed by 1, 2, and three. Debugging the Adapter reports that getView return 4 through 15 just as I would expect.
View 3 Replies
View Related
Jun 30, 2009
I have a large(ish) database - around 30MB, created offline with 400,000 rows. Doing a simple select (name LIKE pattern%) and then showing the query in a listview takes about 10 seconds. I tried indexing that field but no difference. If this is normal I will just use a raw data file and do a binary search myself. If this is not normal I hope someone has a hint or two to what might be wrong.
View 15 Replies
View Related
Dec 9, 2009
The new update has give me some scrolling lag on certain large websites such as. Ign.com androidforums.com and doubletwist.com Someone please check And confirm this. How can we fix this?
View 8 Replies
View Related
Mar 11, 2009
Sometimes when I try to scroll using a scrollview (wrapped around a textview), there will be no response. I've noticed this in both my apps and the only common thing between them is the textview in both apps use Spanned (SpanableStringBuilder to be exact) text. This happens even when there is no activity on the window and no any pops up either.
View 7 Replies
View Related
Oct 12, 2010
I am having a customized list view in my application, which is showing an image and text.
The Image I am getting from URL, using the code below:
CODE:..............
All is working perfect, except the list view scrolling, its very slow. If I disable the images, the scroll speed smooth-ens , but with the image enabled, it lags alot.
Is there any possible way I can reduce or remove this lagging?
View 2 Replies
View Related
Sep 15, 2010
I'd like to test an application on a variety of screen configurations so I know that it'll work (and the layouts will look right) on tablets and other oddly sized devices.
View 2 Replies
View Related
Aug 11, 2010
I have no idea, but my app is stalling sometimes completely (not responding to touching the screen) I thought I was following all the rules for threading, but my app is apparently slowing down the Sprint EVO! I have never used an app as slow as my own. I don't get an ANR dialog, though I think I probably should get getting one. I have no idea how to make this application run like every other app I've ever used -- Not freezing. Is it not a good idea to have one HttpClient and keep a static reference to it for all Activities that want to use it? I used to create a new one each time, and thought that changing it to one sped it up. None of my AsyncTasks ever end. If I go to Activity A -> B -> C -> D the first time it will be smooth. I can press back but when I get back to A, its completely frozen, not responding to anything. That when I took that screenshot. I really have no clue what I am doing wrong. Should I manually kill my AsyncTasks on Activity.onPause()?
View 1 Replies
View Related
Sep 2, 2010
I updated to Froyo with the RUU from xda and immediately noticed slow and laggy scrolling on web pages. I noticed that although I did have flash 10.1, the version number was 10.1.72.? I found a version 10.1.92.8 on the droid life forums, updated to this version and the slow scrolling is gone.
View 49 Replies
View Related
May 1, 2010
I'm using the stock Android 2.1 gallery to view images. I have a large JPG image (approx 7000x7000 pixels) of bicycle route map for my city. I tried zooming and scrolling with the gallery image viewer, but it cannot zoom in close enough to read the map detail.
Is there a better image viewer app out there that is good for zooming and scrolling large JPG images?
I would like to use Google maps, but the bicycle route mode still does not work in the Android app.
View 2 Replies
View Related
Jun 10, 2010
Does anyone else suffer from slow scrolling? For instance on the list of applications and on a large message thread the scrolling is very laggy and jerky. Surely this shouldn't happen with it's 1Ghz processor?
View 5 Replies
View Related
Sep 24, 2010
Have any if of you guys been experiencing this kind of slow laggy delayed scrolling while on internet? I am running launcher pro and started noticing this effect after getting the 2.2 froyo update. 2.2 doesn't seem to impressive. Other than the flash capability. I could careless for it.
View 1 Replies
View Related
Sep 2, 2010
Anybody else experiencing this? The lag is horrible.
View 15 Replies
View Related
Nov 24, 2010
If there is a image on my phone that I want to send up to a server thats 1mb or higher I want to take that image and shrink it to a smaller size without messing with original image in anyway. I know how to get a from the phone and I also know how to send it up to a server, I just need to know how to make the image smaller because large files higher than 1mb are giving me issues.
View 1 Replies
View Related
Nov 16, 2010
I just want to break a large image into some equal parts like 4, 6 or 8.
can we do it?
actually i want to store every parts of image as a separate image in my
drawable folder for future use.
View 1 Replies
View Related
Jul 31, 2010
I have to load the view in webview by executing its url,and the two relative layouts there in Linearlayout i hide one at the time showing url in webview,it have scroll on both vertical and horizontal,the problem i'm facing here is it
only scrolls horizontally only but i need to view it also in vertical also. Code...
View 1 Replies
View Related
Mar 12, 2010
I have a class that extends View. I override the onDraw method and allow the user to draw on the screen. I am at the point where I want to save this view as an image. I Can use buildDrawingCache and getDrawingCache to create a bitmap that I can write to the SD card. However, the image is not good quality at a large size, it has jagged edges. Since I have a View and I use Paths I can transform all by drawing to a bigger size. I just don't know how to make the Canvas bigger so when I call getDrawingCache it doesn't crop all the paths I am just transformed. What is happening is I transform all my paths but when I write the Bitmap to file I am only getting the "viewport" of the actual screen size. I want something much bigger.
View 1 Replies
View Related
Oct 14, 2010
I wish to make a scrolling interface. The screen is populated with images in the left one fourth and corresponding text for an image in the remaining three fourth. There will be n number of image-text on the screen and hence should be scrollable. Also image-text when clicked takes you to a new screen. I seem to be stuck and cant think about which layout should I choose. I am a beginner in Android Developing.
View 2 Replies
View Related
Oct 8, 2010
It seems like the best way to create a horizontal scrolling list of images is to use the Gallery widget. I need to display sidebar text with each image.The examples I have seen showing how to use the Gallery widget only show images. Is it possible to display a list of images+text descriptions in a Gallery, and if it is, does anyone have an example of how to do this?
View 4 Replies
View Related
Nov 3, 2010
I have an Android app that has both CursorAdapter based ListViews (backed by sqlite) as well as custom BaseAdapter based ListViews which are built on the fly from JSON pulled down from a server.
The data displayed in both is identical - an image and a couple of TextViews. My Cursor-based ListView has 3000 rows, the JSON-based ListView has about 30. However, scrolling down the list is significantly faster for the Cursor-based adapter. For the JSON-based lists, the data is all fetched before the rows are made visible. Images for both types of lists are downloaded on-demand.
I have both ListViews configured identically - both with fastScrollEnabled, scrollingCache and smoothScrollbar set to true.
I'm looking for leads on how to go about trying to figure out what's going on here and to potentially fix it so that the JSON-based ListViews as as fast as the Cursor-based ones.
View 1 Replies
View Related
Jul 28, 2010
My current Incredible was rebooting 5-10 times a day randomly and when I am at work my average data speed is about 90kbps. This is with a -50dbm signal. So my signal is fine but for some reason the data speeds are terrible. At home with roughly the same signal my speeds are what they should be around 900kbps. I wiped it and the reboots haven't happened again yet but the data speeds are the same.
Is it possible for the data to be painfully slow even though the signal is good? I received a refurb today and am hesitant to switch to it because I am just weird and don't like owning previously owned things. But if the data should be fast everywhere I will give in and use the refurb. I just don't want to see my original Incredible go.
View 2 Replies
View Related
May 31, 2010
Anyone else having issues with a slow internet connection on o2? Also when i try to watch a vid on the bbc i player app im getting a msg saying that im connected via edge or gprs and i need to view via wifi or 3g. Im in a 3g area as the people beside me in work can get a good 3g signal via O2 also.
View 20 Replies
View Related
Dec 20, 2012
before too charge my galaxy note 2 takes just 2 and half hours, but yesterday I changed to new charger cable that is longer and maybe the material made its now good, the phone took 5 hour to charge, now I want to know charging phone very slow is good for the battery life?
GT-N7100
View 3 Replies
View Related
Feb 17, 2010
I am working on displaying an image and placing an icon on top of it... clicking the icon will show an enlarged version of the image...
though putting the imageview holding the image in a LinearLayout scales the image to the width of the dialog, the problem is that i need to display the image in a dialog but the image is very high resolution and hence is far bigger than the width of the dialog...
I need to show the actual image with scrolling for both ways to see the whole image... But whenever i try putting the imageView in a scrollview the top of my imageview is blank... and again though image scrolls downwards the width is scaled to the width of the dialog...
View 2 Replies
View Related
Sep 20, 2010
I'm new to Android and I want to make an image gallery where each column is a category, and users can scroll both vertically and horizontally. I found a useful post about how to display list of images here. I'm wondering if it's possible to nest lists of image inside of a gallery view?
View 1 Replies
View Related
Jul 22, 2010
I'm developing an image editor for Android. When I do some operations with small pictures (600x600 - 1024x768), the program work well. But when I do some operations with big pictures, I always obtain an OutOfMemory Error. I read read many post trying to have the image in memory. Also I looked at the Android's Gallery, trying to simulate the effect of loading the image with lower quality and get the complete quality after a while. But I doesn't get to work with large images.
I thought of using the parameter inSampleSize but I raised the problem of having to perform operations on the image and save it with the original size, so it no longer serves me. The only thing I've done is use the parameter inJustDecodeBounds and display an error to the user if the image exceeds the available memory.
Is there any possibility of working with large images with no memory problems? I need urgent help.
View 19 Replies
View Related
Jul 25, 2012
I have an image which has a dimension of about 1200x800.. Now I would like to display it in an ImageView in such a way that the image would not scale down to fit the screen of the device but instead it will allow me to scroll (both horizontally and vertically) to view the other parts of the image. Basically just like in the google's MapView. Is this possible with ImageView or should I use other methods?
View 1 Replies
View Related
Aug 24, 2010
Has anyone noticed this? I notice that images become pixelated and their quality gets worse when scrolling. It happens in several areas, so I don't think it is an application issue. I see it in the native browser, Dolphin, even widgets on the home screen. See samples below. Anyone notice this? On the home screen, notice the shading around the numbers, the weather icon, and then the Google text in the search bar. On the browser, look at the pixelation on the main image when scrolling. Code...
View 11 Replies
View Related
Oct 4, 2010
With imageview and network-thread,i am making live cam-view ,bitmap size is "360 240", after parsing network-data to bitmap. Code...
All thing is good ,i can see live-cam but, to fit image in screen like " Bitmap.createScaledBitmap(orgBitmap, width, height / 2 , true)" Seeing bitmap is getting slow , the bigger bitmap is , the more speed down finally, shut-downed.
how to fit image in screen without pain?
View 2 Replies
View Related
Oct 23, 2009
I want make it support multiple screens(small,normal and large).I am 100% sure the all of layouts are working perfectly now, but large screen,the problem is that all XML files of layouts in layout-large can't load,The platform always load default XML file(these are under layout folder) at large screen environment.
View 4 Replies
View Related