Not sure if this belongs here or in the Android Development Forum. I want to modify the SGS2 Digital Clock widget by adding an "onClickpendingIntent"?? (I think that's what its called. Basically I when I tap on the widget I want it to open up a specific app (clockpackage.apk) so that I can access my alarms easily. Currently I am using Weather and Toggle Widget and it has this option built in. I have googled the subject and found a page on how to do it, but I am not a programmer nor a developer so this is way over my head. I know how to open an apk to modify the hdpi images it contains but that's about it. Here is the site that explain(somewhat) how to do it. http://stackoverflow.com/questions/3589741/how-to-open-a-application-from-widget-in-android
If someone could give me more info on what xml file I need to create or modify within the apk (and how to create or modify it). I imagine I might only need to insert the specific code into one of the xml files and then insert clock package.apk into the code somewhere and resign the apk, but I want to be sure. Any advice would be appreciated.
radugb out
radugb said:
Not sure if this belongs here or in the Android Development Forum. I want to modify the SGS2 Digital Clock widget by adding an "onClickpendingIntent"?? (I think that's what its called. Basically I when I tap on the widget I want it to open up a specific app (clockpackage.apk) so that I can access my alarms easily. Currently I am using Weather and Toggle Widget and it has this option built in. I have googled the subject and found a page on how to do it, but I am not a programmer nor a developer so this is way over my head. I know how to open an apk to modify the hdpi images it contains but that's about it. Here is the site that explain(somewhat) how to do it. http://stackoverflow.com/questions/3589741/how-to-open-a-application-from-widget-in-android
If someone could give me more info on what xml file I need to create or modify within the apk (and how to create or modify it). I imagine I might only need to insert the specific code into one of the xml files and then insert clock package.apk into the code somewhere and resign the apk, but I want to be sure. Any advice would be appreciated.
radugb out
Click to expand...
Click to collapse
Aren't you the same user who asked this in the apps section? I see you're still after it. Except this time with a much thorough study on what you want. I still say an xml edit won't suffice. I could be wrong though. I just thought most things that do with how an app runs require programming. Deccompiling, and recompiling.
Sent from my SPH-D700 using XDA App
Yup, that's me. I tend to be an absolute pest when I'm trying to figure these things out. In my research I found that this modification is possible if you edit the widget.xml file. Only thing is there are two of those in the res folder. Also, what program would I use to edit the xml file. I already have the Java Development Kit installed. To add to that, where in the xml file would I add the lines of code and where in that code where do I add the app name. The site I found doesn't give any of that info.
radugb said:
Yup, that's me. I tend to be an absolute pest when I'm trying to figure these things out. In my research I found that this modification is possible if you edit the widget.xml file. Only thing is there are two of those in the res folder. Also, what program would I use to edit the xml file. I already have the Java Development Kit installed. To add to that, where in the xml file would I add the lines of code and where in that code where do I add the app name. The site I found doesn't give any of that info.
Click to expand...
Click to collapse
I'm hoping someone can give you some kind of answer, as I'm looking to do some editing of an .Apk that doesn't release its source code.
Sent from my Samsung Legen-wait for it-dary! 4g
Depends on the modifications you want to make. The person who I emailed about this stated that because its a widget, and said widget has no click to open function already programmed into it, adding an onClickpendingIntent won't interfere with the functionality of the clock, and therefore doesn't require the source code. It might be different in your case depending on what you want to add/change.
Bumping my question. Maybe someone might know a different forum I can post in where I might get someone who can help?
radugb out
Related
I'm goin to try to make a link to the original question
forum.xda-developers.com/showthread.php?t=757920
that's the link... I just couldnt add the http or WWW because I'm a new member
this is what's going on..... my buddy has a hd2 and I the Evo 4G.... we both have HTC sense on our phones, which the weather/time widget runs off of...... there is a skin for the sun I want on this site that he has, but it is in a cab file... I need it in a .apk file.... the developer doesn't know how to do it and I can't figure out how to get this Sun on my widget.....
My friend says the sun is technically a manila file within the cab... but I can't locate any manila files on my phone..... basically can someone help me figure out how to either make this cab file into a apk file or where the hell I need put the manila file from the original cab file onto my Evo
The original file I believe was called ★★★Jaguaralani PLANETS★★★ the sun I want is the one that is on fire
Your best bet would be either to find a weather widget from the market with the style you want or see if some of the talented modders would add it to their work.
Sent from my PC36100
rafroehlich2 said:
Your best bet would be either to find a weather widget from the market with the style you want or see if some of the talented modders would add it to their work.
Sent from my PC36100
Click to expand...
Click to collapse
i would but the ones in the marketplace chage the entire widget..... the way my friend has it on his hd2 only the sun is different, the widget is still the original widget so I know its possible.... honestly i only want that particular sun with the rest of my widget original
Don't want make people mad but *bump*
xxxjoekrxxx said:
Don't want make people mad but *bump*
Click to expand...
Click to collapse
It's not so much that it makes people mad, it's just irritating and de-motivational for some who might otherwise be in the mood to tackle something like this. It also keeps an unproductive thread on the first page, which does no one any good.
Instead of bumping your thread hoping someone will come along and knock this mod out for you why don't you start trying to learn how this mod can be done? Post with any progress, it's your thread, use it to learn how to do something that you want done. Also, a mod like this shouldn't be that hard, if you have rooted your phone and are comfortable moving files around and have some basic knowledge of ADB then this would be a decent place to start. Even if you just try to get ONE image ported it's just "rinse and repeat" from that point.
I really like those images, I think they're neat. I have zero experience with WinMo and .cab files but I'm gonna try to get them out of the cab. If I can get a hold of the images then it shouldn't be too terribly hard to pop them into Sense.
I don't know what a manila folder is in a cab but I am certain you cant just put a manila folder in an apk and expect anything good.
If I make any progress I will be sure to let you know
okay well here goes
my friend can break down the cab files 4 me to get the manila files which are icons that stored in the cab emailed it to me......
but i am having trouble finding the weather manila icons in the sense on the Evo4g....
can anyone tell me how to locate the icons 4 the weather widget.....
xxxjoekrxxx said:
okay well here goes
my friend can break down the cab files 4 me to get the manila files which are icons that stored in the cab emailed it to me......
but i am having trouble finding the weather manila icons in the sense on the Evo4g....
can anyone tell me how to locate the icons 4 the weather widget.....
Click to expand...
Click to collapse
there is nothing in android that relates to manila. These images (unless I'm mistaken) are in the com.htc.resources.apk
you'll need to get the images, then do whatever you need to do to make sure they are the same size and name as the ones in android then drop them into the correct apk using using an archive tool, I prefer 7zip
nebenezer said:
there is nothing in android that relates to manila. These images (unless I'm mistaken) are in the com.htc.resources.apk
you'll need to get the images, then do whatever you need to do to make sure they are the same size and name as the ones in android then drop them into the correct apk using using an archive tool, I prefer 7zip
Click to expand...
Click to collapse
I just found the icons and they are png files.....
I'm currently searching the net and contacting the developer.....
yeah, not in the .cab, I found them too
I'm guessing .cab's are some kind of controller.. like an update script or .xml? I dunno
nebenezer said:
yeah, not in the .cab, I found them too
I'm guessing .cab's are some kind of controller.. like an update script or .xml? I dunno
Click to expand...
Click to collapse
I assume it this way............
HD2 EVO4G
.cab = .apk
Manila = .png
I contacted the dev by the way...
So I've been looking thru all the forums trying to find a similar instance but I cannot. I want to edit the SGS2 Digital Clock widget to where if you touch click it, it will open up the TW Clock Package app. I'm not a programmer or developer, but I know this can be done because I've been using the Weather and Clock Widget from the market and it does exactly this. If I touch click the clock portion of the widget it will open up the clockpackage.apk. It can even be customized to open up a different apk. Now I've searched thru some of the xml files trying to find the lines of code that enable such a feature but with no luck. Anyone willing to help me on this or point me in the right direction, I would appreciate it.
radugb out
radugb said:
So I've been looking thru all the forums trying to find a similar instance but I cannot. I want to edit the SGS2 Digital Clock widget to where if you touch click it, it will open up the TW Clock Package app. I'm not a programmer or developer, but I know this can be done because I've been using the Weather and Clock Widget from the market and it does exactly this. If I touch click the clock portion of the widget it will open up the clockpackage.apk. It can even be customized to open up a different apk. Now I've searched thru some of the xml files trying to find the lines of code that enable such a feature but with no luck. Anyone willing to help me on this or point me in the right direction, I would appreciate it.
radugb out
Click to expand...
Click to collapse
That would require that apk's source code, reverse engineering, programming experience, and a recompile. You could try looking up on how you'd go about decompiling apks? I'm also betting that you'll need android sdk, or at the least, Eclipse equivalent programming software for programming.
Sent from my SPH-D700 using XDA App
Wow. Thats a lot more work than I thought it would be. Probably best to leave it to the professionals.
radugb said:
Wow. Thats a lot more work than I thought it would be. Probably best to leave it to the professionals.
Click to expand...
Click to collapse
Since its something as simple as making a widget 'clickable' for launching a different app, I'm sure there's pre-made program templates of some sort made by other devs who have such function, the issue at hand would still be the same though.
Sent from my SPH-D700 using XDA App
Yeah I figure since it was more a widget question than an app submission I'd better post it in the Q&A forum.
I was wondering if any of you were talented at creating an app, would mind assisting me in the creation of a app. I have the idea, and I know what I need and want it to do, I just have no idea how to create an app. The tool I use to use to create is down, untill sometime early 2012. So what I need is someone to.create it for me, you can take all credit for it, just a small thanks or a mention of my name in it is all I need. Pm me if anyone is interested.
XperianceIT
sent from my Xplay R800X, using XDA App!
Shameless bump.
Also did some checking around i found Eclipse and I have SDK, and JRE, but I have no flippin clue what the hell to do!
I know we have some app creators out there, little advice, something, anything.... thanks.
XperianceIT said:
Shameless bump.
Also did some checking around i found Eclipse and I have SDK, and JRE, but I have no flippin clue what the hell to do!
I know we have some app creators out there, little advice, something, anything.... thanks.
Click to expand...
Click to collapse
Tell us what it needs to do if you can give us an idea someone might feel more comfortable then
Sent from my R800x using XDA App
odst0016 said:
Tell us what it needs to do if you can give us an idea someone might feel more comfortable then
Sent from my R800x using XDA App
Click to expand...
Click to collapse
What i want it to do is to change the Carrier Name on the notification bar. I know how to do it all by hand, but i think it would be nice to turn it into a app. So the app would need to be able to access the eri.xml and be able to modify .xml, particularly the carrier name, then save it. So if the app had a screen where you could type in your carrier name, it can search the xml for a match, then it would have another box below that or something with what you want to change it to, then it replaces it and saves it. The app would also have to have some sort extraction, xml editor, and a repackage ability. There are a few apps i currently have that each individually can do 1 part of it, such as Ninjamorph for the extraction and reassembly, havent found a good xml editor yet, tried HEX Editor, it can modify but it does it in a way i currently dont understand.
So thats basically the jist of it, the other thing is it would only be able to work on CDMA devices, since i havent figured out how to change the carrier for GSM yet.
Let me apologize right off the bat if this has been covered before. I googled this everyway I could think of and turned up squat.
Ok, I just finished compiling my first rom a couple days ago and I have a question.
Can anyone point me in the direction of how to add my rom name to the menus within settings?
I have flashed what seems like a hundred roms since starting with my Huawei u8800 all the way to my Note and Note II.
So, I decided to build my own so I can get all the features I love from all the different renditions I've came across.
I have seen many with the rom name within settings and such but I cannot figure out what I need to change to reflect my rom name.
If anyone can help me I would greatly appreciate it.
Thanks in advance!
Build.prop
Sent from my SAMSUNG-SGH-I317 using xda app-developers app
Sorry, I guess I should have been more specific. I wanted to change the title of certain menu items, like (and this is only an example): Wireless and Networks or, Personal or, Accounts, etc.
The build.prop only lets you edit certain aspects within the About Phone page (i.e. name of rom, build date, developer id, etc.).
I found what I was looking for so, I figured I'd post it in case someone else was trying to do the same thing.
This is BEFORE you compile. Afterword, this file winds up in the settings.apk and needs to be edited by unpacking, making the changes you want, then repackaging, and of course resigning.
Either way should give you the desired effect. However, I opt to make these changes before the build process takes place.
Anyway, these files are located in: packages/apps/settings/res/values/strings.xml
There are alot of these strings.xml files in the values folder however, the only one you need to edit is the first one (if your rom is diplaying english that is) as the rest are the same thing only in a different language. Hope this helps someone. Drove me nuts till I found it!
I will start off saying I am new to this as the title , so I will probably ask a lot of redundant questions and noobie questions, I hope that's ok.
What I want to do (for now):
I am attempting to do is modify the systemui.apk file. I would think that would be a fairly easy task, but with my VERY limited knowlege of things I'm not sure.
The file has a lot of icons for customizability, but I want to add some of my own, or rather this phones icons(samung epic 4g) default icons. I have the icons I grabbed from a stock rom, and saved them.
I have the toggles, and battery icons, which are what I want to add into the systemui.apk. Iwill probably call it something like Samsung default, since default name is already taken.
So all that said, how easy would it be for me, someone who has never even attempted this before, but has a small amount of knowledge of what stuff is, ie: difference between odex and deodex, where the files are located at, etc?
Stuff like what file/files to edit, what to put in the xml files as in what line coding or whatever they call it. Stuff like that.
I'm very simple in nature, so if there is a way to do what I want to do, please direct me in the right direction, and please, keep it simple if possible.
I do realize there are tutorials about how to theme and how to make or edit a systemui file but I can't seem to find a more specific way/thread to do what I want to do, not that I have found anyways.
My guess is I will have to edit some xml files and add some lines, I just an not sure what exactly to put in those lines, or what files to edit.
First of all: wrong section - this belongs to Q&A.
About modifying APKs, I'm also not much familiar, but I believe that apktool and those GUI tools that includes it can be fairly helpful. I personally use APKChanger to do all my APK-related mods.
Sent from Google Nexus 4 @ CM11
AndyYan said:
First of all: wrong section - this belongs to Q&A.
About modifying APKs, I'm also not much familiar, but I believe that apktool and those GUI tools that includes it can be fairly helpful. I personally use APKChanger to do all my APK-related mods.
Sent from Google Nexus 4 @ CM11
Click to expand...
Click to collapse
Awesome it looks like a good start, I will give it a go, and report back.
Hope this works, as I am not really doing much to the systemUI file, all I am doing is adding in, what's not there, so the rest can stay in tact, just I want to add some preferred icons/png files I have on hand already. I'm not diescting to make a rom or anything, so I can't see this as being really hard thing to do.....for those that have done it could probably do this in about 5 mins work without breaking a sweat....me however it seems it's takeing awhile lol.
easyrider77 said:
Awesome it looks like a good start, I will give it a go, and report back.
Hope this works, as I am not really doing much to the systemUI file, all I am doing is adding in, what's not there, so the rest can stay in tact, just I want to add some preferred icons/png files I have on hand already. I'm not diescting to make a rom or anything, so I can't see this as being really hard thing to do.....for those that have done it could probably do this in about 5 mins work without breaking a sweat....me however it seems it's takeing awhile lol.
Click to expand...
Click to collapse
Very cool program, thanyou for the info. I kinda messed around with it a bit, and it's vvery nice for those not so smart at heart people like me.
I still have a snag though. I know where the icons are, I'm just not sure how to activate them via the like settings and such.
Take the battery mod within 3mini for example, you open 3minit, and under the battery part it you select it and it has a bunch of icons you can pick, but the stock ones aren't there. I am wanting to add stock icons, which are in the res/label-dhpi folder, (I think that's what it's called), but it's the folder that has the icons in it. Now, to access those icons, you have xml file you have to point to to tell it to actually see the icons in said folder, via a code line as I call it.
There is my problem, I am not sure really WHAT code line to put in said xml file/files, so I'm running into a wall.
So I can extract/decompile the apk file fine, and I have a folder/files with some more folders and files under that. I have looked at the stuff but since I'm not a programmer at all, and not to get off on another rabit trail here, but I cannot even do simple plain html....yes I know it's a text thing, but if you don't understand the if's and waits and the language of it all, well it might as well be german.
People always say "what's the problem, it's easy" well I suppose it is, if you are savvy to that stuff, but for those that have a hard time with one thing, it comes oh so simple for another, but it doesn't mean someone is stupid, it just means it's not their thing. Some atre meant to be some things, some are not. Not everyone is meant to be a doctor, yet some are because they understand those sorts of things better.
Anyways, I am sorry for trailing off, in short I am saying if you have a hard time with what I call coding, and yes it is a coding in some form, just as html is, even though it's still text, it's still a code that tells things what to do, IE: code
In short, I am nt sure what file/files to edit,. and even then I am not sure what lines to put in them.
Here http://forum.xda-developers.com/showthread.php?t=2032614 is a good example of what I mean. While I appreciate this persons hard work and efforts, people like me it may as well be written in a foreign language of sorts, because while I understand editing a certain file, and I get the concept of CODE: that's where I end up getting lost. I have opened the said xml file, and see the code, but when they say code, well I have to ask things like what line to I edit, where do I cut/paste the lines in that post to, do I delete another line and replace it with that code, etc..etc..
I in NO way am trying to trash people for their posts and efforts, so I hope it's not taken that way, I just sometimes have to be drawn a picture for things, like a child. As hard as I might try, I just am not grasping what to do after the point of opening the file and editing it.
I suppose I will just give up this quest I have for what I want to do, unless I fin somone kind enough, and patient enough to go a little further into explanation of what I need to do to further go on. it can be hard for some people, especially if you are a programmer to explain a little more in depth about what a person needs to do, I have friends that have that mind set, and they to get irritated at people like me .....I guess it is what it is.
Thanks again for the info, I appreciate all that xda and the people here do, and all thier time and effort towards the mods.
Well I can't provide further help then... My ability stops at making navigation bar mods which only involves modifying 5 lines of xml. Good luck with learning from scratch :beer:
Sent from Google Nexus 4 @ CM11