Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
enderx1
Old
#1  
Member - OP
Thanks Meter 0
Posts: 34
Join Date: Jun 2009
Question Android NDK usage

Hey there, I'm kinda new to android and coding in general, but I was wondering if someone could answer a few questions I had about the android NDK, preferably by someone that has actually used it.

1. How big of a performance boost could I get by using the NDK with a program that is currently runs slow due to a large amount of math processed each loop?

2. How hard is it to transfer data between the java and C/C++ code?

3. Is it possible to get input within the C++ code from the touch screen or keyboard?


Thanks, and sorry if this is the wrong thread for this, I wasn't sure where to put it.
 
xidominicanoix
Old
#2  
xidominicanoix's Avatar
Senior Member
Thanks Meter 3
Posts: 1,077
Join Date: Oct 2006
Location: FL
Quote:
Originally Posted by enderx1 View Post
Hey there, I'm kinda new to android and coding in general, but I was wondering if someone could answer a few questions I had about the android NDK, preferably by someone that has actually used it.

1. How big of a performance boost could I get by using the NDK with a program that is currently runs slow due to a large amount of math processed each loop?

2. How hard is it to transfer data between the java and C/C++ code?

3. Is it possible to get input within the C++ code from the touch screen or keyboard?


Thanks, and sorry if this is the wrong thread for this, I wasn't sure where to put it.
i havent written anything with android yet but i have done java and c++ for a bit so i can tell you that for the most part, translating from java to c++ shouldn't be TOO difficult IMO


ROM: bruce2728's CM10 KANG

Google Nexus One
ROM: CM7


Programs by JDuverge (aka ME)
Find and Pull™
Ultimate Extractor
 
Post Reply+
Tags
android, c++, input, ndk, preformance
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...