Titanium: How to close TabGroup within its Tab?

How can I close the TabGroup within one of its tab ? I want to close the tabGroup on a button click (Log out button) and want to display a window without the tab group. I know how to display a window but could find how to close tab group ? I think, to hide tab group is not proper way. Also on another button (Login button) I am creating the tab group so... Any suggestions ? Thanks...

Titanium Paypal integration for Android

I'm learning Titanium for mobile development. Currently, I am trying to learn Paypal usage through Titanium programming. I have the following test code. var ppButton = Ti.Paypal.createPaypalButton({ width: 294, height: 50, bottom: 50, appId: "APP_80W294485PS19543T", buttonStyle: Ti.Paypal.BUTTON_294x43, paypalEnvironment: Ti.Paypal.PAYPAL_ENV_SANDBOX, feePaidByReceiver: false, transactionType: Ti.Paypal.PAYMENT_TYPE_DONATION, enableShipping: false, paymen

Titanium ScrollView left and right scrolling With arrow button

How to control the vertical scroll using right and left arrow in titanium. How to connect the between the scroll view and right and left arrow Here is the code: var counter = 0; rightArrow.addEventListener('click', function(e) { counter++; var wrapperChild = wrapperView.getChildren(); var scroll2 = verticalScroll.scrollTo(114, 0); var scroll1 = verticalScroll.scrollTo(0, 0); var scroll3 = verticalScroll.scrollTo(307, 0); if (counter == 1) { verticalScr

How to create a header bar with buttons in Titanium JS?

I'm using Titanium Alloy to build an app and I'm trying to create a header bar with buttons in it, similar to the contacts app, as pictured below: This header has the title in the middle and buttons either site. I've been looking everywhere for a way to do this in Titanium but I can't find anything yet. It seems that this is not in the documentation, do I need to create something completely custom? I have tried to add a button inside a navigation view, but it doesn't work - it comes up with

what is the difference between a collection singleton or instance within Titanium?

In the Alloy docs, it mentions you can have a singleton or instance of a collection. You define one way or another using the instance tag: <Alloy> <Collection id="localLibrary" src="book" instance="true"/> <Window> <TableView id="table" /> </Window> </Alloy> I understand the general idea behind a singleton vs instance... but I do not understand the direct advantage/application of exposing it one way or another to the controller. Specifi

Titanium: Text area border not showing

So I'm creating a text area on a blue background. I'd like it to have a white border, but blue background, like so: However, it actually looks like this: The code is: var svSearch = Titanium.UI.createTextField({ color:'white', value:'Пребарај по категорија, албум', height:35, backgroundColor:'#00A0FF', top:35, left:40, width:260, font:{ fontFamily:'Roboto Light', fontWeight:'normal', fontSize:12 }, borderRadius:3, border

Where to keep Redlaser License file in Titanium Alloy Project?

In Titanium Classic project scanning worked fine when license file was kept in Resources folder along with app.js file. Not sure where to keep the license file in Titanium Alloy project - gives me error that "SDK Not Authorized" You are over the scan limit for this device and application. I have a paid license from RedLaser.

Console.log giving error in Titanium Android App

I am getting error in Titanium App, where I am trying to see the object or data in a variable mainwin I wrote only these lines for debugging, and then I am getting error Screenshot : ) console.log(mainwin); console.log(e);

Titanium Adjust TableViewRow height for length of string

Adjust TableViewRow height for length of string. I have tableview, each row has has one message (1-500 letters). But in this code , some are omitted and some are expanded. Totally each row height is unstable. Is there any good way to adjust the height of row according to message length. var dateLabel = Ti.UI.createLabel({ top:'5%',left:'5%', text:dateLabel, color:"black", font:{fontSize: Ti.App.global.myFunc.makeFont(2),fontWeight:'bold'}, }); var messag

Titanium Appcelerator Studio freezes when opening on OS X

When I open Appcelerator Studio on my Mac, I am greeted with a red screen asking for my email and password. However, I cannot seem to edit either. The cursor just flashes on the password section and I cannot seem to edit anything, or press any buttons. It seems like it's frozen as when I click "Appcelerator Studio" on the toolbar, nothing happens. Note I have tried the following: $ appc logout -D $ appc login $ sudo npm update -g However, the same thing happens whenever I open the IDE. No

Titanium How to change the name of an app?

My client want a the danish letter 'Ø' in the appname. When I create a new Titanium project containing this letter in the name then the project cannot compile: [INFO] Performing clean build [ERROR] [ERROR] Error: Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/builder.py", line 1148, in main execute_xcode("iphonesimulator%s" % link_version,["GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=

How to hide title bar from my current window titanium Android

I want to hide title bar from my current window. I have searched for "hideNavBar:true" but still it is not working, so please help me in hiding the title bar from Android app. My code is below. My create.js is: var curWin = Ti.UI.currentWindow; var imgarr = [{ leftImage: 'images/previous.png', title: "Create Your Popmount", hasChild: true, path: 'Take_Photo.js', navBarHidden: true }, { leftImage: 'images/previous.png', title: "Get Information", hasChild: true,

when start App, than how to remove this Titanium default Page or picture?

I am new 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. I have also 1 question when i run the application in iPhone than show its title bar with windows. but, in android have not show. i use build custom with use if else statement i add the title bar. but, any syntax. whose add the tittle bar in

How can I compress Titanium Application Size after building it?

I built a Login application in which I have 3 Windows Log In Windows Registration Windows After Log in details window about the user In this application, the database stores data about user. The app is intended to be multi-platform & run on iPhone or Android. When I install in device than it take 12MB or more Size (application size 12MB or more size). How can I compress it?

Titanium Building desktop application with tidesdk for other platform

I'm having problems when I try to build a Tidesdk Desktop Project for other platforms. I use linux, and building for linux works perfect. I do it like this: ./tibuild.py -d /home/rooter/theapp/ -p --type=bundle /home/rooter/Titanium_Studio_Workspace/TestApp/ It all works fine, but the problem comes when I try to build for win32 ./tibuild.py --os=win32 -d /home/rooter/theapp/ -p --type=bundle /home/rooter/Titanium_Studio_Workspace/TestApp/ I get this error: Traceback (most recent call la

Compatibility of titanium and TideSDK

As far as I know TideSDK is what used to be Titanium Desktop, right? I'd like to ask if somebody has experience in reusing (mostly the business logic and data access) components of Titanium mobile in TideSDK?

Basic Animation Titanium

I need to do a crossfade animation between views for my project. Which is the best way to produce animation and creating views/windows which one is best. Suggest me a solutions for this work around? Am using Titanium 3.1.2.GA, Alloys and Android Emulator for my testing environment. Any examples may be appriciated? My thread in appcelerator forum index.xml <Alloy> <Window id="fblogin" class="container"> <Require src="loginsuccess" id="loginsuccess"></Require>

Appcelerator Titanium: Code Sign error: No codesigning identities found

This is driving me crazy, I have spent about 10 hours now deleting and regenerating Apple keys and provisioning profiles for my Appcelerator Titanium iPad app. I had this all working and compiling 1 year ago, then my Mac crashed and I had to reformat and start over. I cannot get past this error: "Code Sign error: No codesigning identities found (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings ('Okland Construction 2014') were found."

Titanium mobile Alloy: fraction view size in *.tss or *.xml

I have container with seven views inside: <View class="container> <Button class="day"/> <Button class="day"/> <Button class="day"/> <Button class="day"/> <Button class="day"/> <Button class="day"/> <Button class="day"/> </View> Is it possible to set width of buttons to 1/7 of container width in *.tss or *.xml without using postlayout event? With four views I can simply specify 25%, but with 14.285714285% for sev

Titanium alloy LeftNavButton change dynamic button background image

I try to change the background image of a LeftNavButton after a click, but nothing happens. When I do this with a normal button the image will change. Are there some restrictions in doing that or is there another way to do that? index.xml: <Alloy> <NavigationWindow id="win1" platform="ios"> <Window id="win2" title="Window"> <LeftNavButton> <Button id="navButtonFilter" class="navButtonFilter" onClick="doClick

Titanium Runing App in Simulator(IOS) i am getting this issue

I am attaching below what error i am getting [ERROR] : certificate has expired 2017-10-14T05:46:30.298Z | TRACE | titanium exited with exit code 100 2017-10-14T05:46:30.299Z | ERROR | Error: ti run exited with error code 100 at ChildProcess. (/Users/balakrishna/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/plugins/run.js:92:66) at ChildProcess.emit (events.js:110:17) at Process.ChildProcess._handle.onexit (child_process.js:1074:12) 2017-10-14T05:46:30.300Z |

titanium touchstart, touchend do not carry on when moving between views

So i am using titanium, and the touchstart event doesn't seem t fire when moving between views. To give an example, say i have a button on my page. The button has a touchstart event that, say, makes it twice as big. Now if i touch directly on the button then hooray! The button is twice as big. However, if i touch elsewhere on the screen (on the background, say), and then drag my finger to the button, then the button is not twice as big. In fact, nothing happens. Is there some problem with the

Titanium - Design Title bar with three controls in in a view

I want to design app title bar with 3 controls. Left Menu Button Screen Title Right Menu Button I have tried to achieve this, here is my sample code. var win = Ti.UI.createWindow({ navBarHidden : true, orientationModes : [Ti.UI.PORTRAIT] }); var bb1 = Ti.UI.createView({ top : 0, height : 40, left : 0, width : Titanium.Platform.displayCaps.platformWidth, backgroundColor : '#35a63c' }); var TopbarChieldContainer = Ti.UI.createView({ layout : 'horizontal',

How to send http request and response in titanium alloy?

I have created a mobile app which contains the submit form. On click of submit I need hit the URL and pass the form values in the URL also need to get the response message. How can I do that? Can any one suggest some blogs or tutorials on the same. Also I need to perform the above operation on Android, IOS and Windows platform. Is it possible to do above functionality on three platforms? If any limitations on any platform, Please let me know.

Titanium, Can you print a WebView webpage

In Titanium, is it possible to print a webpage, similar to printing a webpage from Safari? I'm using WebView. It only needs to work with iOS, not Android. If so, how? I haven't been able to find anything about this. One person told me it was impossible, but I thought I'd ask Stackoverflow - people here often surprise me :)

Compiling Titanium Modules from GitHub

After a few days of failure I realize I need more insight than google can deliver. I am attempting to include a module in my otherwise working fine Titanium project but am not having any luck. The module in question is Ti.MapPlus, a fork of the standard Ti.Map module that I am already using. The GitHub repository does not have a compiled release, and it is not available via Gitt.io. I have tried to create a new Mobile Module Project without success; but suspect that this is the best route. C

How to get remote image height and width in Appcelerator Titanium

I am posting sample code below please any help me var bb_CoverPageImage = Ti.UI.createImageView({ width : '100%', image : '', categoryName : magazinePagesList[i].categoryName, lengthId : magazinePagesList.length, }); bb_CoverPageImage.image = L('Site_URL_Images') + magazinePagesList[i].imagePreviewUrl.replace(/\s/g, '%20'); coverScrollView.add(bb_CoverPageImage);

Titanium hanging at "Creating a Titanium Project"

I am on a Mac, Snow Leopard 10.6 with Xcode installed. I installed titanium studio, and am trying to create a new mobile project. This hangs. (See screenshot). The folder gets created, but no files are being written. In contrast a desktop project gets created. I will be glad to provide logs, but I have no idea where to get the logs from. https://img.skitch.com/20110906-feigysa442sn4gggkabrxnjj4b.png

Titanium After Refresh dont append the same data

im using for first time appcelerator for a Iphone app, im using a TableViewRow, when the window load all is fine, but if i want to refresh the window, the TableViewRow repeat the same data every time that i push refresh, so, i have 5 Categories, after refresh im having the same Categories repeting every time that im trying to refresh. Ti.UI.backgroundColor = '#dddddd'; var url = "http://remoteJSON.js"; var win = Titanium.UI.currentWindow; var table = Titanium.UI.createTableView(); var tableDat

Titanium Tab.open transition

When I'm opening a window in a tab, the slide animation is by default from right to left. I need to change it to left to right. myapp.mainTab.open(window) Is there any way how I can pass a different transition?

Titanium Linux Desktop App Launch Error

Every time I try to run a Desktop project with PHP support, the following error is returned: [05:41:03:608] [Titanium.Host] [Information] Loaded module = tiui terminate called after throwing an instance of 'Poco::FileNotFoundException' what(): File not found DO you know any solution to fix the error? I tried several ways but they didn't work.

Communication Between WebView and WebPage - Titanium Studio

I am working in a Mobile project (using Titanium Studio), in which i have the below situation 1) My Mobile app contacts Rails backend to check some data, say check validity of a user id. 2) I found a way to load web pages in Mobile app, i.e., WebView 3) I could able to load the desired url, ex http://www.mydomain.com/checkuser?uid=20121 which would return data like status:success But i need to read this data to show whether the response from server is a success or failure, how do i ac

Titanium Overlays on top of the camera screen

I was trying to find the way to add some overlays on top of the camera screen for a Titanium's app. Looking through StackOverflow I've came across this post: Is Titanium appcelerator worth it for developing camera based application on ipad, iphone and android? where Tim Rosenblatt said that it was posible. I was wondering if someone can point me some links where I can find some documentation to do that. Thanks in advance

Titanium Alloy builds successfully but index.html not found

I'm exploring Titanium Alloy at the moment. So created a project based on the Two-tabbed Alloy Application template provided by Appcelerator in the dashboard. When I run the app with Titanium Mobile Web Previewer as run config, it compiles successfully, but when it opens the browser I get a page with only the text: 'File /index.html not found'. I googled and searched, but I cant find a solution. By the way, the console reads: Titanium Command-Line Interface, CLI version 3.1.0, Titanium SDK ver

Disable autoscroll top on insertRowBefore in a TableView in Appcelerator/Titanium

i'm currently using a TableView to display some elements in Appcelerator/Titanium. The problem that i have is that when i make a pull to refresh and i call the method "insertRowBefore" to insert new elements at the beginning of the table using the method like following: $.table.insertRowBefore(0,row); The table auto scrolls to top, and it looks a little bit bad when there're a lot rows to insert, i want to keep the current position. Any ideas?

Titanium : Use Ti.UI.SIZE + myvar?

What I'm trying to do is increase the height of each row of my ListView. I set an height = Ti.UI.SIZE , unfortunately with this method , the height set to the row is too small. I wish there was much space between the words and the start / end of row (a sort of padding that is used with css) it's possible ? thanks var template = { properties : { height : Ti.UI.SIZE, selectionStyle : Ti.UI.iPhone.ListViewCellSelectionStyle.NONE }, childTemplates : [{ type :

does gpref and python required to create module from Titanium studio?

I am using Titanium Studio, build: 3.4.1.201410281727. When I try to publish a sample module from studio, I am getting below error process.annotations: BUILD FAILED C:\ProgramData\Application Data\Titanium\mobilesdk\win32\3.4.1.GA\module\android\build.xml:163: Class not found: javac1.8 Total time: 709 milliseconds I don't find Application Data in my c drive but rest of the path. do I need to install gpref and python required to create module from Titanium studio? I have android SDK as well a

Implement Google Cast(Chromecast) in Titanium

is there any way we can play media (video, images etc) using chromecast devices via our Titanium app? There is a module available for iOS https://github.com/bangslosan/titanium-chromecast but seems its only connected to the device not playing media.

Titanium Clearing badge number Appcelerator studio, arrowdb and iOS?

So i send push notifications using the arrowdb and cloud service with Appcelerator. This seems to work well and the iphone gets the notification. What i wonder is if there is some easy way to clear the badge numer to 0? It needs to be reset at the arrowdb server as well (or apple) i guess. I want the badge to be reset every time the app is opened. What i did was adding a resume listener in alloy.js Ti.App.addEventListener("resumed", function(e){ In the event listener i first do (to reset th

How can I get device phone number in Appcelerator Titanium?

Recently I found that in Cordova it is possible to obtain user's phone number (cordova plugin link).If Cordova can do that, than Appcelerator should too. How can I do that in Appcelerator Titanium?

Titanium/ Alloy: Reapply styles on when screen is resized

I have some basic styles like: "#foo": { backgroundColor: '#ff0000', // red } "#foo[if=Alloy.Globals.isSmallHeight]": { backgroundColor: '#0000ff', // blue } in alloy.js I have the following: function pxToDp(px){ return px / (Titanium.Platform.displayCaps.dpi / 160); } var screenWidth; var screenHeight; if (Ti.Platform.name == "android") { screenWidth = pxToDp(Ti.Platform.displayCaps.platformWidth); screenHeight = pxToDp(Ti.Platform.displayCaps.platformHeight); } else {

Titanium Appcelerator Studio indexes very slow

Once in a while Appcelerator Studio starting task "Building workspace... " and it shows that it indexes "/iphone/hyperloop/..." or "/android/hyperloop/..." even though I've disabled hyperloop in my project. Does anyone know how can I get rid of this long indexing? It takes like 20 minutes and makes no sense to me. Thank you!

Titanium Appcelerator Studio not recognizing my developer name

I am using Appcelerator studio, VSCode and Atom to run the Appcelerator app in my device. If I am using the Play button in Studio I am getting this error. [ERROR] : Invalid "--developer-name" value "Apple Development: MYNAME (TXXXXXX)" For help, run: titanium.js help build if I use VSCode and Atom to run the app with the extensions I am getting this 2020-09-14T21:28:35.764Z | ERROR | process.stdin.setRawMode is not a function My configuration is like so

  1    2   3   4   5   6  ... 下一页 共 6 页