Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4701] I want to open the one app i have build from the other app. (just like you open messenger from facebook)

GitHub Issuen/a
TypeStory
Priorityn/a
StatusResolved
ResolutionNot Our Bug
Resolution Date2016-12-30T12:18:27.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterAndreas Pingas
AssigneeShak Hossain
Created2016-12-30T11:55:30.000+0000
Updated2016-12-30T15:40:18.000+0000

Description

Hello, i want to connect the one app to the other. when i click one button one app i want to be transfered to other one and perform and certain function. the same thing i want to happen at the other app as well. both apps are my projects. i have tried to resolve the issue with the help of your support team on chat and the asked me to write it here. on the one app i have this: http://schemas.android.com/apk/res/android"> on the other app i have this: var isSuccess = Ti.Platform.openURL('URLSCHEMENAME://?'); the above does not work for me... please let me know of the solution as it is very important for our app to perform that way... (on the IOS we are already doing this succesfully...)

Comments

  1. Hans Knöchel 2016-12-30

    You would create an intent and start the external activity. See more in the [Ti.Android.Intent](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.Intent) docs.
  2. Andreas Pingas 2016-12-30

    thank you for your reply! I have tried this as well and i always get a black screen when app is trying to open...This does not happen if the app is build on Alloy... Alloy runs with both ways but i build on "classic" and does not run at all... http://schemas.android.com/apk/res/android"> var intent = Ti.Android.createIntent({ packageName : "my.schemes", className : "my.schemes.MyAppActivity" }); var activity = Ti.Android.currentActivity.startActivity(intent);
  3. Andreas Pingas 2016-12-30

    any other suggestions please?

JSON Source