So I developed an Android App that uses the OpenCV Android SDK. I managed to import everything thanks to this post, but when I run the app in my phone, I get the following message:
"Package not found: OpenCV3 Manager package was not found! Try to install it?"
If I click "yes", I get a "not found" page in google play.
In the OpenCV Android SDK, there is a folder called "apk" with opencv manager apks for different architectures. But which one is for my phone? I have an xperia Z2 which has a snapdragon processor.
Besides, I'd like to make my app standalone. Is it possible with openCV?
I am pretty confused with the horrible documentation for the Android integration of this lib. Could someone please guide me in the process?
It looks like OpenCV 3 Manager is not yet available on Google Play and requires a manual install:
http://code.opencv.org/projects/opencv/wiki/ChangeLog
You can install the manager onto your device using the adb tool (from the directory where you've unzipped the sdk):
adb install OpenCV-3.0.0-rc1-android-sdk/apk/OpenCV_3.0.0-rc1_Manager_3.00_armv7a-neon-android8.apk
I was able to run the samples on my android (5.0.2) phone after that!
Related
I'm working on a web project which is converting the application into a Android/iOS App using a mechanism similar to PhoneGap.
The issues is that, I unable to debug the Android App (HTML/CSS/Javascript) by following the instructions # https://developer.chrome.com/devtools/docs/remote-debugging
Somehow, I'm not able to discover the USB devices in chrome://inspect/#devices. (P.S: While installing the Samsung Driver from http://www.samsung.com/us/support/owners/product/SM-T800NZWAXAR# ) the driver installation failed for CDC_Driver and Samsung_Android)
Device using: Samsung Galaxy Tab S (SM-T800) Android version - 4.2.2
Please advice.
I managed to solve this one. I guess it's 11 months to late for you though #TheNerd.
What is not mentioned in the guide is that you need to download a Android SDK.
It can be downloaded from here: Android SDK
You should also make sure you have JDK on your computer. If you don't the SDK installer will notice and provide you with a link to download it from Oracle.
After installing the driver, the JDK and the SDK my computer was able to detect my device right away.
I'm a newbie in Android Studio. I created a 'Hello World' project then ran it in an emulator. But the Emulator always gave me an error-
My installed SDKs are-
I cannot do anything on the emulator. Please help me. Thanks a lot.
You need to have platform tools to develop anything for android. Also if you're testing on an emulator you need to have the system images for that particular API against which you are developing, ie, your target API. You haven't yet installed all the packages you should to start developing. You can visit https://developer.android.com/tools/help/sdk-manager.html for more information about the required packages.
To download packages, open Android Studio, go to Configure and the SDK Manager.
i am trying to test android project developed in unity to be tested via BluStacks emulator since i don't have an android device. While trying to develop android project, i followed the ways like setting java sdk, android sdk, added sdk path, set the bundle identifier. I solved errors in the monodevelop like unrecognized variable and finally got the .apk file. I have successfully installed it in both android emulator and BlueStacks emulator. Now, when i click the installed app in the android emulator, it says "Unfotuately b has stopped", here b indicates my product name of the installed app. On the other hand,when i click the installed app in the BlueStacks,it says "BlueStacks Frontend has stopped working". When i search through the google, all it says reinstalling the BlueStacks, about graphics card problem etc. But i have installed it right and can play other online installed applications. I can not even find the logcat that could give me details about the error. When i search through the google, all i find about the logcat is involving the eclipse. But how can i set the adb logcat while my game development involves unity and BlueStacks instead of Eclipse and BlueStacks? Here i can say that there is less likely any problem with the BlueStacks emulator since i can play the online games and applications with it. I have been trying hard, please somebody knowledgeable give me your valuable suggestions.
I am new with corona developing.
I am creating a new project and them build as android apk target 2.2.
It will make build successfully bt if i run this build on my device it shows "not installed".
I am using trial version of corona is this make a problem?
Thanks for your valuable time.
When I had a similar problem, it was because the architecture on my device wasn't ARMv7.
The developers behind Corona have made these points regarding Android deployment:
You do not need to install the Android SDK. However, you will need to install the x86 (32-bit) version of the Java 6 Development Kit if you're using Windows. Corona does not support JDK7. See Java Development Kit Setup for details.
The Android build process generates a standard .apk file. You can build and test apps on Android devices without creating a Google developer account, but you will need an account if you wish to publish to the Google Play marketplace. The current price of the program is $25, mandated and managed by Google.
We only support Android devices that run Android 2.2 or higher with an ARMv7 processor. This can create some confusion because ARM processors are identified by both a family and an architecture. Family names do not have a "v" in them. For instance, the ARM7 processor is actually a ARMv3 architecture, and ARM11 is a ARMv6 architecture. See this guide to help identify the various processors.
Source: http://docs.coronalabs.com/guide/distribution/androidBuild/index.html (worth a read if you haven't seen it already)
Download some app to your device like app manager or Es File Explorer(
https://play.google.com/store/apps/details?id=com.estrongs.android.pop&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5lc3Ryb25ncy5hbmRyb2lkLnBvcCJd)
And open that app, select your .apk file, and there u can install it.
Good luck ;)
I find the simplest way is to just attach the .apk file to an e-mail and open the attachment in Gmail on the phone.
You can build for Android using the Trial version of Corona. Just use the default key. (I might have enabled a setting under Apps to allow installing apps from outside Google Play, I don't remember.)
I had to install my app via a adb console with my phone's USB debugging turned on for it to work.
The command was:
[path to adb.exe] install -r [path to apk file]
I've had this problem before so I will share you my experience.
It could be one of two problems:
Your device isn't ARMv7. That means it needs to be 2.2 or higher. I would recommend using Android 4.0 or higher for a test device, that's just my opinion though.
You could have a syntax error or you could be requiring a document that doesn't exist. In some rare instances Corona doesn't detect the error until it's on the device. To see what the error is, run adb logcat.
Let me know if this works for you :)
(This question may belong on a different site such as SuperUser. If so, please migrate!)
I'm trying to do a lot of debugging of our web app for Android. The Android emulator seems a tad more difficult for me to get running than the iOS ones. ;)
I have installed the proper Java JDK and Android SDK.
I can now launch AVD manager. This is where I'm stuck. I understand this is where we can customize the specifications of our particular device, but to create a new virtual device, I need to choose a target. However, my target menu is grayed out. I'm guessing there's one more thing I need to install, but I'm lost as to what that is. (BTW, for starters, I'm trying to emulate the Thunderbolt).
Check this out. You probably missed step 4
Installing the SDK
Installing the Android SDK does not install one of the Android platforms to build a AVD from.
To install a platform do the following:
Open the Android SDK Manager (located in the Android SDK directory as tools\android).
Select at least one Android platform to install, and click Install Selected. Depending on the version of Android running on the Thunderbolt, you would most likely choose to install Android 2.2 or Android 2.3).
Once this installed the target menu will display the version you installed.