appcelerator-titanium

How to access global value from commonJS module in Appcelerator?

陌路散爱 提交于 2019-12-12 04:47:17
问题 For long time I was creating apps by making global variable which was accessible via modules I load. var myApp = { windows: {} } myApp.windows.mainWindow = require('libs/pages/mainWindow').create(); myApp.windows.mainWindow.open(); By calling myApp.windows[windowName][functionName] I could manipulate other windows (for example update lists) from within the commonJS module. I could also close, open other windows I found that calling global variables from within commonJS module is not good

How to hide the soft navigation bar on Android with Titanium?

时光总嘲笑我的痴心妄想 提交于 2019-12-12 03:39:59
问题 Please can someone point to an example of how to hide the navigation bar on android, using Appcelerator. NOT the action bar, nor the title bar. I can make these hide. I want to make a completely fullscreen app, and hide the navigation bar thanks 回答1: What you are trying to achieve is called immersive fullscreen mode, it is possible to do it from android 4.4, but it seems that Titanium don't support the flag; there is a module that does this thing, haven't personally tried it but probably will

Understand Google Play Developer Console's Crash Logs with Titanium

谁说胖子不能爱 提交于 2019-12-12 03:35:54
问题 I have an app published on Google Play. I have a few crashes. Below is one of the logs. By looking at it, I have no idea where to start to find the cause. I don't see crashes when I run the app on my devices or on the emulators. Any advice? Anyone understands it? Usually how are these crash logs useful to Titanium developers? *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Build fingerprint: 'samsung/degasltezt/degaslte:4.4.2/KOT49H/T235YZTU1AOE1:user/release-keys' Revision:

Is there any module which allows cropping an image dynamically in Appcelerator for iOS platform?

穿精又带淫゛_ 提交于 2019-12-12 03:33:50
问题 I am developing an ios mobile app.In that my requirement is user should able to allow crop the photo gallery images dynamically.is their any free module or any alternate code to achieve my requirement Thanks in advance 回答1: You can use http://gitt.io to search for modules. You'll find: https://github.com/caspahouzer/TiCropImageEditor (forked from https://github.com/EtnaTraining/TiCropImageEditor with 64bit and some other patches) The modules implement PEPhotoCropEditor 回答2: Also check https:/

Unable to run Windows Phone 8.1 Emulator on Titanium Appcelerator

喜你入骨 提交于 2019-12-12 03:27:40
问题 I am trying to run an Android app made in Titanium Appcelerator, to run in Windows Phone emulator I have VS 2013 Pro & Appcelerator Studio 4.5 I wish to run app in Windows Phone emulator, but it gives me error [ERROR] : Invalid "--device-id" value "8-1-1" For help, run: titanium.js help build Command Details Operating System Name = Microsoft Windows 10 Pro Version = 10.0.10586 Architecture = 32bit # CPUs = 4 Memory = 8479367168 Node.js Node.js Version = 0.12.7 npm Version = 2.11.3 Titanium

Appcelerator iOS module crashes with 3rd party framework

我的梦境 提交于 2019-12-12 03:25:22
问题 I am building an Appcelerator module, that requires 3rd party frameworks to be included. I read the documentation and tried to follow it perfectly with little success. The app id is com.example.app The version is 1.0 The frameworks are located in iphone/platform. The module.xconfig is as follows: FRAMEWORK_SEARCH_PATHS=$(SRCROOT)/../../modules/iphone/com.example.app/1.0/platform /Library/Application\ Support/Titanium/modules/iphone/com.example.app/1.0/platform ~/Library/Application\ Support

How to delete nodes from xml file?

岁酱吖の 提交于 2019-12-12 03:06:32
问题 I want to manipulate a data from an XML file with Appcelerator's app. So I'm able to read the information from this xml file with this code: var file = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory,'/XML/file.xml'); var xmltext = file.read().text; var doc = Ti.XML.parseString(xmltext); var nodes = doc.documentElement.getElementsByTagName("code"); for (var i=0;i<nodes.length;i++) { var element = nodes.item(i); //LA SECTION CODE DEL SOCIAL HISTORY, DEVE ESSERE //29762-2 if(element

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

LED & Camera always ON

主宰稳场 提交于 2019-12-12 00:01:57
问题 I'm trying to open the device camera an activate immediately the LED light of that device (android/iOS). I've tried the appcelerator ti.media events but didn't work, neither this module: Ti.Light. Found this on this link activate-iphone-4-led-light Hey guys! For the flash stuff you have to check the property: Ti.Media.cameraFlashMode (case sensitive) To change it you can use Ti.Media.setCameraFlashMode(PARAM) . PARAM could be: Ti.Media.CAMERA_FLASH_OFF , Ti.Media.CAMERA_FLASH_ON, Ti.Media

i am unable to apply “Theme.AppCompat.NoTitleBar” and “colorPrimaryDark” status bar color property at the same time

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 17:42:44
问题 I want to hide the action bar throughout the application and also want to set the status bar color? in Appcelerator titanium. 回答1: Please follow the official guide at https://wiki.appcelerator.org/display/guides2/Android+Action+Bar You can either hide it in code win.activity.actionBar.hide(); in the open event and use a normal style in the theme xml or you set your parent in the theme to <style name="Theme.MyTheme" parent="Theme.AppCompat.NoTitleBar"> . Statusbar color is a theme item: <item