mobile

Change font size of a jQuery Mobile button at runtime

北城以北 提交于 2019-12-24 00:52:14
问题 jQuery Mobile 1.1.1 changes how buttons are formed. Previously, I could set the font size of buttons like this: <div id="Button1" data-role='button' data-inline=true data-theme=c data-icon=false data-iconpos=none style="font-size:12px;">Button</div> The font size attribute is being ignored in 1.1.1. It draws with the default font size (16px?). I can change the font size by adding this line of code: $('#Button1').children().children().css('font-size','12px'); But now the vertical alignment of

Android webview can't connect to local ip address

好久不见. 提交于 2019-12-24 00:44:45
问题 I've got a webView class in a simple android app. I'm trying to get webView to load a webpage hosted on a server on my local network and it can't connect. WebView webview = new WebView(this); setContentView(webview); webview.loadUrl("192.168.1.104"); webView says 'web page not available' I can connect to 192.168.1.104 in a regular browser and any mobile browser. When I replace 192.168.1.104 with http://example.com it works. 回答1: Did you add the internet permission to the AndroidManifest.xml?

Understanding extended execution session in Windows Universal App (UWP)

若如初见. 提交于 2019-12-24 00:34:18
问题 I'm struggling to get extended execution session to work for my Windows Universal app. What I'm trying to achieve is the following scenario. The user wants to connect the phone with a device via Bluetooth. Currently, whenever the screen turns off or an incoming call comes or the user minimizes the app, the connection fails and we restart it on resume. I'd like to enable extended execution for this in-progress connection, such that the app continues the work even when minimized (suspended). I

Jquery Mobile issue with long select multiple option and data-native-menu=“false”

风流意气都作罢 提交于 2019-12-24 00:33:21
问题 I am using the jquery 1.9.1 js and jquery mobile 1.3.2 css and js. I have a page with a long selectbox, 20 items. When I open the selectbox, choose some items and close it again, I end up with a blank page. Has anyone had this problem? With jquery mobile 1.3.1 there was the problem that the selectbox was empty when you opened it for the second time, but this is no improvement. EDIT: This the code on my page: <div data-role="page" id="new_agent_edit" data-theme="d" qs=""> <div data-role=

How can I get the screen size of mobile devices when they hit my web server?

北慕城南 提交于 2019-12-24 00:25:46
问题 I want to get the screen size of mobile devices when they hit a URL on my server. O am already using echo$_SERVER['HTTP_USER_AGENT'] . How can I get the screen size? Can it be done by using jQuery/JavaScript? 回答1: do it in javascript then send it up to php: <script language='JavaScript'> function detect() { alert('Screen resolution is '+screen.width+'x'+screen.height+'.'); } </script> <a href='#' onclick='detect();return false;'>Detect Screen Resolution</a> 回答2: http://www.javascriptkit.com

Can I compile an Android App on 2.1 and have support for all versions 1.5 onwards?

痴心易碎 提交于 2019-12-24 00:19:03
问题 I want my Android app to have maximum reach, and hence want to support all versions V1.5 onwards. I find some features lacking in V1.5 that are available in V2.0 or V2.1. Could I compile on V2.1, and then set minSDK for the app to run on 1.5? Plain logic says 2.1 specific features would not work, but let me know your thoughts. Also, what are some other workarounds? What would "you" normally do in such a situation? 回答1: This is definitely possible; some of the techniques for backwards

Android application: how to use the camera and grab the image bytes?

孤街醉人 提交于 2019-12-24 00:03:50
问题 I'm trying to create a small app for Android that takes a picture using the device's camera and put's a PNG frame on top of it. This way the final saved picture will have a beach on top of it, or hats, or anything. Does anyone have any sample programs with this behavior? 回答1: Have a look at the SDK documentation on using the image capture intent here. I start my image capture intent like this: Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent, CAPTURE

Sending and Receiving SMS [closed]

可紊 提交于 2019-12-23 23:15:10
问题 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 am planning to build an application where I'll be sending SMS to people and people will reply to those SMS via SMS which I need to process. Is there any API for doing something like this? I will be building the API for India only. Thanks. 回答1: Yes, try Clickatell, they also support India. 回答2: You can try

php redirect header location to phone number

半世苍凉 提交于 2019-12-23 23:09:19
问题 I'm trying to redirect the user's click on a link to a telephone number through php like this: //HTML <a href="tele.php"> and the php: <?php header("Location: tel:+123456789"); exit; ?> This works on newer mobile browsers but won't on the older ones in particular Nokia WAP2.0 browser. Any ideas, plaese? 回答1: Try wtai://wp/mc;xxxxxxxxx instead of tel: . 回答2: I've found a solution after few trials. I set up a third-level domain of my main domain: call.mydomain.it . In its docroot I placed an

col-xs-* not working when mobile is orienting between horizontal/vertical view in bootstrap 3

时间秒杀一切 提交于 2019-12-23 23:03:06
问题 I'm having a problem in Bootstrap 3 in using col-xs-* for mobile devices.. I'm using below code for mobile.. <div class="row"> <div class="col-xs-6"> div content 1 </div> <div class="col-xs-6"> div content 2 </div> <div class="col-xs-6"> div content 3 </div> <div class="col-xs-6"> div content 4 </div> <div class="col-xs-6"> div content 5 </div> <div class="col-xs-6"> div content 6 </div> </div> here, div's are equally(50%) sharing in both Mobile Horizontal/Vertical views.. But I want to get 3