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
59
votes
6 answers

How to call machine code stored in char array?

I'm trying to call native machine-language code. Here's what I have so far (it gets a bus error): char prog[] = {'\xc3'}; // x86 ret instruction int main() { typedef double (*dfunc)(); dfunc d = (dfunc)(&prog[0]); (*d)(); return…
user5406764
  • 1,627
  • 2
  • 16
  • 23
58
votes
8 answers

Is there a native machine code compiler for JavaScript?

Is there a native machine code compiler for JavaScript? I'm not talking about a VM. If it doesn't exist can it be done? I am wondering if it can be compiled to binary due to the dynamic nature of the language.
the_drow
  • 18,571
  • 25
  • 126
  • 193
56
votes
1 answer

How to call methods in Dart portion of the app, from the native platform using MethodChannel?

I am writing a native plugin that, in some cases, has to call functions in the Flutter portion of the app, written in Dart. How it's achieved, is explained here: https://flutter.io/platform-channels/ Furthermore, an example of invoking a method from…
2beens
  • 743
  • 1
  • 6
  • 8
48
votes
4 answers

Repeating background image in native iPhone app

Short of putting a UIWebView as the back-most layer in my nib file, how can I add a repeating background image to an iPhone app (like the corduroy look in the background of a grouped UITableView)? Do I need to create an image that's the size of the…
Frank Schmitt
  • 25,648
  • 10
  • 58
  • 70
47
votes
4 answers

change button color react native

I want to simply change the color of the button, but i can't. I tried to change directly in the button, and pass a style to it. But neither of them worked. Here's my very simple code. export default class Dots extends Component { render() { …
Gisa
  • 473
  • 1
  • 4
  • 8
44
votes
5 answers

ViewPager animation fade in/out instead of slide

I got the FragmentBasics example from here. Is there a way make the ViewPager animation simply fade in and out when I swipe instead of sliding left and right? I've been trying some stuff with PageTransformer, but no success, I can still see it…
KKO
  • 1,913
  • 3
  • 27
  • 35
43
votes
4 answers

How to get android's native methods source code

Is it possible to get and watch at Android's program component's native methods code. If anyone knows how to, please let me know.
teoREtik
  • 7,886
  • 15
  • 46
  • 65
42
votes
4 answers

mylib.so has text relocations. This is wasting memory and is a security risk. Please fix

My Android application (using native library) print this warning on Android 4.4 : linker mylib.so has text relocations. This is wasting memory and is a security risk. Please fix. Have you got an idea of what it is and how to fix it ? Thanks,
Jerome
  • 1,153
  • 1
  • 17
  • 28
42
votes
5 answers

Why do some Android phones cause our app to throw an java.lang.UnsatisfiedLinkError?

We're experiencing a java.lang.UnsatisfiedLinkError on some of the Android phones that are using our app in the market. Problem description: static { System.loadLibrary("stlport_shared"); // C++ STL System.loadLibrary("lib2"); …
41
votes
9 answers

HTML5: camera access

I am quite new to HTML5. I try the following HTML5 code to access camera on my mobile phone. It always display "Native web camera not supported". It seems that my mobile browser (safari and android 2.1 web browser) does not support the camera.…
love sunset
  • 517
  • 1
  • 8
  • 10
39
votes
2 answers

How to cache bitmaps into native memory

For my 10,000 points, i've decided to contibute something with this cool website: a mechanism to cache bitmaps on native memory. Background Android devices have a very limited amount of memory for each app- the heap ranges from 16MB to 128MB ,…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
37
votes
6 answers

Windows Phone 7 and native C++/CLI

Microsoft recently released tools and documentation for its new Phone 7 platform, which to the dismay of those who have a big C++ codebase (like me) doesn't support native development anymore. Although I've found speculation about this decision…
Fabio Ceconello
  • 15,819
  • 5
  • 38
  • 51
36
votes
2 answers

Native crashes on abort in developer console with Oreo (8.1)

In the developer console I get more and more a native crash in abort. This occurs ONLY for android 8.1 device! Is anybody aware of a regression? Here is the backtrace: #00 pc 000000000001da4c /system/lib64/libc.so (abort+112) #01 pc…
JB Cha
  • 597
  • 5
  • 9
35
votes
8 answers

Component won't render within NavigatorIOS - React Native

I can't get this simple NavigatorIOS test to work. The console log in My View triggeres, and I can get it to render if I skip the NavigatorIOS component, and render MyView directly. However, when MyView is triggered from a component within the…
mrborgen
  • 401
  • 5
  • 10
34
votes
5 answers

Linking.canOpenURL returning false when targeting android 30 sdk on React Native

Recently switched our build targets to android 30 to add support for Android 11, now directions and call for phone are not working. The documentation mentions deep linking natively and or the use of an npm package. Would this be done natively? Or is…
Before The Empire
  • 463
  • 1
  • 5
  • 15