titanium

Failed to package application when Android Manifest Portion is changed to

青春壹個敷衍的年華 提交于 2020-01-07 01:24:12
问题 I started a new test app, and downloaded a Holo Theme (by name JSTheme) from Android-holo-colors.com And replaced the /res folder contents with the res folder in that downloaded zip file. But when I replace the line in tiapp.xml <android xmlns:android="http://schemas.android.com/apk/res/android" /> to this, then the compile is not happening. It shows then: [ERROR] : Failed to package application: [ERROR] Application Installer abnormal process termination. Process exit value was 1 <android

Failed to package application when Android Manifest Portion is changed to

£可爱£侵袭症+ 提交于 2020-01-07 01:24:06
问题 I started a new test app, and downloaded a Holo Theme (by name JSTheme) from Android-holo-colors.com And replaced the /res folder contents with the res folder in that downloaded zip file. But when I replace the line in tiapp.xml <android xmlns:android="http://schemas.android.com/apk/res/android" /> to this, then the compile is not happening. It shows then: [ERROR] : Failed to package application: [ERROR] Application Installer abnormal process termination. Process exit value was 1 <android

Android Multi window support using Titanium/ Appcelerator Alloy

萝らか妹 提交于 2020-01-07 01:22:28
问题 In titanium how do I add multi window support as described here: https://developer.android.com/guide/topics/ui/multi-window.html Going into multi-window mode means the height of the app can change. Therefore I need to react to this, so I can show/hide/modify elements as appropriate. I presume that I need to add an event for when the app is resized, but I cannot seem to find out how to do this. In the docs, I have only found information regarding changing orientation: http://docs.appcelerator

Call location coordinates from outside the function

蓝咒 提交于 2020-01-06 23:47:58
问题 I'm try to access the lat and long from getCurrentPosition so that I can create a URL to use with an API. This is working if you call it from within the function or if you set a timeout on an alert(outside the function), as the current position takes a few moments to determine the coordinates. How can I access coords variables and/or the URL one? Thank you var coords1; var coords2; if (Ti.Geolocation.locationServicesEnabled) { Titanium.Geolocation.purpose = 'Get Current Location'; Titanium

Ti.App.fireEvent - Reference error Ti is not defined

╄→гoц情女王★ 提交于 2020-01-06 19:17:22
问题 I have this simple Titanium js script. app.js var win = Ti.UI.createWindow(); var webview = Ti.UI.createWebView({ url: 'logging.html' }); webview.addEventListener('help',function(){ alert('help'); }); win.add(webview); win.open(); logging.html <html> <body> <a onclick="Ti.App.fireEvent('help')">Help</a> </body> </html> when I click on the Help link, the console gives me Reference Error: Ti is not defined . I also tried changing Ti with Titanium, but same error. ------------- EDIT ----------

Failed to open remote server file in Titanium

霸气de小男生 提交于 2020-01-06 17:58:25
问题 I want to get remote data from server but this is giving error that connection not execution. And in Console of Chrome browser shows. Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8020' is therefore not allowed access. XMLHttpRequest cannot load http://domeain.com/json.txt. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8020' is therefore not allowed access

Failed to open remote server file in Titanium

不想你离开。 提交于 2020-01-06 17:58:10
问题 I want to get remote data from server but this is giving error that connection not execution. And in Console of Chrome browser shows. Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8020' is therefore not allowed access. XMLHttpRequest cannot load http://domeain.com/json.txt. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8020' is therefore not allowed access

Altbeacon Android - EnterRegion while app is killed (not background)

放肆的年华 提交于 2020-01-06 15:16:12
问题 I'm trying to listen to Beacons when the app is closed (killed) on Android (swiped off task manager). I'm using Appcelerator Titanium 5+ and for the beacons using the module https://github.com/dwk5123/android-altbeacon-module. The app works just fine when is on background, but not when you close it. I've tried the Altbeacon.setRunInService() method creating an app service on Titanium and it doesn't seem to work. I've also tried to modify the module to implement this http://altbeacon.github.io

Titanium mobile image processing

蓝咒 提交于 2020-01-06 12:51:08
问题 I have an image view, and after getting the image and setting the image view I am having a simple problem. Depending on if it is landscape or portrait, and if the image view is a square, the image view will not be filled. The only way I can achieve this using a landscape photo is to essentially crop it, otherwise it is stretched. The trouble is - by cropping the photo into a square that I can then resize - I end up losing the areas that I have cropped, making way for an incomplete photo.

regular expression search with xml

故事扮演 提交于 2020-01-06 08:44:08
问题 I'm working on parsing an xml feed and ii have the following tag <content:encoded> <![CDATA[ <p><a href="http://www.highlandradio.com/wp-content/uploads/2013/07/An-Grianan-Hotel.jpg"><img class="aligncenter size-full wp-image-54286" alt="An Grianan Hotel" src="http://www.highlandradio.com/wp-content/uploads/2013/07/An-Grianan-Hotel.jpg" width="488" height="244" /></a></p> <p>Gardai are appealing for information about last an armed robbery at An Grianan Hotel in Burt in the earkly hours of