Android :: Avoiding Image Compression On Some 3G Networks
Jul 3, 2010
I want to download an image from the 'net and set it as the users background. This works great over wi-fi, and some 3G networks, but others (T-Mobile UK, for sure) seem to compress the images before sending them. This effect is noticeable when using the browser, too - however, if you long press on an image and save it, when viewing in the gallery it is either not compressed at all, or substantially less so. I want to be able to do this in my own app.I assume it has something to do with the HTTP headers, but of the ones I've modified, none has made a difference.
View 2 Replies
Sep 29, 2010
Apparently you can't have a file in "assets" larger than 1MB (except for certain file types) because it's considered too large to uncompress. But I'm finding mixed info about how to circumvent this limitation. Some say that you can put the files in "raw" and avoid the limitation but others say that files in "raw" are compressed too.And there's the -0 aapt option that can be used to turn off compression for certain file types, but there's no way to specify aapt options in Carbide. I realize that I can break the file into pieces, but that's error- prone on both ends.And using one of the known uncompressed file types not only confuses things but also runs the risk that the Android PTB will decide to start compressing that file type.
View 6 Replies
View Related
Jun 20, 2010
So from what I can tell Media.insert Image is locked to heavy compression on all images. This includes when passing in the path to a photo in the filesystem. As a test I used a 3000x2000 pixel jpg which had been previously saved at maximum quality and was ~6MB. After passing the path to Media.insert Image, the resultant copy (still 3000x2000) is 623KB. I passed in another copy of the 3000x2000 image, this one compressed down to 393KB. After Media.insert Image, the image filesize is 492KB. I'm wondering if there's a way to specify the compression when images are saved by insert Image. I'm also wondering why this is recompressing jpgs, rather than simply copying them into DCIM. A side-effect of opening and re-compressing these images is that it imposes a rather low VM cap on what insert Image can handle. I'm getting out-of-memory errors when trying to pass the path of a 10 megapixel image.
View 5 Replies
View Related
Feb 7, 2010
After doing a search around, found nothing on this issue. Love my phone! Its great. The problem I have is possibly a little ahead of its time, but here goes.The resolution of the OLED screen is so good, that whereas historically on smartphones, the automatic image 'de-resolution' by my GSM 3G carrier (in this case T-Mobile) in their efforts to speed up the downloads would not be so noticeable on the phone screen, I can't help but see the opposite is true now.For example, on the BBC News website, as you zoom in to look at an image, you cannot see the detail as T-Mobile is compressing the image too far. But I know the Nexus 1 can handle much better that what is being sent through.The question is simply, is there a work around (historically, through dongles and through a PC, no problem) to allow me to either selectively get the full resolution image, or alternatively, is there a browser that allows me to select images individually for full download so I get the full detail that I want?
View 8 Replies
View Related
Aug 20, 2010
Has anyone noticed viewing photos on mediscape, it doesn't show much detail and sometimes bad compression. But when I view the same image using Justpictures app or other file manager, image look much better. Is this a bug in mediascape or just bad compression method used in mediascape? Will SE solved this issue out?
View 3 Replies
View Related
Sep 12, 2010
Does anyone know how to disable asset compression in eclipse builds? In other words, how to cause the -0 flag to be set on aapt?This is in order to put in a >1MB asset file, which requires compression to be turned off.
View 4 Replies
View Related
Aug 19, 2009
I am trying to save a bitmap in a JPEG format, and i can see that the image is always stored with a lower quality even if i give the compression level as 100, however for PNG it is working fine. Similarly during Media.insert() or getContentResolver().insert() the image is stored with a lesser quality, I can see in that the compression level is 50 in the Media.java, however I tried to create my own method for the same function with quality 100.
View 3 Replies
View Related
Oct 28, 2010
First i want to say im running the Redemptive rEVOlution rom and i dont know if this will work on roms with the incredible framework, i think it might.I installed a zip from Calkulin over on the xda evo forum for a compression fix for mms. If the pic is not over the size limit, it wont be compressed anymore. I have just sent about ten pics in a row ranging from 550kb up to 1.1mb and they all went through without compressing! I take no credit for the mod. All credit goes to calkulin over at xda.I found it very annoying that every pic would get compressed. Glad to find a fix for that. BIG. THANKS TO CALKULIN FOR THIS.Now when it does compress a message thats over the size limit, its still" over" compressing it. My limit is 1.2m and if the file is 1.3, it compress' to 44kb...What the hell? Just have to find out how to fix the over compression issue and im happier then a pig in shit.
View 1 Replies
View Related
Sep 17, 2009
I have the following situation. I have a task with the following activity stack -- A - B - C I have a menu item that allows me to start activity D; so my activity stack looks like this -- A - B - C - D Then I could select a menu item that allows me to start an activity C, which would cause my activity stack to look like this: A - B - C - D - C Then I could go back (via the menu item) to activity D, making my activity stack look like this: A - B - C - D - C - D Doing this a few more times, it would wind up looking like this -- A - B - C - D - C - D - C - D - C - D - C - D - C - D - C - D - C - D - C - D - C - D This seems kinda stupid to me. I'd like it to simply re-use an activity, or pop the activity below to be on top (which goes against the nature of a "stack"). So, what I mean is if I had this activity stack: A - B - C - D And I started activity C (from the menu), I would get: A - B - D - C And if I then started activity D (from the menu), I would get: A - B - C - D Is there a way to do this without keeping some global list of activities and doing gross things to them to reorder them?
View 3 Replies
View Related
Sep 29, 2009
I want to avoid softinput specifically in one activity in a very specific case.
When i *long press "menu" button *softkeypad is coming irrespective of the activity.
How can i avoid this? i have tried "stateAlwaysHidden" etc for that activity. But did it work.
Al other cases ok. Just this case* long press "menu" button*.
View 6 Replies
View Related
May 18, 2010
Since yesterday I got an idea running around my mind but I donīt know first if it would work, and then how "hack" it would be.
People who develop audio processing/recording/playback apps for Android know how hard it is to maintain GC away from our critical paths: playing and recording audio. Processing must be as optimized as possible not only to save battery and use less CPU, but also not to create new objects/allocate new memory spaces ... this all to avoid GC at all cost. Well, we have knowledge and this we can handle (mostly). But what about all the other processing that happens from and for user interaction? Media players display images, some apps display ads, ... and sometimes we have to avoid releasing features to the users just to maintain our critical paths free from GC.
Yesterday I stumbled upon an article about remote services and this led me to a doubt: if they can run as a different process, would a GC call from my activity impact the performance of my remote service? I really donīt know how GC works on the Dalvik so this may be a dumb question. If so, I apologize.
You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
View 4 Replies
View Related
Sep 4, 2010
I have a HTC desire and have my hotmail set up in the standard mail app. i have noticed that some of the mail that lands in the junk mail folder on hotmail itself goes straight into me inbox on my phone. can i avoid this at all?
View 3 Replies
View Related
May 6, 2010
I'm traveling to the Bahamas. Does anyone know if i can you my wifi to avoid charges for instant messenger like yahoo and aim and sending and receiving text messages and which app to download for it?
View 2 Replies
View Related
Aug 17, 2010
When I try to send a photo by MMS the phone compresses the image to 8kb when it can send up to 300kb, obviously the image quality is rubbish then.
View 1 Replies
View Related
Jun 30, 2010
Does anyone know how to reduce the photo compression the evo applies when sending a picturemail/mms?I use it rarely, but I had to send a photo someone and my evo auto-compressed it to like 18kb - which is a bit excessive since it destroyed the relevant details in the photo. I ended up just emailing the thing but was wondering if there was something I missed here.
View 5 Replies
View Related
Jan 31, 2013
What is the best compression level for APK??
and what are the advantages and disadvantages of it?
View 2 Replies
View Related
Apr 10, 2010
I just read the article 'Avoiding memory leaks' in android blog written by Romain Guy. http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.
View 4 Replies
View Related
Apr 6, 2010
When I start my application initially, I get a black screen which stays for a few seconds before my main activity starts. In case of iphone an image with name default is displayed for that split second. I am not sure how to do the same in android. I tried as below in vain
<activity android:name=".Index" android:label="@string/app_name"
android:screenOrientation="portrait" android:theme="@drawable/defaultimage">
<intent-filter> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </activity>
View 1 Replies
View Related
Jun 22, 2010
I need to use some open source code with GPL3. As usual I don't want to open source code for full application.
Now what I understand is if I make two separate process one with my main application code and other as a service or something with Open source library then in that case I have to open source code only for the other one.
Now the question is what is the best way to do so in Android. Suppose My Main App is A Open Source code is B. So A will give some data to B. B will process this and sends data back to A. B may not need to have any UI.
1. Is it possible to install 2 seperate applications / processes from one APK? 2. What is the best way ?Should B be a service? How will be the communication between A and B ? 3. Is it possible to run/call B from A?
View 22 Replies
View Related
Dec 28, 2009
On Android 1.5, using the Allocation Tracker I see that every time I call TextView.setText() with a StringBuilder as first argument, a String gets allocated from the following call stack (first line is last call):
java.lang.AbstractStringBuilder toString java.lang.StringBuilder toString android.text.TextUtils stringOrSpannedString android.widget.TextView setText
I tried specifying the buffer type with setText(strBuilder, TextView.BufferType.NORMAL) but it doesn't change anything.
Is there a way to avoid this allocation?
View 2 Replies
View Related
Jun 8, 2010
I've read this in a few articles, that one should avoid floating point operations within the physics update of a game.
But how do you really achieve this? Surely all half decent games are going to involve this kind of maths?
Does it mean, convert all your variables to int, or use double instead, or simply just cut it out as much as possible?
View 9 Replies
View Related
Dec 28, 2009
I'm drawing a rect to a surfaceview. Nothing special, just a test like this, in the surfaceview-extended class:
private int mPosX = 0; private Paint mPaint = new Paint(); Code...
the rect just bounces around the screen. I'm watching DDMS, I still see the garbage collector being called, even with this simple draw loop. There is no other application code being executed.
I'm wondering if it's realistic to expect the gc to not be called at all if we take care to not allocate any objects during our draw loops. I'm trying to extend this example to do some smooth animations, but every once in awhile the gc is called and you can see the drawing stutter. Although none of my application code is allocating any new objects, I don't know what the underlying API is doing inside surfaceview etc, and I doubt we can control that. Just wondering if this is not possible, I'd prefer to abandon this game idea up-front if we can't guarantee smooth animation.
View 5 Replies
View Related
Jun 14, 2010
anyone know how to change the compression of the picture mail? It takes an 8 megapixel picture and reduces it down to 17 kb.
View 17 Replies
View Related
Mar 11, 2014
I tried to configure compression method to use LZMA in make menuconfig to compile a custom kernel. When I compile it I get errors regarding to compile zImage which is probably due to missing drivers for LZMA compression. I'm using Fedora 20 64 bit and have java jdk 7. How do I add patches into my kernel source to have LZMA compression?
How to add LZMA compression in Ubuntu:
View 1 Replies
View Related
Feb 26, 2012
I spent the last hour trying to figure out "store" conpression in ubuntu and still cant figure it out.
There is no option in config editer/roller/general like I seen every where.
How to set "store" compression level in ubuntu?
View 2 Replies
View Related
Jul 20, 2011
I recently heard of something about internet data compression app. There's one called Onavo. This is now only for iphones. How's it performance as far as saving our data usage?
View 1 Replies
View Related
Jul 5, 2010
I have Gmail set up on my Nexus One (personal email). I also have Microsoft exchange setup (work email) and both work fine. The problem is that under my contacts there are duplicate entries both for Gmail and Microsoft exchange. That is causing some problems with my SMS app (duplicate contacts) and wanted to see how I could avoid syncing Microsoft exchange and delete it from my contact but still keep it on my phone. I have already unchecked the box to not sync my contacts but did that after adding it.
View 3 Replies
View Related
Feb 24, 2010
I am currently showing a notification. When the user clicks this noticiation, the application is started. The notification persists, to indicate that the service is running in the background.
CODE:..............
However, I have detected a case where a bug appears. If the user starts the application through clicking the normal icon, and while the activity is running clicks the notification, then a new activity is started without the earlier one exiting, the later being on top of the earlier. And that is not all: Further clicks on the notification will create additional activities and place them on top of those already running. How can I prevent this? Is there a nice check to do to see if a certain activity is currently being shown or is loaded?
View 1 Replies
View Related
Nov 17, 2010
I have to manage several Bitmap in a ListView where each row is composed by one thumbnail and one textview. This ListView can be very long, over 500 rows...
There are two problems I have to solve:
1) it is better if I cache all the bitmaps, maybe using SoftReferences in a HashMap. I've tried this way, but I noticed a strange behavior with the SoftReferences. It seems that the GC clean them too fast. Why?
2) In order to implement the cache correctly I'd also like to understand which is the best practice you suggest me to realize a "image lazy loading". For example... I'm thinking to load all the data for first and then to load only the thumbnails, but only those really visible on the device screen at the and of the scroll action.
View 4 Replies
View Related
Aug 25, 2010
I have some images in my drawable folder and they have landscape versions in drawable-land. However I want some of the landscape images to be shared, as it seems a waste to duplicate the file with a different name. Is it possible to make a sym link (shortcut) or something for one of the duplicated files to prevent wasting space
Folder explanation below as I'm not great at explaining myself:
/drawable
> image1.png
> image2.png
/drawable-land
>image1.png <-- This image
>image2.png <-- is identical to this file
View 1 Replies
View Related