mobile

Inject pure Java / Obj-C code in NativeScript App

北慕城南 提交于 2019-12-11 13:00:11
问题 I'm currently developing an App for Android / iOS, and now i'm at the stage to let my users interact with Facebook, and especially send private message to their friends. Facebook implement a SDK for that, for iOS: FBSDKSendButton *button = [[FBSDKSendButton alloc] init]; button.shareContent = content; [self.view addSubview:button]; And for android: SendButton sendButton = (SendButton)findViewById(R.id.fb_send_button); sendButton.setShareContent(shareContent); sendButton.registerCallback

background image looks terrible on mobile

自古美人都是妖i 提交于 2019-12-11 12:49:04
问题 The picture pretty much explains the problem. On mobile phones, my clean/crisp repeating background (position center bottom, repeat-x) looks like crap. It doesn't actually appear that large on the phone - it looks visually the same size as on a computer, but - I assume since the phone is a higher resolution, it's making it look pixelated and choppy. I can't believe I've never come across this issue before, but searches for the subject just turn up "how to make repeating backgrounds on mobile"

Images in Adobe Flex

社会主义新天地 提交于 2019-12-11 12:47:31
问题 Im very new to Adobe Flex/Actionscript and am trying to create a person search application. So far I have my results showing as a horizontal list, but Id like to include an image above each name as my wonderful paint skills show: /* listOfPeople is a list of arrays with a["name"] a["sex"] a["dob"] and a["image"] which is just a URI to the image */ <s:List width="100%" height="100%" id="results" dataProvider="{listOfPeople}" change="clickPerson(event)"> <s:itemRenderer> <fx:Component> <s

Android Bluetooth, finds devices with empty names, on LG phone

邮差的信 提交于 2019-12-11 12:39:20
问题 I've written a small BluetoothReceiver, which handles most of the BT states. The receiver works for most of the scenarios, I put it through, but in some cases the Devices found has an empty string for a name, and I cannot tell one device from another. Here is the code snippet of the finding and a piece of Log to back it up: NOTE: The BT adapter is been turned off and on before the second detection. ANOTHER NOTE: This scenario happens exactly every second time. The first time the names are

Twitter follow callback not working on mobile safari

白昼怎懂夜的黑 提交于 2019-12-11 12:26:37
问题 I'm trying to call a function after a user follows me, and this seems to work just fine on desktop. However on mobile since the popup opens up a new tab rather than a popup window as it does on desktop, its not capturing the callback. Any ideas? <script> window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); js.id = id; js.src = "https://platform.twitter.com/widgets.js"; fjs

Converting responsive bootstrap design to static

半腔热情 提交于 2019-12-11 12:19:00
问题 I have designed a website in responsive design using bootstrap Twitter. It is a very complex page responsive wise, with really a lot of data, tables, divs, js … It works great on a computer; however as soon as I try to access it on a mobile phone, it doesn't work. It loads all the data but it seems like the phone is lagging because of the responsive design. The main issue is that I cannot scroll through the web page, it just get stuck on a section of the page. I do not mind having a static

Force mobile version of website for WebView

荒凉一梦 提交于 2019-12-11 12:09:50
问题 I'm loading an URL into a webview to display it into my app. The problem I'm encountering is, that not always the site recognizes that I'm a phone (why so ever?). How exactly do I force the webview to send to the site that I'm a mobile phone? Currently I'm doing it like that webview.getSettings().setUserAgentString("Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3"); But that doesn't work? Won't it work because I'm not

foursquare oauth2 for IOS

僤鯓⒐⒋嵵緔 提交于 2019-12-11 12:05:34
问题 Im upgrading from v1 foursquare api to v2 which requires Oauth2. Is it correct that to use the web server flow as recommened I should direct the user to : https://foursquare.com/oauth2/authenticate ?client_id=YOUR_CLIENT_ID &response_type=code &redirect_uri=YOUR_REGISTERED_REDIRECT_URI Once the user is authenticated foursquare will redirect to : https://YOUR_REGISTERED_REDIRECT_URI/?code=CODE Meaning I need to define an endpoint at https://YOUR_REGISTERED_REDIRECT_URI which will then make a

SQLite Database query for multiple table

此生再无相见时 提交于 2019-12-11 11:26:38
问题 I am creating an android app quiz with different topics. So i have buttons for the topics and different TABLEs in my database for Quiz1, Quiz2, Quiz3 and so on... Here's my code for Quiz.java public class Quiz extends Activity implements OnClickListener{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.quiz); Button quiz1 = (Button) findViewById(R.id.quiz1Btn); quiz1.setOnClickListener(this); Button quiz2 = (Button)

Dojo mobile and callback in dojox.mobile.ListItem

淺唱寂寞╮ 提交于 2019-12-11 11:13:36
问题 I'm a dojo newbie and have encountered this problem in mobile version: I try to use callback with javascript function, but it wont work. What am I doing wrong? <script> function My_function(){ alert("Hello"); } </script> <div id="homepage_view" data-dojo-type="dojox.mobile.View"> <h1 data-dojo-type="dojox.mobile.Heading">Mobile....</h1> <ul data-dojo-type="dojox.mobile.RoundRectList"> <li data-dojo-type="dojox.mobile.ListItem" data-dojo-props='moveTo:"whereIam_view", transition:"slide",