Calificación:
  • 0 voto(s) - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5
C date app android
#1
Hello, Guest!

Article about c date app android:
Stack Overflow
Write applications in C or C++ for Android? [closed] As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise,
Write applications in C or C++ for Android?

Click here for C date app android


[closed] As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. I'm trying to develop/port a game to Android, but it's in C, and Android supports Java, but I'm sure there must be a way to get a C app on there, anyone knows of a way to accomplish this? The G1 doesn't allow root access by default, and there are a lot of restrictions in place regarding what can be executed outside of the 'Android' environment. I wouldn't have much hope finding a way to execute native code from within Android. 20 Answers 20. For anyone coming to this via Google, note that starting from SDK 1.6 Android now has an official native SDK. You can download the Android NDK (Native Development Kit) from here: https://developer.android.com/ndk/downloads/index.html. The Android NDK is a toolset that lets you implement parts of your app in native code, using languages such as C and C++. For certain types of apps, this can help you reuse code libraries written in those languages. For more info on how to get started with native development, follow this link. Sample applications can be found here. Normally, you have to: Install Google Android NDK. It contains libs, headers, makfile examples and gcc toolchain Build an executable from your C code for ARM, optimize and link it with provided libs if required Connect to a phone using provided adb interface and test your executable. If you are looking to sell an app: Build a library from your C code Create simple Java code which will use this library Embed this library into application package file Test your app Sell it or distribute it for free. Google has released a Native Development Kit (NDK) (according to http://www.youtube.com/watch?v=Z5whfaLH1-E at 00:07:30). Hopefully the information will be updated on the google groups page (http://groups.google.com/group/android-ndk), as it says it hasn't been released yet. I'm not sure where to get a simple download for it, but I've heard that you can get a copy of the NDK from Google's Git repository under the donut branch. The official position seems to be that this isn't something you'd ever want to do". See this thread on the Android Developers list. Google envisage android running on a variety of different devices (CPUs, displays, etc). The best way to enable development is therefore to use (portable) managed code that targets the Dalvik VM. For this reason, the Android SDK doesn't support C/C++. BUT, take a look at this page: Android includes a set of C/C++ libraries used by various components of the Android system. These capabilities are exposed to developers through the Android application framework. The managed application framework appears to be layered on-top of these libraries. The page goes on to list the C/C++ libs: standard C library, media, 3D, SQL lite, and others. So all you need is a compiler chain that will compile C/C++ to the appropriate CPU (ARM, in the case of the G1). Some brief instructions on how to do this are here. What I don't know is where to find descriptions of the APIs that these libraries provide. I'd guess there may be header files buried in the SDK somewhere, but documentation may be sketchy/missing. But I think it can be done! Hope thats useful.
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)