how to edit string.xml file? - Nexus S Q&A, Help & Troubleshooting

hi i searcheeed too long , to know how to edit string.xml , i download some apps non of them can open it , when open it just show one or two line above , not whole , how to see all lines?
thanks.

Well when you open a new app, the strings.xml usually just has a "Hello, world!" string or something really small. There are only 3-4 lines in a fresh open of a strings.xml.
So maybe you must have created a new android project and just opened it...

You need to decompile the app so that all the strings get decoded or it is like mathkid says.

i did decompile also by apktool.

Oh, I thought you just made an android project, so you needed to have more string tags...
But since you have a decompiled app, not sure...
can you post a screenshot of some sort?

i dont understand , what sort?

lol plz post a screenshot of your xml file.

i did like this video :
http://www.youtube.com/watch?v=PK0eZCfICUM
but when i try to open it it give me 3 line .
thats my screen shoot
thanks.

Well that's correct, that is just your application name...you need to add on to it now.
Did you already add on to it but it got deleted or something like that? Because that string is what shows up under the application icon on a phone...

thank u , the problem was this APK , i tried with another one and worked ,
thank uu.

Ah ok, cool!

Related

Mini Weather (English Beta) WM6.1

Hello everyone,
With permission from the creator of mini weather I am posting an english version of the program.
Currently is shows weather conditions in the appointment slide panel.
There is no icons in this version for weather conditions.
I will post screen shots later today when I get home from work.
Xfaith
***Update I cant get the .rar file to my work computer to update the help files***
I will have to wait till I get hime to add the attachment
Ok here is the file, going to try and create a cab file for it, and will update the creator of the file.
Any issue's please post here, also if you notice spelling errors please post here.
Thank
X
The link is broken. Please r upload.
thanks
Rgr
I just downloaded it with firefox 3.0
But here it is again, will post a screen shot ina minute also
xfaith said:
Rgr
I just downloaded it with firefox 3.0
But here it is again, will post a screen shot ina minute also
Click to expand...
Click to collapse
I still get invalid zip file even download it direct to my phone.
Thanks
rgr, i use winrar, must not like the zip format, downloading winzip program real quick and reload it.
X.
xfaith said:
rgr, i use winrar, must not like the zip format, downloading winzip program real quick and reload it.
X.
Click to expand...
Click to collapse
OK can download and file ok. installing now.
THANKS very much
I have Mini Weather installed. Fantastic. Bu how can I have the reading in Centigrade instead of Fahrenheit?
Thanks
I think maybe if you switch from www.google.com to somethingl ike www.google.co.uk (this is in the miniconfig1.ini)
I will ask the developer.
X
xfaith said:
I think maybe if you switch from www.google.com to somethingl ike www.google.co.uk (this is in the miniconfig1.ini)
I will ask the developer.
X
Click to expand...
Click to collapse
I have been googleing this whole evening but failed. www.google.co.uk only give temperature in C for current condition but not tomorrow and the following day. Even that it was indicated as ??F. It should be ??C. I believe that F is hard-coded.
Hopefully the developer will improve further on this product.
Thanks for your help anyway.
xfaith said:
rgr, i use winrar, must not like the zip format, downloading winzip program real quick and reload it.
X.
Click to expand...
Click to collapse
great product....needs icons that shows the clouds for cloudy and sun for sunny etc....can someone work on this...maybe copying and pasting pics from the internet and then assigning them to values in the coding....if someone can give explanation on how..i can test it
ryah I know the chinese version has the icons, this is a first beta in english. I am not sure what he is programming in. I used PE Explorer to edit some spelling issues I originally saw. I have the icon set also that he is using with the Chinese version.
Also I have created a CAB file for it, will post it when I get to work. It cretates the folders, and puts the files in, and also created a RAI for :MINIWEATHER (thinking for future).
X
Location Display
I added the following to all CityStartStr like this:
CityStartStr=postal_code data="
and I get the City Location to be displayed
Nice, did you figure out the Celcius:
xfaith said:
Nice, did you figure out the Celcius:
Click to expand...
Click to collapse
nope. those are sent by the server so some conversion routine need to be coded in the program.
thanks
Does that show the zip code or the city when you added that?
X
Xfaith,
I have installed this and it kind of works. I don't get what I had expected after modifying the ini file. I changed the city which I think worked but I do not get current weather and I don't get extended weather (more than one day). I am sure that I have made a mistake with my modification of the ini. After I modify the ini file do I have to reboot the phone to see the change?
Select update now.
Right now I only show today/tommrow on my slide panel, have not figured out (have not had the time) to go past that and see what else I can get going.
I tried to email the developer to add Celcius support from the settings pane, and he said give it about a week for icons, the chinese version already supports the Icons.
I am working on updating the .cab file I created, but can only do so much.
xfaith said:
Does that show the zip code or the city when you added that?
X
Click to expand...
Click to collapse
It show the city name. I tried to upload my homescreen pic but xda server is having problem now.
Thanks
No problem I used <city data in mine instead, which provides the same thing. The developer gave me an update but it was just the spelling issues that I already noticed. I wish I knew what language the program was written in. Or better yet could read the chinese version a little to compare the two.
But I can wait a bit longer as he updates the english version. Hopefully it will be less the a week before we can start seeing icons.
X.
xfaith said:
No problem I used <city data in mine instead, which provides the same thing. The developer gave me an update but it was just the spelling issues that I already noticed. I wish I knew what language the program was written in. Or better yet could read the chinese version a little to compare the two.
But I can wait a bit longer as he updates the english version. Hopefully it will be less the a week before we can start seeing icons.
X.
Click to expand...
Click to collapse
In my case if I use <city data I'll get this:
<city data="Kuala Lumpur, Kuala Lumpur"
so,
<postal_code data="Kuala Lumpur" is more appropriate. Well, whatever, we achieved what we wanted to see; that matters.
I dont mind waiting for the icons. My wish list:
- choice between celcius and fahrenheit
- display more days
- everything should be done through the settings panel rather than having to modify the .ini file.
- multiple cities choice
- able to modify city name (especially long names which I want to truncate)
Question: does the "Get Network Time" update the device clock? and can I change to a different server to get the time and the weather report?

My own apk and modifying it question

I have an apk that was created a while back by a developer. I cannot get to the developer and more so I need to find a way to modify it somehow.
I have a list of selections on a drop down list inside the apk and I need to modify the words on a couple of selections on that list.
How do I do this and rebuild into an apk again?
I also need to change the version of the apk in order to upload it back to Google Play with these changes.
How do I do that?
Bill
Use apktool for windows
Someone on another forum just told me about Virtuous Ten Studio. It works great and is very easy to use. I consider this one solved.

split screen for all apps

Hey everybody,
I recently updated to lollipop. I am on the mt7-L09 running version b324. I must say I really love everything about it. I have successfully rooted it and I am running twrp 2.8.7.0 recovery and everything is running great. The only issue is that I would love to have all apps work with the new split screen feature the way you can on a samsung device. Did anyone know of a way to get all apps working with split screen? Any help would be greatly appreciated. Thank you in advance.
I have almost got it figured out. I just need to know how to get an apps component name. I used sqlite editor data/data/com.huawei.hwmwlauncher then to hwmultilauncher.db then to hw_mwlauncher. And the list of all the allowed apps are there. With component name and package name. I am trying to add youtube and I know the package name is com.google.android.youtube I just cant get the component name. Any help on this and I can figure out the rest and post a tutorial on it.
kxhan15 said:
I have almost got it figured out. I just need to know how to get an apps component name. I used sqlite editor data/data/com.huawei.hwmwlauncher then to hwmultilauncher.db then to hw_mwlauncher. And the list of all the allowed apps are there. With component name and package name. I am trying to add youtube and I know the package name is com.google.android.youtube I just cant get the component name. Any help on this and I can figure out the rest and post a tutorial on it.
Click to expand...
Click to collapse
Check out http://developer.android.com/reference/android/content/ComponentName.html. Can you post the existing ComponentNames?
PoisonNinja said:
Check out http://developer.android.com/reference/android/content/ComponentName.html. Can you post the existing ComponentNames?
Click to expand...
Click to collapse
Thank you, and yes I sure can post the existing ones. I spent all night decompiling apk's and have gotten youtube and tumblr to work with multiwindow. I have found that the component names are located in each apk's androidmanifest.xml file. The problem is that they are not all the same, and they are all in diferent spots within the manifest.
This is youtube component name com.google.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity
You notice the first part before the / is the package name of the app. After / is the package name and the activity the app is supposed to launch with. The problem I think is that not all dev's write the same way. For instance this is the Gallery app's component name com.android.gallery3d/com.huawei.gallery.app.GalleryMain
I have been able to run split screen for all apps on Mediapad X2. Maybe it can help mate 7 too(though not sure how different these devices are)
thread here : http://forum.xda-developers.com/mediapad-x2/general/emui-3-1-apps-multiscreen-t3193389
Thank guys for the support .. wish you the best of luck
bark1234 said:
I have been able to run split screen for all apps on Mediapad X2. Maybe it can help mate 7 too(though not sure how different these devices are)
thread here : http://forum.xda-developers.com/mediapad-x2/general/emui-3-1-apps-multiscreen-t3193389
Click to expand...
Click to collapse
I have been able to get most apps to work. I get the component names by running logcat through adb. When I open the app the component name shows up in the log. The problem I am having now is finding the permisions and editing them so they all fully work in multiwindow
Does anyone know what file the whitelist app list is in? Some Blacklist apps are in a file called "karaokeeffect"

Samsung Theme Builder Thingy - [Tool/Source]

Oh hey guys.... I didn't see ya there. Welcome to my Theme Builder Thingy. So you're probably wondering what exactly this is. Well I'm glad you asked. But first I need to give a huge shout out to my good ol' carnt of a bloke pal @daveyannihilation for his ongoing support for making this. He didn't do anything but he was very encouraging in our group chats. so make sure if you see him around you say hello.
So what this is, is source code essentially to be able to construct a Samsung theme in Android studio. I tried the old leaked Samsung Theme tool and albeit does work, it's less than ideal and honestly it's a bit dated. Feel free to still use it because there are some advantages it has. However from what I gathered folks are using other things like apktool to make their themes and in order to do that you'd have to take someone else's base which I personally am not a fan of doing. Not to mention how cumbersome it is decompiling tons of apps, converting stuff to or from .qmg or whatever and then, recompiling and signing with a generic debug key. Too much of a pain.
Now to be clear this tool or thingy.... Yeah let's call it a #Thingy because why not. So this Thingy does not work the same way that the Samsung tool works in that you'll still need to make your own images and xmls. Because well I'm not doing it for you! But this will build your theme properly and securely. Anyone who's using an antivirus app like: lookout or whatever will get annoying notifications saying you're using "riskware" when installing a theme through other methods. That's because it isn't built properly or securely.
This will make your theme using a private signing key and should you decide to you can upload your theme directly too google play and it will pass and be just fine.
But wait.... There's more.... I've done basically all the work for you in regards to how it builds. You can literally drag and drop the contents of your res folder in this, change a few names via batch and build it and then bob's your uncle.
The key to this is to follow the instructions. I've went step by step, button for button on virtually everything you need to do to use this so if you experience an issue then chances are you didn't follow them.
You can ask for some support in here if you're truly stuck on something but you really should try to figure this out. It's really not that difficult to do, although putting this together and getting this to work was an absolute nightmare!
So. below are the instructions which are also built into the source. Please keep in mind that every file included in the source is there for a reason. You do not need to delete anything in there unless it tells you to in the instructions!
Bottom line, this is a very fast and efficient way in which to create a theme without kanging someone else's base and just changing stuff up. Again, we're building from source here so to speak so that's what I consider the right way of doing things.
Now if you don't feel this Thingy is for you that's totally fine. I will not lose sleep should you choose other methods. However there will be some who find this very handy so. I'll leave you with the instructions and then give a few shout outs to a few people who gave me a few suggestions, and let me bounce ideas off them.
@sykopompos @nicholaschum @Venom0642 for unknowingly letting me use his theme for proof of concept purposes! @bigmase23 for being > @freeza + cobs combined .
Instructions:
#Samsung theme Template Builder Thingy by Mark Bencze Theme Template for Samsung 7.0 phones Alt text
First things first. You need to use only .png and .xml format. DO NOT USE .qmg or any other extension.
Step 1: import project into android studio Step 2: allow Gradle to finish doing it's thing. You'll notice a progress bar at the bottom doing stuff. It may take a few minutes depending on your computer. Step 3: on the left side of the page close to the top you'll see a "project" tab written vertically along with the android studio icon below it. Click on that. Then just to the right and above it you will see an "Android" tab with a drop down menu. Click the menu drop down and select "Project". This may trigger gradle to do it's thing again. If it does, let it finish. Step 4: You will see "offical theme tool source" folder. click on it to expand it. This is what we're working with. Do not worry about or touch "External Libraries" Step 5: While you have "offical theme tool source" selected (highlighted) go to the edit tab at the top of the screen. Step 6: Go to find, Replace in path and search for "com.yourname.themename". Replace that with whatever you want to call it. This should be self explanitory on the naming of it. make sure in this pop up menu under scope that you have "whole project" selected and then press find. This will change 675 files give or take. you want to select "yes to all" when asked. Step 7: In the folder _app/src/main you will find you AndroidManifest.xml. Enter the name of your theme there. You do not need to use an underscore _ You can use a space if you wish.
Now this next part is very important. Failure to follow this will cause your theme to fail to work. The manifest I have provided in the _apps folder has about 60 or so asset names. So does the json.file and you'll also notice that you have the same amount of folders in this source. All three of these must match. For example: If you do not wish to use the asset "touchwiz" in your theme, you must delete that reference carefully from the AndroidManifest, json.file as well as remove the folder from the source to the source. The three things need to communicate and jive with each other and if you do not have them all in sync you will get an error during installation of the theme on your device saying in a toast message "Master Package Not Formed Properly". So if you get this, it is your fault not mine! I warned you!
Remember that if your manifest says to build the touchwiz apk and you don't have it or, you've improperly named things within that apk the theme will not build properly. That should make sense right?
Ok great that wasn't hard at all was it?
The next part is for if you want to add additional assets. If you do not with to you can skip to the "Build Part". Now let's say you have additional assets you with to add to this ie: navbar. For one always use lower case letters when adding a new asset apk to this (including the manifest). The same rule applies that we just spoke about. Add the name to your manifest and your json.file first. Then call the folder whatever it's called. ie: "navbar". do not call the folder "com.navbar" or anything like that. So what you need to do is take an existing asset folder and make a copy of the folder. for example settings folder. You'll then change the name of your folder that you made a copy of to "navbar" since that's the example we're using right now. You will notice there is a .iml file as well inside our copy. We need to change the name of that to "navbar.iml" in order to have the asset apk form properly. You can do this either inside android studio by either right clicking on the file and going to "refactor" and then rename. Or you can do this outside of android studio. You do not need to open the .iml file and edit it. You do however need to open the build.gradle file for the app and change the last part of the app name located on line 8. This will still be showing the original app name. We don't want to make a duplicate right? So make sure you adjust that. The build.gradle is really the brains of the operation in this whole program. As you can see they actually control everything and will overwrite your manifests. You do not need to touch the manifest for each asset apk either.
So now you will see a "settings.gradle" file at the bottom (directly below this readme file!!!) open this file. At the top you will see a series of asset folder names that are identical to the names of the folders already provided in here. So if you want to add a new asset you must also reference it here. Follow the structure of how this is already written to add another one in. It's as simple as writing: ie: ":appname", Just remember that at the very end there is no comma!
"Build Part" So you're ready to test your theme and just want to build it. At the top go to the "build" tab and select "build apk". This will build all your asset apks in a min or two depending on the speed of your computer. When it's done you'll see a notification telling you it was successful. You can go see for yourself by going to _app/src/main/assets and you will see your asset apks. Next you need to build the main apk. Go back to the build tab and this time select build signed apk. You will now need to either make a private signing key or use an existing one if you have one. It's not hard to make one so figure that out or google it. the first popup window shows the theme being on the _app folder. that's where it needs to be so do not select anything else or it will not make the apk. So next go through the signing key process. On the last part you will select the version you want to make. Either Release or debug. By default it will be set to Release. Keep it this way and select both check boxes for jar and apk signature under signature versions. Then hit Finish and you're all done! In about 2 seconds your theme will be made and ready to install!
I hope you find this tool useful! It was a huge pain in the ass to make this and a lot of work!
Download Theme Builder Thingy Template
May want to snag this post for future reference
But wait.... there's more...
Holy hell I can't wait to use this. Thank you you're a god
Excellent mate glad you made this tool , As you mentioned using my themes to get stuff going is great, which now this tool is gonna make my life easier in making my Samsung custom themes, Great job ???
Sent from my Samsung Galaxy S8+ using XDA Labs
Congrats bro, excellent work as always!!
@markbencze
Great job bud..... finally after alot of hours.... all worthed and could be the new beginning for samsung theming world.
I won't be using this but because of your new tool I'm sure we will see even more custom themes start to pop up and for that I thank you good sir. Awesome work!
tytydraco said:
Holy hell I can't wait to use this. Thank you you're a god
Click to expand...
Click to collapse
lol My wife says otherwise!!!
#ThemeThingyFTW
Lol you're an idiot Mark. No one who cares about open source should support Samsung smartphones in any way, shape or form. If you wanna do it, then you go for it. But don't bring me into this. I'd sooner buy an iPhone than one of these hunks of junk.
Meke Blackscreen OS theme! Nao!
Good job on this Bencze... I'm glad you stuck with it!
This is an awesome Thingy Mark! Great job and Thanks man
daveyannihilation said:
Lol you're an idiot Mark. No one who cares about open source should support Samsung smartphones in any way, shape or form. If you wanna do it, then you go for it. But don't bring me into this. I'd sooner buy an iPhone than one of these hunks of junk.
Click to expand...
Click to collapse
Lol you had to know this was coming and know I couldn't resist! #TeamCarntOut
Jayrod76 said:
Meke Blackscreen OS theme! Nao!
Good job on this Bencze... I'm glad you stuck with it!
Click to expand...
Click to collapse
Thanks big guy. Almost gave up a few times
Awesome work bro!
cbucz24 said:
Awesome work bro!
Click to expand...
Click to collapse
Thanks big guy. Now we just gotta wait for ws to kang it and just change the wallpaper lol!
markbencze said:
Thanks big guy. Now we just gotta wait for ws to kang it and just change the wallpaper lol!
Click to expand...
Click to collapse
hy man can i ask a favour
can u zip last samsung theme editor you use because on mine i need to download last version if i donìt download i canìt open the app..
i reg and do it all thinks in samsung developer but i'm waiting again more than 3 weeks. can u give to me last theme via pm if you can
alex393 said:
hy man can i ask a favour
can u zip last samsung theme editor you use because on mine i need to download last version if i donìt download i canìt open the app..
i reg and do it all thinks in samsung developer but i'm waiting again more than 3 weeks. can u give to me last theme via pm if you can
Click to expand...
Click to collapse
Dude I don't have a clue what you're saying. Please restate what you're asking me and try to be more coherent and specific on what you're saying. I have no problem offering support but you lost me at hy
I might use this soon. Let me just put this out here, your post, the op, is actually amazing. I love the way your wrote it. You are great.

Edit APP and Re-publish to play store

Hello,
I import product from China, they have their own APP.
I rebrand their product and sell.
How can I edit their app with my brand name and change appearance and upload back to play store to be able to install by my clients ?
Looking forward for kind help.
Thanks & Warm Regards
saurabhvasa said:
Hello,
I import product from China, they have their own APP.
I rebrand their product and sell.
How can I edit their app with my brand name and change appearance and upload back to play store to be able to install by my clients ?
Looking forward for kind help.
Thanks & Warm Regards
Click to expand...
Click to collapse
You're literally asking for help on how to steal someone else's property?
No, I have got approval from factory itself, they have Chinese manual, which i dont know .. so they said you can do it yourself and they have already given permission agreement for that.
CosmicDan said:
You're literally asking for help on how to steal someone else's property?
Click to expand...
Click to collapse
saurabhvasa said:
No, I have got approval from factory itself, they have Chinese manual, which i dont know .. so they said you can do it yourself and they have already given permission agreement for that.
Click to expand...
Click to collapse
Alright, fair enough. I've done this work myself before.
This should be relatively easy, most of the resources will be in the res folder. You'll need to use APKTool and decompile the APK, edit XML's and replace png's and such.
Sometimes they hard-code strings though and it might be in the smali files.
You will also need to change the package name though. This involves a mass find-and-replace in smali, the Android Manifest XML, and renaming the packages (folders).
You can re-sign the APK yourself with zipsigner once recompiled, that's all you need for Google Play distribution. Apart from a developer account of course.
Appreciate your reply.
But im not technically well versed with this ... any website or video tutorial where step step process is mentioned will be good for me ...
CosmicDan said:
Alright, fair enough. I've done this work myself before.
This should be relatively easy, most of the resources will be in the res folder. You'll need to use APKTool and decompile the APK, edit XML's and replace png's and such.
Sometimes they hard-code strings though and it might be in the smali files.
You will also need to change the package name though. This involves a mass find-and-replace in smali, the Android Manifest XML, and renaming the packages (folders).
You can re-sign the APK yourself with zipsigner once recompiled, that's all you need for Google Play distribution. Apart from a developer account of course.
Click to expand...
Click to collapse
saurabhvasa said:
Appreciate your reply.
But im not technically well versed with this ... any website or video tutorial where step step process is mentioned will be good for me ...
Click to expand...
Click to collapse
There are plenty out there. The key tool is called "APKTool", try googling for something like "modding resources with APKTool". You will have to learn, there is no shortcut I'm afraid!
Super .. Thanks a lot ..
CosmicDan said:
There are plenty out there. The key tool is called "APKTool", try googling for something like "modding resources with APKTool". You will have to learn, there is no shortcut I'm afraid!
Click to expand...
Click to collapse

Categories

Resources