mobile

How to change PhoneGap's screen size?

强颜欢笑 提交于 2019-12-12 11:18:06
问题 I'm building an application with PhoneGap. i'm using my Galaxy S2 to test the application, and his screen resolution is 480x800. But when the View is created, his size is 320x800! I tried too many things, but nothing works... Is there here anyone that can please help me? Oh, I'm using android's environment, with Eclipse, ADT, etc. 回答1: I found a way to do that. I already had tried by using a meta viewport, but I guess I don't put everything that is necessary. Just put this meta tag below and

How to highlight text with PDFJS?

被刻印的时光 ゝ 提交于 2019-12-12 11:04:46
问题 I'm creating an app that shows a PDF file among others. I need to implement a search functionality so that I can search for terms in the pdf file. To display the file I'm using PDFJS. In the pdfjs library are some examples including the components example that renders a page and you can mark the text (https://github.com/mozilla/pdf.js/tree/master/examples/components). But when I'm trying to use this code in my app I'm getting the error that PDFJS.DefaultTextLayerFactory() is undefined. I

When using Mono Touch can I also package for a standard Window application?

☆樱花仙子☆ 提交于 2019-12-12 10:49:09
问题 I know that Mono Touch enables developing with nearly one source code and deploy to Android, iOs and Windows Mobile. There will of course be 3 projects and some platform related code but I will have important common code in C#. But I also need my development to work on standard Windows 7 and 8 (non mobile). Can I do this with Mono Touch and I yes what is the development process ? 回答1: I think you should check out my answer to this question: Consuming ViewModels in MonoDroid / MonoTouch In

AAPT: error: resource android:attr/fontVariationSettings not found

一世执手 提交于 2019-12-12 10:46:35
问题 D:\wamp\www\moodle35>cordova build android cordova-android-support-gradle-release: Android platform: V7.1.2+ cordova-android-support-gradle-release: Wrote custom version '27.1.0' to D:\wamp\www\moodle35\platforms\android\app\build.gradle cordova-android-support-gradle-release: Wrote custom version '27.1.0' to D:\wamp\www\moodle35\platforms\android\app\src\main\cordova-android-su port-gradle-release\properties.gradle Android Studio project detected cordova-android-support-gradle-release:

Issue with scrolling in iOS 5 using -webkit-overflow-scrolling

巧了我就是萌 提交于 2019-12-12 10:44:27
问题 I have an HTML page with a fixed-height div which should be scrollable (only vertically). In iOS 5 this can be achieved using: overflow-y: auto; -webkit-overflow-scrolling: touch; The div contains an unordered list with about 10 items. The scrolling works, but sometimes it scrolls only if I swipe my finger diagonally or even horizontally and not vertically as it should be. I'm wondering if anyone has encountered this issue. I don't want to think that it is a bug in iOS5, but I can't figure

global keyboard hook in windows mobile 5 or above (smartphone platform), how?

巧了我就是萌 提交于 2019-12-12 10:28:43
问题 so, i guess i must do it in c++, anyone know about this problem? i already searching everywhere and i found some articles about keyboard hook on windows ce, windows mobile is windows ce, isn't it? another questions: which free compiler, ide for windows mobile i could use? 回答1: SetWindowsHookEx is not supported on any WindowsCE (read: Mobile) version. Hooks in general are not supported, in fact. However, if you're willing to use undocument/unsupported APIs you can pull SetWindowsHookEx out of

Need to know the details about SIM card details using IMEI number [closed]

為{幸葍}努か 提交于 2019-12-12 10:27:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I would like to know, is there any possibility to get the last used SIM card details using IMEI of the phone which the SIM card used? If yes, what are the possibilities and which are the authorities can able to get this? 回答1: The carrier is the authority you're looking for. If it's possible, it will depend on

Getting Google Apps Scripts to Run on Mobile

天涯浪子 提交于 2019-12-12 10:12:11
问题 I'm trying to get a script that I've made for a google sheet to trigger when the sheet is opened (since I've found you can't trigger them manually through the mobile app). Somehow, I've managed to get half the script to work, while the other half does not. The script is intended for use on both desktop and mobile, and I want it to clear a predetermined set of cell ranges while also hiding a predetermined set of rows and columns (for formatting purposes). The script runs perfectly on desktop,

jQuery mobile: problem with submitting forms due to page transitions

烂漫一生 提交于 2019-12-12 09:57:53
问题 I'm a bit confused with something i am trying to do in jquery mobile. I have about 5 pages total in my site and every page has the same webform on it. I've written a script that processes the form using jquery ajax. All of that works on the index.html. I have a page2 div in my index.html that serves as a second page of my website, however the form doesnt appear to work. I also have a page3.html page. When i go to this page, it has the same form that i had from my homepage, but it doesn't take

jquery mobile menu to close after i click a menu item

痞子三分冷 提交于 2019-12-12 09:46:28
问题 based on this demo: http://webdesignerwall.com/demo/mobile-nav/ this is my code. <script type="text/javascript"> jQuery(document).ready(function($){ /* prepend menu icon */ $('#nav-wrap').prepend('<div id="menu-icon"><img id="logo" src="<?php echo site_url(); ?>/wp-content/themes/blue-and-grey/images/mobileimages/hme_btn.png" /></div>'); /* toggle nav */ $("#menu-icon").on("click", function(){ $("#nav").slideToggle(); $(this).toggleClass("active"); }); }); </script> what i need is the menu to