titanium

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

Titanium - Android external storage - create new directory and then write files into it

喜欢而已 提交于 2019-12-12 02:19:09
问题 Can we not simply create new directory programmatically on external SD card (not internal memory of device) in Android and can we not write files on SD card? Is Titanium so restricted to always write files on internal memory even after using Ti.Filesystem.externalStorageDirectory ? Can someone who has ever been able to create a new directory programmatically on SD card in Android write the answer here or no one ever needs to write something on external SD card? 回答1: You can use System class

How to clear the cache in a Titanium WebView?

我与影子孤独终老i 提交于 2019-12-12 01:55:58
问题 This is the code for my webview in Titanium (3.4.0): var webView = Ti.UI.createWebView({ url: pUrl, autoDetect: [ Ti.UI.AUTODETECT_NONE ] }); I just need to clear the cache of this var webView. I've googled and found a bunch of similar questions but solutions don't actually clear the cache since (as far as I know), there's no built-in function or method for Titanium's WebView to clear it's cache. The reason why I need to clear the cache is I need to clear the username and password of a user's

titanium studio push notifications closing the app

ε祈祈猫儿з 提交于 2019-12-12 01:51:57
问题 I am trying to show push notifications in android app, developed by titanium studio, my getting alert with unfortunately app is closed after this my is clossing, my code is try { CloudPush.retrieveDeviceToken({ success : function deviceTokenSuccess(e) { deviceID = e.deviceToken; Ti.API.info(deviceID); Ti.App.Properties.setString('deviceid', '' + deviceID); }, error : function deviceTokenError(e) { alert('Failed to register for push! ' + e.error); } }); } catch(e) { alert('Error :', e); } //

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

Update password field from Titanium application

☆樱花仙子☆ 提交于 2019-12-12 01:32:41
问题 I'm working on a Titanium based iOS application. In which I need to implement the password reset functionality within my app. I found this requestResetPassword method for doing this: Cloud.Users.requestResetPassword({ email: 'me@mycompany.com' }, function (e) { if (e.success) { alert('Success: Reset Request Sent'); } else { alert('Error:\\n' + ((e.error && e.message) || JSON.stringify(e))); } }); From docs it says that, it'll send a reset password option to user's mail account. But I don't

Equivalent of .iOS.createNavigationWindow in Android?

徘徊边缘 提交于 2019-12-12 01:09:10
问题 I am developed an app for iOS using Titanium . Now my idea is to try to port it to android devices. I am finding lots of errors which I am solving as I go, but I don't seem to find the solution to this one. My app for iOS uses createNavigationWindow to navigate through the whole app. Android don't like that command as it tells me it is undefined. I been looking for an Android version of createNavigationWindow but can't find it. Any tip in the right direction will be really appreciated.

Titanium Alloy ListView XML Uncaught TypeError: Object #<UI> has no method 'createTemplates'

江枫思渺然 提交于 2019-12-12 00:44:14
问题 I am new to Titanium, so excuse my lack of understanding. Even though I am using sdk version 3.2 (have sdk-version: 3.2.0.v20130801162445 in my tiapp.xml) when I try and have a view that uses the xml above I get this error: [ERROR][V8Exception( 615)] Exception occurred at alloy/controllers/feed.js:22: Uncaught TypeError: Object # has no method 'createTemplates' I cut down all my code so that the feed.js file is just: function loadMoreBtnClicked(_event) { alert('not implemented yet'); }

how to redirect from one page to tab in another page in titanium?

落花浮王杯 提交于 2019-12-11 23:14:46
问题 I have two pages in my application. The first page has a tab group with three tabs. Now on click of button in second page, I need to redirect my control to first tab 2 in my first page. How can I do that. My code is as follows, <Alloy> <TabGroup id="myTabGrp"> //Tabgroup Added <Tab id="one"> <Window class="container"> <Label>This is the Home View</Label> </Window> </Tab> <Tab id="two"> <Window class="container" id="winTwo"> <Label>This is the second View</Label> </Window> </Tab> <Tab id=

Appcelerator Titanium Alloy: How to store data on a ScrollableView to use in click event

廉价感情. 提交于 2019-12-11 21:51:44
问题 I have a ScrollableView, which has some images and labels inside each child view. However, I would like to store a ID value for each item, so that I can use it inside an onClick event. This ID could the be used to query the database or open up a new controller the value passed in. I thought about adding an attribute on the view, to store my ID, like so <ScrollableView dataCollection="videos" id="mainCarousel"> <View onClick="carouselItemClick" itemID="{the_id}"> <ImageView image="{episode_img