For everyone using a system/etc/hosts file to block ads.. - EVO 4G General

OK so you're using adfree or a custom hosts file to block ads.
Great but, now in place of the ads theres an upside down green android and a bunch of crap about the webpage being unavailable!
This isn't always true, but an example is youtube.com
Try going on there with your phone and there should be two or more spots where the frame tries to lead you to a hosts banned location.
This results in a bunch of webpage unavailable errors.
So what I did was I edited the html and optimized the android guy (transparent background) so it only shows him, but no text!
With this update when your browser tries to access an ad that can't be loaded you'll get this.
Heres an example of this on youtube (much more elegant huh?).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Visiting an actual page that doesn't work will give you this.
I think the best part is that this is also true of ads within apps.
Instead of a never-ending load symbol or an actual ad you just get a cute upside down android guy. See below.
Just flash this over your ROM.
Tested only with DC 3.2.3, but should work with most/all roms.
I am not responsible if this causes your phone to explode etcetera.
Note: Replaces framework-res, could kill themes..

Good work! good work! Thank you!
You should add a readme.txt file explaining installation though

Nice idea. I am trying this out most definitely. Much cleaner.
Edit: Hmm, noticed that this replaces framework-res.apk. This will change themes installed on the phone. Maybe a MetaMorph for this would be a better idea?

Good point, hadn't considered that. I have never used metamorph, ill look into it though..

topdnbass said:
Good point, hadn't considered that. I have never used metamorph, ill look into it though..
Click to expand...
Click to collapse
It would play nice with the plethora of customized themes out now.
I simply just looked at what you changed, pulled my framework-res.apk, put your files in, and pushed the framework-res.apk back in. Worked like a charm.

Sorry for the double post, but xda app won't let me edit in attachments. Confirmed, and it is aesthetically awesome. Thanks again.
*Currently Mobile*

Wow man I hope you can get this to work with themes. I would hate to break my custom theme on my evo.

I flashed this over DC 3.2.3 and it didn't work. Did I miss something?
Never mind. I'm a dumb-ass.

I never get the annoying android cannot find image, I always just get a spinning wheel where the ad should be.

If you can't get it working with your theme, link me to it and ill put up a working version.

itmustbejj said:
I never get the annoying android cannot find image, I always just get a spinning wheel where the ad should be.
Click to expand...
Click to collapse
This will replace that with the static green Android image.
I prefer it because the loading sign is distracting and misleading.
Try YouTube. It always gives me those errors.
Also note that this isn't going to work with every ad and its not supposed to.
Only with those which try to access a blocked url

Will this work with CM6?

custom ROM not an option here
niiice
how can this be had on either
Droid X: froyo OTA
or
Droid X: gingerbread .602 OTA
is there perhaps a loopback proxy app that I can run analogous to the windoze application: eDexter (used with hosts adblocking)
proxomitron for android?
eDexter for android?

itmustbejj said:
I never get the annoying android cannot find image, I always just get a spinning wheel where the ad should be.
Click to expand...
Click to collapse
Same here. And it looks like from your screenshots, flash is blocked. I don't get that same screenshot, even on the latest adfree with latest hosts update. My loading of youtube shows everything.

Related

why cant we view gif files?

Seems like its a simple thing how come android didn't inlude it?..... the iphoners make fun over it...lol
Because Apple has a patent on it?
Paul22000 said:
Because Apple has a patent on it?
Click to expand...
Click to collapse
Huh? No windows can too and basic cricket phones too...
temperbad said:
Seems like its a simple thing how come android didn't inlude it?..... the iphoners make fun over it...lol
Click to expand...
Click to collapse
lol we really cant see gifs can we? LOL GOOGLE!!! make a protocol that converts gifs to a special format and patent it lol
And even if we can't in the browser you would think just looking at them after saved would show the animation but thats not the case. Even the basic phones can, like cheapo flips....
Good idea on the app wish I knew how, get on that and give me part of your earnings.lol. j/k
For playing animated GIF:
1. Download Opera Mobile (non Opera Mini)
2. enter in the address bar
file:
3. Select your gif
It works without HTC Sense
Either using CM or compiling Android yourself will allow you to view animated gifs just fine in the browser and has so for quite a while. I've not tried animated gifs outside the browser though. It was originally disabled because of the memory consumption as far as I know.
we can't??
I've been watching gifs on my Nexus One for quite a long time already...
Never tried on stock but def works on CM
Sent from my Nexus One using XDA App
temperbad said:
And even if we can't in the browser you would think just looking at them after saved would show the animation but thats not the case. Even the basic phones can, like cheapo flips....
Good idea on the app wish I knew how, get on that and give me part of your earnings.lol. j/k
Click to expand...
Click to collapse
---download "AnimGIF" from market. it is a LWP that uses GIFs. pretty cool
Okay? I thought stock 2.2 displayed animated gif just fine, but it's been a long time since I used a stock ROM.
****ing hell. Why was a 7 month old thread not even relevant to current Android releases bumped??? WHAT IS WRONG WITH YOU PEOPLE.
GldRush98 said:
****ing hell. Why was a 7 month old thread not even relevant to current Android releases bumped??? WHAT IS WRONG WITH YOU PEOPLE.
Click to expand...
Click to collapse
Whats not relevant? People are having problems viewing animated GIF files. I cant. I keep hearing that im supposed to be able to with cm6.1 rc1 installed. Still cant.
I keep reading about viewing files in the browser. Can i open a file i have stored on my sd in browser? Why cant i open the file from my gallery? Certain setting im missing? Been searching around and really cant find any answers. If someone has a link or some sort of info to help out that would be great. thnx
SBERG117 said:
Whats not relevant? People are having problems viewing animated GIF files. I cant. I keep hearing that im supposed to be able to with cm6.1 rc1 installed. Still cant.
I keep reading about viewing files in the browser. Can i open a file i have stored on my sd in browser? Why cant i open the file from my gallery? Certain setting im missing? Been searching around and really cant find any answers. If someone has a link or some sort of info to help out that would be great. thnx
Click to expand...
Click to collapse
you can view them while surfing the net through the browser, but you can not view them through the gallery. you can store them on your phone(sd), but you can not view them.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
simms22 said:
you can view them while surfing the net through the browser, but you can not view them through the gallery. you can store them on your phone(sd), but you can not view them.
Click to expand...
Click to collapse
Cool thnx.

Qucik dev question

Hey everyone, right now I am working on a rom for the D2 and I had it all going great and was just about to release it to the community until I came across a pretty major bug with the text color. I fixed that bug with the help of another developer but after fixing the bug I came across a string of other bugs which weren't there before.
Most of the bugs were easily fixable except for a few and one of them I couldn't fix by myself.
The bug is that whenever I am in the settings.apk I cannot access most of the options because it force closes constantly which also results in reboots when I am trying to turn on wifi, gps, etc. It is usable but annoyingly slow. My idea was to just replace the settings.apk and settingsprovider.apk with new/stock ones and I am doing that right now and am going to flash that rom really soon but I am not sure if that will work, any ideas?
Also my logcat looks like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
and just keeps updating the status of the phone position multiple times a second. When I logcat other roms they never constantly update the screen position and I was thinking that this probably sucks the battery dry , does anyone know how to make it update the screen position less often?
Finally I must've misplaced some file in the framework-res.apk and now whenever I try to change the volume of either the ringer or some media the bar that shows how loud it is goes all crazy and turns into a spinner *shown bellow*.
Any help with any of these problems would be great.
Thanks a lot,
ljbaumer
p.s. the rom should be released in a BETA in probably a week once these bugs are fixed and I make a few more changes to the look and speed.
Cool... is this rom based on anouther??? Is it blur or non blur??? Good luck if you need any help hit me up
Sent from my DROIDX using Tapatalk
It's based off of gummyjar but with a lot of changes and tons of stuff from other roms.
It is completely non-blur.
I might include a few pieces of MIUI in it (because I am going to do my best to try and port MIUI over to the D2 from the Droid after this rom).
ljbaumer said:
It's based off of gummyjar but with a lot of changes and tons of stuff from other roms.
It is completely non-blur.
I might include a few pieces of MIUI in it (because I am going to do my best to try and port MIUI over to the D2 from the Droid after this rom).
Click to expand...
Click to collapse
Cool just make sure you give credit to everyones app etc... that you use
If you are really interested in doing this right, I can help you setup your build envirement so you can build your own apps... this is something I have offered since releasing GummyJAR but to date only droid2169 has taken me up on it....
Sent from my DROIDX using Tapatalk
Yeah I definitely will credit everyone!
(I think I PMed you a while back about building my rom from gummyjar but I may have not...)
I hate people who steal work from other people without writing credits.
It would be great if you could help me set up an environment to build apps.
thanks,
ljbaumer
The sound progress issue is linked to progress_horizontal.xml in framework-res/res/drawable. Make sure you have that file edited correctly.
sonnysekhon said:
The sound progress issue is linked to progress_horizontal.xml in framework-res/res/drawable. Make sure you have that file edited correctly.
Click to expand...
Click to collapse
Thanks,
I didn't do any editing to that file.... Should i just replace it with a stock progress_horizontal.xml from a fresh framework-res.apk and see if that fixes it?
ljbaumer said:
Thanks,
I didn't do any editing to that file.... Should i just replace it with a stock progress_horizontal.xml from a fresh framework-res.apk and see if that fixes it?
Click to expand...
Click to collapse
Yes, you can try that. Or use the one from my theme to get the white color.
sonnysekhon said:
Yes, you can try that. Or use the one from my theme to get the white color.
Click to expand...
Click to collapse
thanks, I 'bricked' my phone so I had to SBF and now I am stock again, so I am just rooting over. I'll use the file from your theme so I can get the white one (which looks tight) and then I think I am just going to resync with gummyjar and start over because I just got a new computer for Christmas and I'll just save my system/app and framework-res.apk so that I won't have to do that much editing over again.
thanks,
ljbaumer

NWS animated doppler radar for low memory devices

I made my own site of official animated National Weather Service doppler radar images because I couldn't find any.
http://wap.pdxvr.com/rad
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
For the last year or more I've been unable to find 'official' animated National Weather Service doppler radar that runs on our low memory devices (gifs don't work and if you've upgraded past SenseUI, flash lite doesn't work either). Substitues applications are OK, but I prefer the real deal.
I just uploaded this a few minutes ago and there may be some bugs (both functional as well as interface, please let me know).
The long list of doppler sites can be avoided by bookmarking your frequently visited sites.
I also have a mobile site for new tv show air times from TVRage.com (also because there was no app at the time I created the page)
http://wap.pdxvr.com/t.php
Credits:
I should have given some credit where it is due here.
I used this for the javascript animation http://goo.gl/4baVi
I used this http://goo.gl/ejMju for deconstructing the gif (although I'm going to rewrite it from scratch I think)
I just put them all together onto what I already had as a site.
As a flight instructor this is very useful to me, thanks for your work.
AjaxBU said:
As a flight instructor this is very useful to me, thanks for your work.
Click to expand...
Click to collapse
I had noticed a need for NWS radar for pilots, I think there are maybe 2 apps out there. You are welcome!
This stuff is awesome!!!! How did you do it?
oohaylima said:
This stuff is awesome!!!! How did you do it?
Click to expand...
Click to collapse
edit: So I didn't write that much of the guts of it, just sort of made other people's scripts work and integrated it onto what I already had going.
I found that the NWS was using this http://www.ssec.wisc.edu/~billb/jsani/ for some of the satellite images but not for the large doppler gif images.
Then I found this php class that splits the gif into separate images
http://www.phpclasses.org/package/3234-PHP-Split-GIF-animations-into-multiple-images.html
Put them together and voila!
I'll be adding all the other radar eventually, visible, infrared, water vapor, fog, etc.
Only thing I don't like is that jsani doesn't really scale with the screen (I had to fix it at 320px wide) but it zooms in ok it seems.
*whistles* Outstanding! Now that's what I'm talking about. Resourcefulness and ingenuity. Love it! Keep up the excellent work!
Just found this (thanks to the link in your sig). Good stuff aiwetir. Now I can get rid of that clunky weather channel app that usually didn't work anyhow.
Nice. Why not turn it into an app?
Another great app would be a simple GIF viewer. Great work!

Editing the multitasking apps

I was trying to add the maps app to my mult-itasking bar and couldn't seem to find a way to do it. On watching a couple of YouTube videos I see there appears to be an edit button at the bottom of the bar on those notes which doesn't appear on mine.
Am I being really dense on not being able to see how to access this button?
loftus1961 said:
I was trying to add the maps app to my mult-itasking bar and couldn't seem to find a way to do it. On watching a couple of YouTube videos I see there appears to be an edit button at the bottom of the bar on those notes which doesn't appear on mine.
Am I being really dense on not being able to see how to access this button?
Click to expand...
Click to collapse
the edit button only appears when you have too many apps for that bar.
Samsung have made a list of what apps can be used in this mode, maps is not one of them.
A hack is being worked on to allow all apps to be used in this mode, please see the sticky thread.
It was because I saw maps on the list of apps in that thread that I was trying to add it. Never mind, just a minor thing. I'm just curious that, if the edit button only appears when there are too many apps on the multi-tasking bar, how do you actually add or remove apps when it isn't there? Or do apps that can be use this facility (on unrooted phones) automatically add themselves there?
Thanks for your help.
I have maps in my multitasking bar!
From the.start. LIJ1 Italian.
Sent from my GT-N7100 using xda premium
ah actually good point, maps is one of the apps.
Are you sure you have maps installed?
Yep, have maps installed.
Maps should then default to being one of the items in the side-bar
Yes the maps is there,and also it looks like there are omly 12 applications supported as of yet,you can remove or move them back when you hit the Edit button and drag any of them to the right lane or back to the left.
Must be a glitch on my phone then. I tried uninstalling/reinstalling the maps app to see if it would make a difference but no luck. Any ideas gratefully received.
loftus1961 said:
Must be a glitch on my phone then. I tried uninstalling/reinstalling the maps app to see if it would make a difference but no luck. Any ideas gratefully received.
Click to expand...
Click to collapse
have you tried turning it off and on again? (no joke)
If the reboot doesn't fix it can you post us a picture of your sidebar?
to take a screenshot take the spen out, press the spen button and tap and hold the middle of the screen.
Yes, tried that. It's about all I know how to do!
Hopefully here are 2 screenshots showing the entire multi-tasking bar.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
for starters try the app "live score addicts" for football results, its the best I have come across in 3 years with android.
back on-topic...
maps definitely is not there, weird.
I take it you have not modified the firmware at all? on a completely stock rom?
Maps is installed as a /system/ app you see, and it is that specific package name that is allowed for multi-tasking, if for some reason you don't have it installed as a /system/ app there is a slim chance its under a slightly different package name and multi-view just won't see it.
Edit:
can you post me a screenshot of the page displayed when you go *#1234# in the dialer.
Here you go.
Maps is here, and *#1234# results
Interesting Lofty, your actually on quite old firmware (well older than most of us with split-screen ability).
Where did you get the phone?
Vodafone upgrade. Maybe it has something to do with all the crap they stick on the phone.
loftus1961 said:
Vodafone upgrade. Maybe it has something to do with all the crap they stick on the phone.
Click to expand...
Click to collapse
It would be very easy, if you wanted, to unbrand that device and put the latest UK unbranded firmware on it but at the risk of voiding your warranty (although tbh it shouldn't).
If you are interested in this just PM me and I will give you the simple instructions.
Have we found a way yet?
Sent from my GT-N7100 using xda premium

Is there an app that allows you to force-close all open apps that works on Android TV

I'm looking for an application that allows force-closing running applications, as its running down the memory and making the performance slow down. I'm not a huge fan of slowdowns, if anyone know of such a app, please type in it the comments below.
Thanks!
..
Thanks you for providing me this download link. I will try this out when I get home tonight, looking forward to seeing it work. Why don't you submit it to the Google Play Store?
..
id be willing to try this when i get home as well. what app did you modify exactly? id like to look into it on the play store before i get home and install yours on my shield.
..
Hey man so i got to play with this a little bit last night. Thanks so much! It will definitely help when im testing out new apps and troubleshooting issues. But to be honest, using the app last night made me realize something......
The shield is pretty damn good at managing ram on its own. With no easy way to force close apps prior to the app you provided, I just let shield take care of it, assuming all my running apps that i didnt force close on my own, were using up all my free ram available. But last night when using your app, each time i tried to "kill all" i only got a meager 100-200MB free, at best. Even with all the apps running, i still had like over 1gig, usually 1.5, available. its awesome.
But yeah, still keeping this app for messing with stuff. Thanks.
Awesome, I'll give it a try too. It always annoys the hell out of me that I have to go into settings then apps then go through all my installed apps just to kill a frozen app. It would be awesome if someone could implement the "hold back to kill app" that is in most ROMs.
Sent from my Pixel C using Tapatalk
The file for your modified app is no longer working, any chance of reuploading this please?
2017 and still no android Nokia until "autumn" in UK for my Sony TV to fix this.
Thanks
JJ-KwiK said:
Sure. - https://play.google.com/store/apps/details?id=com.rhythm.hexise.task
Again, I only modified the apk to add leanback support.
Banner I've added:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
can you please upload this .apk?
also does it show you a list of your running apps
i can not belevice how ****ty android O is ym mi box how could think removing this most basic of functionality was good idea , i mean it was not great on MM but at least you could see a list of your running apps
gdroid666 said:
can you please upload this .apk?
also does it show you a list of your running apps
i can not belevice how ****ty android O is ym mi box how could think removing this most basic of functionality was good idea , i mean it was not great on MM but at least you could see a list of your running apps
Click to expand...
Click to collapse
You can though! Just press home twice. The (X) on that screen closes all apps too
millab said:
You can though! Just press home twice. The (X) on that screen closes all apps too
Click to expand...
Click to collapse
nope it does not work
mi box on Oreo , pressing home twice does nothing

Categories

Resources