Skip to content

Instantly share code, notes, and snippets.

@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
@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:
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
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);
@Amimul100
Amimul100 / Index.xml
Last active August 29, 2015 14:03
Bottom: 0 on android 4.3; footer "rides" the keyboard up and down as if the bottom of screen.
Hi,
I have tried this code and it's works. I am using a textarea and a view. Also here i set the bottom value of the view 0% to it's parent
~~~
<Alloy>
<Window id="win" backgroundColor="white">
@Amimul100
Amimul100 / app.js
Created July 7, 2014 03:58
Titanium Classic DashboardView
/*
Hi, I have tested this issue in Ti SDK 3.3.0.RC. It’s working good.
Testing Environment:
Titanium SDK: 3.3.0.RC, 3.2.3.GA
Titanium CLI: 3.2.3
iOS simulator and device
We tried to reproduce this issue with a sample test case. It’s working as expected with Titanium SDK 3.2.2 GA. Please try the sample code and let us know if the problem persists.
Testing Environment:
Ti CLI 3.3.0
Titanium SDK: 3.2.2.GA
Android Device
Test Code
@Amimul100
Amimul100 / app.js
Created July 2, 2014 09:37
2DMatrix in Titanium
/*
Hi, I have tested this issue in Ti SDK 3.3.0.RC. It’s working good.
Testing Environment:
Titanium SDK: 3.3.0.RC, 3.2.3.GA
Titanium CLI: 3.2.3
Android and iOS device
@Amimul100
Amimul100 / app.js
Created July 2, 2014 07:13
HTTPClient request with Authorization header
/*
Hi, I have tested this issue in Ti SDK 3.3.0.RC. It’s working good.
Testing Environment:
Titanium SDK: 3.3.0.RC, 3.2.3.GA
Titanium CLI: 3.2.3
Android emulator
@Amimul100
Amimul100 / app.js
Created July 2, 2014 06:34
Download and display an image from a remote web URL using the HTTPClient object
/*
Hi, I have tested this issue in Ti SDK 3.3.0.RC. Its working good.
Testing Environment:
Titanium SDK: 3.3.0.RC, 3.2.3.GA
Titanium CLI: 3.3.0-rc
iOS Simulator 7.1