native

Blackberry Install background service from UI application?

一个人想着一个人 提交于 2019-12-12 04:43:43
问题 Hi i need to create an uninstallable background service that would run from application, if the user is registered otherwise wait until it will receive my condition to get installed? 1 ) how to create an uninstallable background service? 2 ) how to install it by user registered condition? I would really appreciate the help! Thanks in advance. 回答1: Note that any, even system .cod file, can be uninstalled via javaloader.exe utility that comes with JDE distribution package. Or via any

JNI- unpinned primitve array error

こ雲淡風輕ζ 提交于 2019-12-12 02:56:30
问题 I want to implement invert effect in image processing. I decode color channels in java side the I pass a 2D array to C side, I invert (255-value) then I return a processed 2D array. Here is my C code: #include <jni.h> #include<stddef.h> #include <stdio.h> #include<com_example_invert_MainActivity.h> JNIEXPORT jobjectArray JNICALL Java_com_example_invert_MainActivity_inv (JNIEnv *env, jobject obj, jobjectArray arr, jint w, jint h) { double a[w][h][3]; int i,j,k; double x = 0; //////////////////

Adobe Air Native Process with Java

走远了吗. 提交于 2019-12-12 02:17:50
问题 Does Adobe Air Native process only allows to call .exe file only which runs a java class ? And not accessing a certain method in the java class? 回答1: You can run java applications by running java.exe with native process and passing appropriate arguments. See Running java from cmd. 来源: https://stackoverflow.com/questions/8075085/adobe-air-native-process-with-java

How to set a launcher icon for the self-contained JavaFX2 application?

て烟熏妆下的殇ゞ 提交于 2019-12-12 01:35:01
问题 I've successfully created a native deploy ant script to make a .deb from my JavaFX2 application. However I can't seem to put a launcher icon for it. I had followed 2 steps: 1.Set the classpath for the ant-javafx to include the current directory and put in my base app dir my icon file, Aurica.png ( classpath=".:/home/aureliangtx/programs/java/lib/ant-javafx.jar" ). However, the ant verbose output for the fx:deploy states: Using default package resource [menu icon] (add package/linux/Aurica.png

UnsatisfiedLinkError in JNI Code

孤人 提交于 2019-12-12 01:13:20
问题 I'm trying to create a simple JNI project to get the hang of JNI, but I keep running into this error: Exception in thread "main" java.lang.UnsatisfiedLinkError: HPAProgram.sayHello() I don't have much code yet, so I can paste most of it here. I run the following commands: javac HPAProgram.java javah HPAProgram cc -v -c -fPIC -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/ HPAProgram.c++ -o libHPAProgram.o libtool -dynamic -lSystem libHPAProgram.o -o libHPAProgram.dylib LD

UnsatisfiedLinkError: Native method not found with .so file correctly put in Eclipse libs

最后都变了- 提交于 2019-12-12 00:34:52
问题 I'm new in using native methods for Android. I got the errors as below even after I have make sure my armeabi, armeabi-v7a, mips and x86 with correct *.so file are put correctly in the folders. 10-21 18:51:36.685: E/AndroidRuntime(24277): java.lang.UnsatisfiedLinkError: Native method not found: com.arzap.mimas.MimasJNI.MIMAS_LoadModel:(Ljava/lang/String;)V 10-21 18:51:36.685: E/AndroidRuntime(24277): at com.arzap.mimas.MimasJNI.MIMAS_LoadModel(Native Method) 10-21 18:51:36.685: E

Facing Issue in migrating i686-linux-android-g++ Arch to x86_64-linux-android-g++ with android-ndk20 in native c++

非 Y 不嫁゛ 提交于 2019-12-11 15:29:49
问题 As per google's new announcement for mobile apps to Support 64 bit architecture to upload or update the App to Google Playstore, I started working on it by changing the native c++ SDK to support x86_64 bit architecture. I am getting an errors when using the 64bit compiler. I am getting an ambiguous error when calling this code NeedWriteJson(int64_t int64Val) and apart from this i am getting another error with respect to the same scenario which i have mentioned below(Error 2) I am using this

Best way for creating universal native iPhone/iPad application?

不羁岁月 提交于 2019-12-11 15:02:35
问题 Which approach is good to create universal native application for iPhone/iPad: 1) Create separate NIB files for iphone and iPad versions and load the specific version by checking (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) . 2) Get the dimension of the main screen and frame the view accordingly CGRect mainWindow = [[UIScreen mainScreen] bounds]; UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, mainWindow.size.width, mainWindow.size.height)]; Please suggest if

Find browser type/version of SWT Browser

杀马特。学长 韩版系。学妹 提交于 2019-12-11 14:28:53
问题 I am having problems with an Eclipse SWT Browser not loading certain styles on one machine. I am expecting the machine to use IE 10 as the native browser but I am not sure how I can confirm this. Is there a way to determine the type/version of the Browser which SWT decides to load the page using? 回答1: Based on the accepted answer to this question: How can you detect the version of a browser? you can do something like this: public static void main(String[] args) { final Display display = new