Questions tagged [native]

An application designed to run in the computer environment (machine language and OS) being referenced. The term is used to contrast a native application with an interpreted one such as a Java application that is not native to a single platform.

An application designed to run in the computer environment (machine language and OS) it is being run in. The term is used to refer to a locally installed application in contrast to various other software architectures. For example, it may contrast a native application that runs by itself with an interpreted one, such as a Java applet, that requires interpreter software in the machine. A native app may be contrasted with an emulated application written for a different platform and converted in real time to run. In addition, a native app may be contrasted with a Web application that is run within the browser.

Useful Links: native-app-vs-mobile-web-app-comparison

4712 questions
2
votes
3 answers

Know if a variable is a native object in javascript

is there a way to know if a variable passed into a function is a native object? I mean, i have a function that requires only native objects as arguments, for every other type of variable it throws an error. So: func(Array); //works func(String);…
mck89
  • 18,918
  • 16
  • 89
  • 106
2
votes
0 answers

Android read with O_DIRECT from native code

I am trying to read a file with O_DIRECT flag, from native code. I use the _SC_PAGESIZE to align the buffer and I read in chunks of 4KB. When I read the file from internal storage, it works fine. However, when I read from external, emulated storage…
drgr
  • 43
  • 8
2
votes
1 answer

Calling into native c++ code from c# with out parameter

So i'm trying to run a c++ native function in a dll from some c# code. And it works fine, however, when i use 'out' in my function call i get a memory access violation. This is what it looks like: C# function [DllImport(pluginName)] public static…
Enzign
  • 43
  • 5
2
votes
0 answers

Create a custom TableView like the reminder native iOS App

I want to create a TableView like the reminder native iOS app in its design. The tableView is simple to achieve, what I want to make is the rounded corners from the top of the cell. What I can do it making a full rounded corners view like this: //…
sazz
  • 3,193
  • 3
  • 23
  • 33
2
votes
2 answers

Disabling static library build in Gradle

I am using gradle to build a JNI library for our java project and it works fine, however I can't seem to figure out how to keep gradle from building both shared and static versions of the file. I'd like to disable the build of the static library to…
normen
  • 21
  • 3
2
votes
2 answers

Open standard for native RTC with no plugins

Recently I have worked using WebRTC and I'm wondering if it would make more sense to implement a Real Time Communication open standard at a native level. Let's say that instead of a web browser API we have a native API that any native app,…
pgpb.padilla
  • 2,318
  • 2
  • 20
  • 44
2
votes
1 answer

Gradle C (native) task output file/files (to be used in other tasks/projects)

Using the c plugin, one can specify executables and libraries. I'm using a string tag to specify a library with an OS specific name (later used in a JNI setup). import org.apache.commons.lang3.SystemUtils as SU buildscript { repositories { …
mvniekerk
  • 69
  • 8
2
votes
2 answers

Run Php website native on Ipad

Hi Folks thank you for reading in advance , i made a web application running on html , css and php works fine . The application is something that would be used when working in the field and regularly 3G or 4G isn't available so calling the…
Kevin G
  • 2,325
  • 3
  • 16
  • 30
2
votes
1 answer

Getting the native word size from Java VM

Is there an easy way to get the native sizeof(int) from the Java VM running on a particular platform? The value I want is not Integer.SIZE, in particular - the size of a Java int, but rather what you'd get from sizeof(int) in C on the platform. I…
BadZen
  • 4,083
  • 2
  • 25
  • 48
2
votes
2 answers

Uncatchable AccesViolationException

I'm getting close to desperate.. I am developing a field service application for Windows Mobile 6.1 using C# and quite some p/Invoking. (I think I'm referencing about 50 native functions) On normal circumstances this goes without any problem, but…
Roy
  • 648
  • 9
  • 17
2
votes
1 answer

Android 5.0 ART native DeleteGlobalReference(jobject) is failing

I have an SDK/NDK based app that creates native buffers and then reads/writes data to there to communicate through JNI bridge. in 4.4 (DALVIK) it functions OK - or at least it was not throwing an exception. Once ART became mandatory, i.e. Lollipop -…
narkis
  • 335
  • 1
  • 7
  • 17
2
votes
1 answer

Native ANSI C library from .NET Framework >= 4 on 64 Bit

I have a C# application that (P/)invokes an ANSI C library, provided by the manufacturer, to access an RFID-Reader over the network. This works absolutely fine with .NET Framework versions 2.0 up to 4.5 if I manually set the platform to x86. With…
Pascal
  • 105
  • 4
2
votes
3 answers

Marshalling to a native library in C#

I'm having trouble calling functions of a native library from within managed C# code. I am developing for the 3.5 compact framework (Windows Mobile 6.x) just in case this would make any difference. I am working with the waveIn* functions from…
Daniel Baulig
  • 10,739
  • 6
  • 44
  • 43
2
votes
0 answers

Java native methods issues with SUN JVM (jdk1.5.0_14) and multi-core CPU’s

We are hosting an application on SUN JVM that handles a lot of XML parsing using Jaxb. The application is parsing the XML fine using JRockit 5 but when using the SUN JVM the JVM spends a majority of it’s time on native methods such as…
2
votes
4 answers

Stub PHP native methods

In my unit test, i'm looking to stub the behaviour of php's inbuilt file_get_contents() method. Is there a way to stub native methods in PHP (such as file_get_contents() or print_r()) and the likes?
DrPep
  • 330
  • 1
  • 4
  • 14