Log in or register to post comments

HELP!! Change package name the app cannot start

November 28, 2013 - 7:30pm #1

Hi, I had change my package name to package com.example.english and i had replace the in cpp file also, so as the LOCAL_MODULE and NATIVE_LIB_SAMPLE.

When i run the app, it can play the splashscreen to aboutscreen. Then, when i click on the start button the app crashed.

What do i miss?

Please help.

Thanks

HELP!! Change package name the app cannot start

January 4, 2014 - 12:48am #4

Renaming an Android app is not a Vuforia-related question; it's a general Android programming question, so you should search this in the Android developer guide or other forums;

for instance, this thread explains how to do that:

http://stackoverflow.com/questions/10695503/rename-app-name-of-an-android-app

 

Change name app

January 3, 2014 - 5:03pm #3

after following the steps the app runs fine, but always with the name ImageTargets, and I want it "my_app_name" which file I need to change?

thank you!!

HELP!! Change package name the app cannot start

November 29, 2013 - 1:48am #2

Have you checked this article:

https://developer.vuforia.com/forum/android/how-do-i-fix-my-compile-or-runtime-errors

?

Here is what you probably need to do:

in case you renamed the Java package and/or class names, you might still get an UnsatisfiedLinkError in case you did not rename the C++ native functions accordingly; for instance, if your package name is:

com.my.company.ImageTargets (instead of com.qualcomm.QCARSamples.ImageTargets);

and your main Java class is called:

com.my.company.ImageTargets.ImageTargets  (instead of  com.qualcomm.QCARSamples.ImageTargets.ImageTargets),

then the native functions will have to be renamed like in this example:

Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_initApplicationNative

must be renamed to:

Java_com_my_company_ImageTargets_ImageTargets_initApplicationNative

Then, as usual, remember to run ndk-build again and refresh the Java project in Eclipse.

 

Log in or register to post comments