mobile

Iphone development viewcontroller portrait to landscape no autorotate

南笙酒味 提交于 2019-12-11 14:03:05
问题 I have a viewcontroller that's pushing another vc that should be in landscape mode but it does not autorotate to landscape when pushed ie. still in portrait. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight) { return YES; } return NO; } When a popping the vc and back to the first controller all is perfect, it only displays

What are some alternatives to Parse? [closed]

南楼画角 提交于 2019-12-11 13:57:12
问题 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 3 years ago . My team and I would like to develop a project that incorporates an Android, iOS and web app. Scalability and big throughput potential is a key feature. We have started to work with Parse.com, and it provides exactly what we're looking for - except for the prohibitive expensiveness of scaling and the absurd

How to determine the number of minutes the user is being in a GSM call?

北慕城南 提交于 2019-12-11 13:56:48
问题 I'm trying to determine for how long a user has been in a GSM call. Is that possible using the TelephonyManager?Thank you. 回答1: You can set a listener on TelephonyManager. Try this. long startCallTime = 0; private void setTelephonyManagerCallListener(){ TelephonyManager tm = (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE); tm.listen(phoneCallStateListener, PhoneStateListener.LISTEN_CALL_STATE); } private PhoneStateListener phoneCallStateListener = new PhoneStateListener(){

UserAgent Switcher to mobile web

柔情痞子 提交于 2019-12-11 13:53:53
问题 I am using javascript as useragent to redirect main website to mobile website. but i can not switch to desktop view in mobile device. Any ways to redirect to the main website on mobile device by link "Full Website"? This is javascript i am using: <script type="text/javascript">// <![CDATA[ var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windowssce|palm/i.test(navigator.userAgent.toLowerCase())); if (mobile) { document.location = "/mobile"; } // ]]> </script> 回答1: Add this as link: <a

My Android AIR app shows white screen when TextInput loses focus

爱⌒轻易说出口 提交于 2019-12-11 13:46:42
问题 That's pretty much sums up the question. I have an AIR Mobile Flex App project in FlashDevelop that is using views to show content. Everything works fine, I can add a TextInput or TextArea to the stage, select it (Soft Keyboard shows up then), type some text. But when I press enter or change focus to the other element to hide the keyboard, the screen turns completely white except for the text that has been entered in the field. Now it becomes interesting. If I rotate my tablet to force the

Gluon mobile app NavigationDrawer back button issue

我的梦境 提交于 2019-12-11 13:39:33
问题 I'm working with a multiple view project with FXML, generated by the Gluon plugin for IntelliJ. When I navigate to the secondary view, coming from the primary view, and I push the back button on my physical android device, the view changes back to the primary view. This is normal behavior. The problem is that the NavigationDrawer stays on the secondary view. You can observe this because you won't be able to navigate to the secondary view. When you push secondary in the navigation pane,

jQuery Mobile Panel Problems

大兔子大兔子 提交于 2019-12-11 13:32:00
问题 I have a jQuery Mobile Panel that's not behaving properly (in PhoneGap if the matters). <div data-role="panel" id="nav-popup-menu" data-position="left" data-transition="slide" data-display="overlay" data-dismissible="true"> <button class="search">Search</button> </div> .ui-panel { background-color: rgba(0,0,0,0.5) !important; width: 200px; } <a href="#nav-popup-menu" data-role="button" data-icon="gear" style="background-color: #f6f5f4; border-color: #f6f5f4; color: #f6f5f4; ">|</a> Based on

Mobile Browsers don't display images on website

元气小坏坏 提交于 2019-12-11 13:31:20
问题 Created a website, looks pretty solid on the desktop. (http://foo.com) Used an .htaccess redirect to send those using mobile browsers to subpage (http://foo.com/m.html). Redirect is working like a charm. My problem is that one image (and for that matter, the background color) doesn't display on the mobile page, on any mobile browser. I've tried reformatting it (.png, .jpg, .gif), resizing it (down to 55p x 44p). It is the only image on the page. I've tried using a css stylesheet specifically

C# Response Shows Download Unsuccessful Error on Android Browser

送分小仙女□ 提交于 2019-12-11 13:22:57
问题 I used Asp.net and C# to run this website and to approach mobile version, I used jQuery mobile. When I download via desktop browser is working fine and when I try to download via mobile, I got error Download Unsuccessful How can I fix it? Here is my code protected void lbAttach_Click(object sender, EventArgs e) { if (this.IsPostBack) { string sRFP = lblRFPNo.Text.ToString().Trim(); if (dsRFP(sRFP).Tables[0].Rows[0]["Attachment"].ToString() != "") { byte[] Attach = (byte[])dsRFP(sRFP).Tables[0

AUTO-UPDATE Android app

别等时光非礼了梦想. 提交于 2019-12-11 13:04:53
问题 I need to have a mechanism where an app auto-updates itself without any user interaction. The app is an off the shelf app (off market). Updates should happen in background without any click. How can we achieve this? 回答1: This is not possible, except perhaps on rooted devices or via your own custom ROM. Apps cannot install or update any apps (their own app or the apps of others) without user involvement. 回答2: this is possible, and don't need to be rooted. You only need to have a signed apk,