mobile

HTML5 Full Screen Web Apps: No browser bars

谁说胖子不能爱 提交于 2019-12-20 08:54:11
问题 I am creating a HTML5 web app for mobile devices and was asked to hide the browser nav bar (the back & forward buttons) (typo here prev.). How can I achieve that? I think I should be able to achieve that using Phone Gap. But I wonder if its possible for a "normal" web app to hide the browser bar? I think its possible if I pin the web site/app to the home screen? iPhone has http://ajaxian.com/archives/iphone-full-screen-webapps, but what about Andriod at least? 回答1: I know this question is a

Where cookie is managed in phonegap app with jquery?

守給你的承諾、 提交于 2019-12-20 08:31:04
问题 My native iphone app, developed with phonegap with jquery (so its browser based), can log in to web server and once logged in users can access their resources. The server sets session id in cookie once user is authenticated. I do not have any trouble with this scheme but I am wondering where the cookie is stored because when I do alert(document.cookie), it returns empty string. Is it possible that ajax function in jquery manages the cookie internally and send it along for every request to the

javascript max viewport height after orientation change Android & iOS

大城市里の小女人 提交于 2019-12-20 08:30:50
问题 The Goal: To find the max viewport height of a device including the space of the address bar so that we can dynamically resize the min-body and push our content up. The Problem: Mobile browsers handle orientation states differently and update DOM properties on orientation change differently. Detect rotation of Android phone in the browser with JavaScript With Android phones, screen.width or screen.height also updates as the device is rotated. |=================================================

Facebook and twitter share for mobile web

≯℡__Kan透↙ 提交于 2019-12-20 08:19:35
问题 Is there a special url for sharing to Facebook and Twitter for mobile? Or are they the same as those from websites? Using <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script> <a href="javascript:return false;" rel="nofollow" onclick="window.open('https://twitter.com/share?text=sometext&url=someurl', 'Twitter', 'toolbar=0,status=0,width=626,height=436')">Twitter</a> for Twitter and <script> function fbs_click() { u='www.something'; t='title'; window.open('http:

How do they do this - Mobile Site Added to Homescreen Appears as Standalone App

℡╲_俬逩灬. 提交于 2019-12-20 08:08:14
问题 So I've only seen one website do this and I'm very curious to know how they do it. I'm using an iPhone 4 with iOS5 by the way. Go to http://m.funnyordie.com/ (Will Ferrell's sketch comedy site) on mobile Safari, add it to the homescreen, and then click on the homescreen icon that was just added. The mobile site shows up without any of the Safari buttons or address bar. It even shows up in the open app tray as an open stand-alone app (double-tab the home button to see what I mean when Funny or

Deploy WebGL applications as native iOS or Android applications?

时光毁灭记忆、已成空白 提交于 2019-12-20 08:07:29
问题 Does anyone know of a way in which you can deploy a WebGL app as a native iOS or Android app? Commercial middleware is acceptable, although an open project would be preferable. Thanks. 回答1: As an extension to Joris' answer (which appears to be based on the work of Nathan de Vries), the following is the code I needed to enable WebGL within the iOS 5.0 SDK: Somewhere near the top of your view controller implementation: @interface UIWebView() - (void)_setWebGLEnabled:(BOOL)newValue; @end

How to save an image into photo gallery using j2me

 ̄綄美尐妖づ 提交于 2019-12-20 07:50:51
问题 I am making an application for nokia, samsung, lg ets using j2me. I want to save an image into photo gallery of mobile. But i didn't have any idea what path i use to save image? 回答1: Look on this article, Getting Started with the FileConnection APIs. Also look on this example, File Connection Using J2ME api JSR 75. 回答2: String initDir = System.getProperty("fileconn.dir.photos"); Mobile's Internal Memory can make issue if it is limited. So You should use Memory card to save the images. You can

Mobile browsers doesn't support session variables?

拥有回忆 提交于 2019-12-20 07:35:25
问题 I have a browser version of my web app and I have some values stored in cookies. Now I am making a mobile version and it seems that my cookies are not working. Is it possible to use cookies on mobile devices? I am trying to perform this code and my php is giving me an empty value: $(document).ready(function() { var session_lang= '<?php if(isset($_SESSION['SESS_LANGUAGE'])) echo $_SESSION['SESS_LANGUAGE'];?>'; if (session_lang!='') { check_and_change(session_lang); } }); Is there any other way

React Native - Flatlist Single Select

我是研究僧i 提交于 2019-12-20 06:45:35
问题 I've been searching around how to make a single select in Flatlist but I can't find any, here in my code I'am trying to make a single select on every cells that is inside my Flatlist . Example: I select cell no.1, then no.1 will be selected. And if I need to select no.2, both no.1 and no.2 will be selected. What is happening in my code is when I select no.1, it would select all cells. export default class Dishes extends Component { constructor(props) { super (props) this.state = { data: [],

Fatal signal 11 (andengine project)

风格不统一 提交于 2019-12-20 06:24:07
问题 I'm creating and android game powered by andengine framework the box2d extension I'm getting "Fatal Signal 11" which seems to happen out of nowhere (I guess you can call it randomly) there no clues (at least, I don't aware to any clues to help me solve this problem) my guesses are: 1) I'm creating game's entities using TimerTask class 2) maybe it has something to do with concurrency? what do you think? thanks, socksocket 回答1: You could still use a TimerTask, you just need to be sure to call