mobile

Detecting OS version in Javascript and redirecting

烈酒焚心 提交于 2020-01-03 01:59:28
问题 Good Day I have done some research and found that you can use the following javascript to detect a users OS, whether it is Android, iOS, Windows etc: var OSName="Unknown OS"; if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows"; if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS"; if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX"; if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux"; document.write('Your OS: '+OSName); Now what I would like to do is to

Android splash screen - Image from SD card?

久未见 提交于 2020-01-03 01:43:09
问题 I've been playing around with android and some phonegap code for the last week and through stumbling around, have been quite successful in my application creation. My app loads using a default splash screen and then calls out to various JSON feeds to download a local copy of all the data required. In doing this it also checks to see if there is an updated version of the splash screen image (Which is editable from a CMS website). If there is, then it downloads it and stores in on to the SD

FB.login callback not working on Opera Mobile browser

时间秒杀一切 提交于 2020-01-02 17:13:09
问题 I am testing our web application on OPera Mobile. We have a signIn through facebook link. It takes me to the login page, but after I enter my ID and password nothing happens. If I click on the login button mutliple times, it gives me too many failed attempts error. But after this my facebook account seems to be logged in. If I login to facebook and come back to our application and click on login, nothing happens, I see a blank page. After I did Javascript debug, I could see that the FB.login(

Warning Android user that app update could lead to losing data from old app version?

三世轮回 提交于 2020-01-02 11:26:30
问题 I'm writing a game for Android. When the user completes a level, they can restart from the next level if they lose (i.e. I need to store an integer to remember which level they got to). If the app is interrupted during play, I save the world state to disk (this is complex state storing a map and game entities). I'd like to keep my options open in the future for changing my game code and the way the world state is saved/stored. However, I must consider the scenario when a user has an old

Broadcast message or file to nearby Bluetooth devices

旧巷老猫 提交于 2020-01-02 11:15:25
问题 A client of ours is attending a business fair and would like to push some sort of "welcome message" to people visiting their space. I'm not too familiar with Bluetooth, so I have a few questions: What kind of content can you transfer via Bluetooth? (Is it files only or is it possible to send a simple text message?) Is it possible to push content only to recipients within a certain distance? (ie. based on signal strength or similar) Can anybody recommend a piece of software that can do some or

Use sqlite database from Android app resources

☆樱花仙子☆ 提交于 2020-01-02 10:25:54
问题 I've started Android programming recently so bear with me :) I develop an app which has all of its content stored in database.sql file. I've implemented a subclass of SQLiteOpenHelper and added database.sql to my project assets. public class DBHelper extends SQLiteOpenHelper { public DBHelper (Context ctx) { super(ctx, "database.sql", null, 1); } } This thing doesn't work. I just get an exception every time I try to do smth with DB :( 回答1: You need to override onCreate and onUpdate as well,

How to build android apk from my react-native project?

爷,独闯天下 提交于 2020-01-02 10:17:46
问题 How to build android apk from my react-native project? This command "react-native run-android" create app-debug.apk on folder android\app\build\outputs\apk\ But when I installed it on my phone, I got an error "Unable to download JS bundle". When I started on emulator first time I use command to fix this problem: react-native start curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle" 回答1: It's all written here. You need to

Mobile App for Sharepoint

拈花ヽ惹草 提交于 2020-01-02 10:05:48
问题 I'm trying to develop a mobile app that will integrate with Sharepoint 2010 so that my clients can make approvals and stuff from a mobile device. (I'm hoping to build a HTML5/Android Native app that will call webservices and get the job done) I looked it up and there is a RESTful API for Sharepoint that I think I can use with the ECMAScript library. Can I use this same REST API to view pending approvals, to approve/reject, etc or is the functionality limited to viewing data? Sorry but i'm a

What audio file types (e.g., mp3, ogg) are supported by Mobile Safari and HTML5 iOS web apps?

天涯浪子 提交于 2020-01-02 07:57:09
问题 There are many SO questions about playing audio files on Mobile Safari, but searching on SO and Google doesn't yield a comprehensive, updated list of audio files supported on Mobile Safari. Anyone know what the current list of supported audio files is? We're building a web app for the iPhone. Thanks! 回答1: Here's the most recent list of supported media types, last updated in July 2011: Safari on the desktop supports any media the installed version of QuickTime can play. This includes media

Java Me platform issues in NetBeans

懵懂的女人 提交于 2020-01-02 07:37:35
问题 I have installed Netbeans 8.0 that comes with pre installed Java ME plugin. Now when I tried to create a new Java ME project it said No Java ME Platform found. Please add at least one Also, the field "Java ME platform" was blank. So I clicked on Manage platforms and added Java ME CDLC Emulator Platform and gave the path to JAVA ME SDK. It discovered the platform and added the devices. After doing this, the field "Java ME platform" is still blank and I'm not able to select the Java Me platform