Android ToAppMethod block does not auto generate method prototype ?

1 回表示 (過去 30 日間)
Kiat Nern Yeo
Kiat Nern Yeo 2019 年 7 月 12 日
回答済み: Sruthi Yenugula 2019 年 7 月 15 日
Hello
I notice that the simulink support package, for android, inside the ToAppMethod, the block does not generate a method prototype in the android source code file.
Are we users supposed to create the entire method in the generated app ?
Based on the examples I cannot understand.
Thanks

回答 (1 件)

Sruthi Yenugula
Sruthi Yenugula 2019 年 7 月 15 日
Q) Are we users supposed to create the entire method in the generated app ?
A) Yes the method needs to be added after importing to Android Studio. It is not auto generated. The purpose of this block is to provide a way to the users to add their own code in generated app.

カテゴリ

Help Center および File ExchangeAndroid Devices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by