Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Methods setSections() doesn't work for Android on Titanium Studio Version: 3.3.0.201407100905

$
0
0

After i updated the titanium sdk 3.3.0 GA, when i run my project on Android, i have this error, that on the Titanium Studio 3.2.3.201404181442 i didn't have, whit the same code.

[ERROR] :  V8Exception: Exception occurred at products/setSections.js:22: Uncaught TypeError: Cannot read property 'items' of undefined
var data = {
    properties: { title: "Sample" }
};
 
var listView = Titanium.UI.createListView({});
 
var listSections = Titanium.UI.createListSection({});
 
listSections.setItems([data]);
 
listView.setSections(listSections);
 
Ti.API.debug(listView.sections[0]); //undefined
 
Ti.API.debug(listView.sections[0].items.length); //ERROR
Titanium.UI.createListView and Titanium.UI.createListSection work fine.

I presume that the methods setSections(), that previously works on iOS and Android, now, doesn't work on Android device.

Any ideas?

Operating System Name = Mac OS X Version = 10.9.2 Architecture = 64bit # CPUs = 4 Memory = 8.0GB

Node.js Node.js Version = 0.10.13 npm Version = 1.3.2

Titanium CLI CLI Version = 3.3.0 node-appc Version = 0.2.14

Titanium SDK:
3.3.0.GA Version = 3.3.0 Install Location = /Users/app/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA Platforms = iphone, mobileweb, android, blackberry git Hash = 787cd39 git Timestamp = 07/11/14 12:36 node-appc Version = 0.2.12

Alloy 1.4.1

Device Samsung galaxy tab 3 Android SDK: 20 Version 4.2.2

Device iPhad Version 7.0.3


Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>