Hey, I was wanting to edit an application posted by a member here on XDA. It is a flip clock that is actually animated, but isn't designed to look like the flipclock found in Sense UI. I stumbled upon an application called "Better alarm clock pro" which has a flipclock built into it, which looks exactly like the one from sense. Upon decompiling the .apk files, I went to the /res/drawable folder and found all of the images contain in both applications, however they weren't what I was looking for, I could only find the numbers of the clocks, and the white background of the clock, no flipping animations were there. Could anyone help me out here? Could it be that the animations are contained in .xml files? will post a screenshot of the inside of the apks in the second post.
EDIT: i thought maybe it was an issue with the flip clock in better alarm clcok pro not being an actual widget, just part of the app, so I downloaded the Desire Flip Clock port and checked out res/drawable/ but still no dice, just the nuimbers and the clock background. please, I need some help asap
http://dl.dropbox.com/u/31961339/ss1.png
http://dl.dropbox.com/u/31961339/ss2.png
The Android API has functions for animation. They probably use that rather than animate by blitting tons of images.
Gene Poole said:
The Android API has functions for animation. They probably use that rather than animate by blitting tons of images.
Click to expand...
Click to collapse
Yep. That would be the best way to do it
From something awesome
Gene Poole said:
The Android API has functions for animation. They probably use that rather than animate by blitting tons of images.
Click to expand...
Click to collapse
What might I do to edit said files then?
Sent from my HTC Vision using XDA App
If I'm following you on this, you want to hack animation routines out of one app and add them to another that never had them? I don't think it's going to happen unless you've got the source code to both, and even then, it'd be tough.
Yep animations arent files per say but code defining how something has a 2d or 3d transformation applied. The algorithm used to do these transformations can be edited but you will need to decompile or have the src
From something awesome
Gene Poole said:
If I'm following you on this, you want to hack animation routines out of one app and add them to another that never had them? I don't think it's going to happen unless you've got the source code to both, and even then, it'd be tough.
Click to expand...
Click to collapse
Not necessarily change the animations, but the images that are shown. could I hypothetically just swap the images out and it would work, or no?
Related
Is it possible to put rosie on a rom that isn't hero (like one of jf's roms).
I was thinking the same thing. What I did was updated to the hero rom and then backed up rosie.apk. Then went to the ion rom and tried to install rosie.apk through astro and it said that the apk cannot be installed on this phone. Could be some version check or something but I didnt bother to try any further.
There would be alot of HTC framework you would need to implement to a point where it would be pretty much hero to get it to work from my understanding.
From what I've read, Rosie (and few other HTC apps require a modified android core, so to get Rosie on a JF release, you'd use a rom that contained a majorty of the Hero code.
By the time you're done getting all the files for Rosie and it's associated widgets to run on a Google core you'd be running Hero. What's the point? Are we done asking this question now?
uberingram said:
By the time you're done getting all the files for Rosie and it's associated widgets to run on a Google core you'd be running Hero. What's the point? Are we done asking this question now?
Click to expand...
Click to collapse
No. There will be at least 6 more threads about this very topic.
Hi,
I actually tried on 5.02h.
It says that it cannot be installed.
So yes the answer is no.
uberingram said:
By the time you're done getting all the files for Rosie and it's associated widgets to run on a Google core you'd be running Hero. What's the point? Are we done asking this question now?
Click to expand...
Click to collapse
have you tried it on Rogers? i ask b/c u list it in your sig.
since that is HTC based (to my understanding at least)...this might be a possibility.
still though...i don't see much point
Technically, yes it can, since in reality, all rosie is is rosie on a non-hero rom (it's still very much android at the core). If you're talking about a simple file swap, it is possible, but by the time you're done swapping files, you'll have the htc modified framework again. However, rosie is still also very much the same Launcher apk from google, it's got a few tweaks here an there, and i think that with some heavy modification of the source it can be made to work similarly on a stock android framework. That's just for the desktop elements. The widgets are a different story, if you want binary compatibility with the rosie widgets, then, again, you have to import the HTC library, or reverse engineer it and implement your own.
It is possible, after all, Android is in many ways a community OS, so you can modify it as you please, but a simple patch up work and file swap? then no, it's not that easy.
::sigh:: quit asking these questions, think of it this way:
Have you tried running a .NET app, without having the .NET framework installed.
It's gonna say missing framework.
Hero is basically Android + a bunch of HTC written frameworks. And that framework is written under the assumption that there is 512MB ROM/256 RAM. (on their unreleased phone)
Hence the slowdowns on our lovely G1 with only 256MB ROM and 192RAM
Other Thoughts:
T-Mobile always does this crap though, give us the crappiest hardware (bare minimum, so they save money.)
Remember the MDA and then the WING, whilst at the same time AT&T's Pocket PC specs were far superior.
alapapa said:
have you tried it on Rogers? i ask b/c u list it in your sig.
since that is HTC based (to my understanding at least)...this might be a possibility.
still though...i don't see much point
Click to expand...
Click to collapse
I've given it some preliminary tries from an informational standpoint but that means going back to a plain Jane Rogers build. The really ****ty thing about the Hero build with Rosie is that Rosie and it's associated widgets are all interlaced with each other. You pull a few and that whole house of cards comes crashing down. The Hero Music widget for example requires the htc.framework. Before htc.framework and associated libraries releases permissions to the Music widget it references a series of DRM library files. I stopped after that but I can almost guarantee that the DRM libraries have some other off the wall dependencies only found on that specific build. HTC did this for a reason and it's obvious that they consider their Home replacement and widgets as a single package. Even if you managed to retain the HTC framework and replace all the dependencies it wouldn't surprise me in the slightest if some of these outer lying files made references to specific bit of code only found in the HTC core. HTC has done it before and it's name is TouchFlo3D.
Unless someone really wants to break down Rosie line by line it really ought be considered an all or nothing venture here at XDA. We really need to drop the mentality that HTC builds are drag and drop like theming was pre-cramfs. And even then, cramfs are just identifiers anyway. HTC is a tricky bastard. Always has been, always will be. In my honest opinion, if you want Rosie on a non Rosie build you best brush up on your mimicry skills.
Maybe it's just me...but aside from the HTC widgets, what exactly do you all love about the rosie UI so much? the little wheel that you can scroll between your desktops? How many people use that much desktop space? in all honesty, it's not *THAT* much more functional. For me the important portions of the Hero build are more behind the scenes..solid twitter app, lockscreen tied to music, notifications, and calendar events..the nice black notifications window...most importantly, without losing performance. /shrug - my version of the hero build is screenshotted here..works for me, even though I don't have the 'rosie' UI i get all of the important things that matter to me.
What build is that? Or is it custom?
afflaq said:
Maybe it's just me...but aside from the HTC widgets, what exactly do you all love about the rosie UI so much? the little wheel that you can scroll between your desktops? How many people use that much desktop space? in all honesty, it's not *THAT* much more functional. For me the important portions of the Hero build are more behind the scenes..solid twitter app, lockscreen tied to music, notifications, and calendar events..the nice black notifications window...most importantly, without losing performance. /shrug - my version of the hero build is screenshotted here..works for me, even though I don't have the 'rosie' UI i get all of the important things that matter to me.
Click to expand...
Click to collapse
Question: Does the lockscreen actually have the slide unlock? If so, you may have just sold me on your Hero mod. That's the ONE thing that I'm still utterly and completely in love with, and there are a LOT of bugs in the current Hero build, though w/o widgets it does run at least tolerably. I'm still hating the lack of landscape mode and led notifications.
/grumble
uberingram said:
What build is that? Or is it custom?
Click to expand...
Click to collapse
It's the hero build from haykuro..with a lot of work done to it to make it perform the way that I'm after. I'm out of town next week but I'm hoping to get a list of all of the changes that I've made compiled and make it usable if anyone wants it.
afflaq said:
It's the hero build from haykuro..with a lot of work done to it to make it perform the way that I'm after. I'm out of town next week but I'm hoping to get a list of all of the changes that I've made compiled and make it usable if anyone wants it.
Click to expand...
Click to collapse
I would be one. You've done exactly what I want out my Rogers build and the only reason I'm on it is for Exchange. I've started to learn how to do all this myself for that very reason.
TooSlo said:
Question: Does the lockscreen actually have the slide unlock? If so, you may have just sold me on your Hero mod. That's the ONE thing that I'm still utterly and completely in love with, and there are a LOT of bugs in the current Hero build, though w/o widgets it does run at least tolerably. I'm still hating the lack of landscape mode and led notifications.
/grumble
Click to expand...
Click to collapse
Yep - lockscreen works fine and also includes the music/notification functionality...attached a screenshot of that just now.
no LED notifications still - which is a pain in the ass I agree. The build I'm using is running Launcher.apk - not Rosie - and does autorotate.
afflaq said:
Yep - lockscreen works fine and also includes the music/notification functionality...attached a screenshot of that just now.
no LED notifications still - which is a pain in the ass I agree. The build I'm using is running Launcher.apk - not Rosie - and does autorotate.
Click to expand...
Click to collapse
Thanks for the heads up. I thought running the Launcher.apk might remove the awesome lock screen. I'm a bit more happy about running this build, if only we could get some working notifications!
uberingram said:
I would be one. You've done exactly what I want out my Rogers build and the only reason I'm on it is for Exchange. I've started to learn how to do all this myself for that very reason.
Click to expand...
Click to collapse
yea uh, you'll have to push Mail.apk and libHtcMail_jni.so back -- but it should work. my corporate exchange servers here suck **** apparently and only work with moxier for anything. I've never been able to get the Mail client or anything but Moxier to work with my corporate account.
afflaq said:
Yep - lockscreen works fine and also includes the music/notification functionality...attached a screenshot of that just now.
no LED notifications still - which is a pain in the ass I agree. The build I'm using is running Launcher.apk - not Rosie - and does autorotate.
Click to expand...
Click to collapse
You've officially got me salivating. I have zero need for Rosie and everything you have listed is exactly the things I wanted out of Android.
I notice that animated GIFs are still not enabled by default in the browser after the Froyo update. Does anyone know how to do this?
FMXP said:
I notice that animated GIFs are still not enabled by default in the browser after the Froyo update. Does anyone know how to do this?
Click to expand...
Click to collapse
I'm interested in this also
Sub'd for hopeful solution
my friends droid 1 has the froyo update and it has animated GIFs... this has been my biggest complaint about the OS. I go to spikedhumor.com and I enjoy my daily GIFs, but can only (semi) enjoy them because the wife is present
I hope this is in the final build of Froyo.
I have been posting on the google code site about this issue since early 2009.
one of the google reps on the page replied with a way to implement it, and I posted it on this site elsewhere a while back. I'll repost it here with a link to the source.
If you want to work around this with your own Android build, you'll need to modify C++ code, rebuild, and
reflash your phone. You'll need to make two fixes to the released sources.
1) edit the function should_use_animated_gif() in
external/webkit/WebCore/platform/graphics/android/ImageSourceAndroid.cpp (around line 217). Return true
to animate gifs.
2) Change setRGBA() in /WebCore/platform/image-decoders/ImageDecoder.h (around line 173) to call
*dest = SkPackARGB32(a, r, g, b);
instead of
*dest = (a << 24 | r << 16 | g << 8 | b);
With these changes, gifs will animated correctly on large memory devices like Droid and Nexus One.
There's no code path for animating gifs in arbitrary applications like Gallery, except by rewriting it to host a
WebView modded as described above.
Click to expand...
Click to collapse
http://code.google.com/p/android/issues/detail?id=3422#c134
FMXP said:
I notice that animated GIFs are still not enabled by default in the browser after the Froyo update. Does anyone know how to do this?
Click to expand...
Click to collapse
Have you tired it with the latest build of Adobe Flash Player? Found here > http://forum.xda-developers.com/showthread.php?t=763584
Animated GIFs have nothing to do with flash. Nothing whatsoever.
Animated GIFs are several images (GIFs) contained within the single shell GIF.
They typically trigger browsers to play it which makes it look animated.
This is similar to how the boot animations and some live backgrounds are done on Android devices. Except they do it with PNG files.
i havent gone to any .gif sites but the forums that i visit regularly that have .gif avatars play just fine since the update to 2.2
uptheforest said:
i havent gone to any .gif sites but the forums that i visit regularly that have .gif avatars play just fine since the update to 2.2
Click to expand...
Click to collapse
that is where i usually see gifs as well, but not working for me. just shows the one picture.
Running unrooted 2.2 on my dX gives me Animated gifs. Default settings in stock browser, not sure if anything else i did may have enabled them but basically they just work.
Feel free to point me to look at some settings for you guys if you want to try to make it work on your phones, im new to android (Smart phones in general actually) so ill need some points.
PUBLIC DEV
============
dont call me a windows fanboy, but I really wanted this windows widget on my phone. I have the same clock on my wall. Something to work with any clock app... I like alarmclock Xtreme.
EDIT: original .pngs attached
EDIT 2 : V1 of neon clock posted (thanks to Kaik541)
EDIT 3 : V2 attached "alarmclock xtreme with modded clock" and "deskclockgoogle" versions (below) post 11 for details
EDIT 4 : V3 (final??) attached. stand alone 1x1 clock. MicroNeonClockWidget (below) post 12 for details.
**TO DO: *****HELP NEEDED
- find artist/programmer to change neon "ring" into battery meter...
- add second hand.
View attachment 533210
EDIT: added original .png images. shouldnt be hard from here..
Unfortunately, the source images are pretty tiny (130 px by 130 px) and upscaling them creates an obnoxiously blurry image so I have included here a widget that will work (though looks a bit tiny). Push the apk to /system/app (it may work in /data/app, didn't test though) and add the widget like any other
note: the above image was created with a DPI setting of 200 instead of the standard DPI of 240, may look a bit different on your screen. also, the widget in this apk does not use a seconds hand, that's why there isn't one shown.
thanks man actually that will work perfect see screenshot of where i put it...
but i think you forgot to attach the file, thank you again
Trusselo said:
thanks man actually that will work perfect see screenshot of where i put it...
but i think you forgot to attach the file, thank you again
Click to expand...
Click to collapse
then this may not actually be all that helpful to you. I plugged it into the deskclockgoogle.apk which makes it take a 2x2 square even if the actual image isn't that big and I'm unsure of how to change it
either way, thank you.
Trusselo said:
either way, thank you.
Click to expand...
Click to collapse
no problem, just hit me that you could, of course, be using a launcher that supports resizing widgets dynamically (launcherpro plus/adw) and it wouldn't matter, so good luck with it, hope it fits your needs.
actually using launcherpro plus i was able to re-size the widget and it didnt scale the image, so i have 1x1 perfect.
EDIT: gotta love timing...
is there any way to Untie it to alarm? so i can use it with alarmclockextreme?
Trusselo said:
actually using launcherpro plus i was able to re-size the widget and it didnt scale the image, so i have 1x1 perfect.
EDIT: gotta love timing...
is there any way to Untie it to alarm? so i can use it with alarmclockextreme?
Click to expand...
Click to collapse
hmm, to be honest I have no experience with modifying market apps. I know that standard taking apart and putting back together doesn't work because it breaks the key signing. there are probably some guides on how to resign the application properly, but for now it is beyond my grasp, sorry =/
Kaik541 said:
hmm, to be honest I have no experience with modifying market apps. I know that standard taking apart and putting back together doesn't work because it breaks the key signing. there are probably some guides on how to resign the application properly, but for now it is beyond my grasp, sorry =/
Click to expand...
Click to collapse
we're all learning, thats what we're here for.
thanks again
here is a version of the free alarm clock xtreme available on the market with the above neon clock as the analog clock. remove any version installed from the market before attempting to install this and then install like any normal apk.
ok, I think I finally have something that could suit anyone's needs. Here is a widget that is permanently 1x1 (which can be scaled up with a launcher that resizes, but it looks best at this size given the resolution of the PNG's anyway, so it'd be kind of pointless). This is a modded version of this app:
http://www.appbrain.com/app/micro-clock-widget-1x1/factory.widgets.Micro available for free on the market. I have changed the name so they can be installed side by side in case you wanted multiple clocks. Unfortunately, clicking it doesn't open anything, so it's just a standalone 1x1 widget analog clock. Install like any other standard apk.
edit: wow I spent too much time on this, but now I know how to edit market apps yay learning experiences.
a few hours in a single night is fast for learning, it would have taken me at least 2 or 3 days to get there. i dont even have the sdk installed.
your work is really appreciated.
just thought of a great final feature, but it is out of the scope for me and Kaik541,
need to find an artist/programmer to convert the neon ring into a battery meter.
bump... due to |OP| update...
Wow...very nice Kaik. Great work.
sent using a phone.
very nice Kaik. a keeper.
Before you start saying that I'm posting in the wrong section, hear me out, I'm not asking about how to make themes or how to alter existing themes
I want to know how to write an app that is completely self contained application but can have its visual appearance and behavior altered when other apps are also installed on the same phone.
I'm pretty sure this functionality can be achieved b/c there are soo many theme apps in the market for ADW Launcher.
Does anyone know how to do this, and where I can find documentation about this kind of functionality?
I'm curious about this too. My best guess at the moment though is to make sure all of your UI controls are drawables, not just stock spinners / sliders / etc. Use drawables for the graphics in the UI, and when you publish your apk, those resources should be not only visible but changeable by others. Then again, I'm not 100% sure, so don't quote me on that lol.
parabola949 said:
I'm curious about this too. My best guess at the moment though is to make sure all of your UI controls are drawables, not just stock spinners / sliders / etc. Use drawables for the graphics in the UI, and when you publish your apk, those resources should be not only visible but changeable by others. Then again, I'm not 100% sure, so don't quote me on that lol.
Click to expand...
Click to collapse
Oops i quoted you... i think you are right though. It'll be links to different drawable resources
From something awesome
Hey Guys
Due to the Honeycomb Architecture, is it possible to change the fonts on the Xoom, I’ve searched the forums and haven’t found anything for the xoom in flashing fonts etc,
Obviously to play with key android files, you need to be rooted, in which I am I might add. But where is the key file?
fkofilee said:
Hey Guys
Due to the Honeycomb Architecture, is it possible to change the fonts on the Xoom, I’ve searched the forums and haven’t found anything for the xoom in flashing fonts etc,
Obviously to play with key android files, you need to be rooted, in which I am I might add. But where is the key file?
Click to expand...
Click to collapse
Try an App from the Market...Custom Android Font Switcher. Lousy name, but very accurate. The app works even if it is a bit "no frills", and comes with an impressive set of "Creative Commons" fonts. Many are a bit too decorative for everyday use, but there are several which are good replacements for the stock font on the Xoom.
rschenck said:
Try an App from the Market...Custom Android Font Switcher. Lousy name, but very accurate. The app works even if it is a bit "no frills", and comes with an impressive set of "Creative Commons" fonts. Many are a bit too decorative for everyday use, but there are several which are good replacements for the stock font on the Xoom.
Click to expand...
Click to collapse
Another one I like-Absolute System Tools-has a whole suite of useful apps but that's the one I use for selecting fonts.
this is pretty cool (I JUST CHANGED ALL MY FONTS THE STYLE FROM THE HITMAN MOVIE). I AM JUST WONDERING IF ITS possible to also change font size or bold/italics. Etc.
Although I think this font looks cool, I am gonna have to change again because it appears to only be in all caps
edit: interesting. i just checked this post from my computer and see that some of the text i wrote while on my xoom came uot in all caps and some didnt. On the xoom everything is caps. hmmm