Repository navigation
Cannot run the android example on Android 5.1.1 #74
Copy link
Copy link
Closed
Description
Activity
- changed the title
[-]Cannot run the android example on 5.1.1[/-][+]Cannot run the android example on Android 5.1.1[/+]on Nov 10, 2015 Had a similar issue but was related to the fact that the example is looking for a specific 480x320 camera preview size, see:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/android/src/org/tensorflow/demo/CameraConnectionFragment.java#L231Just changed that line to:
if (option.getHeight() > 320 && option.getWidth() > 480)and it worked.Yes, the intention was to pick a size larger, but not too much larger (for performance reasons), than the 224x224 input of the Inception model bundled with the demo. There's a fix incoming that will pick a size dynamically.
Thank dudes, you made my day.
- added a commit that references this issue
on Mar 9, 2016 - added a commit that references this issue
on Oct 16, 2018 - added a commit that references this issue
on Aug 20, 2019 - added a commit that references this issue
on Oct 4, 2019 - added a commit that references this issue
on Dec 6, 2019 - added a commit that references this issue
on May 17, 2022 - added 4 commits that reference this issue
on Apr 24, 2025
Metadata
Metadata
Assignees
Labels
No labels
The android example APK can be successfully compiled and installed (except that adb -g option is not recognized), however, at launch it shows "Failed" without showing any camera view.
Device is a Nexus 6 with Android 5.1.1.
This is what I have in WORKSPACE
logcat information