Log url visits in android - android

I hope to create an android app which can save all the url visits, including typed-in url or url visited by clicks. Can someone give me a hint? Thanks!

In general this is impossible to do without a rooted device. While Lokesh's answer hints at the posibility of using the browser history, it is in all reality quite possible that the user will simply have used another browser. You also don't consider the possibility of people "visiting" other URLs by using apps which display information from those URLs but don't explicitly load in a WebView? (For example, the Gas Buddy app.) To do this reliably, you will need some kind of a proxy, which can actually monitor network traffic and log it. However, you should note that this kind of ability will not be possible without rooting the device.

Related

Access User's Browser (preferably Chrome) cache in Android

I'm working on something where I provide content to users based on the things they view over the internet, or by the kind of applications they use. Is there a way to get a user's search history, bookmarks or cache from various browsers (preferably Chrome). Also is there a way to get the 'search parameters' typed by the user to install apps on Play Store. The aim is to create a background service that helps understand user search habits on the mobile platform.
Unfortunately you can't because every android application in a sand box for more information go to this link:Sand Box
and if you want to do sort if thing you must implement rooted application and the database file in chrome is encrypted

Displaying specific web content on android

We make industrial machinery and ship it with Android devices (just like cellphones without the phone) with an installed app that we write to remotely control our equipment from the factory floor.
One customer requested that we interface to some of their equipment which they expose through a web server. I added a feature to our Android code which invokes the native web browser on our device. This works but they want the URL the browser is pointing-to be be hardcoded (or hidden) so their workers can't alter it. Is there a way to do this programmatically from our app?
Alternatively I could use a WebView. When I experimented using WebViews here at our shop on various commercial web pages, getting the scaling correct for any arbitrary web page was problematic. What would I need to know about the customer's web page to make sure a WebView would work with their page?
EDIT: Several responders have suggested a WebView and giving the user the option to manually scale it. The users are factory workers in a production setting, so making them take time to scale would probably not please the customer, and besides they're wearing gloves - all the controls we expose are "fat" buttons - so scaling would be hard. Really this should look right the first time they see it. The customer's production facility is on a LAN on the other side of a firewall in another country so I can't access it from here. Do I need to be able to reproduce it locally do do this right?
In this case, I would definitely use the webview. There's just not going to be a way for you to prevent the native browser from potentially changing URLs.
To handle zooming you could just let the users zoom appropriately for themselves:
webview.getSettings().setBuiltInZoomControls(true);
I don't believe you can block the native browser from accessing other url's, so WebView is your best bet.
About what you need to check, I'd simply check if their website is scaling properly on mobile devices. If it does, it should behave the same in a WebView. Simply visit the website from a mobile phone/tablet or have a look at their page's code.
Providing the ability for the user to zoom as suggested by iismathwizard is an excellent idea as well.
Best of luck ;)

Any multi-platform web app mobile URL desktop-shortcut?

I ask a suggestion about a user Experience issueaccessing a browser URL on a mobile phone:
how can a "basic" user EASILY can access a web app on the browser of a handset (mobile phone/tablet, with possibly a solution not dependent on the specific OS (as usual: Android (mainly I'm interested on this OS)/iOS/Windows Phone/etc. on the handset ?
In other terms:
How can I set a simple OS-indipendent (BROWSER-indipendent) URL desktop-shortcut ?
I explain better:
I realized a simple html/css/js/bootstrap web app (e-commerce) to be used from a handset. Some screnshots here:
https://twitter.com/solyarisoftware/status/478946171420155904/photo/1
https://twitter.com/solyarisoftware/status/477373808551411712/photo/1
The web app (that user access through the browser of the handset) could be a possible valid alternative to an expensive native app. But I have this problem:
because my application is an e-commerce (in food realms) that could be used by a vast body of people tipically "inexpert" ... in facts many users that access phone apps have difficulties to just enter a URL on a web browser...
I confess I get bored myself to enter a long URL, let say:
http://mysuperbecommerce.com/mymarketplace/myshop
so, how to do to SIMPLIFY the access to the URL for the lazy/inexpert users ?
I thinked about some possible solutions:
SOLUTION 1. A BROWSER DESKTOP URL SHORTCUT
(obvious! you could say!) Of course, but this is not so perfect:
- is usually a specific feature of the browser... and by example in my case, with an Android phone, with Chrome. Dolphin and native Android browser I get confused myself to save and retrieve shortcuts ...
- is dependendt by the OS
SOLUTION 2. "DIRECTORY" APP LUNCH AN "INTENT"
I thinked about a native app that just act as "redirector", I read here and there some Android code: the native app just start and run the "Intent" giving a URL to the browser... make sense ?
Maybe something interesting here:
Adding URL shortcut to mobile screen through a link on the website
Nevertheless I'm asking if there is a better way, maybe an (Android) app just made with this scope ? (I didn't find it)
SOLUTION 3. HYBRID-NATIVE APP
Ok... Embed the web app in some Hybrid-native framework (as Phonegap/Cordova)
Any suggestion welcome!
Thanks for your patience
giorgio
A possible "solution" for Android OS I used
is this very essential "Web Shortcuts" app:
https://play.google.com/store/apps/details?id=com.unknowndevelopers.bm
BTW, There are someones similar: "ShortcutToURL" or "URLWidget" apps.
Is not a perfect solution, any alternative suggestion still welcome.

Web filter in Android, "Safe Browsing" feature

I am looking for a way to get a website URL before it is opened and prevent browser from opening it if URL is one of blacklisted. The closest analog is Safe-Browsing function from Lookout Mobile Security. However it works only with default browser, but even that would be great.
As I know it is not possible to do for all kind of browsers because we need a rooted phone and modify iptables.
Ok, it looks like a hack, however it works and this is the way most of web filters and anti-viruses work in android.
You have to create a contentObserver that monitors browser history. Opened links appear in the list when page is almost loaded. When it is up to you how to react.

Is it possible to block all websites except one website on an android programmatically?

Is there any way of blocking websites pro grammatically on an Android device if user open any browser in his devise. actually my requirement is i have one website only that website will open in a browser, except that website if any website if user open that should not open(blocked) it shows some alert.please any one solve my problem.
Yes. I finally found a way to do it.
Download kiwi browser from play store.
With this browser you can add chrome extensions on Android.
Then, download the stayfocusd extension from the chrome store
Go to the extension settings, and you can use it to block any site you want (and allow some, of course).
But, instead of blocking all the sites you don't want one by one, I found a way to block ALL websites on the internet by adding ONE blocked site - https://.
After you've added https:// to your blocked sites list, simply add your site(s) that you want to allow in the Allowed sites list, and that's it!
P.S. there is also the Nuclear option in the extension settings that lets you block all sites except the allowed ones, but unfortunately this option doesn't work on android...
There is another browser know as yandex browser . where you can use the nuclear option.
There is also Max time allowed option in this extension, so you can set how much time you want to use the blocked sites before the extension blocks them.
Unfortunately you can't change the time to more than what it currently is after you set it on Android...
No. You cannot do that until you have special application or proxy setup.
You can have to install proxy server on android and you can control which website to open or not.
Try proxoid

Categories

Resources