1

i need to create activity for b4a, so i have 2 questions: 1. is it possible to add java activity to b4a? its possible in unity, but is it possible here? 2. if not, how do i create a library for b4a ?

i tried find answer for that on the net, but nothing.

for example, on unity, if i create a class in java

public class AppayableUnityAdapter extends UnityPlayerActivity

and this class have

protected void onCreate(Bundle savedInstanceState) 

and i create a jar from it and add to the project and to the manifest, it just starts with the application. so is there a way to do that with B4A?

4

1 回答 1

0

我希望我能正确理解你想要做什么。

使用#Extends 属性,您可以从另一个基类扩展 Activity。因此,对于 UnityPlayerActivity,您必须编写如下内容:

#Extends: <packagename>.UnityPlayerActivity

替换为 UnityPlayerActivity 类的正确包名称。

于 2015-04-22T10:21:36.097 回答