Tuesday, November 5, 2019

remote image best practices

You can check out this sample code for remote image
https://gist.github.com/MotiurRahman/57535845ebf40bd2041448991ebd92fc

Secondly, If you would like to resize image before adding it to the window then you can use httpclient the response will be a blob, for instance, this.responseData inside the onLoad callback. Sample code - https://gist.github.com/MotiurRahman/130b7f232a74956b0c26d7ddf4ac6b34

Hope this helps.

Wednesday, October 9, 2019

Monday, April 29, 2019

Social share for android

Sample code


========
 var share_body = "https://play.google.com/store/apps/details?id=motiur_bdresult.bd.com.bdresult";
        var share_subject = "Please download it from the below link";

        var intent = Ti.Android.createIntent({
            action: Ti.Android.ACTION_SEND,
            type: "text/plain"
        });

        intent.putExtra(Ti.Android.EXTRA_SUBJECT, share_subject);
        intent.putExtra(Ti.Android.EXTRA_TEXT, share_body);
        intent.addCategory(Ti.Android.CATEGORY_DEFAULT);
        Ti.Android.currentActivity.startActivity(intent);

========

Hope this help.

Tuesday, March 19, 2019

Thursday, January 24, 2019

Monday, January 14, 2019

Friday, November 2, 2018

Appc is not recognized as an internal or external command

Try the following steps.

1.  uninstalled appcelerator (npm uninstall -g appcelerator).

2. Then uninstalled Node.

3. Also, delete any node directory to make sure any traces of Node was removed.

4. Reinstall Node - https://nodejs.org/en/#download

5. Reinstall appcelerator (npm install -g appcelerator)
6. Run - appc use latest -l trace

7. Run - appc setup -l trace


Hope this helps.