problem about titanium-mobile-Collection of common programming errors
user2346002
javascript android titanium-mobile networkonmainthread
I read some Q&A in several forums and they said Titanium does the UI operations and net work operations in two different threads. My app uses xhr calls for network operations. But my app crashes because of “android.os.NetworkOnMainThreadException”.is this possible if titanium uses different threads? is there a way to fix it?. listed below the way i’m doing my network calls, Build
daniula
titanium titanium-mobile titanium-modules titanium-alloy
I would like to extend my controller within simple widget.I’ve created two files:app/widgets/mywidget/controllers/base.js app/widgets/mywidget/controllers/index.jsI start mycontroller.js file with line: exports.baseController = ‘base’; and on Android it crashes wi
omegatai
titanium appcelerator titanium-mobile
My app works fine on the iPhone simulator. However, when I launch the Android 2.2 simulator, the app loads (all the tabs appear) but then it crashes before my TableView appears. Here’s th
Nazar Hussain
Anand
digitalbart
titanium appcelerator titanium-mobile
I am trying to figure out how to pass an argument between views in alloy. I will have a have nav group which will have multiple tables, so it maybe 3 to 5 levels deep.I can pass arguments from the controller to the view but I want to pass information (ids of categories) from the view to the next table when it is clicked. I am not sure how to do this in alloy, I always get undefined errors when trying to access the variable. Below is my current setup.In my views I have: index.xml, master.xml, row.xml, detail.xml, subDetail.xmlIndex.xmlHere is my index.jsAlloy.Globals.navgroup = $.navgroup; $.master.on(‘detail’, function(e) {// get the detail controller and window referencesvar controller = Alloy.createController(‘detail’);var win = controller.getView();// open the detail windows $.navgroup.ope
neoJacob
titanium titanium-mobile
How can i parse this JSON feed in Titanium Mobile App . {“data”:{“mat_78”:{“id”:”78″,”title”:”latest title here”,”teaser”:”latest teaser here”,”body”:”latest body here”,”logo”:”http://sites/default/files/6_0.jpg”,”files”:{“323”:{“fid”:”323″,”filename”:”joudi1m.jpg”,”tumb”:”http://sites/default/files/joudi1m_0.jpg”,”large”:”http://sites/default/files/joudi1_0.JPG”,”caption”:”joudi1m.jpg”}
dj aqeel
android titanium titanium-mobile
I am using titanium 3.1.0 GA. The app usually runs fine. But sometimes when launched, it crashes at random occasions on actual device. Following is the screenshot of the crash:This doesn’t seem to be a problem in my application, since most of times and in all possible scenarios, the app launches fine. But sometimes on the same device, the problem occurs. But still I show my code of app.js file, just in case://bootstrap and check dependencies if (Ti.version < 1.8) {alert(‘Sorry – this application template requires Titanium Mobile SDK 1.8 or later’); }(function() {var Window = require(‘ui/common/HomeScreenWindow’);new Window().open();var and = Ti.Android;if(and){var ca=and.currentActivity;if(ca){var intent=ca.getIntent();if(intent.hasExtra(“from_my_background_service
Volatil3
javascript titanium-mobile appcelerator-mobile
I am using multiple window apps being controlle via Tabgroup. I am using .js files for each window which are passed as URL with each window. I also have a function.js file where I am writing routines for
Anand
Nanne
CaptainCarl
ios geolocation titanium titanium-mobile
I’ve got a geolocation handler which deals with my GPS locations and sends them to a PHP service. This works perfectly fine on Android and is easily followed on a google maps web-app i made. However; I’ve tested it on an iPhone 4s and 4 and the coordinates jump all over
Kiran
titanium titanium-mobile titanium-modules
undefined for the second argument when passing value from one screen into another screen// First Screen Code.args [] = {name:’ABCD’,value:’1234′};argsToken [] = {token:’ABC123DEF456′,value:
Michael Frans
android geolocation gps titanium titanium-mobile
i’m creating simple application to get current device’s location when a button pressed. here’s my code :var win = Titanium.UI.createWindow({ title:’Tab 1′,backgroundColor:’#fff’,layout:’vertical’ });var btnGetLocation = Titanium.UI.createButton({title:’Get Location (Once)’,width:’100dp’ });btnGetLocation.addEventListener(‘click’, function(e){getDeviceLocation(); });function getDeviceLocation(){var longitude = 0.0;var latitude = 0.0;var altitude = 0;var heading = 0;var accuracy = 0;var speed = 0;var timestamp = ”;var altitudeAccuracy = 0;var address = ”;var errMessage = ”;if (Titanium.Geolocation.locationServicesEnabled === false){errMessage = ‘Geolocation access turned off’;}else{Titanium.Geoloc
JonoCoetzee
javascript arrays titanium-mobile
I’ve just go into developing apps through Titanium’s Appcelerator and therefore this is my first experience with Javascript as well. Running into a confusing thing with regards to referencing array va
Random
javascript events titanium-mobile
I have a tableView that is populated from a remote source. I add several buttons on each row dynamically, buttons and content of each row are in a for loop. I have an alert dialog box listener within the button listener. Once this appears if confirm (YES) is selected I wan
suresh.g
gjunkie
sql titanium-mobile
I’ve looked around everywhere, but I can’t seem to find exactly what I’m trying to do. It should be fairly simple…I have a db table set up like this:var db = Ti.Database.open(‘playerInfo.db’); db.execute(‘CREATE TABLE IF NOT EXISTS playersTable (id INTEGER PRIMARY KEY, name TEXT NOT NULL, “50”
nilkash
android deployment android-emulator titanium-mobile
hi I have developed small Android application.I want to run it on android device.I copied .apk and run on my android device it’s working fine.But I don’t want to every time copy .apk file when I changing my code.I just wan
user1258134
facebook login authorization titanium titanium-mobile
I’m getting familiar with Titanium mobile, and now I’m developing iOS app with it.I want to create custom login button. I followed some instructions on the web, but still its not working. The code is below.var win = Ti.UI.currentWindow; Titanium.Facebook
ducktyped
ipad ios5 segmentation-fault titanium titanium-mobile
I have a Titanium mobile app that is working fine on iOS simulator, But when I try to install same application on physical device, it stops installation progress in middle. I could see some error trace in organizer console. Here is the error traceJun 15 01:53:41 unknown misagent[147] : profile not valid: 0xe8008011 Jun 15 01:53:41 unknown lockdownd[21] : 001ff000 copy_phonenumber: CTSettingCopyMyPhoneNumber() returned NULL Jun 15 01:53:41 unknown lockdownd[21] : 001ff000 copy_iccid: invalid ICCID from CT/no ICCID available Jun 15 01:53:41 unknown lockdownd[21] : libMobileGestalt copyMobileEquipmentIdentifier: No MEID in CT mobile equipment info dictionary – Check for updatesHelp -> Check for Titanium updatesAfter running the “Check for Titanium updates” I always get an error message that installation failed and to see the log file for detai
Originally posted 2013-11-09 21:07:03.