I need to modify a URL and redirect automatically.
Say If I enter the web address
Code:
http://www.somedb.com/index.html
I would like it to redirect it to
Code:
http://ezproxy.yourlib.org/www.somedb.com/index.html
In PC I use a greasemonkey userscript (replace url()) to achieve this.
I haven't seen android browsers which support userscripts. I think a .sh file could be a solution. Perhaps modifying the host file.
Can someone suggest me a method to achieve this.
Related
how to set files in pocket internet explorer from http to automaticaly parse the link download to other application just like the java application integrates to PIE
I mean when you click on a link in PIE that leads to a Jad file, it parses the link to the Java midlet manager,
I want to do the same but to parse the links to OTHER programs
i'm not sure.. but if these are specific file types you're referring to you might be able to associate them with a different application using Advanced Config..
thanks for helping nir36 but i'm afraid that's not what I needed,
I want to know how to launch a program with a parameter like http:// with the link and full path including the extention of the file I wish to download, when clicked on a link in the pocket internet explorer.
BUT not link to files in my memory,
Links to files in http:// servers
Just like Jbed uses the Ieplugin.dll to integrate PIE and intercept *.jar files to download with Jbed.
.do you know how?
Sorry I cannot explain it easier
Hello everyone,
I wanted to know if Estrongs allows you to actually mount a Windows network share (for reading and writing) for other applications on the phone to use? I want to be able to access my Windows share with the command prompt on GScript.
Specifically what I am trying to do is have commands from my phone control Grooveshark, which now has a text-file-based API. All I have to do is append "next" or "previous" or whatever to a text file on the host PC and Grooveshark will follow the commands.
See here: http://grooveshark.wikia.com/wiki/External_Player_Control_API_Docs
So will this work? Or can GScript not edit a file that is on an SMB share?
Thanks!
Shawn
Hi:
I've recently started to develop my own comic reader. The problem I've come up with is cbr files, which are esentially rar files. Now I know there are comic readers out there (all of them, I think) that support cbr files. So there is a way of doing this, I just can't find how.
In the rarlabs official page (search google rar addons and it's the first page) there are several options. I would like to know if I download the commandline arm unrar how I could install it on Android (I have a motorola Xoom, it would be for Honeycomb), assuming that is correct.
If this is not an option is there a command line unrar application that I could call from my own? and How would the code be (to call an external application, that is)?
If the above is not possible, what is the way to get to unrar something in android?
The only real option I've seen would be to use junrar (hosted on github)
But it seems complicated and I'm not sure it works very well as I've seen a lot of conflicting reports.
Thanks for any help!
Try http://www.all-freeware.com/results/rar/for/android to unpack rar on Android.
Success,
Senax
Hi:
I'm not exactly sure what you wanted me to try. There is nothing in that page that would allow me to uncompress a rar file on android. Only a bunch of unrar utitilities and some android things but they are not related, that is, there is nothing that says unrar that also works on android.
thanks anyway.
Unrar
great app available here: androidzoom (dot) com/android_applications/tools/unrar_dhpu.html
Cheers,
Romuloxiii
Hi:
It's seems that I didn't make myself clear.
I want to develop an android application that needs to unrar files. Is there a way to call the unrar application from my own code?
If so, can you tell me how?
Otherwise, I appreciate the effort, but I can't use that.
Thank you very much!
You can bring the unrar binary along in the /asset of your app,
on first launch copy it to your apps /file directory, chmod +x it, and use exec("sh") to unrar the files from shell.
oh, I see. I think I get the the idea but I don't understand all the instructions.
What did you mean by importing thebinary on my asset?
If I do the step above why do I need to copy the binary on first launch?
Don't I need root privileges too chmod it? And how do I do it from my source code?
And finally where can I find the command line use of the application? Or is it the same as the Linux version?
I know there are a lot of questions, but please keep in mind that I'm very new at doing this.
Thanks for all the help!
You need to put it as asset to bring it along.
You need to copy it because asset files are not directly accessable.
You don't need root to chmod the file in your own directory.
You do it by using a shell from your code i.e. Process.exec("sh")
And finally you want to program the app not me,
so don't be lazy and invest some time.
Google google google google...
If there are still questions left after that, you may ask again .
Ok, I'll try it and get back to you!
Thanks!
Sorry for my lazyness, but I've been Googling for a good half hour without finding a simple 'unrar' binary executable compiled to run from terminal on rooted ARMx32 device. I don't want bloated GUI APK's or libraries for development implementation, but just the plain command line interface executable. Anyone, please? It's a pity they haven't baked it into Busybox as an applet, IMO.
hello guys
if any one can tell me how to open local html files with internet explorer or opera mini in offline mode.
IE doesnt' seem to allow the file:// URI scheme, and (at least on stock ROMs) runs with so little permissions it's unable to see almost any files anyhow. Since you have Opera, you're presumably on a full-unlock custom ROM. You could try specifying the apth the file for Opera (or IE; I've never tried on a custom ROM). Either use file:///path/to/the/file.htm or \path\to\the\file.htm.
thank for the reply.but i tried to make that address i.e.169.132......to open an index html file located at root directory but nothing happen.if u give me some detail on this method it would be great.i read some questions at microsoft support but some code written in ms.studio and subsequent compilation could help.my rom is deepshining 7.3 and my phone is hd7
thanks in advance.
Waaaaait, you did what? Nothing in what you wrote looks like what I said you should try. You don't need to run any code, for example. You also shouldn't be entering an IP address, unless you're actually running a webserver on your phone.
If the file is called "index.htm" and is located in the phone's root directory ("\"), then you should have tried either "\index.htm" or "file://index.htm" or "file:///index.htm". These are standard ways to create a local-path URI
You could also try running a webserver, of course. The "Root Webserver" app linked in my signature will run just fine on your ROM. You'll need to make sure that it keeps running in the background (the "NoDehydrate" hack can help here, see my MultiTaskToggle app for an easy way to enable it), then run it, hit the Start button (not Back, as that would exit the webserver), load IE, and then go to 127.0.0.1. You'll need to move or copy the file to the webserver's "Content" folder, then go to 127.0.0.1/Content/index.htm.
thanks for the quick reply .i did not make any code but the question at ms.was about ability of applications to open local help files.
i will try the method u mentioned and reply asap.
i tried all posible paths but always "internal comun.error" in opera .i should give it a try using web server and tell u the result.thanks
Sometimes You want to install an App on more than an android device, but the App data is Big, so it would take long to download
My Problem For Example, I Want to Install Several Offline Language packs For Google Translate for each Device, on my Connection it would take Forever
Now The Thing That You Need these File's to Be Downloaded Once, Copied To your PC, Plus Knowing From Where the files Being Downloaded
For My Case the File's are "ar.zip" and "c.zip" And they are being Downloaded From:
http://dl.google.com/translate/offline/v3/r1/ar.zip
http://dl.google.com/translate/offline/v3/r1/c.zip
Now the idea is:
1.Get a Copy of the Files to your PC
2.Make a Local WebServer
3.Edit Hosts file in Your Android (Require Root)
and Simply Download the Files Using your App as Normal But it will download rather than internet it will download from your PC
Now you'll Need Reactor, Get it From: https://app.box.com/s/brvhhzr72220n1w1mao6
Simply After you Download it, Run it and Install it, Run It, Run the WebServer
Now when you open localhost or 127.0.0.1 in your Browser it will open you an automatically Generated page by Reactor
Now you need to store Files in the WebServer, or whatever you call it, To Do this, Go to the Folder where you installed Reactor, Open "Core" Folder and then "htdocs" Folder, Now For Example if you Put a Folder called "hello", and Put a File Called "a.mp3", if you Opened with your Browser, localhost/hello/a.mp3 you will be able to download it!
Now For My Case i made the "ar.zip" and "c.zip" in translate/offline/v3/r1/
So the Path of the Files are:
\Reactor\Core\htdocs\translate\offline\v3\r1\ar.zip
\Reactor\Core\htdocs\translate\offline\v3\r1\c.zip
while in the Browser They Would be:
localhost/translate/offline/v3/r1/ar.zip
localhost/translate/offline/v3/r1/c.zip
Now The Next Step is to redirect the Website The App Will download From to Your PC Server, Which is you PC IP Address
My PC IP Address is 192.168.1.106,. So For my Case i want dl.google.com to be redirected to 192.168.1.106
"hosts" File will do the Job!, You'll need root for this Step, Open up a File Manager in your android, navigate to /etc/ and Open up "hosts" file with a Text Editor
and add the Following Line:
HTML:
<For (IP)> <From>
For My case i will add:
HTML:
192.168.1.106 dl.google.com
Now if i Opened dl.google.com in your android Browser it will open the WebSever you made with your PC!
Now For My Case When Google Translate Try to Access:
HTML:
http://dl.google.com/translate/offline/v3/r1/ar.zip
HTML:
http://dl.google.com/translate/offline/v3/r1/c.zip
dl.google.com --> is the WebServer Now
/translate/offline/v3/r1/ --> Entering the Folders I Made the ZIP Files In
<file>.zip is the Files
So the it will now download Rather from the Internet it will be Directed to My PC hooray!:victory:
Now you Bring Every Droid You have, Add a Single Line, and Download the File you want Normally! Amazing!:victory:
Please Suggest me A Better Title:good:
This Is My First Tutorial Thread So Don't Blame me:fingers-crossed:, Just tell me what is Wrong
Please Rate The Thread For Me
And Hit that Thanks Button if i Helped, i really Appreciate this!