Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Facebook Share

$
0
0

my problem at that code Fire once when try to fire it again not response

var intFB = Ti.Android.createIntent({
                action : Ti.Android.ACTION_SEND,
                packageName : 'com.facebook.katana',
                type : "image/jpeg",
                //url:'widget.js'
            });
            // Tells the OS to reset the activity if needed or launch the application if it has not already been launched
//intFB.flags |= Ti.Android.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED | Ti.Android.FLAG_ACTIVITY_SINGLE_TOP;
 
            if (args.status) {
                intFB.putExtra(Ti.Android.EXTRA_TEXT, args.status);
                intent.putExtra(Intent.EXTRA_TEXT, args.status);
                intent.putExtra(Intent.EXTRA_TITLE, args.status);
intent.putExtra(Intent.EXTRA_SUBJECT, args.status);
            }
 
            // change type according to the content
            if (args.image) {
                intFB.type = "image/*";
                intFB.putExtraUri(Ti.Android.EXTRA_STREAM, args.image);
            }
 
 
 
          //intFB.addCategory(Ti.Android.CATEGORY_LAUNCHER);
      intFB.addCategory(Ti.Android.CATEGORY_BROWSEABLE);
            Ti.Android.currentActivity.startActivity(intFB);

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>