mobile

How to communicate two android devices?

别来无恙 提交于 2019-12-23 04:28:59
问题 Hi guys could any one help me a little bit, I'm making an android app, for cabs request, but I need a way to send to the driver app, an alert where he accepts the invitation to pick up the client, if he choose the accept button, and alert pops up on the client app telling him that the driver is on the way :) Thanks, I think i need for Threads to me always watching for these client notifications. 回答1: You can use Socket programming. This is an example where it shows how to communicate between

Switch between mobile and full site

寵の児 提交于 2019-12-23 04:18:08
问题 All my full site pages are under folder public_html , which contains index.php and folder m which contains all the mobile site pages. index.php is like this: <?php if (...mobile client) { header('Location: m/'); } else { include 'front.html.php'; } ?> There is also an index.php in m , simply `include 'front.html'. This script can detect user's client and direct to full site and mobile site automatically. But now I want a link on the mobile site to switch to full site. If it is like <a href=".

How to add extra attribute to Parse Signup function?

微笑、不失礼 提交于 2019-12-23 04:13:13
问题 I want to add an extra attribute to my parse SignUp function. My code is like signUp: function(e) { var self = this; var username = this.$("#signup-username").val(); var password = this.$("#signup-password").val(); var sex=this.$("#signup-sex").val(); Parse.User.signUp(username, password, sex, { ACL: new Parse.ACL() }, { success: function(user) { new ManageTodosView(); self.undelegateEvents(); delete self; } If I pass only username and password, it works and adds a user to database. 回答1: The

How can I add a “share” option to an iOS/iPhone or Android image gallery?

谁说胖子不能爱 提交于 2019-12-23 04:12:26
问题 I'm trying to add either a "share" option to iOS or Android phone galleries, or else another menu option that will perform the same task. I would like to start with iOS if it is possible. For example, if you go to your image gallery on an iPhone or Android phone, there is a share button, and you can choose Email, Picasa, Facebook, Twitter, etc depending on the phone. I need to add something like that to share it to my own web site or app. If anyone has an idea of even a starting point to

Paint App, JQuery mobile - Object Has No Method

与世无争的帅哥 提交于 2019-12-23 03:59:13
问题 I'm really pretty new to code. I'm trying to make a paint app that will work on desktop and mobile. I had it working fine on desktop using JavaScript but then to get it to work on mobile it seemed like JQuery mobile was a recommended method. I'm converting it to JQuery and had the maint working with .mousedown, .mouseup, etc. but when I changed to to .vmousedown, .vmouseup, etc. to have it work with touch I get an error which I can't seem to resolve. Uncaught TypeError: Object [object Object]

jQuery UI Draggable Split Screen

纵然是瞬间 提交于 2019-12-23 03:39:09
问题 I have a split screen slider that works fine on desktop but I needed jQuery UI to make it work on mobile.The draggable event lets me drag it back and forth but sometimes the image on the left moves from it's original position, or disappears altogether. Any ideas on how to approach this? Here's the codepen. The slider bug is more visible on mobile devices. document.addEventListener('DOMContentLoaded', function(){ let wrapper = document.getElementById('wrapper'); let topLayer = wrapper

Use ZXing.Net.Mobile result.text as input for WebView

梦想与她 提交于 2019-12-23 02:56:12
问题 i currently try to create a Barcode scanner UWP App for Windows 10. The purpose is that i want to use the scanned Barcode as input for a web search. I used the well documented ZXing.Net.Mobile package and I already got the scanner running in the app. The scanner starts, the Barcode is scanned and the result is displayed in a message box. I used the following line of Code in the MainPage.xaml.cs: MobileBarcodeScanner scanner; public MainPage() { //Create a new instance of our scanner scanner =

twitter bootstrap for high resolution mobile displays

三世轮回 提交于 2019-12-23 01:36:07
问题 Twitter bootstrap is very awesome, but it is like hell when you want to give a good mobile site based on the collapse navbar part. How can I force twitter to use it and also to scale it in the right way. So it may look like facebook. How it should look LG Optimus Black (480 x 800 pixel) How it looks like (Lumia 920 1280 x 768 pixel) 回答1: Try adding this to your <head> : <meta name="viewport" content="width=device-width, initial-scale=1.0"> This works using Bootstrap 3. 回答2: This is my

Meteor: one backend - multiple different front-ends 2x web and 1x mobile

别来无恙 提交于 2019-12-23 00:26:28
问题 I want one meteor server that can serve multiple different front-ends: Simple Web App Admin Web App Mobile App Each app has almost completely different HTML. Having all 3 packaged together isn't a blocker for the Admin and Mobile apps, but it is a blocker if the Simple Web app gets bloated with code from the other two. I don't understand enough about the Meteor build process to work out a solution. I could really use some help with best practices Some things I've tried: Separate apps ->

Mobile - API server security [closed]

本秂侑毒 提交于 2019-12-22 23:35:08
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . I am building an Android app - a key part of which will include integration with a server API. The app is just a side-project and I am really just looking for validation of my planned API security and suggestions of best practice and how other apps do it. The application will