appcelerator-mobile

OpenGLRenderer: Bitmap too large to be uploaded into a texture in android titanium

痴心易碎 提交于 2019-12-08 06:42:40
问题 In Titanium appcelerator, when I capture an image and show in an ImageView , image is not being shown, instead, below warning is being shown. [WARN] : OpenGLRenderer: Bitmap too large to be uploaded into a texture (1840x3264, max=2048x2048) How to solve this problem? Whereas in tablet it is working fine, but in high resolution device its not working. This one occurs when I insert an image into a ImageView when shot from camera or pick from the gallery. 回答1: This is because different phones

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

白昼怎懂夜的黑 提交于 2019-12-04 17:12:27
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 or using tastypie .Anything will be helpful. and also best technique to acheieve this. Ambroise There are (at least) two ways to handle file upload with Django / Tastypie : 1/ As stated in my comment : you can make use of Tastypie's features regarding the matter. Django-tastypie: Any example on file upload in POST? 2

Building Native View using iOS module and using them in Titanium

夙愿已清 提交于 2019-12-04 13:19:49
问题 I want to build an iOS module in which I have a viewController class with its .xib file. now the problem is how to call that view from my titanium code. I know that there are view proxy available but dont know how to use them due to not so good documentation. Till now I have created a module where non graphical data can be passed but what about getting View controller from my module. I have already checked the appcelerator wiki, but that was not helpful Any tutorial that will guide me will be

I need help understanding Titanium Alloy (MVC) development

一曲冷凌霜 提交于 2019-12-04 03:20:36
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! here are very helpful links for MVC Alloy http://developer.appcelerator.com/question/143969/alloy-mvc-examples Here are my collection of helpful links that I

How to Call a WebService in titanium using javascript

给你一囗甜甜゛ 提交于 2019-12-03 16:41:16
I am new to titanium and and want to call a web service from my titanium app. The webService returns the json response. As I am aware of calling the webService using XMLRPC but very confused regarding json. Until now, I know that we have to create the HTTPClient . var request = Titanium.Network.createHTTPClient(); request.open("POST", "http://test.com/services/json"); request.onload = function() { var content = JSON.parse(this.responseText);//in the content i have the response data }; request.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); //did not understand this line

How can i add jquery to Appcelerator Titanium Mobile Work?

帅比萌擦擦* 提交于 2019-12-03 15:04:25
问题 Is it possible to integrate the jquery in to Titanium Appcelerator and will it work properly? Else we can't integrate the jquery in titanium appcelerator? any one help me? 回答1: What exactly are you trying to do? I'm not sure that it work well without the DOM 回答2: you can use basically any JS library you want in a WebView. Outside of a WebView, you can use basically any JS library that does not require the DOM (like json2.js, etc.) (from here) 回答3: Check out the following forum. YOu can use

android:back (device back button) event in Titanium not working

江枫思渺然 提交于 2019-12-03 07:40:25
Hi i am working on android application development.I am using Titanium studio for development. I create a simple application.I want to capture the device back button event in my application because I don't want to user android default tabs in titanium.I am creating my own tabs.I tried following code : :list.js var expt = Titanium.UI.currentWindow; expt.addEventListener('android:back', function (e) { Ti.App.fireEvent('expt_back_event'); }); :app.js Ti.App.addEventListener('expt_back_event',function(e) { alert('hiiii in side event listener'); }); But its not working instead of giving pop-up it

iOS LocationManager is not updating location (Titanium Appcelerator module)

蓝咒 提交于 2019-12-02 10:28:41
I've made Appcelerator Titanium Module for fetching device's rotaion and location. Source can be found on GitHub . The problem is that it fetches only one cached location but device motion data is OK and it is refreshing. I don't use delegate, I pull that data in my Titanium Javascript Code. If I set "City Run" in Simulator -> Debug -> Location nothing happens. The same cached location is returning. Pulling of location is OK because I tried with native app wich does this: textView.text = [NSString stringWithFormat:@"%f %f\n%@", locationManager.location.coordinate.longitude, locationManager

Should I learn native iOS development (Objective-C) or perfect my knowledge in Javascript and Titanium Appcelerator? [closed]

萝らか妹 提交于 2019-11-30 13:23:02
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . Basically I need your advice my good stack friends :D For the last six months I am exploring/learning/developing iOS apps with Titanium Appcelerator mobile framework. My experiences are mostly good or very good. Some negative parts of Titanium would be building time,

Should I learn native iOS development (Objective-C) or perfect my knowledge in Javascript and Titanium Appcelerator? [closed]

我怕爱的太早我们不能终老 提交于 2019-11-30 07:13:44
Basically I need your advice my good stack friends :D For the last six months I am exploring/learning/developing iOS apps with Titanium Appcelerator mobile framework. My experiences are mostly good or very good. Some negative parts of Titanium would be building time, especially when testing on a device. When using only Xcode (native), your app starts immediately on a device, while with Titanium you have to wait for a while (1-2 minutes) for your app to build and then to install it on a device (iTunes or iPhone Configuration Utility). Basically everything that you can do natively you can do