appcelerator

How to reload the tab in tab group in titanium alloy

人盡茶涼 提交于 2019-12-25 01:15:16
问题 I have three tabs in my tab group. One tab is for change language. If user changes the language I should need to change the selected language for all the tabs. my tab group 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="three"> <Window class="container">

After Refresh dont append the same data

可紊 提交于 2019-12-25 00:48:44
问题 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

Appcelerator/ Titanium: Cannot send push notification to Android

折月煮酒 提交于 2019-12-25 00:04:04
问题 I want to be able to send push notifications using Titanium and Arrow Push on Android. I have followed the instructions here: Configuring Push Services Subscribing to push notifications Modules.CloudPush My simple code looks as follows: var CloudPush = require('ti.cloudpush'); var deviceToken = null; // Works fine CloudPush.retrieveDeviceToken({ success: function () { deviceToken = e.deviceToken; alert('deviceToken: ' + deviceToken); subscribeToChannel(); }, error: function () { alert('Failed

Appcelerator sidemenu redirect to another screen creating multiple screen

混江龙づ霸主 提交于 2019-12-24 13:38:21
问题 I am using this sidemenu module in my app. In sidemenu i have option like home, setting etc. When i click on setting, it redirect to setting page. Now problem is when setting page is opened and i open side menu using swipe and again click on setting then it will again open setting screen on previous one. Means it creating 2 setting screen. If i repeat it again then it will creating again setting scree. How do i prevent this? My code for screen redirection is here var win = Alloy

titanium content assist is not working for my simple app

心已入冬 提交于 2019-12-24 13:26:24
问题 This is myFirstApp in titanium but its not showing me content Assist So please give me right suggestion so i can work with better in titanium. 回答1: I have not selected yet Titanium SDk which is If you right click on a project, select "Properties" and then "Project Build Path," what SDK file is selected there? description : refer here 回答2: well, open tiapp.xml and make sure you select an SDK. but I can tell from from my experience with Titanium Studion - intelisense doesn't always work.

Why do I get invalid JSON payload when calling google cloud vision API from appcelerator?

爷,独闯天下 提交于 2019-12-24 12:48:34
问题 I was trying to use Google vision API v1 by Alloy Appcelerator I create a request HTTPClient and call API https://vision.googleapis.com/v1/images:annotate?key=MY_APP_KEY But i have get response text from google : { error = { code = 400; details = ( { "@type" = "type.googleapis.com/google.rpc.BadRequest"; fieldViolations = ({ description = "Invalid JSON payload received. Unknown name \"request\": Cannot bind query parameter. Field 'request' could not be found in request message."; }); } );

How to display push notification in apple watch?

霸气de小男生 提交于 2019-12-24 12:36:15
问题 I am developing an iphone app using Appcelerator, In which I registered for push notification, so when I receive a push notification and device is locked I want to show that in paired apple watch. So my question is Do I need to include any apple watch extension to my project or by default it will display in apple watch? I don't have an apple watch device so I cant test it. 回答1: Your notifications will show up on the Apple Watch automatically: If your iOS app supports local or remote

npm install web3 into Appcelerator Titanium SDK > 6.x

孤街醉人 提交于 2019-12-24 07:46:50
问题 I would like to install web3 into my mobile App project. However I am having issues with accessing it without having a buch of red screens saying I can't access these files within it. I tried to manually update the paths etc; What I've done is in my App folder: npm install web3 Then I see the node_modules folder in my App directory... however, I am not able to require the module in my index.js file with a simple: var Web3 = require('web3'); // throws error var web3 = new Web3(); function

appcelerator retrieve all files from directory

做~自己de王妃 提交于 2019-12-24 06:45:24
问题 im working on an Ipad paint application and i want to retrieve all files from a specific directory, and delete the last saved image. In the appcelerator simulator it all works perfect, but when i run my application on my ipad it stops at var fid = dfo.getDirectoryListing(); I don't know what i'm doing wrong because i know he saves the png files in the test folder on ipad (tested it with alert). //going to the folder, this works he shows alert var dfo = Titanium.Filesystem.getFile(Titanium

Appcelerator: [ERROR] Application Installer abnormal process termination. Process exit value was 1

情到浓时终转凉″ 提交于 2019-12-24 05:54:36
问题 I know this question has been asked lots of times, but answers given did not solve my problem so far. When trying to build an app to either a Android-device/-simulator/-package, Appcelerator comes with this error: [ERROR] Application Installer abnormal process termination. Process exit value was 1 I checked weither all Android-sdk's where installed correctly. In the terminal I did: appc logout -D / appc login I cleaned the project, including deleting Build- and Resources-folder by hand Ran: