Android : Screen Optimization In Droid?
Jun 30, 2010I 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 RepliesI 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 RepliesI'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.
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.
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 RelatedAny idea? It doesn't seem to close apps like TaskKiller or TaskPanel. So what is it doing?
View 4 Replies View RelatedI 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 RelatedI 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.
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 RelatedI'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?
Well I have S4 I9500 and whenever I tried to connect to my work network after updating to a clean android 4.3*OTA, I receive a notification stating that: This network has been disconnected.You need to sign-in again. This also happened to all 4.3 users in my workplace. 2 colleagues using Note 3 and another colleague using S4 19500. All of us can log onto various networks outside of our workplace like home and coffee shops. After doing some research I found out that I have to turn off wifi optimization but that option is not available in S4.
View 2 Replies View RelatedI just got my phone about 4 days ago, and when opening apps, unlocking, opening contact lists etc etc, it just lags heaps. Does anybody else have the same issue? Could it just be an optimization thing or something?
View 35 Replies View RelatedI would like to know is there any tool in android to find memory leak and code optimization.
View 8 Replies View RelatedCurrently I want to develop one Activity to allow the user to see the screens/activites of all running tasks , then the user can select one of them to switch it to foreground. As I known, HTC Sence seems already to have this implementation for Home screen, to display the thumbnail of all Home panels in one screen. Does anybody know how to access screen stack in Android?
View 1 Replies View RelatedHow do I go to previous screen from current screen in Android app? I know there is a back button on phone, but it takes me to beginning screen of my app and I want my buttons on app to work for going back to previous screen.
View 1 Replies View RelatedI was thiking of buying either a screen protector from verizon or best buy. I was wondering which is the best to buy out of the two or if there is a better protector? Also what is the best case for the motorola droid? Lastly, when I make phone calls my screen goes black so it is hard for me to end calls. How can i fix this? I don't see any settings for this on the droid.
View 11 Replies View RelatedI am going crazy here... I've had this thing since it launched and everything is great except I keep hitting buttons with my face during calls! I mute, sometimes end calls, start 3 way calls etc and I have no idea how to prevent it. Is there any way I can make the screen lock during phone calls or change the call screen altogether?
View 12 Replies View RelatedThis morning my alarm started unexpectedly at 6am. The lock screen turned into the snooze/stop screen. Dragging down didn't stop it it.. It came on every ten minutes for the next hour. My alarms were set to 9:45am and 8:30pm as usual. Even turning the phone off and on didn't stop the beeping. It was my 9:45am ringtone even. (The two are set differently)
Anyone else see anything like this? I'm on OTA 2.1
I'm having an issue with my phone. Most of the time my lock screen is focused on screen 4 (I use 5 screens) instead of on whatever screen I go to when unlocked. Does anybody else have this problem? I'm using Launcherpro if that makes a difference.
View 2 Replies View RelatedMy nephew was playing with my phone and evidently set a password on the phone to wake it up. He told me the password and I can use it to wake the phone up just fine but I use the slide screen, but now there is both password unlock and the slide screens. I cant figure how to remove the password one
View 10 Replies View RelatedIs there any way to change when these 3 things happen separately? Can I make it so my screen fades earlier but still takes just as long to go completely black? Is there a way to extend the time between total blackout and locking? Is there a way to turn off auto screen lock all together but keep the auto fade out and auto black out? I am always able to remember to manually lock the screen and the auto lock is annoying but I still like the power saving of the screen fade and black out.
View 3 Replies View RelatedSo I recently got a set of screen protectors and put one on.All was well just noticed a few bubbles and so I tried to work them out.They weren't going away, so I figured I would try again so I removed it and to my astonishment the bubbles were still there. It's like they formed under the screen somehow when I put the protector on, they were absolutely not there before.There are 2 in the center of the screen and a few along the edges. At first I just thought it was a water spot but I cannot wipe them off.The ones on the edge of the screen I can"push out" to the edge to almost make them disappear.When you touch them with the pads of your fingers you can feel a slight "bump" in the screen (very minute but still there).They bubbles are easily visible when the screen is off and almost go away when the screen is on but you can still tell they are there.Is this a defect in the phone or did I cause this trying to install the protector? I didn't push down hard on the screen, just applied the protector and they appeared.
View 2 Replies View RelatedI bought a new droid for $20 haha lucky i think until i notice that the touch screen only works for the middle of the screen to the left so if yu cut the screen into thirds only the middle and left work assuming that yu cut it from top to bottom with the lights at the bottom for the home button etc. I opened it up cleaned all the flex cable with alcohol and waited for it to dry and it still does the same thing so my question is = do i need a new digitizer or is it a software problem or something that i dont even know?
View 9 Replies View RelatedI posted this in the Support and Troubleshooting forum but didn't get any replies, so I thought I'd post it in the main forum.Hopefully some of you guys/gals/aliens (illegal or not, I don't mind) can help me out with this one.
View 5 Replies View RelatedI accidentally opened a screen and can not get rid of it. I was looking at corporate calendar and now I have a large white no calendar events on my favorite screen that I can not get rid of. I do not have an exchange server to sync too at work.
View 2 Replies View RelatedI was messaging around today and found where to shut of the screen while charging, but I wanted to turn it back on and can't find where it is? Also before the update I could have sworn there was an option on the screen timeout to set it to never. Now I don't have that option.
View 2 Replies View Relatedwhen i take my phone out of my pocket and unlock it the screen will be in landscape mode and it usually will take a good 5 to 10 seconds for it to go back to normal.. i usually have to shake the phone for it to even respond..
has anyone had this problem? know of any quick fixes for it?
I'm currently using the phantom skinz line and although I like the body protectors I think the screen protector has reduced some of the screen's clarity/sharpness. This wasn't an issue with the static protectors I got from verizon. The only reason I replaced the verizon ones is because they didn't cover the buttons along the bottom of the screen. Anyone find a static protector they like that covers the whole screen?
View 18 Replies View RelatedSo through a weird assortment of events i managed to crack the screen on my Eris. But this is the trippy part, I didnt break the glass but the touch sensors underneath. So now i am unable to use the menu or home buttons and the entire left part of my screen and more. I am unable to unlock my device in anyway that i know(menu button, the slider). Is there any other way to unlock it? I now have 11 unread texts and 4 voicemails that I desperately want to view. Oh and I know some of you won't be happy about what I'm about to say but.... I took the leap to the moto droid. I had the chance to get it on a 1 year because I didnt get insurance and I went for it. I will really miss my Eris but the keyboard lag was just killing me.
View 11 Replies View RelatedLooked around a bit and I can't seem to find any other posts about it but sometimes when i go to unlock my phone its at the default lock screen instead of my lock 2.0 screen. Anyone else have issues with that? If so how do i fix it?
View 8 Replies View RelatedI don't know if I'm missing something in the settings or what, but every time I shake my Eris while running an app the screen automatically goes back th the home screen. This gets really annoying when using apps that require such actions. Anyone else having this issue or know what I'm doing wrong. Maybe an app that's causing it.
View 2 Replies View Related