Skip to content

Instantly share code, notes, and snippets.

@Amimul100
Amimul100 / app.js
Created July 7, 2014 08:02
Titanium.Media.openPhotoGallery File Path ?
Hi,
You have to provide the Media type as Ti.Media.MEDIA_TYPE_PHOTO, Use the success function and Use ('image url: ' + image.nativePath) to display the image native path by alert or in API info
Titanium.Media.openPhotoGallery({
mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO],
success:function(event) {
var image = event.media;
alert('image url: ' + image.nativePath);
I have tried your app and was able to salve the problem, you were having. I used require() method instead of Ti.include().
Read the docs on Ti.include() carefully. you will find that,
-It's not supported with Alloy projects.
-It's been deprecated since Titanium SDK 3.3.0
-Ti.include() is discouraged, CommonJS require() is the better solution.
-Calling include from an event handler does not work consistently across platforms.
-Calling include on a non-existent file causes a runtime error.
@Amimul100
Amimul100 / app.js
Last active August 29, 2015 14:03
Ti.Media.AudioPlayer error after sleep/wake fixed
Hello
We tested this issue in my device with given test code. We cant reproduces this error in following test environments. Please check your network connect and other setting. I hope it will solve your problem.
TEST ENVIRONMENT
Ti SDK 3.2.3.GA
Ti CLI 3.3.0-rc
iPad 4. iOS 7
STEP TO TEST:
@Amimul100
Amimul100 / app.js
Last active August 29, 2015 14:03
iOS - ListViewSection.deleteItemsAt with animation causes clipping on elements that move up
/*Hi, we have tested your project, and we encountered the same problem.
TESTING ENVIRONMENT:
Ti CLI 3.3.0-rc
Titanium SDK: 3.3.0.RC and 3.2.X.GA
iOS device 7.1
Hi, Here is a example i Tested in Both iOS and in Android.
Test Result:
In iOS AudioPlayer progress event stops firing when state changes to stopping.
@Amimul100
Amimul100 / gist:fc9d426cb3382312d2b8
Created July 16, 2014 07:26
Property displayHomeAsUp in menu/actionbar not working when set in alloy xml
/*Hi, we have tested this project, and it's working.
h5. TESTING ENVIRONMENT:
Ti CLI 3.3.0-rc
Titanium SDK: 3.3.0.RC and 3.2.X.GA
Min SdkVersion="10", Target SdkVersion="14"
Android Device and Emulator
Hi, We have tested this issue using "Android notifications using intents" test case and it's working.
h5. TESTING ENVIRONMENT
Mac OS
Ti CLI 3.3.0-rc
Titanium SDK: 3.3.0.RC and 3.2.X.GA
Android Device and Emulator
h5. TEST CODE
Hi, We have tested the issue, and encountered the same problem.
h5. TESTING ENVIRONMENT
Ti CLI 3.3.0
Titanium SDK: 3.3.0.GA and 3.2.X.GA
iPhone and iPad Device
h5. TEST CODE
@Amimul100
Amimul100 / gist:fbe161f8ad7512575502
Last active August 29, 2015 14:04
PayPal module for iOS
Hello, Thanks for writing us. Yes, I also find that the Appcelerator marketplace link does not provide the module to download. I searched and found out that the module is not out of service and works fine in iOS.
Also, I found a Github repository of the Paypal module. You can download the module from here. https://github.com/appcelerator/titanium_modules/blob/master/paypal/mobile/ios/ti.paypal-iphone-1.8.0.zip
Again Thanks,
Regards
Mostafizur Rahman
Appcelerator Customer Service
Hello, Rodolfo, Thanks for writing us. Right now titanium does not provide a module for printing documents via Bluetooth for android OS. But logicallabs provide two Android Bluetooth Module, which are available in appcelerator marketplace.
If you would like to purchase, please follow these links here:
1. https://marketplace.appcelerator.com/apps/5221#!overview
2. https://marketplace.appcelerator.com/apps/6611#!overview
You can also create a Native Module connecting to the printer.
To create new titanium module please follow this link: