TensorFlow Android Camera Demo - android

I have a questions about TensorFlow Android Camera Demo, first of all, to start work with this demo I should download (clone) in my laptop all Tenserflow depositary? Or it's possible to download just Android camera example (if yes, then how to do it)?

If you're looking for just the camera demo, it looks like somebody did make a standalone version:
https://github.com/miyosuda/TensorFlowAndroidDemo
The main difference is that the official demo uses Bazel (Google's build tool) to build and has shared dependencies with other tensorflow targets in the full repo, whereas this is uses the standard Android toolchain (including the native code).
If you want to use the official repo, it should be possible to use Android Studio from the demo app directory, as gradle calls out to Bazel in it's build targets.

The TensorFlow Android Camera Demo is now build every night in Jenkins:
http://ci.tensorflow.org/view/Nightly/job/nightly-android/
The "Last Successful Artifacts" section has a "+" sign that you can expand a couple of times to find the tensorflow_demo.apk, which you can then install.
Follow the installation instructions in the README file to install the APK.

You have to first download the source from our repo. Then follow the additional instructions for the Android image demo to make it work.

Related

How do I use an app that somebody else created but didn't build?

I downloaded an app from GitHub but it does not include an APK file. I am using an Android device and I do not have access to Android Studio. How would I used aide or something else to build the app? (GitHub page: https://github.com/mumumusuc/joycon-toolkit)
You have apk files in the Release bundles: https://github.com/mumumusuc/joycon-toolkit/releases (click on assets to expand).
As far as I know, it is not possible. Because there is no other way to compile the code of Android Studio to make it runnable. And the link which you have shared is not an Android Studio Code it is Flutter Code. Which requires a different environment than Android Studio.
If you really need that software create an issue on Github and ask developer for the link.
Clone the repository, open it in VScode, in terminal type flutter build apk ( if you have PC or laptop ) otherwise on phone i dont think its doable.

Shippable Android Continuous Deployment

I am using Shippable for CI purposes but now I want to integrate continuous deployment as well. Shippable allows to build custom java based docker images but I have yet to see an android build image. Does anyone know if this is even possible in Shippable as of now?
while we do not have an official Docker image to build Android projects, some users have successfully built Android projects by installing the necessary packages using shippable.yml. Here is a great example- https://github.com/AnySoftKeyboard/AnySoftKeyboard
If you create an Android image for Docker and want to contribute it, you can open a PR to https://github.com/shippableImages repo. Thanks!

How to compile Android native library with Android Studio?

I am a new user of android studio and I am developing application based on native library(JNI) and eclipse is provide builder facilities for NDK-build. so any functionality available in android studio to build NDK
NDK integration is very basic, limited, and not documented (per the New Build System page) at the time of this writing. There a couple of examples in the samples at the bottom of that page that illustrate how this can be done. You can also check the Gradle Plugin User Guide periodically to see if any additional documentation is available.
Android Studio runs ndk-build automatically if you have a jni directory in your project root. I describe the minimal setup you need in my answer to a similar question.

Android Source Code Plug-in

I've been using an eclipse plugin that allows me to view android source code for up to android 2.2. I recently cleared my eclipse folder and copied a fresh instance, thereby loosing the plug-in. I don't seem to remember what the plug-in was called and where I installed it from.
I'm not looking for downloading and building the entire source tree of android. This plug-in would allow me to step into android sources when I wanted.
Does anyone have a link to this plug-in location?
You probably mean adt-addons project. The direct link to plugin you're searching is: http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/
In the properties of your android-ver.jar you can set the location of the sources. I think it is enough to download only frameworks project of the AOSP to attach it as a source of a android.jar library.

Android NDK with Visual Studio

I'd like to build some native libraries for android using the NDK (native development kit), but i'd like to use Visual Studio 2010 to do it. I've googled quite a bit but haven't found any information on it. Does anyone have any experience with this and know the steps necessary to make this happen? I have CYGWin installed, made sure i get Make (per the NDK instructions), but i'm not really sure of the next steps in terms of setting up the project, compiler in visual studio, etc.
If anyone knows of any write-ups, tutorials, or links to sample projects, that would be awesome, as there isn't much on google yet.
thanks!
Here's another solution, which integrates the NDK fully within Visual Studio. No makefiles. It behaves like a proper Win32 project:
Here's an excellent blog post about how you can configure your environment to debug android NDK code using Visual Studio.
Visual Studio is officially not supported.
Some problems (but not limited to):
MSVS cannot create the proper ARM binaries
Android makefiles (.mk) are not supported by MSVS
There are however, third party solutions:
vs-android
VisualGDB
You might want to check out DS-5 as well, though it's not Visual Studio.
The answer depends on what kind of integration you require.
To just build the native Android code from Visual Studio you can create a new Makefile project, and make it run ndk-build.cmd when you press "build". If you would like to get the error messages mapped as well, you will need to parse the output of ndk-build.cmd and convert it to a format that Visual Studio can udnerstand.
If you want to debug your native Android code from Visual Studio, you will need a third party tool that will control ndk-gdb on behalf of Visual Studio and provide workarounds for several bugs (e.g. rebind breakpoints when libraries are loaded).
You can try our VisualGDB for Android tool that does exactly that - creates projects that wrap ndk-build and controls NDK debugger on behalf of Visual Studio. If you need more information, there is a step-by-step tutorial available.
I have not found a direct clean solution, here is my workaround.
I develop my native code on VS as a static library, and use some test project to try it as a console aplication.
When it is ok, from cygwin I use a little bash script that copies all needed files to the jni folder and launch the standard android ndk make command. (also copy some file to assets folder when needed), producing the executable in the right folder.
To use the pthreads I have linked my projects to pthreads-win32.
The only files I do not compile in VS are the jni code.
I hope this can help you.
There's also a couple of other third party alternatives for developing ANdroid apps with VS in addition to those above. There is the open source dot42 located at http://www.dot42.com and Remobjects, http://www.remobjects.com , which allows you to program in c#, Pascal, and Swift. I have played with the trial of Remobjects and am now starting to play around with dot42.
My use of the remobjects trial allowed me to recreate in c# the first five chapter projects in the textbook of the Android course I took. I haven't had the same success with dot42 so far but I need to find some time to really give it a chance.

Categories

Resources