How To: Setup up new cities in Weather for PointUI Home2 - Tilt, TyTN II, MDA Vario III Themes and Apps

I have posted this on the community forum at PointUI.com, but I will repost here.
Picture
First, a quick note on the attached picture. The QVGA map is half the size of the VGA map, therefore the locations are off by 2 times. Just divide the X, Y coordinates by 2 to get the QVGA locations. To get a new location, use MS Paint in Windows (pic editor), mouse over where the city you want to add is and look in the lower right-hand corner for the X, Y coordinates.
XML File
Thank you to Montecristoff at PointUI for this first part:
A quick guide to add your own city on World or Today Applet:
> goto accuweather.com to find your city with its code
When you found your town on Accuweather website, the code is in your browser adress bar. You just have to check url to isolate it.
You could also use this to obtain the complete url : http://www.accuweather.com/rss-center.asp
> Copy the following file from your device to your PC:
Program Files\Home2\AppletRibbon\Today\Cities.xml (for Today applet)
Program Files\Home2\AppletRibbon\World\Cities.xml (for World applet)
Click to expand...
Click to collapse
On to my stuff.
I was able to add my city and others in the United States, but I followed the existing patterns in the XML file. The previous post entries on how to use the '0&amp' are partially correct.
Here is what I use:
<item>
<id>22602</id>
<text>Winchester, VA</text>
<x>85</x>
<y>44</y>
<url>http://rss.accuweather.com/rss/liveweather_rss.asp?metric=0amp;locCode=22602</url>
<newsurl>http://news.google.com/news?ned=us&output=rss</newsurl>
<gmtOffsetMinutes>-300</gmtOffsetMinutes>
</item>
Click to expand...
Click to collapse
For the id, use the US Postal Zip Code for the city you want. Then use "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=0&locCode=*Your Zip Code*"
Just replace *YourZipCode* with your 5-digit zip code, and *Your X*/*Your Y* with your X, Y coordinates. See code below:
<item>
<id>*Your Zip Code*</id>
<text>Winchester, VA</text>
<x>*Your X*</x>
<y>*Your Y*</y>
<url>http://rss.accuweather.com/rss/liveweather_rss.asp?metric=0amp;locCode=*YourZipCode*</url>
<newsurl>http://news.google.com/news?ned=us&output=rss</newsurl>
<gmtOffsetMinutes>-300</gmtOffsetMinutes>>
</item>
Click to expand...
Click to collapse
Note: I use a MortScript to update both XML files from one location. This may be helpful if you are playing around with this file a lot. I leave my "main" copy on my storage card and make all my edits there. When I am done with that, I shut down Home2.exe, run my script, and restart Home2.exe.

I`ve got a problem.
I want to add my city, but everytime i run home2 it crashes. This is the code i added to the cities.xml:
<item>
<id>EUR|PL|PL003|PABIANICE</id>
<text>Pabianice</text>
<x>359</x>
<y>58</y>
<url>http://rss.accuweather.com/rss/liveweather_rss.asp?metric=0&locCode=EUR|PL|PL003|PABIANICE</url>
<newsurl>http://news.google.com.au/news?ned=uk&output=rss</newsurl>
<gmtOffsetMinutes>60</gmtOffsetMinutes>
</item>
Click to expand...
Click to collapse
What is wrong with it?
Thanks in advance for any help.

jankulus said:
I`ve got a problem.
I want to add my city, but everytime i run home2 it crashes. This is the code i added to the cities.xml:
What is wrong with it?
Thanks in advance for any help.
Click to expand...
Click to collapse
Here is your code:
<item>
<id>EUR|PL|PL003|PABIANICE</id>
<text>Pabianice</text>
<x>359</x>
<y>58</y>
<url>http://rss.accuweather.com/rss/liveweather_rss.asp?metric=0&locCode=EUR|PL|PL003| PABIANICE</url>
<newsurl>http://news.google.com.au/news?ned=uk&output=rss</newsurl>
<gmtOffsetMinutes>60</gmtOffsetMinutes>
</item>
Click to expand...
Click to collapse
There are a few things wrong with your script though.
1) The ampersand (&) is incorrect scripting. Replace it with "amp;". Don't forget the semicolon --> ";"
2) There is a space added in your URL line for your location
Change your URL line to this:
<url>http://rss.accuweather.com/rss/liveweather_rss.asp?metric=
0&locCode=EUR|PL|PL003|PABIANICE</url>
Click to expand...
Click to collapse
Just put all of that code on one line in your xml.

Thanks! it works!!!

Hi, I'm having difficulty with city Bandung, Indonesia..
Could you help to create my code?
Thanks in advance

Related

how do you read xml files in the apk files, help???

Hi Everyone
I feel like an idiot asking this question but how can what can I use to read the xml files that are in the apk files? Every time I double click on them and IE opens I get an error. I then downloaded an xml editor and when I tried to open it in there I also got an error.
Right click on the file, click open with and choose notepad to view its raw formating. if you want a cleaner look use word to view the XML file. Be careful not to save it in word though it can garble the file. you will just have to play with it to see what works for you.
IE definitely is not a good way to view and edit XML files.
Sent from my HERO200 using XDA App
&RoidRage said:
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Great advice!
lol j/k
Hi Everyone
I feel like an idiot asking this question but how can what can I use to read the xml files that are in the apk files? Every time I double click on them and IE opens I get an error. I then downloaded an xml editor and when I tried to open it in there I also got an error.
Click to expand...
Click to collapse
Do a search in the forums. There are threads I have started and others as well that explain and gives u apps to help
Powers16 said:
Right click on the file, click open with and choose notepad to view its raw formating. if you want a cleaner look use word to view the XML file. Be careful not to save it in word though it can garble the file. you will just have to play with it to see what works for you.
IE definitely is not a good way to view and edit XML files.
Click to expand...
Click to collapse
I have tried viewing in both notepad and word pad and both of them could not read the files that is why I tried to find an xml file editor online lol :-(
dsMA said:
I have tried viewing in both notepad and word pad and both of them could not read the files that is why I tried to find an xml file editor online lol :-(
Click to expand...
Click to collapse
Use smali and backsmali. If you download this little toolkit from here you should be able to edit them in notepad++. I forgot how to use them but its pretty easy.
Maybe I'm wrong--been so long since I've messed with this stuff
dsMA said:
Hi Everyone
I feel like an idiot asking this question but how can what can I use to read the xml files that are in the apk files? Every time I double click on them and IE opens I get an error. I then downloaded an xml editor and when I tried to open it in there I also got an error.
Click to expand...
Click to collapse
The best way is to use brut.all's apktool(http://code.google.com/p/android-apktool/) it does all the difficult work for you.
^ Greatest tool ever.
Decad3nce said:
The best way is to use brut.all's apktool(http://code.google.com/p/android-apktool/) it does all the difficult work for you.
^ Greatest tool ever.
Click to expand...
Click to collapse
Hey did u add the axmlprinter.bat file I posted on ur resource page
Papa Smurf151 said:
Hey did u add the axmlprinter.bat file I posted on ur resource page
Click to expand...
Click to collapse
Yep, with your description
Decad3nce said:
Yep, with your description
Click to expand...
Click to collapse
Woohoo I should tag the link and put it in my sig. That is if I still have room. Lol
XML files are compiled to binary form when app is built. This is why you can't open them.
AFAIK my apktool is only one tool, which decompiles XMLs fully and gives you possibility to compile them back. There is also AXMLPrinter tool, but it doesn't decompile all data and it's used mainly to help with hex editing, cause it can't compile file back.
smali/baksmali doesn't have anything to do with XML files.
Brut.all said:
XML files are compiled to binary form when app is built. This is why you can't open them.
AFAIK my apktool is only one tool, which decompiles XMLs fully and gives you possibility to compile them back. There is also AXMLPrinter tool, but it doesn't decompile all data and it's used mainly to help with hex editing, cause it can't compile file back.
smali/baksmali doesn't have anything to do with XML files.
Click to expand...
Click to collapse
I effing love your apktool. Use it daily!
Papa Smurf151 said:
Woohoo I should tag the link and put it in my sig. That is if I still have room. Lol
Click to expand...
Click to collapse
Go ahead man...
Brut.all said:
XML files are compiled to binary form when app is built. This is why you can't open them.
AFAIK my apktool is only one tool, which decompiles XMLs fully and gives you possibility to compile them back. There is also AXMLPrinter tool, but it doesn't decompile all data and it's used mainly to help with hex editing, cause it can't compile file back.
smali/baksmali doesn't have anything to do with XML files.
Click to expand...
Click to collapse
Dude I love ur apktool. Did u see the axmlprinter.bat file that dec put in his resources page. It works great with axmlprinter2 file. It takes away all the typing in the cmd and does it for u and shows u the readable file in its own small window. A suggestion...maybe adding that to ur apktool would be a great addon
Papa Smurf151 said:
Dude I love ur apktool. Did u see the axmlprinter.bat file that dec put in his resources page. It works great with axmlprinter2 file. It takes away all the typing in the cmd and does it for u and shows u the readable file in its own small window. A suggestion...maybe adding that to ur apktool would be a great addon
Click to expand...
Click to collapse
http://code.google.com/p/android-apktool/issues/detail?id=70
Brut.all said:
http://code.google.com/p/android-apktool/issues/detail?id=70
Click to expand...
Click to collapse
I understand ur view. I didn't make the bat file just thought it was useful and u might like it. BTW words on post instead of just a link really helps in communicating around here. Just sayin
Papa Smurf151 said:
BTW words on post instead of just a link really helps in communicating around here. Just sayin
Click to expand...
Click to collapse
Yeah, I know, sorry for that.
I just like to explain my point of view very precisely to avoid misunderstanding. And I ain't English speaker, so it takes me some time to describe it. I could do just two things to not waste time on repeating myself: give a link or give a link and place a quotation beneath it ;-) Maybe second option is better
Brut.all said:
Yeah, I know, sorry for that.
I just like to explain my point of view very precisely to avoid misunderstanding. And I ain't English speaker, so it takes me some time to describe it. I could do just two things to not waste time on repeating myself: give a link or give a link and place a quotation beneath it ;-) Maybe second option is better
Click to expand...
Click to collapse
Yeah second option would be better but I wasn't bashin bro u do great work
You can also view and edit binary xml's in root explorer, as long as they haven't been hex edited. Skews up the formatting some how.
Sent from my HERO200 using XDA App

[Q] Editting SetupWizard.apk

I seem to be addicting to wiping and flashing daily....
I was wondering if there was a way to edit the setup wizard to already have my gmail login information? Sort of like modifying build.prop to have 140 dpi before flashing....Any help would be much appreciated. Thanks.
Sure...just give me your gmail address and your password >:]
kyouko said:
Sure...just give me your gmail address and your password >:]
Click to expand...
Click to collapse
haha looks like I'll be going through xml's. Thanks anyway!
dburg84 said:
haha looks like I'll be going through xml's. Thanks anyway!
Click to expand...
Click to collapse
I would imagine that the info is stored somewhere in /data/data/ so you could include the folder in a flashable zip - which isn't too hard to make
Otherwise for making it completely included in the apk, as if its a cookie on a website where your info will automatically show up:
Decompile the apk and check out the folder /res/values/ and look at those .xml's Specifically the strings.xml file.... I think.
If nothing's in any of the .xmls or /data/data you should check out the smali data from the apk. Which most likely will probably be a big pain in the ass because there's usually quite a few smali files in apks and they generally have a fairly large number of strings in each one.
Hope this helps
kyouko said:
I would imagine that the info is stored somewhere in /data/data/ so you could include the folder in a flashable zip - which isn't too hard to make
Otherwise for making it completely included in the apk, as if its a cookie on a website where your info will automatically show up:
Decompile the apk and check out the folder /res/values/ and look at those .xml's Specifically the strings.xml file.... I think.
If nothing's in any of the .xmls or /data/data you should check out the smali data from the apk. Which most likely will probably be a big pain in the ass because there's usually quite a few smali files in apks and they generally have a fairly large number of strings in each one.
Hope this helps
Click to expand...
Click to collapse
Thank you very much. I will look into it. Pretty sure I found it in strings.xml Will let you know.
accidental post
dburg84 said:
Thank you very much. I will look into it. Pretty sure I found it in strings.xml Will let you know.
Click to expand...
Click to collapse
did you ever get that working?

[Q]How to translate Android Games?

Anyone can teach me translating games from KOREA to ENGLISH??
Im using apktool, and i see many data inside the APK,
But.
1. I'm not find text Korean for translate
2. All of them using .smali files
3. Value folder
> String.xml [ Inside is Term Of Service ]
> Ids.xml
> public.xml
* In Drawable picture, im only found some picture about login *
bumenoo said:
Anyone can teach me translating games from KOREA to ENGLISH??
Im using apktool, and i see many data inside the APK,
But.
1. I'm not find text Korean for translate
2. All of them using .smali files
3. Value folder
> String.xml [ Inside is Term Of Service ]
> Ids.xml
> public.xml
* In Drawable picture, im only found some picture about login *
Click to expand...
Click to collapse
can you give a link of this game?
fotak-x said:
can you give a link of this game?
Click to expand...
Click to collapse
Sure. But, this game cannot find using PC. Only available in Phone [Little weird, but it's true]:laugh:
I'll upload it
fotak-x said:
can you give a link of this game?
Click to expand...
Click to collapse
Hey, I too need some translation help with this game (link below), the appearance looks great but am not able to figure out how to login. Thanks in advance.
https://play.google.com/store/apps/details?id=com.pip.android.mzx
bumenoo said:
Anyone can teach me translating games from KOREA to ENGLISH??
Im using apktool, and i see many data inside the APK,
But.
1. I'm not find text Korean for translate
2. All of them using .smali files
3. Value folder
> String.xml [ Inside is Term Of Service ]
> Ids.xml
> public.xml
* In Drawable picture, im only found some picture about login *
Click to expand...
Click to collapse
Edit Strings.xml, If there is korean lang convert them into English and paste. then compile and run.
Not sure, but try.

Translate own Chinese apk to English language

Hi to all. I'm trying to translate my chinese apk app to english language from long time but i'm unable to translate & tired. I looked for many guideness & translate articles but instead of it i'm failed. I just want to translate strings.xml, Arrays.xml file to my own english language. If here somebody kind person who can tranlsate my apk to english language. Please provide me the help. I tried with notepad ++ apps to edit strings.xml & seen black chinese words...i want if these black words could be possible to translate in one click instead of one by one. Plz help
Translation utility
mrjoy said:
Hi to all. I'm trying to translate my chinese apk app to english language from long time but i'm unable to translate & tired. I looked for many guideness & translate articles but instead of it i'm failed. I just want to translate strings.xml, Arrays.xml file to my own english language. If here somebody kind person who can tranlsate my apk to english language. Please provide me the help. I tried with notepad ++ apps to edit strings.xml & seen black chinese words...i want if these black words could be possible to translate in one click instead of one by one. Plz help
Click to expand...
Click to collapse
I've written an application for such translating xml files, you can use it to translate xml file in one click.
Steps:
Select xml file (e.g. Strings.xml)
Select source language (e.g. cn for chinese)
Select target language (e.g. en for english)
Click translate menu item
It may take several minutes depending on source length
A new file with translated text will be created in source location with new keyword in file name.
Optionally, you can exclude words and patterns using regex.
Hope this will help many people on Xda. I'm not registered as developer here, pls some one post it as a thread with credits. Thanks in advance.
babuilyas said:
I've written an application for such translating xml files, you can use it to translate xml file in one click.
Steps:
Select xml file (e.g. Strings.xml)
Select source language (e.g. cn for chinese)
Select target language (e.g. en for english)
Click translate menu item
It may take several minutes depending on source length
A new file with translated text will be created in source location with new keyword in file name.
Optionally, you can exclude words and patterns using regex.
Hope this will help many people on Xda. I'm not registered as developer here, pls some one post it as a thread with credits. Thanks in advance.
Click to expand...
Click to collapse
I tries this app but while app starts working it shows some running lines like downloading files,connection failed etc etc... could you plz tell how to use this app
mrjoy said:
I tries this app but while app starts working it shows some running lines like downloading files,connection failed etc etc... could you plz tell how to use this app
Click to expand...
Click to collapse
please post the lines of log.
The program requires active internet connection to use google translate services.
babuilyas said:
please post the lines of log.
The program requires active internet connection to use google translate services.
Click to expand...
Click to collapse
Yes sir my internet connection is always active. I'm sending you screenshot of logs.....
mrjoy said:
Yes sir my internet connection is always active. I'm sending you screenshot of logs.....
Click to expand...
Click to collapse
Dear these are the translations to leading foreign text. Copy and try it in translate.google.com and see it.
If the process is stuck on certain translation; copy the left hand foreign text (in your case chinese characters) and add it to exclude list.
Hope this answers your question.
babuilyas said:
Dear these are the translations to leading foreign text. Copy and try it in translate.google.com and see it.
If the process is stuck on certain translation; copy the left hand foreign text (in your case chinese characters) and add it to exclude list.
Hope this answers your question.
Click to expand...
Click to collapse
I didn't understand properly. You mean while translating this app i should leave it until it finished? what is the purpose to translate left hand Chinese character & it would not be able to copy bcoz its working as auto scrolling while trabslating...
mrjoy said:
I didn't understand properly. You mean while translating this app i should leave it until it finished? what is the purpose to translate left hand Chinese character & it would not be able to copy bcoz its working as auto scrolling while trabslating...
Click to expand...
Click to collapse
6. A new file with translated text will be created in source location with new keyword in file name.
Click to expand...
Click to collapse
please see first post.
babuilyas said:
please see first post.
Click to expand...
Click to collapse
I tried to translate with this app but after translate when i install to device it says app not install.....
Google unpacking and packing apks. It works anyway if it translated your XML files.
Sent from my Xperia Ray using xda app-developers app
Any new method to translate chinese apps?
Good evening
this method still works ??

[Req] How to change app name?

I recently downloaded asphalt overdrive and found the name too long and odd looking in my app drawer. I wish it would be better if it was down to oneword such as "Asphalt" or "Overdrive" only. Can someone tell me how to change the app name itself. It will be much helpful if someone modifies it for me
saif1012 said:
I recently downloaded asphalt overdrive and found the name too long and odd looking in my app drawer. I wish it would be better if it was down to oneword such as "Asphalt" or "Overdrive" only. Can someone tell me how to change the app name itself. It will be much helpful if someone modifies it for me
Click to expand...
Click to collapse
I can try, send me a picture and the name that appears the apk by PM! :laugh:
link and pic
The link to the app 's apk. www.mediafire.com/?1928mxjfvjcs6ph Please make the app's name as Overdrive instead of Asphalt overdrive
saif1012 said:
The link to the app 's apk. www.mediafire.com/?1928mxjfvjcs6ph Please make the app's name as Overdrive instead of Asphalt overdrive
Click to expand...
Click to collapse
I do not quite understand what you mean, I asked one fotot to better understand me ... even more so I tried to download the file from the link below and it will have two apks that modifquei differently, see one after the other. I hope the right.
Link > https://www.sendspace.com/file/b6h1e9
In Nova launcher you just need to hold on an icon, slide it to Edit and just delete or rewrite name. that simple.
thanks a ton!
MarĂ­lia de Oliveira said:
I do not quite understand what you mean, I asked one fotot to better understand me ... even more so I tried to download the file from the link below and it will have two apks that modifquei differently, see one after the other. I hope the right.
Link > https://www.sendspace.com/file/b6h1e9
Click to expand...
Click to collapse
Just what I wanted! can u tell me how u did it?
Thanks so much!
saif1012 said:
Just what I wanted! can u tell me how u did it?
Thanks so much!
Click to expand...
Click to collapse
if u know to decompile or recompile apk files ....
u need to decompile the files
once done navigate to res/values/strings.xml and find this line
Code:
<string name="app_name">[COLOR="Red"]just type what ever name u want here[/COLOR]</string>
save it and recompile
sandy7 said:
if u know to decompile or recompile apk files ....
u need to decompile the files
once done navigate to res/values/strings.xml and find this line
Code:
<string name="app_name">[COLOR="Red"]just type what ever name u want here[/COLOR]</string>
save it and recompile
Click to expand...
Click to collapse
Great @sandy7 right and finally sign the apk
Please post questions in the Q&A section
Thread moved

Categories

Resources