titanium

Cannot run an application in titanium

非 Y 不嫁゛ 提交于 2019-11-30 23:42:17
I am newbie on Titanium , I have installed Titanium on my windows based laptop. Also imported Kitchen Sink application it in studio. I have set all the path variables also latest Android SDK . Also i have changed Run Configuration log and all. But when i try to run an application it gives me an error. I am trying to run it on android emulator of Titanium studio . Titanium Command-Line Interface, CLI version 3.1.1, Titanium SDK version 3.1.1.GA Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved. [ERROR] : Unable to detect Android SDK targets. [ERROR] Application Installer abnormal

java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. titanium

萝らか妹 提交于 2019-11-30 22:47:51
I'm creating a custom theme for my Titanium application using this theme generator . But when I run my application it's crashing and my log says that I need appCompact even if I set the theme for sdk > sdk 11. And my targeting Android version is API 19 and min SDK version is API14, so I wonder why I need appCompact . This is what my log says: [ERROR] : TiApplication: (main) [512,512] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{a.s/org.appcelerator.titanium.TiActivity}: java.lang.IllegalStateException: You need to use a Theme

CoffeeScript IDE for Windows - tried Titanium Studio and RubyMine

人盡茶涼 提交于 2019-11-30 18:56:53
问题 I'm trying to find a good way to work on CoffeeScript on Windows and be able to process these files quickly to JavaScript in the IDE. RubyMine - if I just open a .coffee file in RubyMine this seems to work. But I see no button or menu option to convert to JavaScript. Titanium Studio - in this IDE there is a Menu option to do the conversion - but when used it seems to call out to gitbash on my machine. At least that is what shows up in the console in the IDE. So I'd like to get one or both of

Output from AVAssetWriter (UIImages written to video) distorted

丶灬走出姿态 提交于 2019-11-30 17:43:32
问题 I am using an AVAssetWriter to encode a series of images to a movie file, following Zoul's answer here: How do I export UIImage array as a movie?. In short my process is: create UIImage from .png file Get CGImage from UIImage convert the CGImage to CVPixelBuffer (using zoul's function pixelBufferFromCGImage exactly) write the frames to .mov using a AVAssetWriterInputPixelBufferAdaptor and AVAssetWriter This is working fine in most cases, however sometimes the .mov file that is encoded is

How to get the number of unread messages PubNub

断了今生、忘了曾经 提交于 2019-11-30 14:12:41
Hey i'm using pubnub Services to add chat functionality to my Titanium App but i'm wondering if there is a way to get the number of unread messages. there is no info about this on api references What i tried to save the numbers of messages in history then reloading new history and calculate the difference but it's so stupid and complex solution any body know how to achieve this ? Thanks Track Read/Unread Messages on PubNub Years back we promised we'd make it super easy method for tracking Unread Message Counts in your app. Now it is finally possible! Using PubNub Functions , you can add

Should I learn native iOS development (Objective-C) or perfect my knowledge in Javascript and Titanium Appcelerator? [closed]

萝らか妹 提交于 2019-11-30 13:23:02
问题 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 4 years ago . Basically I need your advice my good stack friends :D For the last six months I am exploring/learning/developing iOS apps with Titanium Appcelerator mobile framework. My experiences are mostly good or very good. Some negative parts of Titanium would be building time,

Post iOS10 / Xcode 8.0 “Missing Push Notification Entitlement” error after build for iTunes Store

£可爱£侵袭症+ 提交于 2019-11-30 12:18:23
Whilst building for iTunes store and submitting the archive, I receive this error from apple: Dear developer, We have discovered one or more issues with your recent delivery for "XXXXXXXXX". Your delivery was successful, but you may wish to correct the following issues in your next delivery: Missing Push Notification Entitlement - Your app includes an API for Apple's Push Notification service, but the aps-environment entitlement is missing from the app's signature. To resolve this, make sure your App ID is enabled for push notification in the Provisioning Portal. Then, sign your app with a

convert base64 string to image with javascript

混江龙づ霸主 提交于 2019-11-30 09:47:28
Am developing an application with Titanium. I need to convert base64 string which i would be getting from JSON to an image. Your help would be greatly appreciated. You can just create an img element and change its src with the required data: <img src="data:image/png;base64,iVBORw0KGgoAAAANS..." /> For Titanium, you use the built in conversion utility Titanium.Utils.base64decode : var imageFromBase64 = Titanium.UI.createImageView({ image : Titanium.Utils.base64decode("iVBORw0KGgoAAAANS..."), }); This converts a base64 string to a blob, which can be used in an ImageView. 来源: https:/

Should I learn native iOS development (Objective-C) or perfect my knowledge in Javascript and Titanium Appcelerator? [closed]

我怕爱的太早我们不能终老 提交于 2019-11-30 07:13:44
Basically I need your advice my good stack friends :D For the last six months I am exploring/learning/developing iOS apps with Titanium Appcelerator mobile framework. My experiences are mostly good or very good. Some negative parts of Titanium would be building time, especially when testing on a device. When using only Xcode (native), your app starts immediately on a device, while with Titanium you have to wait for a while (1-2 minutes) for your app to build and then to install it on a device (iTunes or iPhone Configuration Utility). Basically everything that you can do natively you can do

How to check if array element exists or not in javascript?

不羁岁月 提交于 2019-11-30 06:13:08
问题 I am working with Titanium, my code looks like this: var currentData = new Array(); if(currentData[index]!==""||currentData[index]!==null||currentData[index]!=='null') { Ti.API.info("is exists " + currentData[index]); return true; } else { return false; } I am passing an index to the array currentData . I am still not able to detect a non-existing element using above code. 回答1: Use typeof arrayName[index] === 'undefined' i.e. if(typeof arrayName[index] === 'undefined') { // does not exist }