HTC EVO 4G :: Sync Application That Compress Images?
Oct 20, 2010Does HTC sync compress images when syncing to the phone? Is there any sync applications / programs that compress?
View 5 RepliesDoes HTC sync compress images when syncing to the phone? Is there any sync applications / programs that compress?
View 5 RepliesI have some binary data (pixel values) in a int[] (or a byte[] if you prefer) that I want to write to disk in an Android app. I only want to use a small amount of processing time but want as much compression as I can for this. What are my options?In many cases the array will contain lots of consecutive zeros so something simple and fast like RLE compression would probably work well. I can't see any Android API functions for this though. If I have to loop over the array in Java, this will be very slow as there is no JIT on most Android devices. I could use the NDK but I'd rather avoid this if I can.
View 4 Replies View RelatedI am porting a Python application to Android and, at some point, this application has to communicate with a Web Service, sending it compressed data. In order to do that it uses the next method:
def stuff(self, data): "Convert into UTF-8 and compress."
return zlib.compress(simplejson.dumps(data))
I am using the next method to try to emulate this behavior in Android:
private String compressString(String stringToCompress) { Log.i(TAG, "Compressing String " + stringToCompress);
byte[] input = stringToCompress.getBytes();
// Create the compressor with highest level of compression Deflater compressor = new Deflater();
//compressor.setLevel(Deflater.BEST_COMPRESSION);
// Give the compressor the data to compress compressor.setInput(input); compressor.finish();
// Create an expandable byte array to hold the compressed data.
// You cannot use an array that's the same size as the orginal because
// there is no guarantee that the compressed data will be smaller than
// the uncompressed data.
ByteArrayOutputStream bos = new ByteArrayOutputStream(input.length);
// Compress the data byte[] buf = new byte[1024];
while (!compressor.finished()) { int count = compressor.deflate(buf);
bos.write(buf, 0, count); } try { bos.close();
} catch (IOException e) { } // Get the compressed data byte[] compressedData = bos.toByteArray();
Log.i(TAG, "Finished to compress string " + stringToCompress);
return new String(compressedData);
}
But the HTTP response from the server is not correct and I guess it is because the result of the compression in Java is not the same as the one in Python. I ran a little test compressing "a" both with zlib.compress and deflate.
Python, zlib.compress() -> x%9CSJT%02%00%01M%00%A6
Android, Deflater.deflate -> H%EF%BF%BDK%04%00%00b%00b
How should I compress the data in Android to obtain the same value of zlib.compress() in Python?
I'm looking for some apps which can let me compress the data because my ISP provides unlimited 3G although the speed drops to 15kilobytes/s (not to be confused with kilobits) after 500MB of usage. Is it possible that i can compress the data usage with an app so that it takes longer for me to use 500MB.
Also i mostly listen to music videos on youtube as i'm driving around so are there any other alternative apps which allow me to listen to music but can run on a speed of 15kB/s?
I have 2 questions.
Is there a way that to compress pictures for mms? When I had the Samsung moment it did it automatically.
2 I can't view some of my mms messages? It says download but it gives me an error.
If I am going through my calendar day by day it shows me from about 8am to 5pm. If there's anything before 8am or after 5pm, I don't see it without scrolling. On my old Treo, it would get rid of some of the unallocated hours between 8am to 5pm to ensure other events fit on the screen. Anyway to do this within the Calendar? I'm using Agenda in the meantime but would really like to see just the day's events for whatever day I'm looking at.
View 3 Replies View RelatedI think I need a step by step. So I ripped Avatar from a dvd using dvdfab. I chose main movie and Dvd9. This gave me a 7 gig file. I used handbrake to convert to mp4 at 480 x 272 or something on ipod legacy setting. When I put that file on the phone, it is 2 gigs. Does that seem too big? How can I compress this without a huge loss in quality? It plays perfect right now.
View 15 Replies View RelatedI know the best way to get more space in my phone is to get a bigger sd card...but i was wondering is there a way to compress all the data in the phone and on the sd card, i would like to compress everything i have and not get rid of anything.....i dont have much on my phone at all and every now and then i get a notification that im running low on disk space so i have to go threw and delete things and move things to the sd card even though i have the phone set to install to sd card...
i have a rooted samsung admire.
I'm just looking for some insight into what would be the best way for me to store images as part of my app. I have an activity that represents a 'Job' which has a couple of edittext's and underneath was planning on using the Gallery component to show images relevant to this job. The job data is stored in a database (on the sdcard) so was also thinking of creating a table to store 'JobImages' and having each image stored as a byte array.
But I'm not sure if it would be better to store the images directly on sdcard under a folder structure specific to my application and the job. E.g. using the job ID number as a folder name. Depending on which method I use will greatly determine the code that goes into an 'adapter' that allows me to bind to the gallery component so before I begin I was wondering if anyone has had the same design problem and what option they chose.
In my application I want to display my own ads for that I want to display my ads in image and it should be animated. So how to display animated images
View 3 Replies View RelatedHow do i load a local image from android assets from a generated (php) server-side html file?
eg.
>
img src="file:///android_asset/calendar-date-icon.png">
-or-
background:#ffffff url(file:///android_asset/calendar-date-icon.png)no-repeat;
cannot get either to work
I want to display the images in my Application added to my "raw" folder of the Ecllipse as it gets started.
How do I add those particular images to an Array and rotate the loop untill all the Images are displayed?
My project contains three drawable's folders: drawable-hdpi, drawable-mdpi and drawable. I build it with android:minSdkVersion="3". When it runs on Andriod 1.6 or higher it always uses images from drawable-mdpi on high density screens.
How to fix this?
In my application i want to upload the image.for that i have to get images from gallery in android device.can pl send me that code get images from android device gallery
View 1 Replies View RelatedHow to upload images from sd card to Facebook on android application...
View 1 Replies View RelatedIs there any way for us to store remote image in apk resource folder. I developed one application for showing list of images.user have interaction with the images. Now I done this by place image before packaging. Now I want to supply image from remote server. Which way is better and how to do?
View 2 Replies View RelatedI am a android developer, I stuck into a problem, how to read really big images with Android API, I am wondering how native Gallery (Camera application) is reading bigger images so fast. can any Android Engineer here direct me to the piece of code that android engineer used to draw bigger images.
View 3 Replies View RelatedHere is the problem, I am building an application and have multiple images that need to switch when the user touches the screen, doesn't matter where the users touches. The press the screen and the images switch randomly. I purchased the ebook "Professional Android Application Development" and have torn though it. I am stumped. I'm thoroughly confused at this point. Any ideas on where I can go or how I can accomplish this?
View 11 Replies View RelatedI'm basically using the same method of loading bitmaps in OpenGL that the SpriteMethodTest example uses and have been unable to get rid of an annoying outline that appears around all of my images.
For example, If I were to load an image of a white circle on a white background, I would expect to see nothing. Instead, I would see my circle because its edge would be gray. In SpriteMethodTest, I replaced the background image with white and was able to see that the edges of the android images flying around also don't seem to be rendered correctly.
Does anyone know how to load images in OpenGL without having a thin outline appear around the images?
I'm working to convert some background images to nine patch so they scale better on different phones.
The problem is that if I have the following resource structure: drawable-hdpi/background.png drawable-hdpi/button.png drawable-mdpi/background.png drawable-mdpi/button.png drawable-ldpi/background.png drawable-ldpi/button.png and then I drop a new drawable-hdpi/background.9.png file into the mix, it breaks button.png during the pre-compile. The error is "No resource found that matches the given name (at 'background' with value '@drawable/button').Simply removing that one nine patch file fixes the build. Should I be able to have some nine patch images and some normal ones, or to have nine patch only in hdpi but not mdpi or ldpi? This is Eclipse 3.5.1 with the latest ADT.
Just curious how many have this issue.If you are unsure select the link below and find out pls.
View 30 Replies View Relatedi want to display images on android screen.and the images should be scrolled in vertical way.how should i do the coding?
View 1 Replies View Relatedi have been trying to find an app that i can sync with my pc so i can copy and paste and add notes to the phone instead of manually typing them.
View 8 Replies View RelatedI got my DHD today and it's great. This is my first smartphone too. I am trying to install my first app but i have to use htc sync. The software provided is for windows but I use mac.
View 8 Replies View RelatedCan your Sprint HTC Hero contacts events on your PC with your phone? If not, do you want to let your HTC Hero do that? You need to download HTC Sync and then upgrade your phone. Let�s see what HTC Sync can do:
Where to Download HTC Sync Application | Sprint Cellphone Blog
I know the tabs have only been out for a short time, but has anyone seen an app for sync between an Android phone to the Tab? I would love the ability to have my phone in the other room and have my tab ring or show me I have an incoming/missed call or waiting text, on my phone. Even better would be the ability to read that text and respond via my tablet.
View 2 Replies View Relatedi was using doubletwist but half of my songs show up as unknown artist. is there any other good app for this
View 8 Replies View RelatedI never buy music online. I have a large Itunes library which I use with my Ipod-built from ripping over 200 cd's. Is there a program that I can add to my Moment that will sync it with my Itunes?
View 11 Replies View RelatedI've not found an answer yet which does exactly what my current software (MobSync) does with my Windows Mobile device. What I want to do is auto-sync a podcasts folder, and its subfolders, from my PC over to my new HTC Desire-Z via Wi-Fi. I've found a few programs that appear to be able do this task fine, but I'm not sure which of them can do a full sync, i.e. including echoing deletes back to the PC.
What I need is for the software to periodically copy any new podcasts found in the PC folder over to the phone (OK, that bit is easy). However when I've listened to the podcast and deleted it from the phone's folder, I want the sync software to neatly delete the same file from the PC too.
I had thought that appbrain is more or less of a mirror of market. How come sometimes I got into appbrain and sync and it shows me no updates, but they I go into the market and it does show updates for some apps?
View 3 Replies View Related