native

Possible bug in dalvik of Android 2.x during Bitmap allocation?

假装没事ソ 提交于 2019-12-13 03:00:03
问题 The phenomenon : First do allocation some big memory blocks in the Java side until we catche OutOfMemoryError, then free them all . Now, weird things happen: load even a small picture(e.g. width:200, height:200) by BitmapFactory.decodeXXX(decodeResource, decodeFile, ...) will throw an OutOfMemoryError! But its OK to alloc any pure Java big Object(e.g. new byte[2*1024*1024]) now! Verifying : I wrote some simple codes to verify the problem that can download here, press "Alloc" button many times

Using a native Maven artifact (nar) in a webapp

℡╲_俬逩灬. 提交于 2019-12-13 02:25:36
问题 I have a native shared library that is built and packaged using the maven-nar plugin. This works great and builds on Linux/MacOSX/Windows. I've also defined a JNI library, also built using maven-nar, that wraps the shared library. Both of these are produced as NAR artifacts and require the maven-nar plugin in order to be used. The problem arises when declaring a dependency on these NARs from a non-NAR-packaged project. The maven-nar plugin never seems to get invoked. Only when I change the

NDK - Android Java with native (JNI) C++ code build issue

假如想象 提交于 2019-12-13 00:44:02
问题 I am using a mix of Java and native JNI C++ code for an android project, using NDK r8b, in Eclipse in OSX. I want to be able to use the regular C++ classes (map, string) in std namespace. In the Android.mk file the following were added: APP_STL := stlport_shared Here I also tried static library. Refer to http://docs.huihoo.com/android/ndk/r5/CPLUSPLUS-SUPPORT.html STLPORT_FORCE_REBUILD := true Also tried removing the forced build. In the C/C++ path and variables: ${NDKROOT}/sources/cxx-stl

How can i invoke a during compiletime unknown native function from C#

。_饼干妹妹 提交于 2019-12-12 14:34:21
问题 During runtime i am supplied with a String name, a sorted array of objects and some additional information about a native function (dllpath, calltype, etc). lets assume all information was in a CallInformation Object. How can i call this native function? note: - i am not supplied with the dll before runtime. - i am not supplied with the call information before runtime. - i dont know the ammount or types of call parameter before runtime. - i dont know the returntype before runtime. The usual

ionic4/Angular7 - Property 'dataDirectory' does not exist on type 'File'

一个人想着一个人 提交于 2019-12-12 13:33:37
问题 i user file transfer for download file that it's need File native also in ionic v3 i used it and hasn't any problem but now in ionic v4 when i use that, it's got Error : Property 'dataDirectory' does not exist on type 'File' my code => download.page.ts download() { const fileTransfer: FileTransferObject = this.transfer.create(); this.plt.ready().then(() => { const url = 'http://www.test.com/file.mp3'; fileTransfer.download(url, this.file.dataDirectory + 'file.mp3').then((entry) => { console

What are some good WWSAPI information sources?

做~自己de王妃 提交于 2019-12-12 13:18:07
问题 Does anyone have some good suggestions for sites, books, tutorials or other information sources on WWSAPI and its use? I'm being dropped in the deep end on a project using it and want to bring myself up to speed. http://msdn.microsoft.com/en-au/magazine/ee335693.aspx has been the main source of my knowledge so far. 回答1: Here's the collection of pages I ended up forming. A good introductory article: http://msdn.microsoft.com/en-au/magazine/ee335693.aspx Introductory demo: http://msmvps.com

SFSafariViewController - Interacting with the parent app from a web-page

僤鯓⒐⒋嵵緔 提交于 2019-12-12 13:00:23
问题 I'm trying to research a way to load a web view controller into an iOS app, such that the web page can communicate data back up to the parent. Is this possible with SFSafariViewController ? Is there some mechanism like post-messaging, which will let me send data back up to the native app? Note: it's pretty important that I use SFSafariViewController, since I also need the web view to persist/share cookies with Safari. 回答1: Since SFSafariViewControllers are not sandboxed, like all other

Unhandled exception at 0x00007FFCF05E675B (Windows.UI.Xaml.dll)

社会主义新天地 提交于 2019-12-12 12:34:18
问题 I've developed an UWP app , for which I have already managed to build and publish package on the Store, without any problem. As some users encounter performances problems, I would like to test my last changes by compiling the code with " .Net Native tool chain ". But I get an exception before the end of the build: If I uncheck the case " Compile with .NET Native tool chain ", there is no longer problem. The other builds parameters are " Release " and " x64 ". Would you have any idea? Why didn

nar-maven-plugin and native-library-loader dont load native lib

穿精又带淫゛_ 提交于 2019-12-12 12:25:54
问题 I testing with nar-maven-plugin, then in the next project I need JNI :( . I choosed the it0003 example from git repo. Without the native-library-loader, manual placing of the library and setting of library path its run. Then i would use the native-library-loader. For that, I added the dependency and the assembly-plugin for single JAR file. My current pom: <?xml version="1.0" encoding="UTF-8"?> <!-- #%L Native ARchive plugin for Maven %% Copyright (C) 2002 - 2014 NAR Maven Plugin developers. %

Android 6.0 Native tgkill Crash

我只是一个虾纸丫 提交于 2019-12-12 12:22:51
问题 I'm having this native crash from today. It has been reported on only Android 6.0. with the stacktrace: native: pc 0000000000049c34 /system/lib/libc.so (tgkill+12) native: pc 00000000000474cd /system/lib/libc.so (pthread_kill+36) native: pc 000000000001bbe3 /system/lib/libc.so (raise+10) native: pc 000000000001848d /system/lib/libc.so (__libc_android_abort+36) native: pc 00000000000164ec /system/lib/libc.so (abort+4) native: pc 0000000000331875 /system/lib/libart.so (_ZN3art7Runtime5AbortEv