Hi!
I'm not sure if this is the correct place where to ask this, but at least Subforum name rings a bell for me.
I've recently installed "AdAway" on my "Huawei U8350" (Android 2.2.2) in order to block ads on websites.
Since this application doesn't work as "AdBlock Plus" does for "Mozilla Firefox" (hiding blocked elements, etc), the places where ads were used to be displayed have been replaced with a "website error" dialog, telling me that these sites couldn't be loaded.
Here's an example (taken from "Dolphin Browser":
{
"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"
}
In some cases, these dialogs are pretty long, and sometimes they change the visible area on websites, so, their layout is affected (height gets increased):
Since my phone's Display is quite small, I'd like to know if there's a way to change/customize these dialogs in order to gain working areas.
I'd like to know if were possible to modify these dialogs to something like these (being C my favorite):
I could see that inside "framework-res.apk" (assets folder) there's the "upside down Android" image under the name "android-weberror.png".
The problem is that I don't know where the dialog text could be located at (or if it is located inside Dolphin Browser apk files).
I've to add that I couldn't find any "SystemUI.apk" file; it has "framework-res.apk" only (as I've read, it seems to be usual, since it's still a Froyo, but I could've been searching on the wrong path).
I hope that someone could guide me to complete this little mission, by providing me of necessary info and help.
Thanks in advance!!
Framework-res.apk file
/res/raw(-locale) has the html file
/res/values/strings.xml has the texts depending on the error:
<string name="httpErrorUnsupportedAuthScheme">The site authentication scheme is not supported.</string> for example
This is the syntaxis (string name="httpErrorxxxxxxxxx")
Thank you so much!
I've been able to edit "loaderror" and "nodomain" files from "raw" folder.
This is what I did for "nodomain":
Code:
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
<title>Site Unavailable</title>
<style type="text/css">
body { margin: 0px; padding: 0px; }
</style>
<body>
<p><img src="file:///android_asset/webkit/android-weberror.png"></p>
</body>
</head>
</html>
I hid URLs inside that upside down Android image, making it like a link object.
I haven't changed anything from "strings.XML" yet (probably unnecessary for now).
However, ads areas (height/width specified by website itself) are still there, but all has been replaced by that upside down Android only
Thanks again for your help Browser's visible area looks cleaner now!
Related
Please help, this is very annoying. Each time I do a soft reset and the Machine boots up again I get the error:
The file "" cannot be opened. Either it is not signed with a trusted certificate or one of its components cannot be found. You might need to reinstall or restore this file
Click to expand...
Click to collapse
I suspect some damaged autostart item causing this, since it says << file "" >>. I checked the Windows/AutoStart folder and could not find anything suspicious. What other ways do exist in WM5 to autostart programs ? I have to find that entry... it's really annoying.
{
"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"
}
Following registry key check you must:
HKEY_LOCAL_MACHINE\Init
To desktop Run key equivalent it is.
I could not find any suspicious entry under HKEY_LOCAL_MACHINE\Init.
However I checked out HKEY_LOCAL_MACHINE\Services\ in the belive that these are system services loaded on startup (?). I noticed one strange anomaly: All the services listed there have a string value named "DLL" that has a path to a dll assigned to it. The service "Trusted" however has an empty DLL string value. Could this be the cause? Could someone else check if they have the path HKEY_LOCAL_MACHINE\Services\Trusted on their Prophet and if there is a value assigned to the DLL string ?
Hmm, didn't know about that one, but now that you mention it, here's what I have under HKLM\Services\Trusted:
PushRouter pushrouter.dll
SIMInit siminit.dll
SIMToolkit simtkit.dll
WSPPush wsppush.dll
Push mail is on so I guess that's why they are there. No key named 'DLL' though. I think it will be safe to remove the empty entry, but you should back up your data just in case.
P.S. Any links in your startup folder? The link may look normal but could have a bad string inside cosing the problem. Just a thought.
Here is what's in my Startup folder:
CapNotify.lnk: 32#"\Windows\CapNotify.exe"
custTDYTSK.exe
GamePad.exe
HomeZone Core: 36#"\Windows\V2R\Homezone\HomeZone.exe"
HomeZone Display: 44#"\Windows\V2R\Homezone\HZDisplayDataSMP.exe"
Init_Tray.lnk: 39#"\Windows\Init_Tray.exe"
PhotoContacts.lnk: 51#"\Programme\Photo Contacts PRO\PhotoContacts.exe" "-silent"
poutlook.lnk: 21#:MSPOUTLOOK
sddaemon.lnk 58#"\Windows\sddaemon.exe"
Services.lnk: 26#"\windows\spbservices.exe"
Removing the Bluetooth gamepad driver from the autostart did the trick. It was written for WM2003 and apparently generates this error on WM5. However starting the driver after the device is fully loaded does not generate the error, so I'm going with this. Thanks for your help.
I flashed my Jack with WM 6.5 recently and loaded the Titanium panels. But I am not seeing an "all in one" panel for Missed calls, Email, Text, and Voicemail. Instead I have a panel for each one.
I checked out the list of apps/panels in the 3vo ROM's for the Excalibur and nothing seemed to be the panel I'm after.
See middle Screenshot at the bottom of first post:
http://forum.xda-developers.com/showthread.php?t=523718
Or just below the Wifi panel in this SS.
{
"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"
}
Anyone know where I can find the stand alone installer? Or help narrow down the search terms? The results I am getting haven't helped find it yet.
I was able to find the info in the Titanium CPR file on the 3VO rom, so I copied that over to the file for my phone. It works!
I just can't find the icons though, I've got red x's on the condensed view and 2 of 4 icons in expanded have red x's. I've looked over the text a lot and I just can't find where they are pulling from.
Looking at the image keys in the registry I see the following:
Value Name: chNotification_cv_email
Value Data: 2003
I'm guessing that is pulling from a DLL, but I am stumped on where to find the name of the DLL so I can view the contents to pick new icons.
Have you tried checking with CHomeConfigurator? I have both the combined panel and the individual ones...
U must install titanium notifications plug
screens:
download: http://th0rn.wrzuta.pl/sr/f/0p6RsQTR8l6/titanium_notifications_v1.3
Is there a way to reorganize messaging items/get rid of a particular item e.g. voicemail?
3skimo said:
Is there a way to reorganize messaging items/get rid of a particular item e.g. voicemail?
Click to expand...
Click to collapse
I think you would have to edit the CPR file and comment out the items you don't want to use. If you're editing the CPR file, make a copy for safe keeping in case you mess it up.
Commenting an item out should be easy enough, you'll probably have to adjust the spacing afterwards to get things to appear neatly again.
hello everyone,
now ,if you don't want install lockscreen software,
if you wan't system's lockscreen can has it own BG
if you don't like system't way to slide to unlock
you can try this one.
it took me 15 DAYS to finish this...so please reply something,
and if you find any bug, please tell me and i will fix it.
{
"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"
}
as you can see, the backgrounds of menu and lockscreen are different .
and you can change any background you like by ps.
SO LET BEGIN
Statement:
1-CPR program lock part of the parameter file reference in the "style】 【buuf lockscreen_wp6.5_V2". Thank its author.
2 - This is just system lockscreen's changes. Just cover the documents i provided, no need to install.
3 - is an independent replacement of the lock screen wallpaper. The original system can not achieve this function.
The reasons for doing this lock screen
1. I personally think IPHONE's way of unlock (slide left to right) it;s really on HD2's big screen, so i change it,now you juse need to silde left to middle of screen, I text it on my X1 and HD2 .
2. And this is to modify the system locks, it will not take up space , will not affect the speed.
3. Relative to the S2U2 and HTC MINI LOCKSCREEN the need to install the lock screen software. it can make your device keep running for longer time.
4. i am using GTX SENSE, now only HTC MINI LOCKSCREEN' style matched with GTX SENSE, but HML sliding feels poor (frame rate is too low). . .
Usage:
Step 1. The following files into the \ WINDOWS \ LOCKSCREEN in
LS_LockScene_480x800.cpr
sliderbg.png
Step 2. The other file into the \ WINDOWS . if it doesn't work ,please reset your device.
Wallpaper replacement method:
there is a PSD i put into the file. all you need to do it's to open this by ps,then mixed with the picture you like. and save it as JPG can save you more room.
every thing people made has a name, so i call it BGP-SCREEN
B-BLACK G-GRAY P-PURE&WHITE
and....my english is really poor...so bear with me..thx
here is the fileView attachment BGP-ScreenLock.zip
Hello all,
So I have searched many api libraries and tried many different ways to save, but I cant seem to keep the alpha channel for an image.
So here is the problem
Step 1: Load an image that is some file type ... say rgb 565..., and convert that to argb 8888. This works great, and the bitmap's hasAlpha flag is true, and I tested it and was able to write to alpha, and read it properly.
Step 2: Save the converted image to a file using something like this:
Code:
bitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
Where out is my FileOutputStream.
Step 3: Once saved I try to load that file again using:
Code:
bitmap = BitmapFactory.decodeFile(bmapFileName, bfo);
Where bfo is my BitmapFactory.Options, which has no prefferedConfig or whatnot.
At each step i print bitmap.getConfig() and bitmap.hasAlpha()
Prints:
Step 1 -> bitmap.getConfig() = rgb565 (or whateverfiletype), hasAlpha = false
Step 2 -> bitmap.getConfig() = argb8888 (or whateverfiletype), hasAlpha = true
Step 3 -> bitmap.getConfig() = argb8888 (or whateverfiletype), hasAlpha = false
So why am I getting hasAlpha in step 3 to be false. And how can I make sure that writing the bitmap to file will maintain its alpha component.
Thanks for any input
Multiple images Animated in Portable Network Graphics
I'm sorry I do not have the answer for you, though since there are two animation formats for PNG related graphics, you could consider using MNG. That most API's do not support them is because (currently) programmers are (still) not familiar with these file formats. Solution; create your own API
Here is some insight in APNG (Animated Portable Network Graphics) and MNG (Multiple-images Network Graphics) obtained from WiKiPEDiA for others to obtain more information regarding this subject.
Read here what w3c.org had to say about PNG.
An APNG image example -=[HERE]=- taken from en.wikipedia (not all browsers support this format)
{
"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"
}
We need more input from others regarding this interesting subject
If you're like me, you comment on XDA threads frequently. I noticed that whenever I go to reply on a thread while quoting more than one person, the quoted text gets pretty long. Then I have to scroll way down to the bottom of the reply text field before I can start typing my response.
So I created a userscript for the Tampermonkey Chrome Extension to do the scrolling for me. Supposedly, any userscript that works in Tampermonkey on Chrome should work in Greasemonkey on Firefox but I couldn't seem to get it to work in Firefox. But that's fine with me because I only ever browse XDA on Chrome.
Anyway, this userscript will scroll to the bottom of the text fields on these three webpages:
Code:
http://forum.xda-developers.com/newreply.php?do=newreply*
http://forum.xda-developers.com/editpost.php?do=updatepost&postid=*
http://forum.xda-developers.com/private.php?do=insertpm&pmid=*
Those three pages are for a reply to a thread, editing any of your previous posts, and for replying to private messages.
It's been super convenient for me and I hope it's convenient for you too. Once again though, I couldn't seem to figure out how to make it work in Greasemonkey on Firefox. If you happen to figure it out, let me know because I'd like to be able to use this userscript in Firefox once in a while.
Attached below is the userscript for Tampermonkey as a zip file. Download it and extract it. Then, open your Tampermonkey Dashboard, click on New Script, delete all the text that's currently in there, then click and drag the xda-text-field.user.js file that you extracted to the code section of that New Script page. Then hit Save.
Alternatively, you can just copy and paste the code I have below into that same New Script page and save it. Take your pick.
Code:
// ==UserScript==
// @name Scroll to Bottom of Text Field - XDA
// @namespace com.misterpyrrhuloxia.xda.text.field
// @description Scroll to bottom of text fields
// @include http://forum.xda-developers.com/newreply.php?do=newreply*
// @include http://forum.xda-developers.com/editpost.php?do=updatepost&postid=*
// @include http://forum.xda-developers.com/private.php?do=insertpm&pmid=*
// @version 1.0
// @grant none
// ==/UserScript==
$(document).ready(function(){
$("#vB_Editor_001_textarea").focus();
$('#vB_Editor_001_textarea').scrollTop($('#vB_Editor_001_textarea')[0].scrollHeight);
});
Please update chrome. Clear cache, storage delete need please could fix it
{
"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"
}