I don't post questions often but any help would be appreciated. I've searched up and down the web to no avail. This line of questioning is in regards to my Lumia 435. I've abandoned Lumias in favor of my 2nd favorite brand, Motorola. But, I have an undying love for Windows phones. I'm a night guard so I walk around with a Moto G5 Plus, a Moto E4 and a Lumia 435. I am fond of the compact size and the screen's reflectivity isn't a problem since I only use it at night on my graveyard shift. It's sitting pretty in a case with an oleophobic glass screen protector and a 1 GB Paging File, thanks to interop.
I'm running W10M and it runs great because I disable ALL background apps, except for the Store or Podcasts. However, either the one I picked up from eBay has broken lights on it's 3 capacitive buttons or they just don't light up by design. My phone is Interop unlocked. I checked HKLM / Software / Microsoft / Shell / NavigationBar to see if I might be able to enable the on screen soft buttons and/or disable the 3 capactive buttons on the bezel. No joy. It seems that maybe this would be possible with Denim but the NavigationBar key has a list of all the different resolutions, each with 6 different settings.
Long story short, has anyone figured out how to enable/disable the soft buttons? And does anyone have a list of known working W10M registry tweaks? I've looked at WPTweaker but the XAP doesn't seem to install on my device (figured it was WP8 only). Would it be possible to trick this device into thinking it is a Lumia 640 so that the aspect ratio stays the same, and the soft buttons would swipe up from the bottom of the screen? I can't find any other WP that runs W10M that has a resolution of 800x480.
Thanks everyone for even just checking out this question. I'll appreciate any responses.
barc0d3 said:
I've looked at WPTweaker but the XAP doesn't seem to install on my device (figured it was WP8 only).
Click to expand...
Click to collapse
you can install WPTweaker XAP without problem deploying xap from computer to phone. if you have problem, try this Interop Tools, and enable "All XAP's are SL 8.1 XAPs" in Tweaks
The keys you need are:
Type: Integer DWORD
Key name: SoftwareModeEnabled
Value: 1
Type: Integer DWORD
Key name: IsSwipeUpToHideEnabled
Value: 1
Type: Integer DWORD
Key name: IsDoubleTapOffEnabled
Value: 1
Type: Integer DWORD
Key name: IsAutoHideEnabled
Value: 1
Type: Integer DWORD
Key name: IsHintEnabled
Value: 1
Type: Integer DWORD
Key name: IsUserManaged
Value: 1
:laugh:
I wouldn't force the device... the resolution 800x480 works perfect since you can cast/screen mirror and doesn't force the cpu. Lumia 550 has 1280x720 and the same cpu, when you screen mirror to smart tvs or screens, the video and all, except photos is very laggy and that doesn't happen with 800x480 resolution. The only way to hide the bar is increasing the resolution, that can be done with registry but i don't recommend it because you have to change several keys(for X and Y) that has the same name, the device will look horrible because it has the .dll graphics for 800x480(for example UIXMobileAssets480x800.dll) so if you increase the resolution it will look like **** and also, you will be forcing the cpu. The only way to achieve it is changing the registry keys of the resolution and replacing the .dll graphics file with the correct .dll graphics file(meaning you need a .dll from the desired resolution). Maybe there's another way, i remember that some videoplayback apps did hide the bar when playing so maybe there's another way... a key missing or some value to change...
xxJMarian said:
The keys you need are:
Type: Integer DWORD
Key name: SoftwareModeEnabled
Value: 1
Type: Integer DWORD
Key name: IsSwipeUpToHideEnabled
Value: 1
Type: Integer DWORD
Key name: IsDoubleTapOffEnabled
Value: 1
Type: Integer DWORD
Key name: IsAutoHideEnabled
Value: 1
Type: Integer DWORD
Key name: IsHintEnabled
Value: 1
Type: Integer DWORD
Key name: IsUserManaged
Value: 1
:laugh:
I wouldn't force the device... the resolution 800x480 works perfect since you can cast/screen mirror and doesn't force the cpu. Lumia 550 has 1280x720 and the same cpu, when you screen mirror to smart tvs or screens, the video and all, except photos is very laggy and that doesn't happen with 800x480 resolution. The only way to hide the bar is increasing the resolution, that can be done with registry but i don't recommend it because you have to change several keys(for X and Y) that has the same name, the device will look horrible because it has the .dll graphics for 800x480(for example UIXMobileAssets480x800.dll) so if you increase the resolution it will look like **** and also, you will be forcing the cpu. The only way to achieve it is changing the registry keys of the resolution and replacing the .dll graphics file with the correct .dll graphics file(meaning you need a .dll from the desired resolution). Maybe there's another way, i remember that some videoplayback apps did hide the bar when playing so maybe there's another way... a key missing or some value to change...
Click to expand...
Click to collapse
Yeah there doesn't seem to be any way to add those keys to the registry on W10M. I'll just have to deal with the capacitive hardware buttons from now.
PS. The Lumia 435 is surprisingly capable so long as you disable background apps. The first thing I did was bump the page file to 1GB and by not allowing any apps to run in the background it performs just as well as my Lumia 640 did. I like keeping the little Lumia handy as a spare phone in my duty pouch and it doesn't take up much space. Thanks for trying to help anyway.
barc0d3 said:
Yeah there doesn't seem to be any way to add those keys to the registry on W10M. I'll just have to deal with the capacitive hardware buttons from now.
PS. The Lumia 435 is surprisingly capable so long as you disable background apps. The first thing I did was bump the page file to 1GB and by not allowing any apps to run in the background it performs just as well as my Lumia 640 did. I like keeping the little Lumia handy as a spare phone in my duty pouch and it doesn't take up much space. Thanks for trying to help anyway.
Click to expand...
Click to collapse
You need interop tools to add the keys
Related
Can someone point me to the info regarding the registry entry for making the scroll bars thinner. I have looked every where and searched for scroll bars.. cant find it.
got it.
had to sneak over to the q forum.
here it is.
1. Making the scrollbars smaller (Vert. and Horz.)
This hack allows 4 icons on a row in the start menu instead of 3 and allows more to be viewed on the screen in IE:
• Go to: HKey_LOCAL_MACHINE\SYSTEM\GWE\
• Adjust the following values
cyHScr : Horizontal Scrollbars
Height in pixels (default is 6, set it to 3)
cxVScr : Vertical Scrollbars
Width in pixels (default is 6, set it to 3)
• Soft-reset
Its mostly nicer for web browsing.
also this asks for you to create them, they are allready created.
Bump for a good change that I felt was missing from the new roms. Thought others would appreciate it.
Does anyone know if there is a way to adjust the sensitivity of the touch screen. I have noticed that with some programs like IContact and PocketCM the touch screen is really sensitive and it makes it nice for scrolling while with a lot of the stock programs like messaging and such I have to push harder on the screen to get it to recognize that I am touching it. I have noticed a 5 or 6 digit number in the reg under a key that had something to do with the touch screen at least I think it did but it is an odd number that I am unsure of what it means. If I am correct and it is a reg edit to adjust the sensitivity then could someone post maybe a small explanation on how far to go or how far to not go and which way would make it more sensitive or is there a program that will do this for me. TIA
yes there is my friend. just do a search here and u will find all ur answers.
1 - This tweak will reduce the amount of pressure it takes to use the cube gestures.
1. Open any reg editing software (PHM Reg EDIT is nice)
2. Navigate to HKEY_LOCAL MACHINE\software\OEM\TFLOSettings
3. In HKEY_LOCAL MACHINE\software\OEM\TFLOSettings find DWORD fingerpressure.
4. Enter into edit mode then either double or quadruple your oem setting which is 3760
5. WARNING! DO NOT decrease the OEM value, because then IT WILL ACTUALLY TAKE MORE PRESSURE.
6. Soft reset and enjoy reduced pressure gestures!!
GENERAL WARNING: NEVER DECREASE fingerpressure Value. Decreasing the value means applying MORE than needed pressure on your touch screen, which may render your screen damagaed.
2 - This tweak will reduce the pressure you need to apply with your fingers or while typing with stylus.
1. Through the PHM registry editor(or any PPC registry editor)
2. Navigate to HKEY_LOCAL_MACHINE\Drivers\touchpanel
3. Then find DWORD pressurethreshold
4. Change the value of pressurethreshold. (INCREASE value ONLY!)
Personally I tried doubling the default value, until i have reached my desired setting.
Now, its like tapping soflty without having a feeling that i have screen protector. Also less stress on the stylus and screen and faster tapping.
Recommended Values: My Touchpanel Threshold is at 38372 and Touchflo is at 15040. Works great.
3 - Cube tweak to speed up the way in which your cube rises and falls.
1. Open Reg editing software
2. Navigate to HKEY_LOCAL MACHINE\software\OEM\TFLOSettings
3. Navigate to HKEY_LOCAL MACHINE\software\OEM\TFLOSettings find DWORD ...speedhigh
4. Enter in to edit mode then either double or quadruple your oem setting which is 40
5. Then find HKEY_LOCAL MACHINE\software\OEM\TFLOSettings find DWORD ...speedlow
6. Enter in to edit mode then either double or quadruple your oem setting which is 65
WARNING! DO NOT decrease the OEM value. Else it will MAKE IT SLOWER FOR THE CUBE TO RISE and FALL.
7. Soft reset then enjoy
Personal Settings: speedhigh at 160 and speedlow at 260
3 - Cube tweak to lower the time delay it takes for the cube to responed.
1. Open Reg editing software
2. Navigate to HKEY_LOCAL MACHINE\software\OEM\TFLOSettings
3. In HKEY_LOCAL MACHINE\software\OEM\TFLOSettings find DWORD ...delaydiff
4. Enter in to edit mode then lower that down to what ever setting is good for you, your oem setting which is 40
WARNING! DO NOT increase the OEM value, unless you want the cube to respond slower.
My Setting is 25. I think thats the lowest.
yearn said:
1 - This tweak will reduce the amount of pressure it takes to use the cube gestures.
1. Open any reg editing software (PHM Reg EDIT is nice)
2. Navigate to HKEY_LOCAL MACHINE\software\OEM\TFLOSettings
3. In HKEY_LOCAL MACHINE\software\OEM\TFLOSettings find DWORD fingerpressure.
4. Enter into edit mode then either double or quadruple your oem setting which is 3760
5. WARNING! DO NOT decrease the OEM value, because then IT WILL ACTUALLY TAKE MORE PRESSURE.
6. Soft reset and enjoy reduced pressure gestures!!
GENERAL WARNING: NEVER DECREASE fingerpressure Value. Decreasing the value means applying MORE than needed pressure on your touch screen, which may render your screen damagaed.
2 - This tweak will reduce the pressure you need to apply with your fingers or while typing with stylus.
1. Through the PHM registry editor(or any PPC registry editor)
2. Navigate to HKEY_LOCAL_MACHINE\Drivers\touchpanel
3. Then find DWORD pressurethreshold
4. Change the value of pressurethreshold. (INCREASE value ONLY!)
Personally I tried doubling the default value, until i have reached my desired setting.
Now, its like tapping soflty without having a feeling that i have screen protector. Also less stress on the stylus and screen and faster tapping.
Recommended Values: My Touchpanel Threshold is at 38372 and Touchflo is at 15040. Works great.
3 - Cube tweak to speed up the way in which your cube rises and falls.
1. Open Reg editing software
2. Navigate to HKEY_LOCAL MACHINE\software\OEM\TFLOSettings
3. Navigate to HKEY_LOCAL MACHINE\software\OEM\TFLOSettings find DWORD ...speedhigh
4. Enter in to edit mode then either double or quadruple your oem setting which is 40
5. Then find HKEY_LOCAL MACHINE\software\OEM\TFLOSettings find DWORD ...speedlow
6. Enter in to edit mode then either double or quadruple your oem setting which is 65
WARNING! DO NOT decrease the OEM value. Else it will MAKE IT SLOWER FOR THE CUBE TO RISE and FALL.
7. Soft reset then enjoy
Personal Settings: speedhigh at 160 and speedlow at 260
3 - Cube tweak to lower the time delay it takes for the cube to responed.
1. Open Reg editing software
2. Navigate to HKEY_LOCAL MACHINE\software\OEM\TFLOSettings
3. In HKEY_LOCAL MACHINE\software\OEM\TFLOSettings find DWORD ...delaydiff
4. Enter in to edit mode then lower that down to what ever setting is good for you, your oem setting which is 40
WARNING! DO NOT increase the OEM value, unless you want the cube to respond slower.
My Setting is 25. I think thats the lowest.
Click to expand...
Click to collapse
Thank you for you quick response. I was looking at other threads and they are all saying to change the value lower and when I did my screen stopped responding just like you said so I started to change the value high. I went all the way to 200,000 on both settings. I noticed a huge change in how much pressure it took to use the stylus but not as much for finger response. I use my left hand to navigate my screen and I noticed that my index finger worked better then my thumb and at first thought it was because of the size of the finger touching the screen but then I realized that it was actually because my index finger had an old blister on it and the skin was dry so it was more like a stylus then a finger to the screen. Sorry I just read what I wrote and I know it is kinda gross but I don't know any other way to explain my findings. Any way thanks again for your response, you verified my results.
Hello,
i have an application, programmed in C#. I wanna that the size of the gui will automatically adapt to the size of the phone on which the application get used.
How can I do this?
In the Paint() event of the form examine its ClientSize property. This is the size of the client (White) area of the screen. It is itself a Size object with Height and Width integer properties, this.ClientSize.Width and this.ClientSize.Height
Use these values to position/resize your objects on the screen, by changing their Size and Location (Left and Top) properties, so that they fit in this area.
This event occurs before the Paint() event of the child objects, so they will be repositioned/resized before they themselves are drawn.
To be clever, reposition and resize screen objects, scaled to the screen size at run time, not values hardcoded at development time.
This technique can also detect a change of orientation, the values of Height and Width change over! If you want to be smart, handle this as well, and your app should be starting look pretty damned professional. A bit of work and it should look good on all screen sizes. Test them out against the SDK's emulator images for a range of device screen sizes.
The following code example positions the label in the correct place. Hey Diddle Diddle, slap bang in the middle!
Code:
private void Form1_Paint(object sender, PaintEventArgs e)
{
label1.Left = (this.ClientSize.Width - label1.Size.Width) / 2;
label1.Top = (this.ClientSize.Height - label1.Size.Height) / 2;
label1.Text = this.ClientSize.Width.ToString() + " x " + this.ClientSize.Height.ToString();
}
do you have to do this with every object you put on it? Seems like a lot of code. (also im doing this in VB so far..)
I'm afraid so. But it's worth the effort. Also it will run on all screen sizes, see image, and also the oddball ones they haven't thought of yet!
Change 'this.' to 'me.' and omit the C# end of line character ';' and it's now in VB.
Does your form property AutoScaleMode is set to AutoScaleMode.Dpi?
For controls set the anchor property (default is top|left) also to right (and/or bottom if needed). That will automatically 'stretch' the controls.
Advanced:
Now, if you really want to support different resolutions it will take much more work:
As already mentioned you have to rearrange the controls on orientation changes. Take a look at Developing Orientation and dpi Aware Applications for the .NET Compact Framework!
And finally you have to provide images in different resolutions.
Adapt to New Screen Orientations and Resolutions
Of course you have to decide if this is really needed for your app as this will take much more time.
First i want to thank Heathcliff74 for the root tools that the samsung focus to be able to access these parts of the registry and write to them, we were not able to reach or do before. Also want to thank Julien Schaps for the registry editor, and also his other apps. Also thanks to Reddragon93 for His advance explorer.
Thanks to XBOXMOD and others in his findings with parts of the registry edits and tweeks as those as well works for samsung.
I thought it would be nice to have a thread for samsung registry edits and how to. So everyone share your findings as you do or add one thats not here.
SMS SOUND TONES
HKCU\ControlPanel\Sounds\SMS
and change the value data in sound:
value data: \My documents\My Ringtones\xxxxxx.wma
For those with NODO
select the ringtone in settings, rintones & sounds, that you want as SMS and goto HKCU\ControlPanel\Sounds\......Ringtone "0" folder and copy the value data, then go paste that into the value data for the sound for SMS. Then go back and select the phone ringtone for calls in settings that you want for phone ring.
If you dont have NODO just create the correct path in SMS sound \My Documents\My Ringtones\xxxxxx.wma
All edits are at your OWN risk.
Other sounds
HKCU\ControlPanel\Sounds\
ControlPanel\Sounds\Alarm
ControlPanel\Sounds\BatteryCharging
ControlPanel\Sounds\E-mail
ControlPanel\Sounds\Lowbattery
ControlPanel\Sounds\PhoneLocked
ControlPanel\Sounds\Phone Unlocked
ControlPanel\Sounds\SMS
ControlPanel\Sounds\SystemExclamation
ControlPanel\Sounds\VoiceMail
---------------------------------------------------------------------------------------------
These changes may impact the card stability issue but mine still remains stable. But i think in my experience it saves on battery and i also can tell a difference with the speed, i have no lag at all and seams to be a bit quicker!!
HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\SDMemory_Class
DisablePowerManagement dword:0
HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\MMC_Class
DisablePowerManagement dword:0
HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Class\MMC_Class\High_Capacity
DisablePowerManagement dword:0
HKEY_LOCAL_MACHINE\Comm\AsyncMac1\Parms
DisablePowerManagement dword:0
---------------------------------------------------------------------------------------------
DISABLE SHUTTER SOUND FOR CAMERA WHEN VOLUME IS AT 0
HKEY_LOCAL_MACHINE\Audio\StreamClass\Output\10
BypassDeviceGain
dword: 0
---------------------------------------------------------------------------------------------
SHOW 3G TOGGLE
HKEY_LOCAL_MACHINE\Software\Microsoft\Connectivity\CellularCPL
Show3GToggle
dword: 1
---------------------------------------------------------------------------------------------
ADD NEVER TO LOCK SCREEN TIME OUT LIST
HKEY_LOCAL_MACHINE\ControlPanel\Lock
DisableNever: 0
---------------------------------------------------------------------------------------------
VOLUME INCREASE
HKEY_CURRENT_USER\ControlPanel\MaxSystemUIVolume
currnetly is set to 30 i changed to 40
HKEY_CURRENT_USER\ControlPanel\MaxInCallVolume
currently 10 i set to 15
---------------------------------------------------------------------------------------------
CHANGE IE SEARCH ENGINE
---------------------------------------------------------------------------------------------
GOOGLE
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes
DefaultScope
Google
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\Google
URL
http://www.google.com/m?hl=en&gl=us&client=ms-hms-tmobile-us&q={searchTerms}
-------------------------------------------------------------------------------------------------------
YAHOO
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes
"DefaultScope"="Yahoo"
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\Yahoo
"URL"="http://de.search.yahoo.com/search?p={searchTerms}"
--------------------------------------------------------------------------------------------------------
BING
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes
"DefaultScope"="Bing"
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\Bing
"URL"="http://m.bing.com/search/search.aspx?mid=8015&LC=en-us"
---------------------------------------------------------------------------------------------
DISABLE LOCK SCREEN
HKEY_LOCAL_MACHINE\System\StatE
Lock=dword:1
a soft reset will put it back to lock state 0, so no need for soft reset
-------------------------------------------------------------------------------------------------------------------------------
Disable 10 people limit on sending SMS
HKEY_CURRENT_USER\Software\Microsoft\ShortMsg\Sett ings\LimitRecipients
default value is 10.... set to 99
-------------------------------------------------------------------------------------------------------------------------------
ENABLE LOCK SCREEN TIMEOUT TO LONGER PERIOD
HKLM\System\CurrentControlSet\Control\Power\Timeouts
LockUserIdle: 10 ( i changed to 90 )
soft reset puts back to default value
Here's on more
Disable camera shutter sound (tested it on Omnia7)
[HKEY_LOCAL_MACHINE\Audio\StreamClass\Output\10]
"BypassDeviceGain"=dword:0
[HKEY_LOCAL_MACHINE\Audio\StreamClass\Output\10]
"ClassGain"=dword:0
Default values
[HKEY_LOCAL_MACHINE\Audio\StreamClass\Output\10]
"BypassDeviceGain"=dword:1
[HKEY_LOCAL_MACHINE\Audio\StreamClass\Output\10]
"ClassGain"=dword:60948
im using omnia7 but still the sms still not working everytime when i insert the path of the custome ringtone. and check the ringtone setting it will go back to NONE ....
Yes it will show none in the settings menu, but it changes the path that it selects for the SMS tone. Just send yourself a txt and you see. It will be possible for it to show up in UI maybe when file is able to be added to windws folder I think.
Sent from my nationwide is on your side phone using XDA Windows Phone 7 App
i did try to send my self a msg ..but still no luck ..well it look i have to wait untill we get full access to the windows directory ..
Make sure you have the path correct in SMS\ sound: Value: \My documents\My Ringtones\xxxxxx.wma if you are creating the value. It works i promise, try a reset after making the edit. Being able to have it in the windows folder will only allow it to show up in the list selection i do believe.
lucasryan said:
Make sure you have the path correct in SMS\ sound: Value: \My documents\My Ringtones\xxxxxx.wma if you are creating the value. It works i promise, try a reset after making the edit. Being able to have it in the windows folder will only allow it to show up in the list selection i do believe.
Click to expand...
Click to collapse
CONFIRMED ...its working now i havent change anything just did reset..
cheeers mate
ananzeh said:
CONFIRMED ...its working now i havent change anything just did reset..
cheeers mate
Click to expand...
Click to collapse
Thats good, glad to see you got it working
I cannot get the sms change to workon the focus
never mind, im an idiot. got it
Have you inserted the correct path for the sms sound: value \My documents\My Ringtones\xxxxxx.wma then do a reset?
Make sure the song is in the right Caps for the letters in the ringtone
I have found the splash screen "AT&T" but until we get file explorer with write access to windows folder i cant change it or delete it. As soon as i am able to access it i will post how to remove it.
BACKGROUND AND HOME SCREEN THEME COLOR CHANGE
DARK THEME:
HKEY_LOCAL_MACHINE\ControlPanel\Themes\1
"PageBackgroundColor"="#FF......"
"SysTrayBackgroundColor"="#FF......"
LIGHT THEME:
HKEY_LOCAL_MACHINE\ControlPanel\Themes\0
"PageBackgroundColor"="#FF......"
"SysTrayBackgroundColor"="#FF......"
Here are some codes for the factory colors:
Green: FFE51400
Red: FF1BA1E2
Blue: FFF09609
Orange :FFE671B8
Pink :FFA05000
Brown :FF8CBF26
Lime :FF00ABA9
Teal :FFA200FF
Purple :FFFF0097
Here is a link to find more colors, just always keep the first FF in the registry then add the codes for the color that you would like to use. Make sure you have 8 characters for your code when you add the code for your color.
http://www.colorschemer.com/online.html
I have one.
Disable 10 people limit on sending SMSes:
HKEY_CURRENT_USER\Software\Microsoft\ShortMsg\Sett ings\LimitRecipients
The default value is 10, I set mine to 99 and it appears to work. Using LQ Quantum AT&T. I find this very useful so please add this to the list if anything. I will try to PM the OP as well..
Thanks for the great thread!
lucasryan said:
I have found the splash screen "AT&T" but until we get file explorer with write access to windows folder i cant change it or delete it. As soon as i am able to access it i will post how to remove it.
Click to expand...
Click to collapse
Try Advanced explorer for wp7 or TouchXplorer.
Those don't work for focus
Sent from my SGH-i917 using XDA Windows Phone 7 App
Thanks for the nice tweaks.
Someone noticed the cxscreen (in local machine/drivers/display/primary) value is set to 640 ??
cyscreen is set to 480.
So shouldnt cxscreen value set to 800 ??
Maybe someone wants to try first xD
lucasryan said:
I have found the splash screen "AT&T" but until we get file explorer with write access to windows folder i cant change it or delete it. As soon as i am able to access it i will post how to remove it.
Click to expand...
Click to collapse
Could you at least post the path?
Oscardog777 said:
Could you at least post the path?
Click to expand...
Click to collapse
It is in the windows folder listed as mologo.file
I think i may have the HD video resolution to be able to set higher, but havent tried to play video on computer yet to see if its full screen....will try to do that tomorrow and see how it works.
Im curious Lucas , once we have file system access (Focus) , with the mologo file , would you be able to change the file completely or would you have have to use the name mologo (even with a different picture) ? I mean personally I dont even want the screen to show up , giving me a faster boot!
Hi
I built a simple clock app yesterday. It was surprisingly easy. One question I have though is how to make my images smooth (without jaggies). I drew my clock face and hands in photoshop. At first I did them at 300x300 pixels and the jaggies were so obnoxious I threw those images away. Then I did everything at 1000 x 1000 pixels and resized down to 300 when I was finished. This was much better, but still not as smooth as the clock in Jelly Bean. I notice that most of the graphics and fonts I see in Android are all very smooth. I've been testing the app on a Galaxy Nexus.
What is the secret to creating/displaying nice smooth images?
Thanks, Derek
vector graphic is the keyword with fix sized effects (photoshop, ie. inner shadow is always 1px, above 256px use 2px)... yeah, the simple bitmap resizing won't give pro result for you
Heh Yeah, I've had this problem and it was a ***** to solve. Mainly because the answer is distributed over a dozen different posts on half a dozen different forums.
Anyway, the answer depends mainly on if you're using imageviews/buttons or something or if you're drawing directly to a/your own canvas. But the way to solve it can be applied to both. It basically involves using BitmapFactory.Options and configuring it correctly:
Code:
private BitmapFactory.Options ops;
ops = new BitmapFactory.Options();
ops.inPurgeable = true; //means the system can recycle and reclaim the memory used by the bmp when the system has low memory
ops.inDensity = 0; //load the bitmap without scaling it to the screen density
ops.inDither = false; //don't dither (you only want dithering when you're working/converting between bitmaps/canvasses with different color depths (16bit to 8 bit etc)
ops.inScaled = false; //no scaling, related to some other settings in ops
ops.inPreferredConfig = Bitmap.Config.ARGB_8888; //load the bmp into a 32bit argb bitmap
ops.inJustDecodeBounds = false; //if true, you're just looking at the underlying bmp data, eg to see the height/width without loading the bmp into memory
//then load your bitmap like so:
Bitmap yourbitmap = BitmapFactory.decodeResource(getResources(), R.drawable.yourprettybmp, ops);
Now you can use the bitmap to draw onto all kinds of surfaces or load it into widgets.
Be warned, this is a non-mutable bitmap. If you want to change it's data (like you want to draw on it by making it the backing bmp of a canvas) you'll have to get a copy of the BMPFactory.decodeResouce bit by adding
Code:
.copy(Config.ARGB_8888, true);
to it.
For resizing the bmp, you can also do the following (which returns a mutable bmp, so you won't need the copy bit above):
Code:
yourresizedbmp = Bitmap.createScaledBitmap(yourbmp, width, height, true);
Of course, you can combine all this in one step (where "res" is a reference to getResources()):
Code:
yourresizedbmp = Bitmap.createScaledBitmap(BitmapFactory.decodeResource(res, bgIDInt, ops), width, height, true);
One more thing to ensure quick drawing, lower memory usage etc is to define the window type of your activity to match the colour depth of your bitmaps. You can do that by adding the following to the onCreate of your activity:
Code:
getWindow().setFormat(PixelFormat.RGBA_8888);
And if you're also drawing to a surface canvas in a thread, you also set that:
Code:
mSurfaceHolder.setFormat(PixelFormat.RGBA_8888);
Anyway, the most important thing is the "ops" section. Hope you get it sorted!
PS: clean, minimal graphics can often be more easily gotten by just drawing things yourself on a canvas (extend the View object and override it's onDraw()). Just use a correctly setup and antialiased Paint to draw circles, lines and text on it and use the result.
Bitmaps are not generally used for graphics. Try to use PNG images, Google does so too.
I might be wrong, but from the OP it seems like you're using the same image size for all resolutions, use the Android Dpi Calculator to easily get the right dimensions for each screen resolution (and put the resized images respectively in /res/drawable-xhdi, hdpi, mdpi, ldpi...)
If you didn't do so, then it's definitely the problem as mdpi is the default behaviour of /res/drawable, so it will be awfully resized on your xhdpi Galaxy Nexus.
dealy663 said:
Hi
I built a simple clock app yesterday. It was surprisingly easy. One question I have though is how to make my images smooth (without jaggies). I drew my clock face and hands in photoshop. At first I did them at 300x300 pixels and the jaggies were so obnoxious I threw those images away. Then I did everything at 1000 x 1000 pixels and resized down to 300 when I was finished. This was much better, but still not as smooth as the clock in Jelly Bean. I notice that most of the graphics and fonts I see in Android are all very smooth. I've been testing the app on a Galaxy Nexus.
What is the secret to creating/displaying nice smooth images?
Thanks, Derek
Click to expand...
Click to collapse
Not sure if you've fixed this already but it's really easy. No code is required to remove jaggies, regardless of resolution. Assuming you're using Photoshop, choose save for web and devices, then select PNG-24 (not jpg or PNG-8) with transparency enabled. Initial resolutions of 200x200, 300x300 etc. are all fine; there's no need to create it at 1000x1000 and scale down if you need something smaller. Your graphics will look great.
One more tip - clock widgets fill a certain number of "squares" on the home screen grid, so just make sure that you determine the right number of dp pixels to cover the size you want (e.g., 2x2 or 2x4, or 3x3) and then specify it in xml. See the Android site for widget sizing.