appcelerator-titanium

Highcharts : using same div to load a chart multiple times with different series data

感情迁移 提交于 2019-12-24 10:54:08
问题 I have written a function that creates a chart based on some graphdata as parameter and renders it to a div . Now I am reusing this function to generate same type of chart on same div to load different series data . The problem is I can see the graph rendering shows previous charts labels for a second and then the new graph gets loaded with new labels . I dont want to see the old graph when my new graph gets loaded . Please help . My chart function : <html> <head> <script src="./jquery.min

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:

JS how to check empty String and Space [duplicate]

两盒软妹~` 提交于 2019-12-23 07:58:06
问题 This question already has answers here : How to check empty/undefined/null string in JavaScript? (44 answers) Closed 3 years ago . Help me pls if(value == ""){ // do anything } but I need to check space " " (2,3,... space is include) is the same way of empty String ps. sorry in my English 回答1: A regex can easily solve this problem. if (/^ *$/.test(value)) { //string contains 0+ spaces only } 回答2: I'm not sure I'm understanding correctly. Do you mean like: if (value == "" || value == " "){ //

Appcerator - Android 6 image don't load

梦想与她 提交于 2019-12-23 02:25:10
问题 External images don't load in image view in Android 6, using de sdk 5.1.2GA Any tip ? This error in console: Exception:java.io.FileNotFoundException $.img.image = "http://matematicazup.com.br/wp-content/uploads/2014/03/prof-marcelo-ferbat-perfil-300.png"; 回答1: There is a JIRA-ticket regarding this issue (https://jira.appcelerator.org/browse/TIMOB-19899) which has been resolved. The fix is included in Titanium SDK 5.2.0+. Thanks! 来源: https://stackoverflow.com/questions/35315532/appcerator

app icon is missing for iTunes app accelerator in Xcode Organizer (appcelerator)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 01:46:16
问题 When I build my titanium app in appcelerator, the app icon is missing from the organiser when I build it for app store submission How can I resolve this thanks Edit: In itunes connect, this is how it appears after I select the build: Icon is missing. 回答1: Yes we need to have the iTunesArtwork(512X512) and iTunesArtwork@2x(1024X1024) in the folder Resource->iphone-> here we need to have that 2 files. 回答2: I've met the same problem recently. I don't know the real reason behind that, but I find

Unable to Open Appcelerator Studio after fresh Install

吃可爱长大的小学妹 提交于 2019-12-22 18:49:12
问题 I am stuck with an issue. I have installed the Appcelerator studio on my Macbook from Appcelerator dashboard and it was installed successfully. But when I try to open it, below message appears. I also tried to install using the command-line but no success. After opening the log file mentioned in the message I found below log !ENTRY org.eclipse.osgi 4 0 2018-03-06 23:19:28.145 !MESSAGE Application error !STACK 1 java.lang.RuntimeException: Application "com.appcelerator.titanium.rcp.application

Apply Blinking border to a tableview in appcelerator

雨燕双飞 提交于 2019-12-22 01:23:57
问题 I have a doubt in appcelerator. Does any body know how to apply a blinking border to a table view in appcelerator. I applied a border color to tableview, but i need to blinking it with other color. Any help will be deeply appreciated. Thank you. 回答1: try using javascript setInterval. setInterval(function() { if (table.borderColor == '#F00') { table.borderColor = '#0F0'; } else { table.borderColor = '#F00'; } }, 500); First set a borderColor in tableView and interchenge it with other color

Titanium - Facebook login doesn't show on device

只谈情不闲聊 提交于 2019-12-13 00:58:12
问题 I'm trying to create a login with Facebook using the Facebook modules that comes in Titanium framework. When I do a button click on the iphone emulator I get the login screen to Facebook. But when I install on the device I don't get the login screen - as if doesn't do anything (no errors). I've placed an alert to see that that place of code is called when the button clicks - it does. here's my code on button click: Alloy.Globals.Facebook.permissions = ['public_profile', 'user_friends', 'email

Error 2500 when trying to get Facebook Email in Appcelerator Titanium

女生的网名这么多〃 提交于 2019-12-12 05:07:41
问题 I try to get email address of a user logged in via Facebook Module. But get error every time {"error":"An error code 2500 has occured. An active access token must be used to query information about the current user."} My code is: var viewClick = function() { fb.logout(); fb.initialize(); fb.authorize(); }; var facebookLogged = function(e) { fb.requestWithGraphPath("me?fields=name,email,first_name,last_name", {}, 'GET', function(result) { Ti.API.info(JSON.stringify(result)) // var data = JSON

How to limit duration limit recording and quality of a video with Appcelerator

耗尽温柔 提交于 2019-12-12 04:59:27
问题 I am making an application that allow users to post their videos. I just want to limit the duration and the quality of the videos. In iOS, no problem with different options. For Android, I use intent to launch camera. I saw that we have to possibility to set duration with (it's an example from android developer guide) : intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1); intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 8); I tried to do this, from different ways but impossible. Here is a part