appcelerator-mobile

Titanium Mobile - PhotoGallery - Success callback - event property - media.file returns null

允我心安 提交于 2019-12-25 07:58:40
问题 Titanium SDK: 2.1.1, Host OS: Mac OS X 10.6.8, Mobile platform: iOS 5 I am un-able to access some properties of 'Blob' object returned by Titanium.Media.openPhotoGallery's success callback. The properties un-accessible are 'file' and 'nativePath', however I can access properties like 'height', 'width' and 'mimeType'. I'm testing on simulator. Here is what I coded so far. Titanium.Media.openPhotoGallery({ success : function(event) { var image = event.media; if (event.mediaType == Ti.Media

Disable autoscroll top on insertRowBefore in a TableView in Appcelerator/Titanium

梦想的初衷 提交于 2019-12-25 02:26:36
问题 i'm currently using a TableView to display some elements in Appcelerator/Titanium. The problem that i have is that when i make a pull to refresh and i call the method " insertRowBefore " to insert new elements at the beginning of the table using the method like following: $.table.insertRowBefore(0,row); The table auto scrolls to top, and it looks a little bit bad when there're a lot rows to insert, i want to keep the current position. Any ideas? 回答1: I have had the same problem it looks very

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

Android Sharing Intent

会有一股神秘感。 提交于 2019-12-24 19:12:47
问题 Is there any way I can add/list my app with other apps like facebook, gmail, whatsapp and viber in sharing intent on android .? here is the sample image 回答1: I don't how this would be done using Titanium, but in the conventional way (using Eclipse), this is how I do it in one of my apps: CODE: In your manifest XML file, add the tag as shown below. This is to be done for an Activity that will handle data shared by the user. For example, if my Activity is named Composer , then the structure

XML Parsing failure on Android but works on iPhone

蹲街弑〆低调 提交于 2019-12-24 10:44:05
问题 Appcelerator Q&A Link: XML Parsing failure on Android but works on iPhone I am preparing a general application which works both for iPhone and Android phones with same code for which Titanium is majorly used for. With the same code I found different results for XML document parsing and my android app does not load it properly. It causes NULLPointer Exception. But the same code works perfectly on iPhone. Can you check this? xyz(languageCode, currentVersion, xmldoc) { try { Ti.API.info('Start

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:

Apple’s World Wide Developer Relations (WWDR) intermediate certificate is not installed

荒凉一梦 提交于 2019-12-24 02:16:27
问题 I am not able to publish my app (AdHoc) via Appcelerator Titanium today, I started to get this error: [ERROR] : Apple’s World Wide Developer Relations (WWDR) intermediate certificate >is not installed. [ERROR] : This will prevent you from building apps for iOS devices or package >for distribution. I checked online and installed the required certificates and even restarted the mac, I still can't build. This is my keychain entries: Any idea how to fix this? 回答1: This bit me today as well. See

Best way to upload image from Mobile to Django server [closed]

喜夏-厌秋 提交于 2019-12-21 21:43:36
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I am created a Mobile application(in Titanmium).where user take pictures in mobile and i need To upload the image from mobile to django server .I am using tastypie for my Api can any one guide me the best way to upload and save the image in server the methods may be in pure django

I need help understanding Titanium Alloy (MVC) development

对着背影说爱祢 提交于 2019-12-21 09:35:01
问题 I'm used to developing in MVC frameworks such as cake and backbone, but I can't get my head around developing in Alloy. There don't seem to be any good examples online. I would be very grateful if someone could give an example of how you would set up a couple buttons that respond to click events and bring you to new windows. I'm also using Ti's map api to show a google map, but I'm not sure how to correctly initialize that either. Thanks! 回答1: here are very helpful links for MVC Alloy http:/