我可以使用撰写和标准活动吗?
我找到了一个很好的教程,如何用JetPack组成日历,因为我创建了一个空的活动以实现它。
由于它是给学校的,所以我不能只使用撰写来开发我的应用程序,我的问题是,我是否可以使用一些用曲目制成的活动,而其他具有普通的Kotlin代码和XML?
我正在测试它,当我使用意图从撰写活动变为标准活动时,它一直在崩溃。
有没有办法使用两种方法? 谢谢你!
I found a good tutorial how to make a calendar with Jetpack Compose, for that I created a Compose Empty Activity to implement it.
Since it's for school I can't use only compose to develop my app, my question is if I can have some activites made with compose and others with normal kotlin code and xml?
I was testing it and it keeps crashing when I use an Intent to go from a compose activity to a standard one.
Is there a way to use the two methods?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的!
您可能想问一个单独的问题,在哪里提供崩溃的堆栈跟踪以及导致崩溃的代码。确保您的清单中的所有活动都有
< activy>
元素!请参阅此答案以展示启动第三方活动;要启动自己的一个,请为其构建适当的意图
。Yes!
You might want to ask a separate question, where you provide the stack trace of your crash and the code that is causing the crash. Make sure that all of your activities have
<activity>
elements in your manifest! See this answer for a demonstration of launching a third-party activity; to launch one of your own, construct the properIntent
for it.