titanium-modules

Appcelerator Titanium: how to record video?

Deadly 提交于 2019-12-13 12:36:37
问题 How to record video in Appcelerator Titanium and store in a specific location ? I am using an Android 2.3.6 device. This gist: https://gist.github.com/832488 does not seem to work as suggested / expected. It starts the video capture intent var intent = Titanium.Android.createIntent({ action: 'android.media.action.VIDEO_CAPTURE' }); as an activityForResult but the callback in Titanium.Android.currentActivity.startActivityForResult(intent, function(e) { ... }); is never called, none of

Cannot get module to work in Titanium Alloy JS

六眼飞鱼酱① 提交于 2019-12-13 01:09:37
问题 I've tried to add the TiSocial.Framework module into Titanium Alloy, and after reading several guides and questions, I still can't get it to work. What am I doing wrong? Here are the steps I took: Copied the unzipped module files into modules/iphone/TiSocial.Framework-master Edited the TiApp.xml file with: <module platform="iphone">TiSocial.Framework-master</module> Cleaned the build tried to run the app. But I get the following error(s): Could not find Titanium module id=TiSocial.Framework

C2DM and Titanium Appcelerator Integration

末鹿安然 提交于 2019-12-12 03:11:44
问题 I am using Titanium Appcelerator in order to implement C2DM on Android. After looking at many answers in their forums and in Stackoverflow, I found a guide that walked me through compiling and incorporating a module(titanium-c2dm from GitHub) into my program. I was able to compile and link everything properly, but in an attempt to register per the sample code c2dm.registerC2dm(senderId, { success:function(e) { //stuff here }, error:function(e) { //stuff here }, callback:function(e) // called

where database store in iphone simulator (for Mac OS)?

最后都变了- 提交于 2019-12-12 02:47:48
问题 i create a application.Whose, Log IN application in this we add a local database (db.sqlite). When new user do registration. than, add the whole data in database. its is run properly in device. But,how i see the data (data was store or not)? Question : where does this database file get stored on the filesystem when you're using an simulator (in Computer)? 回答1: In my case, I got my .sql file at /Users/myName/Library/Application Support/iPhone Simulator/4.2/Applications/B378BED2-C67C-4465-AB8A

how to add event in Calendar?

[亡魂溺海] 提交于 2019-12-12 02:29:39
问题 Question is : how to add any event in calender? i want to make a application, in which we can store any event in Calendar. with date and time and it have 3 option Daily, Weekly, and MOnthly, it remembered me whose option is selected. NOte : (iphone or android both) (Titanium). 回答1: this This is for Android and for iphone we can use ti.Com.calendar module this is provide by third party. GitHub this 回答2: Basically this can be done in android using intents, please find the full documentation

Error “You may need to install the Command Line Tools package through XCode” when package titanium modul?

喜你入骨 提交于 2019-12-12 01:33:11
问题 Does anyone know how to package Titanium module for Android? Every time I try to package the Titanium module, it give me an error. Here's my log output: Executing build.xml... /Library/Application Support/Titanium/mobilesdk/osx/2.1.4.GA/module/android/build.xml:362: The following error occurred while executing this line: /Library/Application Support/Titanium/mobilesdk/osx/2.1.4.GA/module/android/build.xml:317: exec returned: 2You may need to install the Command Line Tools package through

Error converting NSString to UTF8String

点点圈 提交于 2019-12-11 18:59:34
问题 -(id)select:(NSString *)original_query { sqlite3_stmt *statement; const char * converted = [original_query UTF8String]; NSLog(@"[INFO] converted char = %@", converted); if (sqlite3_prepare_v2(db, converted, -1, &statement, NULL) != SQLITE_OK) { @throw [NSException exceptionWithName: @"DB Encriptor" reason: [NSString stringWithFormat: @"Query \"%s\" has failed, we could not execute the SQL statement. '%s'", converted, sqlite3_errmsg(db) ] userInfo: nil]; } else { @try { ... } @catch

when start Application than Remove this Titanium Startscreen(create custom Start Screen)

余生颓废 提交于 2019-12-11 15:35:52
问题 I am Application Developer with the Titanium. i want to develop new Application with Titanium and created a HelloWorld application. Every time my application starts up Than every time Titanium startscreen is show. how I remove this Titanium Startscreen. 回答1: The default titanium splash is screen path is: Resources/iphone/Deafult.png You can replace your new Default.png. To see the new splash screen, just clean your build and relaunch your application. 来源: https://stackoverflow.com/questions

The system cannot find the file specified “classes.dex”

蓝咒 提交于 2019-12-11 03:24:29
问题 I have developed android module project and deployed in Titanium Project. When I run the Titanium Project am getting this err frequently [INFO] logfile = C:\ws\Testw2\build.log [INFO] Building Testw2 for Android ... one moment [INFO] Titanium SDK version: 3.0.0 (12/12/12 18:49 a5894b3) [INFO] Fastdev server running, deploying in Fastdev mode [INFO] Copying CommonJS modules... [INFO] Copying project resources.. [INFO] Tiapp.xml unchanged, skipping class generation [INFO] Force including all

Add overlay over top of ZBar scanner

久未见 提交于 2019-12-07 08:19:05
问题 I'm using the ZBar SDK to read QR codes on iPhone, however I want to add some text to the bottom of the camera/scanner view that is instructional text for the user. Here is what I have so far: UIView *cameraOverlayView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; cameraOverlayView.backgroundColor = [UIColor redColor]; UILabel *instructionLabel = [[UILabel alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; [instructionLabel setTextColor:[UIColor