OptiPNG'ing and Zipalign'ing apk's. - Touch Pro2, Tilt 2 Android Development

I'm gonna give this a shot later tonight. I think the devs should all take a look at this thread (and all other optimization topical stuff in the Dream forum).
http://forum.xda-developers.com/showthread.php?t=560271

instead of optipng, consider using pngout or AdvanceCOMP.
both allow you to achieve higher compression rations than optipng

Related

Call to the rom Developers [Rom Developers Read This]

It would be great building a rom based on the Benchmarks of the roms wich you can find here http://forum.xda-developers.com/showthread.php?t=406640
The Chefs need to work together and exchange what they did in specific to get good scores in the sectors they lead and have best results.
I would exchange my knowledge. Please join this Project and lets make a fantastic rom.
What do you think about this ?
I think about a meeting on a chat with only developrs and we exchange our thoughts and knowledge.
Do you think it'd be that simple for everyone to agree upon which tweaks to enable, which ones leave out, as well as applications?
Some of them are standard procedure, but the rest depends on each different chef.
The first question would be: a light ROM, or a full-feature packed, at the cost of performance?
For my part, I usually cripple most of my ROMs to the mininum, adding afterwards only the apps I need.
Registry tweaking also is quite aggressive.
I don't like all the bloat in most of the ROMs, but that's what most users are looking for.
As for eye candy, I never integrate it at the cost of performance.
So the question would be: what do CHEFS want VS what do USERS want.
If you want to take this to the next level, you'll have to set a date for the meeting.
I'd recommend IRC, since not many ppl use jabber. MSN sucks, so...
adwinp said:
Do you think it'd be that simple for everyone to agree upon which tweaks to enable, which ones leave out, as well as applications?
Some of them are standard procedure, but the rest depends on each different chef.
The first question would be: a light ROM, or a full-feature packed, at the cost of performance?
For my part, I usually cripple most of my ROMs to the mininum, adding afterwards only the apps I need.
Registry tweaking also is quite aggressive.
I don't like all the bloat in most of the ROMs, but that's what most users are looking for.
As for eye candy, I never integrate it at the cost of performance.
So the question would be: what do CHEFS want VS what do USERS want.
If you want to take this to the next level, you'll have to set a date for the meeting.
I'd recommend IRC, since not many ppl use jabber. MSN sucks, so...
Click to expand...
Click to collapse
Well, I do think research will lead to a certain extra insight.
For example: I tested the recent Swtos ROMs: they are (real) fast, all three of them.
Why? Is it because he left something out, did he combine things, did he add something? (please tell us Swtos...)
The problem with this kind of collaboration is that cooks have to share their work. And their time...
Well, most experienced chefs have pretty established routines for performance gains.
Here's a quick MUST DO checklist for a good ROM:
1: remove bloat
2: tweak registry (services, caches, etc...)
3: DSM grouping
4: G'Reloc
5: Pagepool
Anybody with a little advanced knowledge of the windows internals can handle the first 2 tasks.
adwinp said:
Well, most experienced chefs have pretty established routines for performance gains.
Here's a quick MUST DO checklist for a good ROM:
1: remove bloat
2: tweak registry (services, caches, etc...)
3: DSM grouping
4: G'Reloc
5: Pagepool
Anybody with a little advanced knowledge of the windows internals can handle the first 2 tasks.
Click to expand...
Click to collapse
Doesn't that "lock" your ROM and come in contradiction with most thoughts exposed in the locked ROM thread?
tnyynt said:
Doesn't that "lock" your ROM and come in contradiction with most thoughts exposed in the locked ROM thread?
Click to expand...
Click to collapse
Yes it does, then again, it's not a compulsory step.
Every chef has his own preferences.
tnyynt said:
Doesn't that "lock" your ROM and come in contradiction with most thoughts exposed in the locked ROM thread?
Click to expand...
Click to collapse
May better to publish "Tree" of project (OEM,SYS,etc)?
Nothing new - look to opensource
But who will moderate it?
It is the big work, I think.
There are many tutorials, documents and even video presentations on the forum. Kitchens may differ according to device but the basic principles are the same. Search for them and do lots of research!
tnyynt said:
There are many tutorials, documents and even video presentations on the forum. Kitchens may differ according to device but the basic principles are the same. Search for them and do lots of research!
Click to expand...
Click to collapse
I guess they are not asking about how to cook a ROM... but they try to invite people (especially ROM chefs) to collaborate... and sharing how is the best way to cook a good ROM...

Project coming soon (prop 215 app)

Well I am interested in developing an app but would like to gauge some interest. Here are the details of the app:
1. App will take advantage of built in light sensors to read your lights lummens output.
2. App will have a nutrient calculator based on (advanced Nutrients, Canna, Dutch Masters, and General Hydroponics)
3. App will also include nutrient charts for all the companies.
4. App will include a DB of pictures with descriptions of different plant diseases and deficiencies.
I have more ideas as well as in how to optimize air flow for your room and much more also will include for outdoor growing as well.
If your interested in seeing an app like this for our winmo phones let me know through this thread and i will post updates and beta versions once they are ready if there is enough interest in something like this.
Sounds nice. Good luck.
seems good,
later i will be doing some project may be i can seek you help then
It seems nice
can be useful
All the best
it is coming along. right now the strain app supports WVGA 480 x 800 resolution. follow my progress in the thread in my sig. I should be about a week away for the MJ's Strain Guide beta. all that is posted right now is an alpha so you get a feel for the UI. Still a lot to do.
Sounds good! Being completely crap at maintaining plants this seems quite useful
I know what you mean. I hope this app helps guide people but when it comes down to it a major factor in your outcome is the genetics. bad genetics of a good strain will give you bad results. i am attaching here a alpha version of my strain app. its also located in the HD2 app section. im not sure it will work on other phones as i have a hd2 right now. I due plan to port to other resolutions and sizes after completion. It will be easier as its just resizing of what i have done. I am also bringing in some friend to port the app to android and iphone/ipad and to make a windows pc based version. if anyone has suggestions or think they can help in anyway let me know. i can always use the help.
PS:
This is the 4th app i have ever made in my life.
Notes:
when app is installed and launched you will get pop up menus. These are due to the controls. Currently they are trail controls. I am sending a payment to get the full license to that will be removed by beta.
currently all list are populated but no data is inputted so when you try to launch a strain in kinetic scrolling it will do nothing. Only one works right now. It is located in Sativa Strains List. It is Cannalope Haze. Let me know what you think of how the data is displayed. If you install this on WVGA device 480x800 it should work so HD2/TP2 should look perfect. Let me know what device you have it installed on and your screen fitment issue only if its WVGA. QVGA and WQVGA are not supported.
enjoy!!
Update:
I have attached a newer version it is the latest i have made so far. I have updated the indica and sativa list and updated how the data is displayed for cannalope haze. The way the cab is made is different so now it will ask if you want to install on sd or phone. I also finally added an icon for the app. i still have a long way to go but i hope you like where its going.

[TOOL] [01/23/11] Android Customization Suite 1.0 - devs read me!

Android Customization Suite 1.0
This is a program to complement your ROM. It is able to produce a CWM flashable zip with apps your ROM might be missing (T-Mob ones, launchers, utilities, etc). It also has other tools available for you. It can produce an empty flashable zip for you (read more about it here). And now, it has "repositories." Developers can upkeep their own repos with whatever files they wish. Roms, themes, mods, etc.
need i9000 Devs to talk to me to get their work added on here!
in the mean time, you guys can mess with the Utilities in the Vibrant section just to get a feel for it
Screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Older Screenshots:
Repo Tab 0.999
Repo Tab
Utilities Tab
Launchers & Misc Tab
Vibrant Apps Tab
System Tab
Instructions
Download. Note: you must have Java installed to run this app
WHILE YOU ARE DOWNLOADING MAKE A NANDROID BACKUP
Unzip the folder. Please keep it intact. Moving files around in there will probably break the functionality.
Run ACS.jar.
Choose desired apps.
Wiping Dalvik cache is recommended, but it will take you about 5 minutes to boot
Copy flash.zip to your internal sd card
Flash with CWM
Linux users: if you are running Linux I advise you to use the run.sh file to run the program, otherwise it may use your home directory to store files
Mac users: you need to have java 1.6 installed for this to work. i tested this on a friend's mac (running 10.5.8 & java 1.5) and it wasn't working. also i was not able to update her java to 1.6 either. so i'm assuming you need to have snow leopard installed for this to work...
Devs:
Check out this reference guide for more info on setting up a repo list. Feel free to contact me for any clarification. It's really not hard to do it, just have to understand how the app works a little. The guide should give insight and instruction. Contact me to add your repo to the list.
Options Note
If you want to change the location of system apps, please make your selections first THEN change the location
Change Log
v1.0
-finished gui changes, no more tabs
-added menu bar with options option
-couple bug fixes from .9999999
v0.999
-redesigned gui
-everything is in form of a repo now (or will be at v1, too lazy to do launchers tonight)
-added functionality for different phones
-changed the way the app checks files against the server, should be much more efficient & faster
-need a new name!
v0.86
-bug fixes
-location of system apps (in the options tab) now works
v0.85
-repo functionality added
--any devs, feel free to contact me to add a section for your rom/mods/whatever
--the "repo" is maintained by you and is updated automatically when you update it, no need to recompile the app
-options tab
--new option to specify where you'd like to store apps that would originally go in /system/app currently may not work, need some script help from a dev to fix this D:
-download percent for convenience and downloading large files
-did i mention there's a repo?
v0.7 Beta
-couple GUI changes to make it prettier
-new feature to create blank CWM zips for your use, read more about it here
v0.6 Beta
-improved code to download from online server & error checking
-added modems
v0.5 Burly Beta
-Basically rewrote program...
--should be more efficient now, too
-Initial online implementation
--hopefully my web host can handle the traffic
-icon is missing, after 8 hours of working on 0.5 i'm not going to fix it right now
-file size down to less than 150k
v0.4 ALPHA
-KERNELS & MODEMS NOT INCLUDED IN THIS UPDATE, SORRY
-TouchWiz Launcher Widgets will not be added along with the launcher
-added progress bar (along with rewriting some code to make it more efficient)
-added a rename box, you can now name your .zip whatever you like
-added more tmobile bloat (sigh)
-the application will not recognize APKs and files outside of itself, so for instance if you have an APK that you want to add just put it in the corresponding folders.
-- for instance my VCK.jar is in folder /vck/, i want to add hi.apk. I could move it to /vck/data/app/hi.apk and when you click generate zip, the program should include it. please contact me if this is unclear or you have questions, this is only a minor feature
v0.3 ALHPA
-Renamed to Vibrant Customization Kitchen (thanks BruceElliot)
-re-organized tabs a little
-fixed bug where program would not work properly after generating a zip (thanks jdanisevich)
-Launchers & Misc tab should work
v0.2 ALPHA
-Most Vibrant Apps added (missing TMO TV & Media Hub for now)
-Misc Tab works now (minus GB keyboard, didn't work for me for some reason)
v0.1 ALPHA
-Initial Release
Current Known Bugs
-Please report any bugs you may have!
-If you do encounter a bug, restarting the program and trying again may help.
If you like this Tool, hit the Thank you button!
github - I don't really know what I'm doing with git, but here's my attempt at publishing it
Credits
-Scrizz - doing the hard work on the modems
-Heathen - script help
-Morfic, Eugene, Supercurio for their work (and allowing me to use their kernels)
-all ROM devs
-everyone else in this community who always help
Media Mentions
XDA Front Page (v0.3)
Android Spin (v0.4)
Sure, a universal kitchen is a great idea
+1
sounds like a good idea
I'm interested! This might be the tool that can enable noobs to cook their custom roms, if I understand it correctly.
A few questions though:
Where does the tool obtain the apps? From the web, or from your own computer?
Does it include the capability of de-odexing the /system/app and /system/framework? Would that be too much to add?
Optimize and zipalign capability? Can that be done too?
Is this an alternative to the online kitchen, like paulobrien, leshak or others, but in this case, the tool resides in your comp, and not from the web?
If you don't mind, please elaborate a little more.
There are many budding chefs here and I'm quite certain a number of people would be interested.
Very much obliged.
Sent from my GT-I9000 using XDA App
g00ndu said:
I'm interested! This might be the tool that can enable noobs to cook their custom roms, if I understand it correctly.
A few questions though:
Where does the tool obtain the apps? From the web, or from your own computer?
Click to expand...
Click to collapse
From the web. Most of the stuff is hosted on my web host, couple of guys have their stuff linked on their hosting.
Does it include the capability of de-odexing the /system/app and /system/framework? Would that be too much to add?
Click to expand...
Click to collapse
It doesn't. It depends, I'm not so great at developing ROMs and such. Just trying to help where I can.
There are already tools to do this though, right?
Optimize and zipalign capability? Can that be done too?
Click to expand...
Click to collapse
Again depends what is involved in the process, I don't know much about either.
Is this an alternative to the online kitchen, like paulobrien, leshak or others, but in this case, the tool resides in your comp, and not from the web?
If you don't mind, please elaborate a little more.
There are many budding chefs here and I'm quite certain a number of people would be interested.
Very much obliged.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Not so much an alternative, but it's more of a ROM-complement.
It has the ability to eventually cook ROMs, but I'd have to code another module that would handle this. It might get pretty code intensive and not so efficient in Java as it is probably on these online kitchens.
birgertime said:
....
Not so much an alternative, but it's more of a ROM-complement.
It has the ability to eventually cook ROMs, but I'd have to code another module that would handle this. It might get pretty code intensive and not so efficient in Java as it is probably on these online kitchens.
Click to expand...
Click to collapse
Thanks for taking the time to answer this. Appreciate your help in extending this to the international i9000 users.
I look forward to testing your tool.
Sent from my GT-I9000 using XDA App
birgertime said:
From the web. Most of the stuff is hosted on my web host, couple of guys have their stuff linked on their hosting.
It doesn't. It depends, I'm not so great at developing ROMs and such. Just trying to help where I can.
There are already tools to do this though, right?
Again depends what is involved in the process, I don't know much about either.
Not so much an alternative, but it's more of a ROM-complement.
It has the ability to eventually cook ROMs, but I'd have to code another module that would handle this. It might get pretty code intensive and not so efficient in Java as it is probably on these online kitchens.
Click to expand...
Click to collapse
Yeah, there are already tools which are able to cook custom ROMs, deodex them, zipalign them, and otherwise perform modifications on them. I think this sounds like a great idea; however I'd just keep it as a complement to a ROM, not an entire replacement for a kitchen.
Good work.
Windows Only?
Edit: Sorry. Didn't read. Java. Allrighty then
seeARMS said:
Yeah, there are already tools which are able to cook custom ROMs, deodex them, zipalign them, and otherwise perform modifications on them. I think this sounds like a great idea; however I'd just keep it as a complement to a ROM, not an entire replacement for a kitchen.
Good work.
Click to expand...
Click to collapse
Of course there are tools available to do those, but currently, these tools are fragmented and spread all over, thus making it difficult for budding chefs.
While an online kitchen is good, I have my reservation as well. It does limits the rom choices. Everyone is dictated by the developer on which rom he will put in, and lesser known roms will be left out.
Perhaps at this point of time, an integrated approach might be too premature.
I really look forward to the day when such a kitchen exists for users who can have the freedom to choose what rom they want to put in.
Sent from my GT-I9000 using XDA App
Nice one. I'd love to give it a go
g00ndu said:
Of course there are tools available to do those, but currently, these tools are fragmented and spread all over, thus making it difficult for budding chefs.
While an online kitchen is good, I have my reservation as well. It does limits the rom choices. Everyone is dictated by the developer on which rom he will put in, and lesser known roms will be left out.
Perhaps at this point of time, an integrated approach might be too premature.
I really look forward to the day when such a kitchen exists for users who can have the freedom to choose what rom they want to put in.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Not really. Check out dsixda's HTC Kitchen: http://forum.xda-developers.com/showthread.php?t=633246
It's a single, cross platform tool which can do everything from deodexing and zipaligning to adding root, to signing an APK, etc. It's an extremely powerful (and I believe user-friendly) tool which budding chefs are able to use in order to learn more about ROMs and Android in general. Personally I think it'd be a good idea to just keep these two applications separate (kitchens + this ROM complement) and just focus on providing as much functionality within this tool as possible as opposed to focusing on both.
Users are able to choose any ROM they want, add any applications / themes they want, etc. Essentially the user has total freedom.
Also, if you need any help with this application birgertime, I'd be glad to provide a hand.
seeARMS said:
Not really. Check out dsixda's HTC Kitchen: http://forum.xda-developers.com/showthread.php?t=633246
It's a single, cross platform tool which can do everything from deodexing and zipaligning to adding root, to signing an APK, etc. It's an extremely powerful (and I believe user-friendly) tool which budding chefs are able to use in order to learn more about ROMs and Android in general. Personally I think it'd be a good idea to just keep these two applications separate (kitchens + this ROM complement) and just focus on providing as much functionality within this tool as possible as opposed to focusing on both.
Users are able to choose any ROM they want, add any applications / themes they want, etc. Essentially the user has total freedom.
Also, if you need any help with this application birgertime, I'd be glad to provide a hand.
Click to expand...
Click to collapse
Yes, I know about this kitchen. Thanks, but also take a look at the video guide thread, so many were complaining about problems, and that makes me wonder if it is fit for use in the first place.
Anyway, I shall check up the kitchen further, thanks.
Sent from my GT-I9000 using XDA App
g00ndu said:
Yes, I know about this kitchen. Thanks, but also take a look at the video guide thread, so many were complaining about problems, and that makes me wonder if it is fit for use in the first place.
Anyway, I shall check up the kitchen further, thanks.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
I guess users with a good amount of knowledge of Android should be using that kitchen. A lot of problems in that video thread are pretty basic and able to be solved quite easily (ie not signed, symlinking problems in the update-script, etc).
It works quite well if used correctly. I guess it's just difficult for the average user to pick it up and start creating a ROM (however, I think it was intended for advanced users in the first place).
OP updated, need i9k devs to give this a go!
Looking good. Gonna test it out in a few,

[XDA-TV SOURCE CODE] WP7: JSON & BINDING (Episode 3)

The video is up today if you'd like to follow along, otherwise download the source and learn how to use a JSON API and Bind Controls and use Static Resources, GZip Requests vs WebClient and how to easily make a Panorama App.
Questions? Want to see a certain thing created? Tell me!
Please put a direct link for this in the video, it is not obvious where to search for it, and vice versa.
Also I have some comments for your video:
I really really dislike that you call your variables stuff like TheSource rather than describing the variable with what the actual source is. So if it is a Source with Friends, I would call it FriendSource.
You also have other bad and inconsistent naming conventions throughout your sample.
You also assume a lot of things in your video when explaining things. Such as the viewer knows what the data contract is that you are using and how you generated it, or from where you found out what properties it had to contain. You also didn't really explained what the Data Contract deserialization did, which can be very confusing to people and they would probably think: "What is this black magic?!".
Though I don't necessary think that stuff like this should be a part of the video, otherwise it would be super long, but it would not hurt posting links to where to find more information about these things. These things are not as obvious to new developers as they are to you.
This might seem as a lot of criticism, but you are doing better and better on the videos!
Thanks for this. Im writing a few json apps will no doubt help me with best practice
WP7: JSON & BINDING (Episode 3)
http://www.xda-developers.com/windo...art-3-oauth-tokens-and-json-xda-developer-tv/
Cheesebaron said:
Please put a direct link for this in the video, it is not obvious where to search for it, and vice versa.
Also I have some comments for your video:
I really really dislike that you call your variables stuff like TheSource rather than describing the variable with what the actual source is. So if it is a Source with Friends, I would call it FriendSource.
You also have other bad and inconsistent naming conventions throughout your sample.
You also assume a lot of things in your video when explaining things. Such as the viewer knows what the data contract is that you are using and how you generated it, or from where you found out what properties it had to contain. You also didn't really explained what the Data Contract deserialization did, which can be very confusing to people and they would probably think: "What is this black magic?!".
Though I don't necessary think that stuff like this should be a part of the video, otherwise it would be super long, but it would not hurt posting links to where to find more information about these things. These things are not as obvious to new developers as they are to you.
This might seem as a lot of criticism, but you are doing better and better on the videos!
Click to expand...
Click to collapse
Hello
I would first like to thank you for your feedback and appreciate your suggestions and will definitely take note and ensure I am more specific on strings and item controls. Our next video was actually on how to make Classes for your JSON API (except now it's on Maps/Nokia Drive + New WP Apps/News) but I get maybe 8 Mins for actual video, 30s for Intro and max ideally 10Min for the whole video. So, can't put everything in, I wish but I will surely alert everyone if they don't know how to do it to visit a specific site or wait for the next video. I will definitely keep these items in mind.
As for my videos, that's nice of you to say. We're actually going to be throwing in stuff besides programming & review our forums WP Apps and talk about them as well as any news like the others with Android. If you have any suggestions, happy to hear them and give you credit.
Thank you again for all the feedback!
- Lance
meandu229 said:
Thanks for this. Im writing a few json apps will no doubt help me with best practice
Click to expand...
Click to collapse
I am so happy to hear that! That's great to hear. One more video coming around JSON actually, might be even more helpful to you.
Keep me informed about your App, I would also like to talk about it when you're done.
- Lance

[Q] Image Optimization for "Find Differences" Game

Hi! I'm ertha from BKK and now i'm investing on one application. To start with, i'm not developer myself, so some of my vocab might look silly or may not sound right for developer (maybe) so i apologize for that
Now i'm struggling with my apps development, since the agreement i've made is that i'll responsible for the design and images for every stage in game, i'm facing the difficulty for the images optimization.
For the original images, they are downloaded from my account in ShutterStock (biggest quality) i have 2 of them for each stages (2 different images).
Then i use "tinypng" converter in website to reduce their size in order to optimize my application size. However the size is still too big (according to developer) he's looking for something smaller?
Do you have any suggestion to "optimize these images" that are already converted by "tinypng" ? My developer tell me some method like save it to jpg first and then convert it back to png? is that a really good idea?
Really thank you for every answer, i truly appreciate all the help coming here
ertha013 said:
Hi! I'm ertha from BKK and now i'm investing on one application. To start with, i'm not developer myself, so some of my vocab might look silly or may not sound right for developer (maybe) so i apologize for that
Now i'm struggling with my apps development, since the agreement i've made is that i'll responsible for the design and images for every stage in game, i'm facing the difficulty for the images optimization.
For the original images, they are downloaded from my account in ShutterStock (biggest quality) i have 2 of them for each stages (2 different images).
Then i use "tinypng" converter in website to reduce their size in order to optimize my application size. However the size is still too big (according to developer) he's looking for something smaller?
Do you have any suggestion to "optimize these images" that are already converted by "tinypng" ? My developer tell me some method like save it to jpg first and then convert it back to png? is that a really good idea?
Really thank you for every answer, i truly appreciate all the help coming here
Click to expand...
Click to collapse
Hey there, Ertha.
I'll tell you the way I optimize images and see if this may help you.
When you save a .png, it saves uncompressed(or very little) which means your data is pixel-for-pixel. Highest quality you can reach.
When you save it as a .jpeg, it runs an algorithm and compresses what you have thus making the file size smaller, yet still producing a clear image.
So in essence, his theory will work, and you can tell him you did exactly that. Pretty much all mobile platforms will handle a .jpeg as well so my recommendation would be to tell the dev to use them.
I use Photoshop for my image compression. When I have the image I'd like open in Photoshop, I choose "save for Web and Devices" which will give you an optimization screen. Most of the time you can still get a really good image if you save as a jpeg and reduce the quality to 60%. This will greatly lower the file size and garner the "optimization" he is looking for.
A further recommendation would be to use 1:1 aspect ratio(square) images to optimize across devices if you're new to it. It will make life much easier later on.
Thank you so much Im Saint!
So i can save for web to "jpg" first and then save back to "png" again?
ertha013 said:
Thank you so much Im Saint!
So i can save for web to "jpg" first and then save back to "png" again?
Click to expand...
Click to collapse
Yes, you can do that. :good:

Categories

Resources