Help needed in creating Native GUI based android application (No JAVA)

574 views
Skip to first unread message

Manoj kumar

unread,
Jul 24, 2014, 3:16:21 AM7/24/14
to andro...@googlegroups.com
Dear all,

Is it possible to create a native application having GUI with out using Java?

I wanted the following UI components to be shown in my native app. Basically I am trying to create a video player view.

1. Buttons and its event implementations
2. Surface View

Please suggest me on this.

Thanks & Regards,
Manoj.

NoAngel

unread,
Jul 25, 2014, 12:54:06 AM7/25/14
to andro...@googlegroups.com
I tried it many times. You can't do it using documented NDK APIs.
If You want to implement a part of Your native activity app, using Android View, You may create this view on Java, then make app Activity as subclass of native activity.
Then call startActivity() for your Android View, when You done, call finish(), and continue run in native activity.
I dont know any way to run native activity and Android View simultaneously.
If You want sample code download Tegra SDK, install and check samples folder.

2014年7月24日木曜日 16時16分21秒 UTC+9 Manoj kumar:

Manoj kumar

unread,
Jul 25, 2014, 1:06:32 AM7/25/14
to andro...@googlegroups.com
Thanks NoAngel.

One more query...can we create Native Window or surface without using Native Activity and make it executable?

W. Boeke

unread,
Jul 25, 2014, 6:27:55 AM7/25/14
to andro...@googlegroups.com
Hi Manoj,

I don't agree with NoAngel, because it is perfectly doable to create a GUI without any java. I built a real GUI toolkit plus demo's, see http://members.chello.nl/w.boeke/ct-gui/index.html. You can use it for Android and for Linux, which is convenient because Linux enables a fast edit-compile-test cycle. If you only need some buttens, then maybe this toolkit is a bit of overkill though.

Glenn Kasten

unread,
Jul 25, 2014, 10:06:45 AM7/25/14
to andro...@googlegroups.com
For the simplest applications with very little interaction with the rest of the platform,
and search for "native activity". Also read the example code here:

However, for most applications, we recommend you write the application
mostly in Java using SDK, with JNI calling to your native code only where you need it.
Typically this is for performance-sensitive code or to use your existing native code.

Manoj kumar

unread,
Jul 25, 2014, 10:35:48 AM7/25/14
to andro...@googlegroups.com
Hi Boeke,

Thanks a lot for the help. This is what I am looking for. Great tutorial for beginners!

Manoj kumar

unread,
Jul 29, 2014, 12:29:02 AM7/29/14
to andro...@googlegroups.com
Hi Boeke,

Is there any way to send the data using command line to native activity.

For Java activity, I know how to do it (am start -n <component> -e "key" "value"). Similarly I would like to send some data to native activity. And how to receive the data in Native Activity? if possible can you please tell me.

Thanks & Regards,
Manoj.


On Friday, 25 July 2014 15:57:55 UTC+5:30, W. Boeke wrote:
Reply all
Reply to author
Forward
0 new messages