mobile

Cannot inject $ionicHistory into my angularjs controller

泪湿孤枕 提交于 2019-12-10 22:08:47
问题 I am trying to utilize $ionicHistory.goBack() in a Controller in my Angularjs/Ionic app. When I try and inject it into my controller as below app.controller('ClockInController', function($scope, $http, JobData, Data, $rootScope, $interval, $ionicHistory) and I run the app I get the error below: Uncaught Error: [$injector:unpr] Unknown provider: $ionicHistoryProvider <- $ionicHistory http://errors.angularjs.org/1.3.0/$injector/unpr?p0=%24ionicHistoryProvider%20%3C-%20%24ionicHistory, http:/

Flex Mobile textInput in scroller text lag

给你一囗甜甜゛ 提交于 2019-12-10 21:47:47
问题 I have been seeing a weird lag in the text that is input into a textInput container in my flex mobile app. The issue occurs when I type in some text into a textInput then scroll in any direction. The entire screen and all objects seem to move, except for the text in the textInput. This becomes a really big issue when I select the textInput to begin typing and the softkeyboard appears and shifts the input which then places the cursor and the typed text somewhere else on the screen. It looks

How can I load an archived webpage properly in Android?

好久不见. 提交于 2019-12-10 21:37:14
问题 I want to save the webpage to local. I found that there is a method to save the webpage as an archive file. public void saveWebArchive (String filename) However, I got nothing but gibberish when I load the file. WebView webView = (WebView) rootView.findViewById(R.id.webview_layout); String url = "http://www.yahoo.com"; webView.loadUrl(url); String path = getFilesDir().getAbsolutePath() + File.separator + "yahoo" + ".html"; webView.saveWebArchive(path); webView.loadUrl("file://" + path); What

What are the best remoting technologies for mobile applications?

北城余情 提交于 2019-12-10 21:21:52
问题 I have a java back-end that needs to expose services to clients running in the following environments : J2ME Windows Mobile iPhone I am looking for the best tool for each platform. I do not search a technology that works everywhere. I need something "light" adapted to low speed internet access. Right now I am using SOAP. It is verbose and not easy to parse on the mobile. The problem is that I have not seen any real alternative. Is there a format that works "out of the box" with one of these

Access device compass from webb app with Javascript

眉间皱痕 提交于 2019-12-10 21:19:09
问题 Is it possible to access the compass with Javascript on an iphone/ android device from a web app? Have been looking all over the net for hours I know you can access the accelerometer with window.ondevicemotion = function(event) Does anyone know if you can access the information from the compass?? 回答1: On iPhone, you can get the compass value like this. window.addEventListener('deviceorientation', function(e) { console.log(e.webkitCompassHeading); }, false); Hope this help. 回答2: It looks to be

Responsive Design on mobile phones with higher resolutions

◇◆丶佛笑我妖孽 提交于 2019-12-10 20:42:08
问题 To my understanding (correct me if I am wrong) a modern Responsive website will change to fit the size and type of device you are using. Or this can be applied if the size of the window changes. My question is why does my mobile phone display a Responsive site just like how a modern 1080p monitor would display it. Essentially, my current monitor is running at 30" and is at a resolution of 768p. My phone also has a resolution of 768p. Many responsive websites use media queries to display a CSS

jQuery.on “touchstart mousedown” - both events are triggered on touchscreen device

南楼画角 提交于 2019-12-10 20:26:32
问题 My problem is I cannot cancel the mousedown event that's fired after touchstart has been triggered. This problem is specific to Android's native browser. Chrome and Safari both successfully execute my method below in both Android and iOS (onMenuInteraction). My problem seems to be confined to Android's native browser (for me that's preinstalled with Android 4.1.2). The following is code that I've extracted from my Javascript object. MenuButtonView.prototype.onSmallScreenSetUp = function() { $

How to 'open' Bootstrap Dropdown menus on pageload on screens smaller than 600px

限于喜欢 提交于 2019-12-10 20:15:46
问题 im trying to get my bootstrap dropdowns to be open by default at screens at or smaller than 600px (mobile). this seems to get it to try but it looks like something overrides it and closes it again: <script type="text/javascript"> $(window).load(function () { var width = $(window).width(); if (width >= 0 && width <= 600) { $('#openBrowseMobile').addClass('open'); } else { $('#openBrowseMobile').removeClass('open'); } }) .load(); </script> any ideas on how to make this work? I can get it to

Video Format that Works on Mobile Phones

泪湿孤枕 提交于 2019-12-10 19:36:44
问题 I looked on this SO question but I am not sure if this is the answer to my question or not. I want to be able to stream videos on a mobile web page. I want this page to be compatable with as many phones as I can. Smart phones are the most important, and I need it to work for: Android HTC (Many use Android, same compatibility?) iPhones Blackberries (newer brands, 5.0 or higher if need be, but possible as low as 4.0) Windows Phones The rest can be added to my "it would be nice if it worked on..

iOS Swift Realm Sync Issue

折月煮酒 提交于 2019-12-10 19:33:00
问题 I used this configuration code for local storage. var configuration = Realm.Configuration.defaultConfiguration configuration.encryptionKey = getKey() as Data I used this configuration code for sync with server. let syncServerURL = URL(string: serverUrl + objectName!)! var configuration = Realm.Configuration.defaultConfiguration configuration.encryptionKey = getKey() as Data configuration.syncConfiguration = SyncConfiguration(user: SyncUser.current!, realmURL: syncServerURL) I create some data