Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5675] Android Intent Service Crashing on Samsung Note 3 Device

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2018-04-03T04:37:20.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio, Titanium SDK & CLI
LabelsAndroid5, Samsung
Reportersonufana4u
AssigneeShak Hossain
Created2018-03-26T09:24:56.000+0000
Updated2018-04-03T04:37:20.000+0000

Description

When we click to share something then App crashes.Its happening on Samsung Galaxy Note 3.Just sharing the code how am calling intent below.Could you please look into this ?
		var intent = Ti.Android.createIntent({
			action: Ti.Android.ACTION_SEND
		});

		// add text status
		if (args.status){
			intent.putExtra(Ti.Android.EXTRA_TEXT, "#IntentTest "+args.status);
		}

		// change type according to the content
		if (args.image){
			intent.type = "image/*";

            intent.putExtra(Ti.Android.EXTRA_TITLE, "Intent Test");
            intent.putExtra(Ti.Android.EXTRA_TEXT, "#IntentTest "+args.status);
			intent.putExtraUri(Ti.Android.EXTRA_STREAM, args.image);
		}else{
			intent.type = "text/plain";
			intent.addCategory(Ti.Android.CATEGORY_DEFAULT);
		}

		// launch intent
	    Ti.Android.currentActivity.startActivityForResult(
	    	Ti.Android.createIntentChooser(intent, args.androidDialogTitle),
	    	function (e) {
	    		console.warn('>>>>>>>>>>>> createIntentChooser callback}}}}', e);
	    	}
	    );

Comments

  1. Rene Pot 2018-03-28

    Hi [~sonufana4u], do you have any related crash logs? Does this happen on other devices running Android 5 as well?
  2. sonufana4u 2018-03-29

    Hello Rene.Actually bug is posted by client.One of the users facing this issue on his device.Client shared me few crash logs but am not sure which one belongs to this.I'll share crash logs soon.I tried on other Android 5 but didn't get the issue. *Report from user :* I upgraded phones two days ago and no longer have the issue on my new Pixel 2 XL. The issue remains on my Samsung Note 3. I still have the Note 3 with the app installed and was able to duplicate the issue just now. When I try to touch the share button next to the photo it will hesitate and then the app will crash and an error message saying "Unfortunately XYZ has stopped." appears. I reported the issue again and have included the logs.
  3. Rene Pot 2018-03-29

    [~sonufana4u] Hi, so this ticket is related to AC-5683?
  4. sonufana4u 2018-03-29

    Hello Rene, No that was another issue..I'll try to share crash log with you soon..
  5. Sharif AbuDarda 2018-03-30

    Hello [~sonufana4u], Please share the crash log here with us. We will investigate the issue. Thanks.
  6. sonufana4u 2018-04-02

    Hello Sharif, Due to long weekend am not able to collect crash log from Client.Need some more time.Will share with you soon.
  7. sonufana4u 2018-04-03

    Hello Sharif / Rene, Bug was reported by end user and its forwarded to me by client.I was not able to reproduce on emulator and now even client also not able to reproduce it.So client has closed this issue. So requesting you close this ticket and mark as *Invalid* Thank you

JSON Source