安卓:合并两个不同势应用到一个 [英] Android: merging two diffrent application into one
问题描述
我有两个不同的application.In一个单独的项目我要开始选择,如果用户单击选项1然后去第一个应用程序,如果单击Next按钮,然后到其他应用程序的应用程序的源$ C $ C。我做了一个主页的按钮。现在我该怎样完成这一任务。
I have source code of two different application.In a separate Project I want to start an application with choice that if a user click option 1 then go to first application and if click on next button then to other application. I made a main page with buttons. Now how do I achieve this task.
推荐答案
您可以做一个新的活动,2个按钮,使其MainActvity。从第一应用程序的按钮1个呼叫MainActivity和第二应用的第二个按钮调用MainActivity使用意图和startActivity()。
You can make a new Activity with 2 buttons and make it MainActvity. From button 1 call MainActivity of the 1st app and from 2nd button call MainActivity of 2nd app using Intent and startActivity().
,并在AndroidManifest.xml中必要的修改
And make necessary changes in AndroidManifest.xml
这篇关于安卓:合并两个不同势应用到一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!