Android :: PNG Optimization On Packaging Process

Oct 28, 2009

I've noticed that the PNGs of my application with some gradients effects looked terribly bad at the device (a Samsung Galaxy) and at the emulator, and I've found the following note at the documentation (http://developer.android.com/guide/topics/graphics/2d- graphics.html):

Image resources placed in res/drawable/ may be automatically optimized with lossless image compression by the aapt tool. For example, a true-color PNG that does not require more than 256 colors may be converted to an 8-bit PNG with a color palette. This will result in an image of equal quality but which requires less memory. So be aware that the image binaries placed in this directory can change during the build. If you plan on reading an image as a bit stream in order to convert it to a bitmap, put your images in the res/raw/ folder instead, where they will not be optimized."

I've tried the res/raw suggestion, but it didn't worked.

I've tried to use the image as JPEG as a workaround, but I couldn't use 9-patch.

I've uploaded a comparison between the original png and the "optimized" png that is shown on the emulator or devices: [url]

One workaround would be put the images at /assets/ and manually load and set the image on the ImageViews, but it requires a lot of code changes.

Android :: PNG optimization on packaging process


Android :: Packaging SQLite DB With My Application?

Sep 8, 2010

I have created a SQLite database on my PC. I have imported it into my assets folder in the project directory. How do I access it from my Android application?

View 1 Replies View Related

Android :: Packaging SQLite DB For Deployment?

Jul 10, 2009

I have an SQLite DB file. I wish to include the sqlite file with my apk. How do i do that?

View 4 Replies View Related

Android :: Res PNG Filesize Inflated Upon Packaging?

May 3, 2009

I've got ~200 png files in the /res/drawable folder, mostly interface and sprite sheet stuff. They're all indexed pngs, and weigh in at a grand total of a bit over 400kb.

When I run aapt to package them into the apk, their filesize nearly doubles. Opening the apk up with 7zip and extracting the drawables confirms it: 790kb.

Does anyone have any idea why this would be happening? I thought the packaging process was meant to compress the pngs, not inflate them!

View 4 Replies View Related

Android : Screen Optimization In Droid?

Jun 30, 2010

I want to do screen optimization. That means once I develop the UI in android it should fit exactly the same in all android enabled phones. So how do i do it?

View 1 Replies View Related

General :: Android Kernel Optimization

May 8, 2013

What sections of kernel code are changed for optimization of performance.

Like we can change
1) the minimum free memory that android need to keep free.
2) Rate of clearing cache
3)Advanced LMK- where we can kill more than one process at at time when memory scarcity occurs.
4) Reducing logging.
5) In framework we can change the oom_adj value of important processes.
6) Implement Zram for kernel.
7) change the minimum and maximum no of process for AMS.

I want to know all the changes that can be made into kernel or framework code to optimize performance. I also want to know how can we implement swapcache for android kernel. What changes do i need to make in the code.

View 2 Replies View Related

Android :: Optimization Accessing Fields Vs Methods

Nov 1, 2010

I know rule #1 of optimization is: don't do it! But I figured this was an easy question, and if I start using the faster method now I can save a lot of cpu time when I'm finished.Now, the answer to my question may be "there's no difference" and that's fine with me. I just want to know.

View 4 Replies View Related

Android :: Open Home Memory Optimization

Nov 11, 2009

Any idea? It doesn't seem to close apps like TaskKiller or TaskPanel. So what is it doing?

View 4 Replies View Related

Android :: Packaging Hidden Asset Files

Jun 9, 2010

I'm placing the file '.nomedia' into a folder in order to avoid Android's MediaScanner from detecting the media files in the folder. I need to copy this folder (including '.nomedia') from the APK's assets to the SD card (so other apps can make use of these media files, etc.). When I package the APK in Eclipse, it doesn't package the '.nomedia' file. Presumably it's detecting it as a hidden file. Any ideas how to fix this? Is there a secret aapt flag I can use? I'd like to avoid copying the folder and then manually creating a '.nomedia' folder, if possible.

View 1 Replies View Related

Android :: Long ListView Optimization / Usability

Nov 17, 2010

I have a long list to display in a listview. Let's say 200 items. This is a long list, but i can't reduce it. Now my list is slow and is not convenient for the user.I need something like a paging system: at the beginning I load 25 items. When the user reach the end I show a button, or something like it, to load other 25 items. An Iphone style solution.Is there a better way? Or what is the best solution?

View 1 Replies View Related

Android :: Want Sql Optimization Techniques For Databases Has Nearly 80,000 Records

Jul 14, 2009

I want to know optimization techniques for databases that has nearly 80,000 records,
list of possibilities for optimizing

i am using for my mobile project in android platform
i use sqlite,i takes lot of time to retreive the data.

View 9 Replies View Related

Android :: Software Packaging / How To Create Installer (apk)?

Aug 21, 2009

In Windows, we write "installer script", and user an "installer compiler" to generate an installer, let's say .inf for .msi/.cab and .nsi for NSIS.

But when it comes to Android, is there a similar method?

View 2 Replies View Related

Android :: Packaging Multiple Items In An APK Or Widgets?

Apr 12, 2010

If I create an application for Android, how do you package extra items in with it like a live wallpaper or widgets? For example, google maps does this by including a live wallpaper with the download of the latest version.

On a related note, with google maps, it's available for, I believe, 1.6 and up, but it seems that it is all the same download. So how do you ensure that, even though there may be a 2.x only feature included, it still shows up for lower OS phones? Or is the marketplace maybe actually holding onto two separate APKs for each OS?

View 1 Replies View Related

Android :: DDMS Not Listing Process - Via Command Line To Attach Process To Debug

May 21, 2010

Sometimes the DDMS in the Eclipse not listing the process.

To do the debug in this condition,

1) Is their any way force the DDMS to list the process?

2) Any command to attach the process from the command line?

View 2 Replies View Related

Android :: Eclipse Error Packaging With Unknown Location

May 19, 2010

I am getting an error in my Problems tab for my Android Project in Eclipse. The error is "Android Packaging Problem" with an Unknown location. Unknown Error NullPointerException

I cannot determine what this problem is. My project was working a few hours ago. The only change I made was to add a public interface ITrackDao to my project and implement it. There are no errors associated with this. I am not even sure where to begin to look. I cannot launch the application.

View 7 Replies View Related

Android : Java.lang.NullPointerException - No Phone Packaging

Oct 20, 2010

I'm getting this crazy error on multiple projects, even when I revert back to prior versions that compiled just fine. Unknown Error - java.lang.NullPointerException Android Packaging Problem Path is blank Location is Unknown. 1 - Project -> Clean -> All 2 - Deleting .metadata folder 3 - reimporting projects into the eclipse 4 - reverting my projects back to prior working versions using git. I just can't get anything to compile now, and I've searched for solutions here and on eclipse forums.

View 3 Replies View Related

Android :: Remote Service Process Persists - I.e. Won't Disappear From Process Table

Feb 21, 2009

At a certain point in my program, when I'm completely done with my service, my activity executes unbindService() and stopService() -- yet the process persists. I can tell that it persists because I run "ps" in "adb -e shell":

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

"adb logcat", I can show you the sequence of events:

ACTIVITY: context.unbindService(serviceConnection);

SERVICE: onUnbind();

ACTIVITY: stopService(serviceIntent); & returns true!

SERVICE: onDestroy();

First, my activity calls unbindService(serviceConnection). According to the documentation, unbindService() will "Disconnect from an application service. You will no longer receive calls as the service is restarted, and the service is now allowed to stop at any time." So that is fine, and it is happening.

Appropriately, we see the onUnbind() call happen on the service side. According to the documentation, onUnbind() is called when "all clients have disconnected from a particular interface published by the service." So this confirms the correct service connection is being passed, and that the service is responding accordingly.

Next, my activity calls stopService(serviceIntent), and returns true. According to the documentation, stopService() does the following: "If there is a service matching the given Intent that is already running, then it is stopped and true is returned; else false is returned." Again, this is happening and returning true.

In response, the service's onDestroy() method is called. According to the documentation, onDestroy() is "Called by the system to notify a Service that it is no longer used and is being removed. The service should clean up any resources it holds (threads, registered receivers, etc) at this point. Upon return, there will be no more calls in to this Service object and it is effectively dead."

At this point I expect the process to disappear from the process table. Yet it remains indefinitely. But why?

Also, the process is so persistent that I can bind to it again, and I see that it is the same exact process responding because the PID (process ID) is the same!

View 4 Replies View Related

LG Ally :: Process' Won't Open - Pop-up - The Process Com.android Phone Has Stopped Unexpectedly

Nov 24, 2010

So, I decided to give Tridents ROM a try about 10-minutes ago.

I used ROM Manager, backed-up my old ROM, then downloaded Velocity 0.2.

Now, my phone will do nothing, it turns on and shows the red Droid eye, then when it's time to go to the home screen I get pop-up after pop-up saying that "The process com.android.phone has stopped unexpectedly. Please try again."

I have no way of getting on my phone at all, what can I do?

View 11 Replies View Related

Motorola Droid :: Update App - Message Process Android Media Process Stopped Unexpectedly

Nov 12, 2010

I Just installed a new theme (Live Wire) for my Lithium Mod Rom. Don't know if there is a connection, but when I need to update an app, I get the message something like "process android media process stopped unexpectedly" and it will not allow the update. Everything else works well. I have turned it off for awhile, and have done a battery pull.

View 1 Replies View Related

HTC Droid Eris :: Error Pops Up Sorry The Process Android.process.acore Has Stopped Unexpectdly

May 11, 2010

Every 5 minutes this error pops up "Sorry! the process android.process.acore has stopped unexpectdly. please try again." It doesnt actually close anything. It pops up even when im not in an app. So it's more annoying than anything.

View 3 Replies View Related

Android :: Optimization Proposals For ListView With Data From Multiple Tables

Aug 18, 2010

I just encountered the following situation. I have an Android app with a scenario which I guess may happen in multiple apps. It's about tagging/labeling/categorizing, call it as you want.After CommonsWare's feedback here a bit of a clarification. I'm weird about doing the second query to the DB inside the CursorAdapter, basically this would result in one query per row and I fear this will heavily impact my performance (I've still to test it on a real device with a substantial amount of data to see how much this impacts).My question therefore is on whether there are some strategies on how to avoid this given my data model or whether I have to basically "live" with that :)

View 2 Replies View Related

Android :: Build Library Without Optimization In Order To Properly Debug It

Mar 12, 2009

I'm trying to debug native library (in particular, libril.so). Everythig is going fine, breakpoint is being hit, I can go thru the lines of RIL_onRequestComplete() function. But when I tried to print out particular struct I got,

(gdb) print pRI $2 = <value optimized out> (gdb) print pRI->pCI $3 = (android::._115 *) 0x613 (gdb) print pRI->pCI->requestNumber Cannot access memory at address 0x613

I suspect it could be due to optimization done by compiler. But when I tried to add,

LOCAL_CFLAGS := -g3 -O0

into makefile of the lib, I've got another problem when I cannot correctly set breakpoint on desired function. Instead of correct one,

(gdb) break RIL_onRequestComplete Breakpoint 1 at 0xae402e4e: file hardware/ril/libril/ril.cpp, line 1800.

I got,

(gdb) break RIL_onRequestComplete Breakpoint 1 at 0xffffab44: file bionic/libm/src/s_tanf.c, line 42.

Does anybody know what could be a problem, and what is the right way to handle this?

View 2 Replies View Related

Sony Ericsson Xperia X10 : Phonebook Not Working - Message Appears The Process Android.process.acore Has Stopped Unepectedly

Jul 30, 2010

I'm using Xperia x10 mini. Whenever I try to add a contact to my phonebook, before clicking save this message appears: "The process android.process.acore has stopped unepectedly. Please try again." And I have no other choice but to click "force close"... Another thing is, even though my contacts' names appears in the messages in my inbox, when I click on the phonebook icon, the phonebook is empty...

View 4 Replies View Related

Android :: Process Synchronization - How To Conclude Process Executed?

Feb 1, 2010

Are the processes in android asynchronous? If they are asynchronous then how can we conclude when the activity or process is finished or completed its execution.

View 2 Replies View Related

AIR Packaging APK With Native Libs?

Nov 1, 2011

My team is currently trying to package a native .so library within an AIR APK. This native library is used by a native extension we've built, but the library is not the extension itself, therefore the standard process of creating an AIR APK with an extension does not include these libraries. We have to, somehow, instruct AIR to include the native libs in the packaging process.

The real headache is that for Android to link to these libraries, it appears that they must sit in the following directories (we have 2 .so files):

/lib
/armeabi
mynativelib.so
/armeabi-v7a
mynativelib.so

When using ADT we can include the /lib directory in the APK, but AIR sticks the /lib directory in the APK's /assets directory with the rest of the AIR files....but this does not work because Android does not appear to find the native libs.

how we can get this lib directory sitting at the root of the APK?

View 1 Replies View Related

Samsung Captivate :: Packaging For AT&T Execs

Jul 16, 2010

Comes with everything.... Chance

View 4 Replies View Related

Samsung Fascinate :: Random Process Com.google.process.gapps Has Stopped Unexpectedly

Sep 11, 2010

So since I got the phone on Thursday, at random, I'll get these popup crash messages, that say "The process com.google.process.gapps has stopped unexpectedly" it has a "Force Close" button, which doesn't seem to change anything other than to acknowlege the message.It will happen at random, sometimes while I'm on the home screen, or sending a text message, but more recently, as I was trying to manage & link contacts. When I searched for this message it seemed to be related to people using Gmail, but I always get this message when I'm doing other things and not even touching my Gmail account.

View 1 Replies View Related

Samsung I7500 :: Process Com.google.process.gaps Has Stopped Unexpectedly - Please Try Again

Sep 19, 2009

I bought a new phone, but I can not run it.

I get the following information: "Sorry! The process com.google.process.gaps has stopped unexpectedly. Please try again".

View 1 Replies View Related

Samsung Moment :: Getting Process Com.google.process.gapps Stoped Unexpectedly

Apr 17, 2010

I've searched around the forums (here and SDX forums) and although it seems the few people that had this issue were able to solve it, my case seems a bit different.

It's different because of the people I've read solving the issue, it was a problem with something they changed / removed with gmail / gmail storage or talk / talk storage. And when they cleared the cache or re-installed the problem went away. Also, it seemed that the same people had a problem with downloading from the market...

Neither of the above apply to me, but yet I'm still getting this FC error all the time!

I was helping a friend with their CL14 Moment out of the box...and went from stock 1.5 CL14 to 2.1 DD03 w/Joey recovery to EclairDD10 and v5 root. I then did the streaming media fix, and then the private app (build.prop) fix (all previously done with my phone no problems). I did all of these update right in a row, and after my last re-boot the FC error (process com.google.process.gapps has stoped unexpectedly) started showing up and won't go away.

The only .apk / odex files I removed were the preloaded Sprint apps

Does anybody have any other ideas on how I can get this FC error to stop? I've tried clearing the cache / data for all the mail / talk apps, rebooted, cleared dalvik cache...

View 6 Replies View Related

Samsung Fascinate :: Process Com.google.process.gapps Stooped Working

Sep 17, 2010

Keep getting this message "The process com.google.process.gapps has stooped working unexpectedly. Any thoughts on what this is and how to resolve?

View 3 Replies View Related







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