[android-developers] Re: Prevent Installation of armv7 neon compiled app on Non Neon Devices
You need to do a runtime test. Read: android-ndk-r8b/docs/CPU-FEATURES.html On Tuesday, August 28, 2012 10:41:12 AM UTC+1, B.Arunkumar wrote: > > Hi, > >Thank you for your mail. In the Application.mk, we have specified: > > APP_ABI := armeabi-v7a > > and in the Android.mk we have specified: > > ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) > LOCAL_CFLAGS := -DHAVE_NEON=1 > LOCAL_MODULE := OnVRView > LOCAL_SRC_FILES += VideoDecoder.cpp.neon > LOCAL_ARM_NEON := true > endif > > and so only the armeabi-v7a library gets generated in the project when > compiled. Now when we upload the app to the PlayStore, will the app > atleast not be visible to non armv-7 devices? So what you are saying > is, check if armv-7 devices have neon support or not?? > > Thank you, > B.Arunkumar. > > On Aug 28, 12:27 pm, Doug wrote: > > No. Neon instructions are not part of the ABI specification, which is > what > > the device uses to determine which .so to load. You have to detect that > at > > runtime OR you have to make the user make an informed decision about > which > > shared library to use (which drastically decreases usability of your > app). > > > > Doug > > > > > > > > > > > > > > > > On Wednesday, August 22, 2012 2:06:36 AM UTC-7, B.Arunkumar wrote: > > > > > Hi, > > > > >What about upload to the Google PlayStore? If we compile the app > > > for armv7 neon support, is it that Google PlayStore will automatically > > > restrict the app from being seen on non-neon devices? > > > > > Thank you, > > > B.Arunkumar > > > > > On Aug 22, 1:54 pm, "B.Arunkumar" > > > wrote: > > > > Hi, > > > > > > We have an app which is compiled for arm-v7 neon with > appropriate > > > > definitions in Application.mk and Android.mk. Is there any way to > > > > prevent installation on Non Neon devices with an appropriate > message > > > > "Cannot install". Currently when I install the application by either > > > > debug or run mode, the application installs on the device but when > > > > opened. it crashes with an > > > > ExceptionInInitializer error. > > > > > > Thank you, > > > > B.Arunkumar > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Prevent Installation of armv7 neon compiled app on Non Neon Devices
Hi, Thank you for your mail. In the Application.mk, we have specified: APP_ABI := armeabi-v7a and in the Android.mk we have specified: ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) LOCAL_CFLAGS := -DHAVE_NEON=1 LOCAL_MODULE := OnVRView LOCAL_SRC_FILES += VideoDecoder.cpp.neon LOCAL_ARM_NEON := true endif and so only the armeabi-v7a library gets generated in the project when compiled. Now when we upload the app to the PlayStore, will the app atleast not be visible to non armv-7 devices? So what you are saying is, check if armv-7 devices have neon support or not?? Thank you, B.Arunkumar. On Aug 28, 12:27 pm, Doug wrote: > No. Neon instructions are not part of the ABI specification, which is what > the device uses to determine which .so to load. You have to detect that at > runtime OR you have to make the user make an informed decision about which > shared library to use (which drastically decreases usability of your app). > > Doug > > > > > > > > On Wednesday, August 22, 2012 2:06:36 AM UTC-7, B.Arunkumar wrote: > > > Hi, > > > What about upload to the Google PlayStore? If we compile the app > > for armv7 neon support, is it that Google PlayStore will automatically > > restrict the app from being seen on non-neon devices? > > > Thank you, > > B.Arunkumar > > > On Aug 22, 1:54 pm, "B.Arunkumar" > > wrote: > > > Hi, > > > > We have an app which is compiled for arm-v7 neon with appropriate > > > definitions in Application.mk and Android.mk. Is there any way to > > > prevent installation on Non Neon devices with an appropriate message > > > "Cannot install". Currently when I install the application by either > > > debug or run mode, the application installs on the device but when > > > opened. it crashes with an > > > ExceptionInInitializer error. > > > > Thank you, > > > B.Arunkumar -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Prevent Installation of armv7 neon compiled app on Non Neon Devices
No. Neon instructions are not part of the ABI specification, which is what the device uses to determine which .so to load. You have to detect that at runtime OR you have to make the user make an informed decision about which shared library to use (which drastically decreases usability of your app). Doug On Wednesday, August 22, 2012 2:06:36 AM UTC-7, B.Arunkumar wrote: > > Hi, > >What about upload to the Google PlayStore? If we compile the app > for armv7 neon support, is it that Google PlayStore will automatically > restrict the app from being seen on non-neon devices? > > Thank you, > B.Arunkumar > > On Aug 22, 1:54 pm, "B.Arunkumar" > wrote: > > Hi, > > > > We have an app which is compiled for arm-v7 neon with appropriate > > definitions in Application.mk and Android.mk. Is there any way to > > prevent installation on Non Neon devices with an appropriate message > > "Cannot install". Currently when I install the application by either > > debug or run mode, the application installs on the device but when > > opened. it crashes with an > > ExceptionInInitializer error. > > > > Thank you, > > B.Arunkumar > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Prevent Installation of armv7 neon compiled app on Non Neon Devices
Hi, What about upload to the Google PlayStore? If we compile the app for armv7 neon support, is it that Google PlayStore will automatically restrict the app from being seen on non-neon devices? Thank you, B.Arunkumar On Aug 22, 1:54 pm, "B.Arunkumar" wrote: > Hi, > > We have an app which is compiled for arm-v7 neon with appropriate > definitions in Application.mk and Android.mk. Is there any way to > prevent installation on Non Neon devices with an appropriate message > "Cannot install". Currently when I install the application by either > debug or run mode, the application installs on the device but when > opened. it crashes with an > ExceptionInInitializer error. > > Thank you, > B.Arunkumar -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en