titanium

iOS BLE peripherals keep disconnecting immediately after discoverServices is called

柔情痞子 提交于 2019-11-28 10:31:56
问题 While developing a BLE app for iOS, I keep getting a disconnect immediately after discoverServices is called. I am testing with 4 exact BLE devices (OEM), and I keep getting this disconnect on exactly the same two devices. Every time. I know the devices are ok, because I've also built the same app on Android, and with the same devices, all 4 stay connected. This is using Titanium, but everything here is implemented in iOS. Here's the relevant iOS code: - (void)centralManagerDidUpdateState:

Failed to Load JNI shared library when trying to use titanium

风格不统一 提交于 2019-11-28 09:02:45
问题 I am having difficulty with Titanium cross mobile development platform, i am getting error "failed to load JNI shared library c:\programfiles\java\jdk 1.6.0 _45\bin\server\jvm.dll. could any one help.Thanks in advance. 回答1: Did you read System Requirements? From Documentation: For Windows, the 32-bit version of Java JDK is required regardless of whether Titanium is running on a 32-bit or 64-bit system. Try to install additional 32bit version of Java (without removing the 64bit) and set the

External SDCard file path for Android

橙三吉。 提交于 2019-11-28 08:24:25
Is it true that the file path to external SDCard on Android devices are always "/storage/extSdCard" ? If not, how many variations are there? I need it for my App to test the availability of external SDCard. I am using Titanium, it has a method Titanium.Filesystem.isExternalStoragePresent( ) but it always return true even external SDCard is not mounted. I think it detect SDCard at local storage thus return true. But what I really want is detect whether physical SDCard is mounted or not. Can I do this by detecting the existence of file "/storage/extSdCard" alone? Thanks. Digoun Is it true that

What is the correct way to chain async calls in javascript?

北战南征 提交于 2019-11-28 05:59:27
I'm trying to find the best way to create async calls when each call depends on the prior call to have completed. At the moment I'm chaining the methods by recursively calling a defined process function as illustrated below. This is what I'm currently doing. var syncProduct = (function() { var done, log; var IN_CAT = 1, IN_TITLES = 2, IN_BINS = 3; var state = IN_CAT; var processNext = function(data) { switch(state) { case IN_CAT: SVC.sendJsonRequest(url("/api/lineplan/categories"), processNext); state = IN_TITLES; break; case IN_TITLES: log((data ? data.length : "No") + " categories retrieved!

Check if a file exists locally using JavaScript only

落花浮王杯 提交于 2019-11-27 22:54:07
I want to check if a file exists locally, where the HTML file is located. It has to be JavaScript. JavaScript will never be disabled. jQuery is not good but can do. By the way, I am making a titanium app for Mac so I am looking for a way of protecting my files from people who click "show package contents". dSebastien Your question is ambiguous, so there are multiple possible answers depending on what you're really trying to achieve. If you're developping as I'm guessing a desktop application using Titanium, then you can use the FileSystem module's getFile to get the file object, then check if

Titanium module imagefactory won't work

僤鯓⒐⒋嵵緔 提交于 2019-11-27 19:33:25
问题 After several hours, and still not working image module, I hope for som help here. I'm trying to install/use the imagefactory module. 1) I installed it globaly using Titanium studio (tried both from github and appcelerator) but it doesn't show upp when I look for modules in the terminal ('Titanium module'), or in my tiapp.xml when trying to include the module. The plugin installs itself in the directory Titanium/ mobilesdk modules ti.imagefactory-stable <-- here I tried to move the folder to

getting error msg install failed missing shared library

本小妞迷上赌 提交于 2019-11-27 17:17:53
问题 i have made one application which uses google maps APi,i am using titanium 1.2.2 and mobile sdk 1.5.1 for android,wenever i am trying to run the app on emulator,console shows an error [INSTALL_FAILED_MISSING_SHARED_LIBRARY] what does this error means and how to fix it?? 回答1: I had the same issue. Make sure you have changed the target from Android### to Google APIs in the AVD Manager. Open Android SDK Manager Select Tools -> Manage AVDs Select a/the virtual device and click edit In the target

“Unable to download application. <Appname> could not be installed at this time”

三世轮回 提交于 2019-11-27 16:27:10
问题 I'm almost dead now. I've been trying for about 2-3 weeks to fix that problem, but still no result. Hope anyone is able to help me: I'm writing iOS Apps with Titanium Studio. Until Mac OS X 10.6.8 with Xcode 4.2 everything worked just fine. I was perfectly able to build apps in Xcode und deploy them In-House in our Enterprise. Now I've upgraded to OS X 10.8.2 with Xcode 4.5 and there we go... Apps can still be built and are runnable on the iOS Simulator, but if I try now to get the app on

Monotouch or Titanium for rapid application development on IPhone?

∥☆過路亽.° 提交于 2019-11-27 11:14:49
As a .Net developer I always dreamed for the possibility to develop with my existing skills (c#) applications for the Iphone. Both programs require a Mac and the Iphone Sdk installed. Appcelerator Titanium was the first app I tried and it is based on exposing some Iphone native api to javascript so that they can be called using that language. Monotouch starts at $399 for beeing able to deploy on the Iphone and not on the Iphone simulator while Titanium is free. Monotouch (Monodevelop) has an Ide that is currently missing in Titanium (but you can use any editor like Textmate, Aptana...) I think

What happens to JavaScript code after app is compiled using Titanium Mobile

北城以北 提交于 2019-11-27 11:03:00
I installed Titanium from appcelerator and built the "KitchenSink" example application. All works well, I'm just wondering where does the javascript code ends up in a built app. I grep-ed the Xcode project and also the result application as I found it in Library/Application Support/iPhone Simulator/....KitchenSink.app , but I can't find any function names from .js files, not even string texts used within the application. Nearest information I found is an answer here : How Does Appcelerator Titanium Mobile Work? but I do not understand clearly how the process works. Is the javascript code being