[REQ] XML and Esclipse Tutorial - Android Q&A, Help & Troubleshooting

is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !

kokzhanjia said:
is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
Click to expand...
Click to collapse
Xmls are usually in simple english with tags like html(though it has no relation with html.I wanted to mean for eg like <preference> </preference> ) if you read the lines you can understand I guess
Sent from my GT-N7000 using xda app-developers app

kokzhanjia said:
is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
Click to expand...
Click to collapse
Or use something like Eclipse where u have also a Visual way to "program" where u drag and drop object in the screen

deniel said:
Or use something like Eclipse where u have also a Visual way to "program" where u drag and drop object in the screen
Click to expand...
Click to collapse
How can i open the program for the visual ? I downloaded it but i cant find anyway...
Sent from my WT19i

kokzhanjia said:
How can i open the program for the visual ? I downloaded it but i cant find anyway...
Sent from my WT19i
Click to expand...
Click to collapse
The visual portion in Eclipse is for layout xml files. If your xml is just a plain xml it will not do anything for you visually.
What exactly are you trying do?
Use Google to find tutorials about xml file creation. A simple defined search such as "android xml tutorial" returns quite a bit of info.

blazingwolf said:
The visual portion in Eclipse is for layout xml files. If your xml is just a plain xml it will not do anything for you visually.
What exactly are you trying do?
Use Google to find tutorials about xml file creation. A simple defined search such as "android xml tutorial" returns quite a bit of info.
Click to expand...
Click to collapse
Well im trying to build a systemui. And i know i can pnly build it from scratch.
But the trouble im facing is i cant even start a project related to what i want to do..
I read and search for tutorials beyond tutorials but still cant find anything anout opening a window to do that.
Just some tutorials stating that what relative layout and linear layouts and some about how to add features related.
Havent looked into videos though. Because what i saw at the first page of google was about how to install adt plugin.
So the main problem im facing now is, could anyone give me some tips or guides to open a window to start my next phase of learning
I hereby support an OFF-Topic thread.

kokzhanjia said:
Well im trying to build a systemui. And i know i can pnly build it from scratch.
But the trouble im facing is i cant even start a project related to what i want to do..
I read and search for tutorials beyond tutorials but still cant find anything anout opening a window to do that.
Just some tutorials stating that what relative layout and linear layouts and some about how to add features related.
Havent looked into videos though. Because what i saw at the first page of google was about how to install adt plugin.
So the main problem im facing now is, could anyone give me some tips or guides to open a window to start my next phase of learning
I hereby support an OFF-Topic thread.
Click to expand...
Click to collapse
I'm going to assume, probably a bad idea (lol), that you mean for a sony device as that is what is in your signature. Why not pull apart an existing systmeui from that device and go through it to see what stuff is doing? Then you can create what you want.
Here is a link for a tutorial about a Sense device but the basic idea is similar for all devices just the procedure might be a little different. http://forum.xda-developers.com/showthread.php?t=1453869
Also, in this forum are threads on decompiling the systemui.apk.

kokzhanjia said:
is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
Click to expand...
Click to collapse
Refer this website (http://www.w3schools.com/xml/) to get a basic idea of XML.

blazingwolf said:
I'm going to assume, probably a bad idea (lol), that you mean for a sony device as that is what is in your signature. Why not pull apart an existing systmeui from that device and go through it to see what stuff is doing? Then you can create what you want.
Here is a link for a tutorial about a Sense device but the basic idea is similar for all devices just the procedure might be a little different. http://forum.xda-developers.com/showthread.php?t=1453869
Also, in this forum are threads on decompiling the systemui.apk.
Click to expand...
Click to collapse
I understand decompiling but i cant even open the window to start a normal xml project in esclipse
I hereby support an OFF-Topic thread.

Related

[Q] Interested in becoming a themer?

Before I continue, I'm not lazy! I have searched for this question in other forums and they were answered BUT I would really like to know from the themers of The Lg Optimus One P500
So my question is, how do you become a themer??
What programs are needed and what knowledge do I need to gain?
Must I learn java and HTML?
etc.
To all the THEMERS that reply to this thread I will be very generous with the thanks button
Thank you in advanced!
what you must have: deodexed apps; windows explorer; possibly a notepad; a batch rename program; .pngs; and knowledge of copy and pasting .pngs
It is suprisingly simple.
Thiis is what i did: http://forum.xda-developers.com/showthread.php?t=1223795
Press thanks to save the polar bears. or if i helped you
Using UOT is the easiest thing u can do.
Also, in CM you have .xml files in framework-res.apk with the colour-codes in it.
If you edit them, the colours change. So that's also an option.
But first try UOT and experinent with Q's like:
'What file is changed when i add the option 'notification power buttons''
Good luck!
The thing is that most of these xml files are compiled and need to be decompiled before editing and compiled again...
if you wanna be a REAL-TIME Themer, who themes using the source code and not the already developed ROMs, you need to know Java and a bit of c programming to tweak your rom..
if you wanna be a simple themer, yes you dont need any specialisation, just drag and drop, delete etc... just need a bit of experience...
Rockr172 said:
if you wanna be a REAL-TIME Themer, who themes using the source code and not the already developed ROMs, you need to know Java and a bit of c programming to tweak your rom..
if you wanna be a simple themer, yes you dont need any specialisation, just drag and drop, delete etc... just need a bit of experience...
Click to expand...
Click to collapse
Lol, i start modding and i only use my friendly apktool...
Sent from my Nexus One using Tapatalk
for theming only need xml and photoediting

How to install multiple instances of the same .apk

I was tinkering and editing an apk, and i managed to compile it and install it fine and it works and is suited to me. So i was wondering ( not too good with xmls ), is it possible to edit the manifest file to rename the apk so I can install multiple copies ( i.e. have the original unmodified one and the modified one at the same time ). I need this for testing purposes. Which lines do i need to edit exactly so the phone doesn't give me the "installing this application will replace the current..." warning, so I can multiple instances of it?
Hope I'm being clear on what exactly I need, any help is appreciated. Cheers
Edit : Just found a post from this guy on a simillar thread that i couldn't find using search
levenum said:
It is not a simple matter.
APKs are managed by package name, not by file name, but you can't simply change the package name in the manifest of a compiled APK.
Even assuming you manage to do it without messing up the file, which is not a simple task, there will still be code referring to the package name, so the app will crash.
Click to expand...
Click to collapse
So is this true ?
Yes it is, I've tried.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Yeah. Even if you could modify the package name, there could be hardcoded references to this application's intents within the source, which could cause problems when you realise you'll have to also change all of the intent-filters as well.
Its probably more trouble than its worth, as you'll be spending most of your time working out bugs introduced by your editing the APK.
I know its not exactly what you're after but why not try to run the modified app in the emulator on ur computer?
- chris
cttttt said:
Yeah. Even if you could modify the package name, there could be hardcoded references to this application's intents within the source, which could cause problems when you realise you'll have to also change all of the intent-filters as well.
Its probably more trouble than its worth, as you'll be spending most of your time working out bugs introduced by your editing the APK.
I know its not exactly what you're after but why not try to run the modified app in the emulator on ur computer?
- chris
Click to expand...
Click to collapse
Yeah, thought so myself. Used the emu for a while, but It's so damn slow, can't compare it to actual testing. Nvm, I've dropped the matter anyway. Thanks for the reply
Hey try this
http://forum.xda-developers.com/android/software/tool-android-multiple-apk-file-t3516849
akash45 said:
Hey try this
http://forum.xda-developers.com/android/software/tool-android-multiple-apk-file-t3516849
Click to expand...
Click to collapse
Is not that a multiple app apk installer ?
I think op wants a way to install multiple instances of the same APk.
Thanks
prudra said:
Is not that a multiple app apk installer ?
I think op wants a way to install multiple instances of the same APk.
Thanks
Click to expand...
Click to collapse
Okay my bad

[Q] How to set livewallpaper auto enabled on fresh flash of ROM?

Hello web masters and developers,
I've got a noob question...
I've got Jusada's ICSunday Final ROM (all credits to Jusada, and of course I've got his permission to do moding), which I modified for my personal needs.
Until now I've added many options that missed in original release (so it's not barebone anymore) like live wallpapers, torch, RE, ScanMedia, battery drain fix and GPS fix, transparent status bar and modified Acheps CM theme (all credits to their developers, u can find the topics here in Ace forum) etc.
There is couple of things I currently cannot resolve and that drives me crazy.
When I make a fresh install of the ROM, it starts with default wallpaper (which I modified too). But since I often use my favorite livewallpaper, i really need it to be set by default from the system. Now, I've got Livewallpaperspicker.apk installed and working. I can put the livewallpaper's apk file in the /system/app and to be installed by default, but how to make it enabled by default instead of the static default_wallpaper.jpeg inside framework_res.apk?
Where in which file I should enable it bu default?
Thank you for your patience, and also excuse me for my bad english, and If I break the rules with this thread!
Regards!
P.S: Excuse me for the stupid thread title, I couldn't figure out a better one...
Obviously no one knows, or it's too difficult to explain for noobs like me... Sad... I search on Google but either I don't search with correct keyword or there are no such thread/topic/lesson...
Sent from my GT-S5830 using xda premium
Here is all the info you need, figure out yourself
http://forum.xda-developers.com/showpost.php?p=13649923&postcount=2
The line should be without the space (glitch in XDA forums LOL) in com.android.wallpaper
<string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>
not the one u see in the post
tomsons26 said:
Here is all the info you need, figure out yourself
http://forum.xda-developers.com/showpost.php?p=13649923&postcount=2
The line should be without the space (glitch in XDA forums LOL) in com.android.wallpaper
<string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>
not the one u see in the post
Click to expand...
Click to collapse
Thanks for the reply mate, but it seems that there is no "value" folder inside my /res folder. Anyway I searched for strings.xml inside other folders in /res folder but... no success... I'll extract the ROM's package right now and will search inside all folders for strings.xml and will see if such a file exist... Thanks btn pressed for the reply and for the idea
P.S: I've found the file that contains keyword "default_wallpaper_component" in it. It's framework.odex. Now I've got to figure out first how to edit it (with notepad++ there are a bunch of unusable characters) and what exactly to write to enable my favorite_livewallpaper.apk by default. Because it's gonna be normal, pre-installed .apk file (not inside the LiveWallpapers.apk) and I don't know how to call it inside the string... Damned, this is gonna be harder than I thought But... I like to be hard, if there are good people that wont mind to teach me or tip me for the answer)) Thanks
Spoonk said:
Thanks for the reply mate, but it seems that there is no "value" folder inside my /res folder. Anyway I searched for strings.xml inside other folders in /res folder but... no success... I'll extract the ROM's package right now and will search inside all folders for strings.xml and will see if such a file exist... Thanks btn pressed for the reply and for the idea
Click to expand...
Click to collapse
Some ROM modder you are LOL don't even know the basic
You need to decompile the framework-res.apk LOOOL
Good luck
tomsons26 said:
Some ROM modder you are LOL don't even know the basic
You need to decompile the framework-res.apk LOOOL
Good luck
Click to expand...
Click to collapse
I didn't say that I'm modder. I'm modding only Jusada's ICSunday ROM, and only for my personal use... anyhow, thanks for the tips, and replies. No offence, but... sometimes noobs want's to learn too, u know... keep it in mind.
Spoonk said:
I didn't say that I'm modder. I'm modding only Jusada's ICSunday ROM, and only for my personal use... anyhow, thanks for the tips, and replies. No offence, but... sometimes noobs want's to learn too, u know... keep it in mind.
Click to expand...
Click to collapse
How will they learn if everyone is laying info on a gold plate for them and serving them it
Ive never asked WHAT HOW instead i searched and read it and thus learned it myself
tomsons26 said:
How will they learn if everyone is laying info on a gold plate for them and serving them it
Ive never asked WHAT HOW instead i searched and read it and thus learned it myself
Click to expand...
Click to collapse
As I said before, I need just an advise on how to do-that. I don't need someone to "serve it in golden plate" All I needed was a little hint and you gave it to me, that's why I thanked you. And as I said before, I searched Google and xda but with no success - obviously I didn't know how to "ask", wrong keyword etc.
After your hint I remembered that I read somewhere that not all folders are visible with win rar (for example) and they need to be decompiled in a special way. I searched again and found APKTool, now I'll install it (inside Windows folder, i read) and will begin to learn how-to.
That's the way to learn I think?
Spoonk said:
As I said before, I need just an advise on how to do-that. I don't need someone to "serve it in golden plate" All I needed was a little hint and you gave it to me, that's why I thanked you. And as I said before, I searched Google and xda but with no success - obviously I didn't know how to "ask", wrong keyword etc.
After your hint I remembered that I read somewhere that not all folders are visible with win rar (for example) and they need to be decompiled in a special way. I searched again and found APKTool, now I'll install it (inside Windows folder, i read) and will begin to learn how-to.
That's the way to learn I think?
Click to expand...
Click to collapse
Yes, and xdaAutoTool is better and user friendly

[Q] Edit .apk wirh winRAR possible?

Hey guys,
I was searching for a tool to edit an apk file and i found Apk Tool on xda but i think it's not
that much easy to work with this program. (for a n00b, like me.. )
I managed to open and edit te file with winRAR,
but is this program also capable of proper compiling the app again, ready to use?
I tried it and it worked well i think, but is this possible with any app or other kinds of changes?
If this is stupid or something, please tell me. I am not very experienced in these kinds of things.. (neither in english, sorry.. )
Somebody any ideas?
Thanks in advance!
bart1996 said:
Hey guys,
I was searching for a tool to edit an apk file and i found Apk Tool on xda but i think it's not
that much easy to work with this program. (for a n00b, like me.. )
I managed to open and edit te file with winRAR,
but is this program also capable of proper compiling the app again, ready to use?
I tried it and it worked well i think, but is this possible with any app or other kinds of changes?
If this is stupid or something, please tell me. I am not very experienced in these kinds of things.. (neither in english, sorry.. )
Somebody any ideas?
Thanks in advance!
Click to expand...
Click to collapse
It all depends on what you edit,obviously you didnt make a fatal change,so it must have been small,no its not possible to edit anything else as far as the manifest and xml files.You'll get a parsing error.
Diablo67 said:
It all depends on what you edit,obviously you didnt make a fatal change,so it must have been small,no its not possible to edit anything else as far as the manifest and xml files.You'll get a parsing error.
Click to expand...
Click to collapse
Okay, that's true i only changed those kinds of files and it wasn't a problem yet.
I changed somethings in an demo version of an app and now it recognizes it as the full version so winRAR can be pretty usefull for apk edit if you keep things simple like this..
bart1996 said:
Okay, that's true i only changed those kinds of files and it wasn't a problem yet.
I changed somethings in an demo version of an app and now it recognizes it as the full version so winRAR can be pretty usefull for apk edit if you keep things simple like this..
Click to expand...
Click to collapse
It only really works for editing images.
Admitting this is a nice way to get banned
Wayne Tech Nexus

[Q] How to change the list on press action or bg in Xperia U devices?

Hi guys, I'm fairly new to this but I wanted to know how I can change the list pressed animation style in Xperia U? I mean the white background glow on pressing and holding any list button in menus or tabs or buttons, for example see the following photo (attachments), how the background of the notification has turn to white (fading).
I thought there might be a. 9.png file for that, but when I started searching for in the drawable folder of framework-res.apk, I wasn't able to find it?
So I wanna know that am I searching wrongly or there is no such file and just a xml code which I'm not able to get my hands on because of lack of my knowledge of decompiling the apks. I tried decompiling it by apktool but it won't budge. Also to edit pngs I am using a simple technique (posted by a xda user, sorry for not recalling your name but thanks) that is to just open or extract the roms through 7zip and then just copy them back to the respective apk file. This seems to be working as I was able to create my own lockscreen. So please help me in finding where I'm going wrong.
Thanks in advanced...
You must decompile the framework-res.apk and then, search in /drawable-hdpi folder the image. Its name is notification-normal-bg.9.png or something like that. Edit it with photoshop, and, when you have all that you want, compile the framework-res.apk and change it in your phone. Do a backup before do anything.
Enviado desde mi ST25i usando XDA Premium HD app
Slash137 said:
You must decompile the framework-res.apk and then, search in /drawable-hdpi folder the image. Its name is notification-normal-bg.9.png or something like that. Edit it with photoshop, and, when you have all that you want, compile the framework-res.apk and change it in your phone. Do a backup before do anything.
Enviado desde mi ST25i usando XDA Premium HD app
Click to expand...
Click to collapse
First of all thanks for your advice, but as it turns out the Sony isn't using that file?? And also I just did it with my normal method (described before), so I guess it might be a problem that I'm not decompiling it, but as it turns out I don't know exactly how to. So can you suggest me a Guide or something like that through which I can learn to do it without any problems...?? Because last I time tried it, I got a failed app! Please help, thanks in advance...
divinemamgai said:
First of all thanks for your advice, but as it turns out the Sony isn't using that file?? And also I just did it with my normal method (described before), so I guess it might be a problem that I'm not decompiling it, but as it turns out I don't know exactly how to. So can you suggest me a Guide or something like that through which I can learn to do it without any problems...?? Because last I time tried it, I got a failed app! Please help, thanks in advance...
Click to expand...
Click to collapse
I have successfully figured out the first part of the problem, the sony uses the .png starting with semc... So I just searched for semc_list_.... And found what I was looking for. But still how to decompile system apps in Xperia based devices succesfully..? Please someone..?
divinemamgai said:
I have successfully figured out the first part of the problem, the sony uses the .png starting with semc... So I just searched for semc_list_.... And found what I was looking for. But still how to decompile system apps in Xperia based devices succesfully..? Please someone..?
Click to expand...
Click to collapse
You must use APKTool for decompile. When you got it it's so easy to use.
Slash137 said:
You must use APKTool for decompile. When you got it it's so easy to use.
Click to expand...
Click to collapse
Yeah buddy, it was pretty easy. And I figured out what I was doing wrong before, I wasn't including framework-res.apk and SemcGenericUxp.apk in the tool to help it compile the resources! Thanks.
divinemamgai said:
Yeah buddy, it was pretty easy. And I figured out what I was doing wrong before, I wasn't including framework-res.apk and SemcGenericUxp.apk in the tool to help it compile the resources! Thanks.
Click to expand...
Click to collapse
Can you suggest me a method of porting roms perfectly...?
divinemamgai said:
Can you suggest me a method of porting roms perfectly...?
Click to expand...
Click to collapse
Don't worry GOT.. IT....

Categories

Resources