I'm developing an iOS app with Phonegap Build and JQM.
Is an app to generate math problems and some times I'm using big numbers that iOS interprets like a "phone numbers" and automatically converts into links. According the PGB documentation if add <preference name="detect-data-types" value="false" /> into the config.xml this stop.
The preference added into the config.xml seems work good until I click a button, and the numbers are converted automatically into links, like if the preference was ignored.
The actions of the buttons are just for copy to clipboard and print, using this clipboard plugin and this printer plugin. This should don't affect the numbers (at least that is what I think).
I've tested in iOS 6, 7 and 8, in all do the same.
Any idea how to stop this? Thanks!
Try adding
<meta name="format-detection" content="telephone=no">
Or set a property in the UIWebView
self.webView.dataDetectorTypes = UIDataDetectorTypeNone;
and have a look on this & this
Related
Currently in vb6 project with WebBrowser i am facing a problem. I want to show adsense ad in my app so i create a html page and put the file in server(adsense approved) and I tried to navigate the page from vb6 project with WebBrowser. but everytime its showing some script error. What to do to fix it? please help
The problem is probably because the Browser Control runs in document mode 7, so it's essentially emulating IE 7. You can override that with registry entries, but those need to be made on a per application (appname.exe) basis.
A better solution usually is to include the document mode meta tag in your html: <meta http-equiv="X-UA-Compatible" content="IE=edge">.
SO question with an extensive answer descriptions on that meta tag: What does <meta http-equiv="X-UA-Compatible" content="IE=edge"> do?
Point 1: The WebBrowser control in VB (and later Visual Studio) is not a fully functioning browser like we expect from Chrome, IE, Firefox etc. It has severe limitations.
Point 2: I doubt very much that VB6 has any knowledge of AdSense.
You would probably be better off using VB6 to launch the default browser on the user's computer with relevant parameters and let it deal with whatever page you throw at it.
You would probably be better off at least moving to VB 2008 - there are problems with conversion, but they are do-able and from VB 2008 you can easily move on eventually to more modern variants.
I am developing an app for iOS which includes a UIWebView which, among other this, contains a video (stored locally, in the same folder as some images which are being displayed correctly).
This works fine in my own iPad, but I have been given another one at work to install the app to and there it shows nothing more than the video controls. When I click on the play button nothing happens. The iPad is owned by the company so any security feature might be enabled.
I have researched quite a lot and I cannot find any reasons why the app may be working on one iPad and not on another one. I know it might be impossible to fix without having a passcode or something like that but I need to know at least which configuration might be the one that is making the app not to work.
Using WKWebView fixed it. UIWebView should not be used any longer unless it is specifically needed.
From Apple documentation:
In apps that run in iOS 8 and later, use the WKWebView class instead of using UIWebView. Additionally, consider setting the WKPreferences property javaScriptEnabled to false if you render files that are not supposed to run JavaScript.
I have an JSF application with a primefaces dataTable. In a column there is a date rendered in german format dd.MM.yyyy HH:mm:dd. Unfortunately in microsofts edge browser this date is shown as a link. When the link is clicked Skype is opened. Can I suppress this? How? Chrome and FF does not show a link. I know this is probably no problem of JSF or primefaces but I think it could be useful to mention which technologies are used.
If you don't need phone number detection at all in your page, you can suppress the feature by adding the tag <meta name="format-detection" content="telephone=no">
For completeness - You can also:
(1) ...disable that detection feature on a per-element basis
<p x-ms-format-detection="none">01.12.2019</p>
(2) ...use javascript to do the disabling
document.querySelectorAll('p').forEach(
function(a) { a.setAttribute('x-ms-format-detection', 'none') }
)
I try to create a WebApp with Phonegap.
When I write Khmer (កើតអាប់ស) it works in Firefox and Chrome. But when I create the App (apk) my Smartphone only shows square boxes. But why?
I use this special font from Google
https://www.google.com/fonts/specimen/Khmer
Any ideas to fix this problem?
Details are available here which outline how to resolve the issue:
http://osify.com/2012/02/install-khmer-font-on-galaxy-s2-without-rooting-system/
To apply for Android 2.3.x:
Enable “unknown sources” installation (via Setting->Application)
Install Khmer.apk
Change font style
Settings > Display > Screen display > Font style
Choose Khmer
Restart the phone
Testing: Go to this website page: http://khnews.info/testing.html
To write Khmer, download Khmer keyboard from Android Market: Phum Keyboard or MultiLing Keyboard
9) To enable input keyboard:
Settings > Languages and keyboard > Select input method
Choose: Phum Keyboard (in my case)
After you should be able to see everything in Khmer even though the rendering is not fine, you can type Khmer Unicode as well.
Further details: http://adkhmer.com/index.php?option=com_content&view=article&id=19:install-khmer-unicode-for-android-without-root&catid=6:android&Itemid=18
FlipFont is a great technology from Monotype Imaging and it is using
in android phone of Samsung. The technology allows creating
application for adding more fonts into android phone beside the fonts
were shipped in system of the phone already.
Unfortunately, from Android 4.0 (ICS) and earlier version, FlipFont
doesn't work with web browser, but it still find some more useful for
Khmer, especially in Galaxy Note II with Android 4.1.1 (Jelly Bean)
for browsing song title, video name in Khmer in youtube and chat with
friend via facebook messenger.
I would like to note that it works with facebook messenger found on
Play Store only, it doens't work with facebook application yet. For
facebook application on Google Play Store, we also can chat in Khmer,
but we can’t read the feed post on the wall yet.
In Android 4.1.1, Khmer rendering work perfectly in all part of
Android OS, but there are not font in system yet. So if you install
Khmer.apk in Galaxy Note II, you can read and write Khmer in many
applications without root the device.
Otherwise, if I were coding a webpage and trying to get the font to display on someone's phone .. If modiX is correct I would use FontForge or any other font editor to import the glyphs from the original font into a new font file and reassign the glyphs to a unicode range within the limits of Android's range.
It seems Android does not support those UTF8 ranges, however you could root the device to get the necessary character set on the device.
I found an app that claims to do the same without root: https://play.google.com/store/apps/details?id=com.blogspot.androidsanctum.kui
There are also direct APK installers on the web.
Implemented camera feature using HTML5 input tag.
Requires atleast 5 to 6 clicks before opening camera. Tried on iOS 6 Safari browser and Goggle chrome browser on Android.
Refered below js files :
1. jquery-1.8.3.js
2. kendo.mobile.min.js
Do we need to include any js file
Code :
<div data-role="view" id="tabstrip-camera" data-title="camera" data-layout="mobile-tabstrip" id="Camera">
<!--Camera Code-->
<input data-click="alert('clciked');" type="file" name="image" accept="image/*" capture>
</div>
Even when tried with simple HTML5 button tag the response is slow and same observation is used.
Please can any one help ? Do we need to include any js file.
Is your intent to deploy an actual mobile app to a phone or tablet device, or just to use Kendo Mobile widgets in a desktop web browser?
If you are going to deploy to a device, then you should be building on top of PhoneGap / Cordova, and could use PhoneGap's image capture function:
http://docs.phonegap.com/en/1.2.0/phonegap_camera_camera.md.html
Try upgrading to the Kendo UI Q3 service pack that was released this week and see if this fixes it.
The original Kendo UI Q3 release had some issues with the touch/mouse events due to the major change we did in event handling in order to support systems with both mouse and touch (Chrome/FF on Windows 8).