Tag: android-ndk

How to find memory usage of my android application written C++ using NDK

I am porting a game written in C++ to Android using NDK. I need to know how much memory it consumes while running. I am looking for programmatically way to find the memory usage of Android application written in C++.

Compile NDK code using gnu libstdc++

I want to compile my NDK code using gnu libstdc++, any clue how to do this?

Android PDF Rendering

I would like to render/open PDF file (stored in SDCard) in Android without using in-build application or viewer. 1) We have tried MuPDF open source library but rendering using this library is very slow. 2) Can we use iText library for rendering PDF files in Android (i.e. iText as a PDF Viewer). Is there any […]

Unsatisfiedlinkerror in android (eclipse)

I am trying to run a simple jni code in Android, But all I am getting Unsatisfiedlinkerror . Here is my Java code: package com.lipcap; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class MainActivity extends Activity { /** Called when the activity is first created. */ TextView a; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); […]

Android-NDK-Add Native Support-NDK location not valid in preferences

I’m trying to use the debug mode ‘Debug As’ ‘Android Native Application’, the console says I need to add native support. However, when I follow the instructions, it shows as the following picture: What should I do with the ‘NDK location not valid in preferences’? Any advice would be helpful. I’m new on this. Thx. […]

Android: Activity Dialog / Dialog disappears unexpectedly

I have an application with TabActivity in which I am displaying a dialog each time I get a callback from my engine (NDK C code). I make sure dialog is displayed when app is in resume state. Upon receiving the callback from the engine, I start the NetworkDownDialog activity, but this causes the dialog to […]

ndk-build not found as a command

I have been working with Android SDK for a while & just came across an requirement to use the NDK So, I downloaded the Android NDK for Windows. Jumping on the first example, when I am trying to build the library using the process defined in the NDK example http://developer.android.com/sdk/ndk/overview.html Specifically the command /ndk-build from […]

define LOCAL_SRC_FILES in ndk{} DSL

I would like to know whether it is possible to define LOCAL_SRC_FILES in gradle.build ndk {} block. I am currently using: dependencies { classpath ‘com.android.tools.build:gradle:1.3.0’ } in my top level gradle.build file. My jni module gradle.build file looks like this: apply plugin: ‘com.android.library’ dependencies { compile fileTree(dir: ‘libs’, include: ‘*.jar’) } android { compileSdkVersion 11 […]

android ffmpeg .so download

Anybody knows from where to get compiled .so FFMPEG library for Android? I tried thousand of times to compile the FFMPEG manually on windows-7 using Android NDK but never succeeded. So I think it’s better to use precompiled lib as I’m already using the same same technolgy that used in: https://github.com/guardianproject/SSCVideoProto But the ffmpeg lib […]

Android cmake is compatible with newer NDK versions?

I’m interested in porting a cmake script to Android, so far I have found this projeect , the problem is that it looks like it’s really old, also in the installation files there are only references to the NDK r5b which is a really really old release. There are alternative build scripts for Android ?

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.