appcelerator-mobile

Titanium: How to hide the actionBar in a non-Alloy project?

拟墨画扇 提交于 2020-02-07 18:56:10
问题 I have no problem hiding the action bar in an Alloy project. However, how do I do this in a non-Alloy project? I tried this: win.activity.actionBar.hide(); But it doesn't work. 回答1: Via win.activity.actionBar.hide(); you can only hide the Action Bar when your window is finally opened. The main disadvantage is that sometimes you can see the Action Bar for a few milliseconds, because the window is initially created with Action Bar. Since Titanium SDK 4.2.0 there are 4 predefined themes to hide

Appcelerator Module development : How to connect my Java source with the module

倖福魔咒の 提交于 2020-01-14 03:03:27
问题 I have been trying to build a module in Appcelerator to let one Android library become available to Appcelerator platforms as well, but the documentation on Appcelerator site isn't helping me much. It's been two days since I am hitting walls. I followed Android Module Development Guide available on their site, but it doesn't specify many things, for example: It tells about creating a module from command line for a calculator, but doesn't write much about how to integrate the actual code. I

Appcelerator Module development : How to connect my Java source with the module

拥有回忆 提交于 2020-01-14 03:03:12
问题 I have been trying to build a module in Appcelerator to let one Android library become available to Appcelerator platforms as well, but the documentation on Appcelerator site isn't helping me much. It's been two days since I am hitting walls. I followed Android Module Development Guide available on their site, but it doesn't specify many things, for example: It tells about creating a module from command line for a calculator, but doesn't write much about how to integrate the actual code. I

Ti.App.fireEvent - Reference error Ti is not defined

╄→гoц情女王★ 提交于 2020-01-06 19:17:22
问题 I have this simple Titanium js script. app.js var win = Ti.UI.createWindow(); var webview = Ti.UI.createWebView({ url: 'logging.html' }); webview.addEventListener('help',function(){ alert('help'); }); win.add(webview); win.open(); logging.html <html> <body> <a onclick="Ti.App.fireEvent('help')">Help</a> </body> </html> when I click on the Help link, the console gives me Reference Error: Ti is not defined . I also tried changing Ti with Titanium, but same error. ------------- EDIT ----------

Titanium.App.Properties is it safe

五迷三道 提交于 2020-01-06 16:08:46
问题 I'm using Titanium.App.Properties to store user highly confidential data. So is it safe to store values here. Is it possible jailbreak iPhone's to leak this values. Is this values encrypted or stored as plain text? Thanks in Advance. 回答1: Here is an update to this old question: From Titanium 3.X docs: As of Release 3.2.0, any application properties defined in the tiapp.xml file are stored in the device's secure storage, making them read-only. Additionally, external access to these properties

Opening an activity with a webview containing a HTML5 video for a second time

空扰寡人 提交于 2020-01-06 04:02:20
问题 I am serving video's in a webview in Android using Appcelerator Titanium. On iOS this works like a charm. But on Android this gives some problems. It goes wrong the second time an activity is opened with a webview that holds a html5 video element. Steps to reproduce: (Also see this youtube video: http://www.youtube.com/watch?v=0MpSpfJNyOk ) The first time opening a video/activity with html5 video it shows the video and I am able to play it. When I close the window/activity and open a new

Opening an activity with a webview containing a HTML5 video for a second time

血红的双手。 提交于 2020-01-06 04:02:05
问题 I am serving video's in a webview in Android using Appcelerator Titanium. On iOS this works like a charm. But on Android this gives some problems. It goes wrong the second time an activity is opened with a webview that holds a html5 video element. Steps to reproduce: (Also see this youtube video: http://www.youtube.com/watch?v=0MpSpfJNyOk ) The first time opening a video/activity with html5 video it shows the video and I am able to play it. When I close the window/activity and open a new

appcelerator module for existing ios project sdk

断了今生、忘了曾经 提交于 2020-01-06 02:21:06
问题 I want to use into my titanium project the functionalities provided by an existing sdk (deezer sdk). I know I must deal with modules , so I found a lot of tutorials that explain well how to create a titanium module from scratch. But I didn't find something about to explain how to "wrap" an existing ios project within a titanium module. I just need the login/signup functionality and to retrieve the logged user (functionalities provided by the deezer ios sdk, of course). can anybody help me on

android:back (device back button) event in Titanium not working

牧云@^-^@ 提交于 2020-01-01 03:16:09
问题 Hi i am working on android application development.I am using Titanium studio for development. I create a simple application.I want to capture the device back button event in my application because I don't want to user android default tabs in titanium.I am creating my own tabs.I tried following code : :list.js var expt = Titanium.UI.currentWindow; expt.addEventListener('android:back', function (e) { Ti.App.fireEvent('expt_back_event'); }); :app.js Ti.App.addEventListener('expt_back_event'

iOS LocationManager is not updating location (Titanium Appcelerator module)

有些话、适合烂在心里 提交于 2019-12-31 05:45:12
问题 I've made Appcelerator Titanium Module for fetching device's rotaion and location. Source can be found on GitHub. The problem is that it fetches only one cached location but device motion data is OK and it is refreshing. I don't use delegate, I pull that data in my Titanium Javascript Code. If I set "City Run" in Simulator -> Debug -> Location nothing happens. The same cached location is returning. Pulling of location is OK because I tried with native app wich does this: textView.text =