Community Questions & Answers

Unable to start the Genymotion virtual device.

I have successfully installed genymotion with virtual box from this link by following instruction: http://docs.appcelerator.com/titanium/latest/#!/guide/Installing_Genymotion In the console mode the following message is showing at the last two lines...

Can't use base64 in an image

How can i use base64 code in an image? ~~~ var dp = Ti.UI.createImageView({ image:'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4QBYRXhpZgAATU0AKgAAAAgAAgESAAMAAAABAAEAAIdp AAQAAAABAAAAJgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALqADAAQAAAABAAAAKwAA...

http is undefined

Hello everyone! I am executing this code but I do not understand what is wrong. Error: TypeError: http is undefined at /index.html line 875 > Function (line 58) app/index.js ~~~ var http = require('http'); var options = { host:...

How to make quiz app in Android?

Hello, I want to make a quiz app, which shows Question with YES and NO answer, each answer is stored in sqlite for each question. There is no right or wrong answer, so user can enter any answer for each question and goto next question. There are 2 subjects...

iOS Navigation Window

Reference: 3.2.3 GA, MAC OSX 10.9.5, for iOS The example below shows a simple iOS navigation window with 2 child windows. Simple question: How to correctly create a third or even fourth window with iOS default back buttons using navigation...

View elements positioning delay

Hi there, this has happened to me since I started with titanium in version 3.2.0 .. My index.xml has some basic buttons and labels with their positioning defined as attributes in the index.xml file. What I'm seeing is my view loads with the buttons and...

Webview does not load CSS of website

I've been building a css file for a webpage that's being loaded in by a webview in my app. I'm using Chrome's 'device mode' to view the webpage and how the CSS changes the layout when it's being viewed by an other device. In the device mode everything...

zIndexing issue

Can you not set zIndexing with tss? My alloy: ~~~ <View id="viewWrapper"> <View id="view1">I am view 1</View> <View id="view2">I am view 2</View> </View> ~~~ My...

set accelerometer frequency

Hello. I'm a new appcelerator user and so far I'm really pleased with how easy it is to start building mobile apps! I've been working on a mobile app that uses accelerometer data, and was wondering if there is a way (through the appcelerator API) to set...

window doesn't add view

Hi everyone, i have this strange problem which maybe is very simple: in my application i have 2 windows, a button andone view. At the beginning the view is added to the first window. I'd like that pressing the button the second window adds the view and...

Testing/Migrating from Cordova to Appcelerator

We have been developing apps for a client using Cordova. This client wants to move toward Appcelerator for testing, then future development. This leaves us needing to answer two questions. First, can we use Appcelerator to do functional testing of Cordova...

How to override L ?

In a first try, i tried use my own function instead of L (i called it `i18n`). It works in controllers and javascript code, but it can't works in .tss and .xml (the .tss won't compile and the views just use it as a pure text). For example in a view .xml,...

ACS implementation Help needed !!

Hi, I am trying implement some ACS function in my app but faced some problem. How to implement the following example in Javascript? ~~~ $ curl -b c.txt -c c.txt -X PUT -F "checkin_id=511111945554f742d300000b" -F...

Fetching an api every second

Hello, I've got a general question. In my newest project I have to fetch a REST api every second for getting the actual informations. I can't cache the response. The problem is, that the app after a few minutes become veeeery slow. I do normal xhr...

File.read().text truncate file content

I have a UTF-8 file and using the following codes to get the file content. ~~~ var file = Ti.Filesystem.getFile('myfile.html'); var htmlContent = file.read().text; Ti.API.debug(htmlContent); ~~~ It works fine until I have a file containing the LINE...

Ant build android module project failed

It showed the infomation below BUILD FAILED C:\ProgramData\Application Data\Titanium\mobilesdk\win32\3.4.1.GA\module\android\build.xml:328: c:\Users\XXX\Documents\Titanium_Studio_Workspace\mod uletest\android\build\generated\libs does not exist.

PushNotifications

Hello, I'm want to add push notification service to my app, I tried some scripts but I think that something is missing, to do that I: 1- Cloud and cloudPush Module 2- I configured the apps (for example for the Android App, I added GCM Key and the...

How to find Bluetooth version

I need to be able to use bluetooth beacons, but they only work with version 4.0 of bluetooth. When using my galaxy tab 2 it only has bluetooth version 3 so my app crashes. I need to figure out how to test for bluetooth versions before loading the beacon...

ACS Atomic Increment Operator $inc Not Working ??

Hi, I am trying to use the '$inc' atomic increment operation using the ACS '$inc', but this does not seems to work. I used 'Update' method with the following code for custom fields 'counter': ~~~ { 'counter': {"$inc":12} } ~~~ but the...

Unable to generate Mobile Web App

Hi when I try to run any of my projects, I get the following error [INFO] Alloy compiled in 0.3862s [INFO] : Alloy compiler completed successfully [INFO] : Copying project files [INFO] : Finding all Titanium API dependencies [INFO] : Creating...

Showing 151-200 of 65,482 1 2 3 4 5 6 7 8 91310