I am currently creating an android application in which I use the location and 2 symbol Id's of the user to create an aprs comressed packet, and I need in one screen to ask the user for input and show him the content of the packet.
But I also need to display a web page, therefore I need to know if it is possible to use web interface to display a web page in a navigation bar application ? (the type of the app was decided since I need one screen for input and output and one screen for the web page).
you can use Chrome Custom Tabs
link
As far as i could understand you should use 'WebView' to show webpage, further you can use interfaces to communicate between web page JavaScript code and android code.
Please refer following links :
https://developer.android.com/reference/android/webkit/WebView.html
https://developer.android.com/guide/webapps/webview.html
Related
I want my app to launch chrome but also monitor the user's actions on chrome, such as navigating, back, etc. I think I can launch chrome using Intents, but I'm not sure about monitoring user input.
With chrome application is not possible. For do that you must implement a webview within your own app.
Well you can try Custom Tabs
With Custom Tabs you can get instance of browser which support CustomTabs like chrome without creating a web view. As it provide navigation awareness, the browser delivers a callback to the application upon an external navigation. You can modify and update following -
Custom menu
Color of the address bar
Custom action button
Custom enter and exit animations
Check Custom Tabs Implementation Guide
You need to use Web view or create your own browser then you can achieve your goal.
I have a Wordpress webpage working great, now I've been asked to develop an Android application with a simple web view that would load the webpage but when using the app it have to change some web behaviors.
Usually you go to the Home, and you have categories like: Services, last deals, projects...
The idea when using the app is going direct to the login page and change the menĂº categories, so some pages would be hidden and another ones would appear.
I've seen the #media way to do it, but I don't want to apply all these changes by resolution, but for type of device.
I checked this out: https://wordpress.org/plugins/simple-mobile-url-redirect/ but then when I redirect to the custom URL and I do the changes, I don't know how to preserve them, while navigating to other pages.
Is there any way of preserving that "mobile session"? or would it be a good choice to create a sub domine and replicate the webpage for mobile? (www.mobile.webpage.com)
I understand your situation and the best idea would be to generate screens using your own code. IN order to get the data from WordPress, you can call WP-Rest handles to get the data.
Alternatively if you only want to load webview, your web team will need to do custom code in order to facilitate your request. The idea is to send query variables to the website when calling from mobile app. Once the url is called, the WP code needs to set up transient/session/cookie and display custom result if transient/session/cookie is set.
I am sorry, I can't find the exact code that I used for somewhat similar work but if your web team has ever dealt with transient or custom session, they should be able to do this without any issue.
I am trying to add a podcast and a youtube channel to my native Android app, but it seems it would be much easier if I just use HTML and access that media as it is on the web.
Is it possible to have an activity be HTML5 or a basic web view? If so, how can I do that?
Thanks!
Yes this is possible, have a look into WebView
http://developer.android.com/reference/android/webkit/WebView.html
A View that displays web pages. This class is the basis upon which you can roll your own web browser or simply display some online content within your Activity. It uses the WebKit rendering engine to display web pages and includes methods to navigate forward and backward through a history, zoom in and out, perform text searches and more.
You may find some performance/compatability issues but this is the easiest solution and one that I would do as a first step.
Hey I'm building an app that will allow a user to log into a site (mygranturismo.net) and then will display their personal info, (cars owned, trophies earned, level status, etc) in a layout on the screen. i need to be able to get this info and place certain bits right where i want, also some may be clickable links to other info inside the site. I don't want to simply link to the site, i want to access certain parts and display then in my custom app. an example would be the difference between twitter on Android vs twitter on a pc browser. Any help would be much appreciated.
It sounds like what you're describing is a native mobile application to work with an existing website that's not optimized for mobile. If you own the website, you can create private pages for simplified data retrieval. If it's a website that you don't own, you will need to read the raw HTML and extract the useful info from it. How you do it is up to you, but it will involve string searches and cut/paste of info from the HTML text. The danger in doing this is that if the website owner changes the layout of his pages it will probably break your application.
I am working on an application that uses WebView to display multiple documents that are hosted online. Preferably, I'd like to have it set so that no scrolling is required. Instead, a "Next" button could be used to bring up a "new page" that would be a continuation of the text.
For example, one of the documents this application would read can be found at
http://www.missionstclare.com/english/May/whole/morning/24m.html
Is there a way to easily break the document up so that it only shows what would fit in the viewport?
Note: This is for an android app using eclipse.
There is no easy, out-of-the-box way to do it.
If you are running the server, then you can check for the user agent and serve a smaller page to the device.
If you are not, you will need to use an URLConnection, retrieve the text, parse it, and display chunks of it in the WebView.