Skip to content

Instantly share code, notes, and snippets.

@Amimul100
Amimul100 / app.js
Last active September 8, 2015 09:32
/*Hello, I have tested this with latesat SDK 4.1.0.GA in Android platform 5.1.0, Device Nexus 7.
HTTPClient ondatastream is working as expected.
*/
var url = "http://www.7-zip.org/a/7za920.zip";
var xhr = Ti.Network.createHTTPClient({
onload : function(e) {
Ti.API.info('success');
Ti.API.info('done');
},
@Amimul100
Amimul100 / gist:86d6005b8ba769cb4a13
Created August 26, 2014 11:21
List View with nested Child Template in a Child Template...
Hello, Mauro Parra-Miranda here is the Classic Code that you asked for.
CODE SEGMENT
app.js
var win = Ti.UI.createWindow({backgroundColor: 'white'});
var sections = [];
@Amimul100
Amimul100 / gist:f6432f7ddb356195743f
Created August 25, 2014 05:20
Simulator Error After Titanium Update
Hello, Here is a solution that might work for you. I haven't experienced this problem after upgrading, So let's start with the basics.
* Confirm that the Studio configuration is still correct. Open the tiapp.xml file, click the "Configure" link below the list of platforms. Expand Platforms and select iOS. Make sure the iOS SDK Home is correct. You might want to click Refresh, and you might need to run the xcode-select statement that's shown on that page.
* Reset your simulator. Open it (outside of Studio, like via Xcode). Then, from the iOS Simulator menu, choose Reset content and settings
Hope this helps. I'm guessing the second one will do the trick. Unfortunately, it means any test apps you installed to that simulator will be gone.
Thanks.
@Amimul100
Amimul100 / gist:d79999069ad19a4d3043
Created August 25, 2014 04:47
Titanium Android Module Developer Guide
Hello, Here is Guide to Build a Android Module in Titanium, And Creating the dist.zip file. For More Details Please follow this link below.
http://docs.appcelerator.com/titanium/latest/#!/guide/Android_Module_Development_Guide
Titanium Android Module Developer Guide
Requirements:
@Amimul100
Amimul100 / app.js
Created August 23, 2014 10:17
Android Equivalent to iOS indexed UITableView
/*
Hello, Here is a workaround which can be Android equivalent to iOS indexed UITableView.First, Make a view and add it to left or right on the page where you want to put it on the window. add another 26 view in it for A-Z.
On the click of alphabet's view you can scroll the table by scrollToIndex( ).
*/
{code}
@Amimul100
Amimul100 / app.js
Created August 20, 2014 10:38
WebView Test
/*
CLI version 3.3.0,
Titanium SDK version 3.3.0.GA
*/
TEST CODE
var webview = Titanium.UI.createWebView({url:'http://www.appcelerator.com'});
@Amimul100
Amimul100 / gist:6eee49d93dfe4cde69e8
Created August 19, 2014 11:42
Missing Required Android SDK Tool: zipalign Solution
Hy, this Problem Can be Solved, doing the following
In your Android SDK folder...
- Copy zipalign.exe from "android-sdk\tool"
- Paste zipalign.exe on android-sdk\build-tools\17.1.0
Hope it will solve your Problem.
@Amimul100
Amimul100 / gist:9fd2f5bb95aad908570a
Created August 13, 2014 09:17
TextField In TableViewRow
Hello, I have tested this Problem and it's working
TESTING ENVIRONMENT
CLI version 3.3.0,
Titanium SDK version 3.3.0.GA
Mac OS
CODE SEGMENT
@Amimul100
Amimul100 / alloy.js
Created August 13, 2014 08:59
Map V2 for Alloy Project
/*
Hi, I have tested this issue in Ti SDK 3.3.0.GA. Its working good.
Testing Environment:
Titanium SDK: 3.3.0.GA, 3.2.3.GA
Titanium CLI: 3.3.0-GA
Android 4.4.2 KitKat
/*
Hi, I have tested this issue in Ti SDK 3.3.0.GA. Its working good.
Testing Environment:
Titanium SDK: 3.3.0.GA, 3.2.3.GA
Titanium CLI: 3.3.0-rc
Android 4.4.2 KitKat