how to add emoction in apk ? - Design, Prototyping, UI, Graphics

hello every body ..!
Edit application and I want to add smiles to him When Added smiles to file droawable and re-compile the file and move it to the phone and I start it, but the program does not appear to add any smile??I want a solution Please!! Do I need to register id as each smile or what to do??
How do I add smiles to the application in detail؟؟!!
Program, which used to edit files apk-tools
i use 6 for edit apk > use 9 for recompile apk and 10 for sign
please i want Answer

It's not as easy as that. You've got to figure out where it loads the image files for the smileys and then add code to load your smileys, too.

please >> how to add smiles and how to add id ?? i added smiles in public file but But did not appear in the program after combile
Please, if you have experience I will send you the program and send you a file smiles

jar_algamr said:
please >> how to add smiles and how to add id ?? i added smiles in public file but But did not appear in the program after combile
Please, if you have experience I will send you the program and send you a file smiles
Click to expand...
Click to collapse
If you want emoticons in your app you should load them as Assets just like you would any other image. I don't really understand how you app is made and where you are wanting to load the emoticons from?

Related

Expert Skinners please help

Hey guys im trying to learn how to skin a dialer for windows mobile 6.5...but when i put my own button in it just shows up as white..im using the stock xperia dialer...what am i doing wrong or what do i need to do...if someone could help please
i guess it shows where ur keys are when you locate them via GPS...it's a wild guess though.
im talking about skinning the phone canvas.... i cant get what i change to show it just shows as white...not referring to anything with gps..thanks though
it is the dll you extracted them from..
you have handled these steps?
- unsign dll
- extract images..
- edit images
- put images back in dll
- sign dll
if not follow it!
i think the problem is the signing
well i extracted the images from the cab file jacks xperia dialer using cab manager and just replaced the png file with my edited one...do i have to sign a cab if thats even possible?

Help with .psd template files

I really never used photoshop before but I want to mod some icons I saw on here, it comes with a PSD file, assuming I understand, I can use it as template to create my own icons. The icons are just text, like "APPLICATION" I need different text so I want to use the PSD file to create more but I don't know how?
Can anyone help me?
I attached the psd file
Do you even have photoshop?
if you do just open the file and start editing
I do have it, but I don't understand how I can just start editing it and create same font style/size?
choose the text tool, hover over the letters (make sure youre on the text layer), click, and a 'cursur' should pop up and you can start editing.
BriEE said:
I really never used photoshop before but I want to mod some icons I saw on here, it comes with a PSD file, assuming I understand, I can use it as template to create my own icons. The icons are just text, like "APPLICATION" I need different text so I want to use the PSD file to create more but I don't know how?
Can anyone help me?
I attached the psd file
Click to expand...
Click to collapse
- You need the font the icons are made with. Hopefully it's something standard like Helvetica or Tahoma. If not go to daFont and download the font.
- Open the .PSD and play around Photoshop is .. a world of fun!
- Saving the icons you've made in the right format is also a good thing. PNGs are nice, Non-interlaced.

[ROM][2/12/11][CHINESE] MIUI for G2 (v1.2.11)

http://bbs.gfan.com/android-575451-1-1.html
ignore the link at the top that one is mostly chinese the english version is provided hear thanks to da900
DOWNLOAD LINK: http://www.multiupload.com/PVZRB1NRHK
P.P.S. All you do with this pack is on your own risk. I am not responsable for any damages of your phone.[/QUOTE]
please aware that this rom is only contain about 20% english , most of words are chinese
u should be able to change it to english in the language and input settings
Is this newer than the QnD 1.2.4 rom?
Look at the number lol. 1.2.11 > 1.2.4
no that one has chinese this one does to thou dnt flash nevermind
dictionary said:
Look at the number lol. 1.2.11 > 1.2.4
Click to expand...
Click to collapse
XD I was thinking 4 > 1.
here's the changelog:
MIUI 1.2.11 version update:
Phone:
Add in the phone settings to add "call from the sensors used in the process" of setting
Fix the call log to the Canadian people through IP numbers to send SMS / MMS will bring IP prefix, resulting in the issue could not be sent
Theme:
Add support for setting alarm
Ringing in the new system comes with the option "mute"
Optimize the system comes with the choice of ring tones
Repair some of the theme of the correct format does not show the problem package
System Update:
Add WIFI connection can support the Ad-Hoc (peer to peer) network
Press the Backspace key fixed the problem miscarriage of justice
Local Backup:
Installed on the sd card repair program can not be the problem with the backup and recovery
Click to expand...
Click to collapse
terrelltp said:
no that one has chinese this one does to thou dnt flash nevermind
Click to expand...
Click to collapse
What? Slow down and make sense lol. Are you saying that you screwed up, and there is next to no English in the build?
terrelltp said:
u should be able to change it to english in the language and input settings
Click to expand...
Click to collapse
i repeat :
this rom does contain 20% of english translation only !
Even you change to english language :
your 80% of menu still display "Chinese".
So, this is useless unless you understand simplified Chinese. I'll wait on g4rb4g3 to release a port.
Sent from my htc.desireZED
Weren't there language packs you could install
Sent from my HTC Vision
Device Specific Language Packs
I think that language packs are device specific.. I haven't been able to find a language pack on the net for the G2.. though I did manage to a how to guide but I'm green to this stuff..
If somebody out here is familiar with how to do this guide and create a language pack for the G2 for us.. that would be helpful.
djmcnz said:
Okay guys, there's a lot of demand for this rom and for language packs but not yet a lot of people who know how to make the packs. Whilst I set up the crowdin translation project I can not create or maintain language packs.
So, here's a summary of the instructions required to create a language pack for MIUI (indeed for any app/rom). You need a collection of tools and a little patience but the process isn't too difficult so do give it a go.
Also note that this summary includes generalisations for brevity. These instructions assume you have a deodexed rom.
Introduction
For the purposes of this post language information is stored in XML strings in files on the Android system. In the case of MIUI and these instructions we will be dealing with .apk files (applications).
Within the apk files is a resources directory (/res) and within this are various values directories, there is a default values directory (/res/values) and alternative language values directories (e.g. /res/values-DE and /res/values-IT).
If the rom is set to use it's default language it will read values from /res/values although these may NOT be in English. In MIUI, all of the common Android ASOP values in /res/values are English but the (additional) custom MIUI strings are in Simplified Chinese.
If you select a different language in the ROM than the default then the appropriate values directory will be searched. If a suitable string that matches your language selection is found in the alternative /res/values-xx directory then that string will be used instead. If an alternative does not exist then the default will be used.
Example:
Code:
/res/[COLOR="red"]values[/COLOR]/strings.xml
<stop_button_text>[COLOR="Red"]Stop[/COLOR]</stop_button_text>
/res/[COLOR="red"]values-DE[/COLOR]/strings.xml
<stop_button_text>[COLOR="red"]Halt[/COLOR]</stop_button_text>
/res/[COLOR="red"]values-IT[/COLOR]/strings.xml
<stop_button_text>[COLOR="red"]Basta[/COLOR]</stop_button_text>
In this example, if the language is set to the default the word "Stop" will be used, if it is set to German the word "Halt" will be substituted in, likewise "Basta" for Italian.
So, to add languages to a rom (or app) or to make an app multi-lingual you need to either change the default strings in /res/values/strings.xml to the ones you want to use or, and this is the preferable approach, add a /res/values-xx/strings.xml with the translations you want. The first approach will work (changing the default strings) but is not recommended because the Android Open Source Project and Android development in general, defaults to English. It's best to use the built in language substitution capabilities of Android rather than to work around them. Indeed, if the MIUI devs actually added their strings in English to /res/values/strings.xml and the Chinese equivalents in the appropriate directory this rom would already be in English!
Adding Languages
To add a translation file (strings.xml) to an apk you need to:
decode the apk
create a language directory
add the translation files
recompile the strings
add the new strings to the apk
Which all sounds a little daunting but it's really quite straight-forward, rewarding when you see the result and a good way to understand how parts of Android work. Here's how you can do it.
1. decode the apk
You will need the excellent apktool from brut.all which you can get from the link below. apktool is relatively easy to use but includes some little tricks so you will need to read the wiki and thread about it.
Do NOT just post problems about apktool if you can't get it to work. The tool DOES work so if it's not decoding (or encoding) your apps correctly then you're probably doing something wrong. If you start with this understand BEFORE you ask for support you'll get a lot more help...
apktool: http://code.google.com/p/android-apktool/
wiki: http://code.google.com/p/android-apktool/w/list
thread: http://forum.xda-developers.com/showthread.php?t=640592
Please make sure you run the following command to include the MIUI framework in apktool. You only need to do this once for each framework. If apktool works with one rom and not the next then (re)install the framework for that rom.
Code:
apktool if framework-res.apk
Where framework-res.apk is the one from the rom you are working with. Make sure apktool can find (the correct) framework-res.apk before you run this command.
This thread is not for apktool support.
Now, before you proceed, decode a simple app from MIUI (such as updater.apk) using apktool, do not make ANY changes, then re-encode it using apktool. For example:
Code:
apktool d Updater.apk ./decoded/
apktool b ./decoded/ new_updater.apk
Use the -v (verbose) flag in apktool if you have problems and need to diagnose further.
Remember, Android uses a case-sensitive file system, make sure your capitalisation is correct.
Typically you will not be able to install this apk because it is not signed so if you want to test the process further you can now just try step 5 below using the two apks you have.​
2. create a language directory
Assuming you can decode/encode now, this is the easy bit. For your decoded app, navigate to the directory it was decoded in, then to the /res/ directory and simply create an empty directory for your language (e.g. /values-FR/) - use international naming conventions.​
3. add the translation files
Again, not too difficult this. Download the appropriate language file for your apk from the crowdin project linked below and, using the same structure as exists in /res/values/strings.xml create a new file called strings.xml in your alternative language directory (e.g. /res/values-ES/strings.xml).
The news strings.xml may contain as many or as few translations as you like. Remember, if a translation does not exist the default value from /res/values/strings.xml will be used.
Crowdin: http://crowdin.net/project/miui-rom-translation/invite
The xml formatting and tag names need to match exactly with the default strings.xml in /res/values although the translated file does NOT need to be complete.
It is worth remembering here that unless your source apk is already translated to English then some of the default values in /res/values/strings.xml will still be in Chinese, it would pay to check these.​
4. recompile the strings
Now, if you've done everything carefully and correctly this step is really easy, all you need to do is recompile the apk with apktool using the b (for Build) switch.
Code:
apktool b ./<decoded_apk_dir>/ <output_apk_name>.apk
If this throws errors or does not work then use the -v switch to turn on verbose mode and diagnose your problem. If you did the test in step #1 and it worked then any problem at this step is likely related to your news strings.xml. Back out the changes one by one until you have found the problem and try again.
If you simply can't get it to compile with your changes then try just making a single change to the default strings.xml file in /res/values and see if that works for you.
Do NOT sign the apk!​
5. add the new strings to the apk
Easy. Open your new apk with a zip program (like 7Zip for Windows) and copy out the resources.arsc file in the root directory of the apk. Now take that file and copy it into the source apk from the rom overwriting the existing one. This process replaces the strings but keeps the integrity of the signatures on the files.
You can now push the modified file to your phone, replacing the stock one, reboot and you're translated. Push the file using "adb push" or copy it into place using a root file manager, do not "install" the new apk. Make sure you put it in the correct place (replace the original) and reboot.​
Conclusion
This process will help you add languages to any app including those in the MIUI rom. Because it's a rom the strings are contained in many different apps as well as framework-res.apk. To completely translate the rom you will need to edit every apk that has strings in it.
You will need to do this every time an apk in the rom changes. If a new version is released and say launcher2.apk is changed but updater.apk is not, then you can retain your updater.apk but you'll need to re-edit your launcher2.apk.
When an app changes the default strings.xml may also change. In this case you will need to make corresponding changes to your translations.
Good luck and if you get really stuck there's lots of people in this that have achieved success and may be willing to help!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=789566
MIUI 1.2.11 for Vision ENG
Hi, all. I like the MIUI ROM and as most of you want to have latest version as soon as posible. But I am not a dev and my skills in android development are very very poor. So, i followed the versions of MIUI by g4rb4g3. They all are very stable and fast. And i want to say once more HUGE THANX to him for his work.
But when i found this thread today in the morning i decide to make it in english. So, putting together the ROM from 1st post and ENG pack for N1 from MIUI-DEV.COM with some additional editing of built.prop and adding some apps. I made a pack. Flashed it and it is working fine.
P.S. The only chinese words that i found are in MIUI account registration in Accounts&sync.
Adding: Facebook, Twitter, VoiceSearch, Google Search, gMaps, Street, GMail etc. (all apks are up to date).
DOWNLOAD LINK: http://www.multiupload.com/PVZRB1NRHK
P.P.S. All you do with this pack is on your own risk. I am not responsable for any damages of your phone.
ok cool so basically u made a english version for that latest update cool cool
terrelltp said:
ok cool so basically u made a english version for that latest update cool cool
Click to expand...
Click to collapse
Maybe, you could add the link to ENG version to 1st post of this thread. Could you?
da900 said:
Maybe, you could add the link to ENG version to 1st post of this thread. Could you?
Click to expand...
Click to collapse
i thought thats what u did isint that link u posted the english version
terrelltp said:
i thought thats what u did isint that link u posted the english version
Click to expand...
Click to collapse
I think he means add the link that HE provided to your first post, so that users will actually have an ENG version, instead of the one you posted.
dictionary said:
I think he means add the link that HE provided to your first post, so that users will actually have an ENG version, instead of the one you posted.
Click to expand...
Click to collapse
That's what i mean. Thanx.
lol yes i did that now
da900 said:
Hi, all. I like the MIUI ROM and as most of you want to have latest version as soon as posible. But I am not a dev and my skills in android development are very very poor. So, i followed the versions of MIUI by g4rb4g3. They all are very stable and fast. And i want to say once more HUGE THANX to him for his work.
But when i found this thread today in the morning i decide to make it in english. So, putting together the ROM from 1st post and ENG pack for N1 from MIUI-DEV.COM with some additional editing of built.prop and adding some apps. I made a pack. Flashed it and it is working fine.
P.S. The only chinese words that i found are in MIUI account registration in Accounts&sync.
Adding: Facebook, Twitter, VoiceSearch, Google Search, gMaps, Street, GMail etc. (all apks are up to date).
DOWNLOAD LINK: http://www.multiupload.com/PVZRB1NRHK
P.P.S. All you do with this pack is on your own risk. I am not responsable for any damages of your phone.
Click to expand...
Click to collapse
WOOOO..good job . it's perfect !!!!!!!! work very well ~!! thanks a lot

[Q] Begginner's Theming Question

I am very interested in theming and I downloaded all the recommended software/programs mentioned in the theming threads...
However I can NOT find the answer to my question---
once I have everything I need to edit/create a theme how do I actually begin?
What I mean is, for example, if you want to edit a .PSD file you would open Photoshop to edit the file....
so which program do I use first to open the theme I plan to edit? and is there a "stock" theme to edit as I like or would I download...say...the Evo stock ROM and edit the files in there?
I think I read I should begin with 7z? is this right?
All I've found so far is alot of technical explanations for someone who has experience...once I find out the basics I'm sure it will all fall into place...
if there IS an easy answer posted can someone PLEASE point me in the right direction?
Thanks.
*EDIT*
I was double-clicking on framework-res.apk (following instructions) which was why it wasn't working...once I extracted the file using 7zip all the drawable files were there...I had NO IDEA there were THIS many .png images to edit...lord have mercy...this is gonna be FUN.
If u use a program called apk manager u can put an apk in the and decompile the apk. That mean it opens up the resources.arcs and the classes.dex files and also turns the bianry XML files to readable XML. Meaning u can use this to edit XML and smali files to change colors(mostly in xml files) and also rearange things if u know how to edit smali files. The decompiling also show u all the pngs and the .9 PNG files. The .9 PNG files here will already be showing there draw 9 edit so all u really have to do is edit the image leaving the very edges alone and ur done. Then once all ur edits are done u can recompile the apk and push it back to ur phone. U might have to resign the apk or however u want but there is an easy way to get started. The framework apk is a system apk so u might have to select the correct way to decompile it.
Hope this helps.
See other tutorials on how to create flashable zips and how to edit smali files and XML files.
Usually codes in XML files for colors are set in an eight digit code that cool look like this...ff000000(black) or this ffffffff(white). If u good XML color codes u can find many sites that give show u colors and there codes but to help it works like this...ffrrbbgg....meaning ff (amount of transparency) rr (red) bb (blue) gg (green). I might have put colors in wrong order but u get gist I hope.
Just make sure when editing ur PNG images that when u save them u save them as a PNG only also when editing .9 png files(stretchable pngs) that u leave it as a .9png file. When u save it if it asks just save as PNG but the .9 will stay.
Hope this helps a little
Btw the amount if edits through out an entire them (many apks) is rediculous and many people have no clue how time consuming it can be.
If u need further help u can gtalk me and id be happy to walk u through the process. [email protected]
yeah I downloadad all the tools needed but where I got stuck was, once I have the tools, ROM, etc where do I actually begin at?
I was reading the Ultimate Theming Guide by Google (here) but got confused when it said "double-click the framework-res.apk"...it should have said "extract framework-res.apk with 7ZIP"....when I double-clicked I got all the crazy-looking letters that seemed to be encoded...when I extracted with 7ZIP I saw all the drawable images...all 800+ of them...had no idea there were that many...
so all I have to do, as far as small changes, is edit the .png images in the drawable folders, archive it back together and sign it? do I make it a .ZIP or an UPDATE archive?
broad_st_bully said:
yeah I downloadad all the tools needed but where I got stuck was, once I have the tools, ROM, etc where do I actually begin at?
I was reading the Ultimate Theming Guide by Google (here) but got confused when it said "double-click the framework-res.apk"...it should have said "extract framework-res.apk with 7ZIP"....when I double-clicked I got all the crazy-looking letters that seemed to be encoded...when I extracted with 7ZIP I saw all the drawable images...all 800+ of them...had no idea there were that many...
so all I have to do, as far as small changes, is edit the .png images in the drawable folders, archive it back together and sign it? do I make it a .ZIP or an UPDATE archive?
Click to expand...
Click to collapse
If u want to flash it yes if u want to just copy and paste to ur phone then no. If u c & p it then make sure u set the permissions after
smurf
so if i edit the 9.pngs say just the color i dont have to run them through draw9patch or anything like that?
dased14 said:
smurf
so if i edit the 9.pngs say just the color i dont have to run them through draw9patch or anything like that?
Click to expand...
Click to collapse
If u edit their colors u have to run in draw9patch and then recompile them. There is a program called "xultimate-d9pc" that u can use to recompile them. Do a goodle search and Ull find the script. Its easy to use and easy to setup. If u don't ur .9 files will look jacked up
i have that(couldnt get it to work right) i'll try it again. thanks smurf
dased14 said:
i have that(couldnt get it to work right) i'll try it again. thanks smurf
Click to expand...
Click to collapse
To get it to work I created a folder call draw 9 compiler. I put the script and the folder called originals in there. Inside the original folder I creates a few folders called drawable, drawable-hdpi, drawable-mdpi, drawable-ldpi. Then after I edit and draw9patch my images I put each one in the ffolders they belong in and go to xultamate-d9pc and click k on it and it will create a done folder u can go into and and all the images will be fixed in there
I'll try that, thanks for the tip
now the voices are 3d
sweet that looks to work perfect only thing extra i had to do was make original/res/then the other folders you said. thank you smurf
dased14 said:
sweet that looks to work perfect only thing extra i had to do was make original/res/then the other folders you said. thank you smurf
Click to expand...
Click to collapse
Ur welcome and yeah my bad I meant to tell u Res file first. But glad its working

[Q] Themes & Roms Developers i need your help plz

Hi everyone
sorry for posting the same theard twice
I posted my question here couz it is not a normal question
I have xperia arc 2.3.4 rooted
I am trying to make my own theme and here is what i done
1- i copied the framework-res.apk from my system
2- i decompile it useing Apktool last version
3- i changed a lot of pictures inside it with the same name and type (.png all)
4- i edit a xml file by adding more lines ( the battery xml )
5- i complied it useing apktool without any problems
6- i signed it with apksign without any problems
7- i replaced it with the one in my system with root explorer and it forcedclose and then i restart the phone
The phone booted to the locke screen and it was new with my new pictures and the new battery also was new with my pictures
But when i unlock the phone and type the pin code EVERY THING FORCED CLOSE ! And the phone rebooted with the same problem
Now what the f... I did wrong what is the problem ? I have been working all day on it with a big fail !!!!!!! Plz help plz plz
Are the permissions correct?
sinkster©
sinkster said:
Are the permissions correct?
sinkster©
Click to expand...
Click to collapse
yes
Mr.Smile said:
4- i edit a xml file by adding more lines ( the battery xml )
6- i signed it with apksign without any problems
Click to expand...
Click to collapse
Those are your problems right there...
Firstly, you cannot add anything to an apk, without adding a unique id in public.xml.
Secondly, you don't need to sign system apps.
iridaki said:
Those are your problems right there...
Firstly, you cannot add anything to an apk, without adding a unique id in public.xml.
Secondly, you don't need to sign system apps.
Click to expand...
Click to collapse
So what to do now ? How i maked work
i have used winrar to replace images and it work but without replaceing the xml
for xml i decompiled the file and edit the xml by adding few lines then i compile it and took the xml from it to the file i edit with winrar but it does't work i think the problem that i have edit the xml but did't add a unique id in public.xml couz i don't know how to do it
Mr.Smile said:
for xml i decompiled the file and edit the xml by adding few lines then i compile it and took the xml from it to the file i edit with winrar but it does't work i think the problem that i have edit the xml but did't add a unique id in public.xml couz i don't know how to do it
Click to expand...
Click to collapse
You need to count in hex and add the new drawables, being careful not to have duplicate ids.
Also you need to edit the battery display and animation files so that the new images are used.
I recommend UOT Kitchen if you are not that experienced.
iR¡[email protected]!* via Tapatalk 2

Categories

Resources