appcelerator

Appcelerator Facebook module doesn't fire login event

只谈情不闲聊 提交于 2019-12-08 12:59:58
问题 Appcelerator 5.2.0 Facebook Module (Android) doesn't fire 'login' event after successful logged in. What could it be? var FB = require('facebook'); FB.initialize(); FB.permissions = ['public_profile', 'email', 'user_events']; FB.forceDialogAuth = false; FB.addEventListener('login', function() { alert('login'); }); FB.authorize(); Thanks! 回答1: Hello Oxana, Additional Android Setup Steps Since Facebook module v4.0.0, for the Android platform, you need to: Add the Facebook Login activity to the

appcelerator workaround for ti.include not working

假装没事ソ 提交于 2019-12-08 11:43:01
问题 Hi I have tried the workaround suggested by the appcelerator team (for dealing with the deprecation of ti.include in version 6.0.0) function include(file) { return eval(Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, file).read().text); } And I get an error, probably the system can't read the file. the error is: [ERROR] : TiBlob: java.io.FileNotFoundException: Resources/underscore-min.js I have managed to list the directory files through .getDirectoryListing() and couldn't find the

Apply filters to photos in Appcelerator

亡梦爱人 提交于 2019-12-08 08:50:56
问题 I am building an iOS app in Appcelerator and I need to let the user take pictures and then apply a filter to them (like Instagram). How can I achieve this? Is it perhaps possible to use any javascript based image filter library? Thankful for all input! 回答1: It is definitely possible, http://www.pixastic.com/lib/docs/ you can see some filters here as an example. All of these affects are achieved by looping over the image data and manipulating the pixels one by one. Hard part here would be

Get contact details to titanium from native iOS contact app

喜欢而已 提交于 2019-12-08 06:27:59
问题 I'm new to Titanium. Currently I'm working on a project in this the user needs to use the contact details from iOS contacts App. My app.js looks like this Window = require('ui/handheld/ApplicationWindow'); var win = Window(); win.open(); var button = Ti.UI.createButton({ title : 'Show Contacts', width : 100, height: 50, }); win.add(button); button.addEventListener('click',function(e){ Titanium.Contacts.showContacts({ }); }); When I click on a button the following code is displayed: And when I

PhoneGap or Appcelerator Implementation

我只是一个虾纸丫 提交于 2019-12-08 06:09:30
问题 This is more of an advice question rather than a specific question. I am developing an application for mobile devices. Its basic functionality will be to open PDF files, Video files, and to open certain webpages. Would this be best implemented in PhoneGap or Appcelerator? 回答1: PhoneGap and Appcelerator Titanium are both very popular open-source JavaScript frameworks for packaging and deploying mobile applications. At Universal Mind, we have clients that leverage both and clearly both

Titanium + Rails + Paperclip === NULL values?

独自空忆成欢 提交于 2019-12-08 05:48:56
问题 EDIT: The real question was whether or not you can use a JSON http header, and how to format an XHR send of a file to a Rails application. 回答1: In order to get the file there successfully, you might need to assemble a request with a content-type of "multipart/form-data". Here's a page I found that seems to have the right kind of information to send you in the right direction: http://www.smokycogs.com/blog/titanium-tutorial-how-to-upload-a-file-to-a-server/ 来源: https://stackoverflow.com

Get contact details to titanium from native iOS contact app

浪子不回头ぞ 提交于 2019-12-08 02:45:42
I'm new to Titanium. Currently I'm working on a project in this the user needs to use the contact details from iOS contacts App. My app.js looks like this Window = require('ui/handheld/ApplicationWindow'); var win = Window(); win.open(); var button = Ti.UI.createButton({ title : 'Show Contacts', width : 100, height: 50, }); win.add(button); button.addEventListener('click',function(e){ Titanium.Contacts.showContacts({ }); }); When I click on a button the following code is displayed: And when I select an contact the detail is displayed on the other screen: But I don't want this, When the user

iPhone SDK “loading” on Titanium Developer

左心房为你撑大大i 提交于 2019-12-07 19:26:42
问题 I have tried this question on the site of Titanium and several tweets to their account, but they either ignore me or refuse to answer. I want to start using their framework, but for some reason the iPhone SDK is always "loading" when in the "TEST & PACKAGE" tab. Have you guys found a fix for this? I have: Snow Leopard 10.6.3 Titanium Developer 1.2.1 iPhone SDK 3.2 All the certificates "blah blah" from Apple because I am able to test and deploy apps on my device using XCode. Help please :) 回答1

How to calculate the sunrise and sunset in javascript?

↘锁芯ラ 提交于 2019-12-07 12:31:21
问题 i am using appcelerator titanium to develop an IOS app and i want to let my app send local notification to the users in sunrise and sunset a good tool to solve this is Yahoo weather using YQL ; however, yahoo weather is for non-commercial use only!! i am trying to find a javascript library to calculate the sunrise/set + a database of the world's countries and cities with the latitude and longtude have anyone ever needed the same? Any idea. 回答1: This algorithm looks pretty wicked to solve

Appcelerator [ERROR] : Invalid “--pp-uuid” after provisioning certificate update

情到浓时终转凉″ 提交于 2019-12-07 07:27:15
问题 I'm new to Appcelerator and Stackoverflow, so pardon my ignorance. I have just updated my iOS provisioning certificate and now I get the following error. Any ideas? I'm using SDK 5.0.0.GA and studio build 4.0.0. [ERROR] : Invalid "--pp-uuid" value "d806f6cb-f67e-40e5-a9f3-88b8af3bcfae" For help, run: titanium help build 2016-01-16T21:08:11.950Z | TRACE | titanium exited with exit code 1 2016-01-16T21:08:11.951Z | ERROR | Error: ti run exited with error code 1 at ChildProcess.<anonymous> (