cross-application

Not Working corss-application activities with taskAffinity in Android 11

一笑奈何 提交于 2021-01-28 20:24:49
问题 I have two application, App A and App B, now I want to start an activity in App B from App A, the launchmode of this Activity is “singleTask”. The order: Activity X (App A) ———> Activity Y (App B) ———> Activity Z (App B, launchMode=“singleTask”) As default AndroidManifest config, there will be two App shown in the Task Manager, I hope users can only see App A label in Task Manager, so when they switch between tasks they don’t click App B. Before Android 11(Android R), I use the attribute

Using startActivityForResult across Android applications

时光怂恿深爱的人放手 提交于 2019-12-31 03:27:06
问题 I have written an application that has an <intent-filter/> so that other applications can start it using startActivityForResult() . When this activity is finished it has created an object that is like: (Application A) public class MyObject implements Serializable { private String name; private String[] items } And set's it on the result: (Application A) getIntent().putExtra("Extra_MyObject", myObject); setResult(RESULT_OK, getIntent()); So the second activity that is recieving this intent has

Create Button on other application window

半城伤御伤魂 提交于 2019-12-22 08:37:02
问题 I wrote below code to create an extra button on Calculator, but the button don't show: var Object1 : TButton ; Hand: THandle; begin Hand:= FindWindow('CalcFrame', 'Calculator'); Object1 := TButton.CreateParented(Hand); Object1.Show ; end; I get the controls on the calculator after running the above code using EnumChildWindow API function and see the created button in control list that EnumChildWindow returns, but why does the created button not show ? As I remember I use this code on windows

Create Button on other application window

泄露秘密 提交于 2019-12-05 15:29:24
I wrote below code to create an extra button on Calculator, but the button don't show: var Object1 : TButton ; Hand: THandle; begin Hand:= FindWindow('CalcFrame', 'Calculator'); Object1 := TButton.CreateParented(Hand); Object1.Show ; end; I get the controls on the calculator after running the above code using EnumChildWindow API function and see the created button in control list that EnumChildWindow returns, but why does the created button not show ? As I remember I use this code on windows XP and it works without problem but now in windows 7 the created button doesn't appear. calculator and

C#: capture windowstate changes of another application (wrote in c/c++ i think)

﹥>﹥吖頭↗ 提交于 2019-12-02 19:04:22
问题 I have a situation where I need to capture windowstate changes of another window (which is not owned by my application and I didn't wrote it. I think it's written in C++). Actually I'm using a separate thread where I constantly do GetWindowState and fire custom events when this value changes (I have the handle of the window), but I would like to know if there is a better method Thanks, P.S. I'm using winform if can be useful in any way 回答1: //use this in a timer or hook the window //this

Keeping a related ASP.NET application's session alive from another ASP.NET application

时光怂恿深爱的人放手 提交于 2019-11-27 09:19:58
I have 2 applications running on the same domain. The flow goes like so: Application 1 Application 1 -> Application 2 Application 2 -> Application 1 Application 1 is WebForms (asp.net framework 2.0), Application 2 is ASP.NET MVC 3 (framework 4.0) While the user is on Application 2 , I'd like to keep the session alive on Application 1 . While building Application 1 , we built in a "KeepSessionAlive.ashx" handler that simply does Session("KeepSesssionAlive") = DateTime.Now() when requested, as described in this article . We did this because this is an assessment application and during some of

Keeping a related ASP.NET application&#39;s session alive from another ASP.NET application

女生的网名这么多〃 提交于 2019-11-26 14:38:30
问题 I have 2 applications running on the same domain. The flow goes like so: Application 1 Application 1 -> Application 2 Application 2 -> Application 1 Application 1 is WebForms (asp.net framework 2.0), Application 2 is ASP.NET MVC 3 (framework 4.0) While the user is on Application 2 , I'd like to keep the session alive on Application 1 . While building Application 1 , we built in a "KeepSessionAlive.ashx" handler that simply does Session("KeepSesssionAlive") = DateTime.Now() when requested, as

How to start activity in another application?

吃可爱长大的小学妹 提交于 2019-11-26 01:39:27
问题 I have application A defined as below: <application android:icon=\"@drawable/icon\" android:label=\"@string/app_name\"> <activity android:name=\"com.example.MyExampleActivity\" android:label=\"@string/app_name\"> <intent-filter> <action android:name=\"android.intent.action.MAIN\" /> <category android:name=\"android.intent.category.LAUNCHER\" /> </intent-filter> </activity> </application> Now in application B, how can I write the code to start the activity in application A? Thanks! 回答1: If you