Android Samples
sample codes for Android
Face Detection using Vision API
Vision2
Detect Faces from Camera images using camara2 API and Mobile Vision API
Vision3
Detect Barcodes from Camera images using camara2 API and Vision API
Vision4
Detect Texts from Camera images using camara2 API and Vision API
Vision5
Detect Faces from Camera images using camara2 API and Vision API
Vision6
Detect Faces from Camera images using camara2 API and Vision API
Vision7
Detect Faces and Barcodes from Camera images using camara2 API and Vision API
Vision8
Detect Faces from image files using Vision API
show rectangle aroud the Face
trimming out the Face
CloudVision1
Label Detect using CloudVision API
CloudVision2
WEB Detect using CloudVision API
CloudVision3
Label Detect with Remote Image using CloudVision API
CloudVision4
Face Detect using CloudVision API
ScreenCapture using MediaProjection API
mirroring to SutfaceView
ScreenCapture using MediaProjection API
show ScreenShot with Bitmap
save ScreenShot
Osm 1
https://github.com/ohwada/Android_Samples/blob/master/camera2.md
Camera21
Camera Preview using Camera2 API
Camera22
Take Picture using Camera2 API
Camera23
Record Video using Camera2 API
Camera 24
Take Picture with RAW format using Camera2 API
Camera 25
overlay on camera preview using Camera2 API
overlay on camera preview
Camera 26
Face Detection using Camera2 API
Camera 27
Take Picture using Camera2 API
and Camera2Source similar to CameraSource of Vision API
Camera 28
Face Detection using Camera2 API
and Camera2Source similar to CameraSource of Vision API
Camera 29
Take Picture with Shutter Sound using Camera2 API
and Camera2Source similar to CameraSource of Vision API
Camera 211
Camera 212
explore supported Camera2 Features using Camera2 API
Camera 213
record Video using Camera2 API
Camera 214
Take Picture with Raw format using Camera2 API
Camera 215
Camera 216
Take Picture with Location using Camera2 API and LocationManager
Camera 217
take Picture with Manul Exposure using Camera2 API
Camera 218
take Picture with Burst mode using Camera2 API
Camera 219
Camera 221
record Video using Camera2 API and MediaCodec
Camera 222
streaming H264 using Camera2 API and MediaCodec
Camera 223
RTSP Server using Camera2 API and MediaCodec
Camera 224
Camera 225
Face Detection and overlay image
OpenCV
https://github.com/ohwada/Android_Samples/blob/master/OpenCV.md
Opencv412Lib
build OpenCV Android 4.1.2 with Android Studio 2.2
show message as whether build and load Successfully
convert camera images to Sepia
detect an area of the same color as the color of the touched location
find Camera Calibration Pattern and highlight pattern
detect interest points using native code
and draw small red circle on interest points
detect Faces
and draw Rectangle on Faces
Camera Preview with GLSurfaceView
convrt image with GLSurfaceView
OpenGL ES 2.0 Sample
fill the background with color
draw Rectangle with Image Texture
draw Square and moving Triangle
draw Square and scaling Triangle
draw Images continuously like slot machine
calculate array addition with GPU by OpenCL program
create String "Hello, World!'' with GPU by OpenCL program
convert Image to black and white
Sample code for MediaCodec and MediaMuxer
convert YUV420_888 to YUV420Planar
https://github.com/ohwada/Android_Samples/blob/master/MediaPlayer.md
play Audio Files using MediaPlayer
play Video files using MediaPlayer
record Voice using MediaRecorder
https://github.com/ohwada/Android_Samples/blob/master/dialog.md
Yes No Dialog resembles AlerDialog
CSV Library
https://github.com/ohwada/Android_Samples/blob/master/csv.md
Csv 1
read and write CSV file using OpenCSV
Csv 2
read and write CSV file using univocity-parsers
Csv 3
read and write CSV file using Apache Commons CSV
Osmdroid
https://github.com/ohwada/Android_Samples/blob/master/osmdroid.md
Osmdroid1
Osmdroid2
display OpenStreetMapwith Markers
Osmdroid 3
Osmdroid 4
display OpenStreetMap with Tiles Overlay and Custom Tile Source
Osmdroid 5
display OpenStreetMap with MinimapItemizedoverlay and custom Icon using Osmdroid
Osmdroid 6
display Offline Map using Osmdroid
Osmdroid 7
Tile Downloader for Offline Map
Osmdroid 8
OpenStreetMap with Marker and window info
Osmdroid 9
bookmark the location of the map using Osmdroid
Osmdroid 10
display Map Tile of Japan GSI using Osmdroid
Osmbonuspack1
display OpenStreetMap with loading KML
Osmbonuspack2
display OpenStreetMap with loading KML and custom Style
Osmdroidwms 1
display Map Tile of Japan MILT using Osmdroid
Osmdroidwms 2
display Map Tile of Japan MILT with WMS capabilities using Osmdroid
Image Library
https://github.com/ohwada/Android_Samples/blob/master/Image_Library.md
Picasso Sample 1
Picasso Sample 2
Glide Sample 1
Glide Sample 2
display animation gif with Glide 3.7.0
Giphy
display animation gif with Giphy API and Glide 4.4.0
Fresco Sample 1
GPUImage Sample 1
GPUImage Sample 2
SVG Sample
display SVG Image with SVG Library 1.2.1
Glide SVG Sample 1
display SVG Image with Glide 3.7.0 and SVG Library 1.2.1
Vector Image Sample
Http Library
https://github.com/ohwada/Android_Samples/blob/master/Http_Library.md
Volley Sample 1
get text from web server and post data to web server with Volley
OkHttp Sample 1
get text from web server and post data to web server with Volley
Retrofit Sample 1
get text from web server and post data to web server with Volley
Ion Sample 1
get text from web server and post data to web server with Volley
Ion Sample 2
Ion Sample 3
get image and display in ImageView
LivedoorWeather
Weather Report with Livedoor Weather API
RSS Parser Library
RSS-Parser
RSS Reader for Android Authority
RSS
Yahoo News
RecyclerView
https://github.com/ohwada/Android_Samples/blob/master/RecyclerView.md
display text in list
with ItemClickListener
display text in list
add item and remove item with animation
display text in List and Header Footer
Share Intent
https://github.com/ohwada/Android_Samples/blob/master/Share_Intent.md
ShareProviderSample
send Share Intent with ShareCompat
ShareRecieverSample
recieve Share Intent with ShareCompat
ShareActionProviderSample
send Share Intent with ShareActionProvider
ShareRecieverSample2
MailShareProviderSample
send Share Intent to GMAIL App
MailShareRecieverSample
recieve Share Intent for Mail app
Gmail
https://github.com/ohwada/Android_Samples/blob/master/Gmail.md
JavaMail sample 1
send mail with JavaMail via Gmail SMTP server
JavaMail sample 2
get mail with JavaMail from Gmail IMAP server
GmaillApiSample
get Gmail Label with Gmail API
MIDI
sample codes for Android MIDI API
https://github.com/ohwada/Android_Samples/blob/master/MIDI.md
play MIDI File with MIDI Symth
play MIDI File with android-midi-lib
##Media Player MIDI Sample
play MIDI File with Media Player
OSC
sample codes for Android OSC
https://github.com/ohwada/Android_Samples/blob/master/OSC.md
send OSC Message with JavaOSC Library
recieve OSC Message with JavaOSC Library
recieve OSC Message with JavaOSC Library
improved version of OSC Reciver Sample
NDK
sample codes for Android NDK ( Native Development Kit )
https://github.com/ohwada/Android_Samples/blob/master/NDK.md
NdkHelloLibs
this sample shows you how to manage 3rd party C/C++ libraries with Android Studio.
Ndk2
hello-jni
this sample use JNI to call C code from a Android Java Activity.
Ndk3
hello-jniCallback
this sample is an Aadd-on to Hello JNI sample to demonstrate calling back to Java from C code
Hello GL2
this sample draws a triangle using GLES 2.0 API.
GL ES 3.0 JNI
fills small rotating squares on on the entire screen
this sample demonstrates how to use OpenGL ES 3.0 from JNI/native code.
Bitmap Plasma
this sample uses JNI to render a plasma effect in an Androide
native-activity
this sample that initializes a GLES 2.0 context
fill background with Color Magenta
AAR
sample codes for AAR( Android Archive )
AarDemo1
AarLib1
Android Library Sample
show Sample Activity
Others
crop Image using BitmapRegionDecoder
Scroller Sample
move the red square by accelerating, when flick the screen
Scroller Sample
scroll and switch Pages , when flick left or right
read "/proc/cpuinfo"
and show Cpuinfo
show rendered HTML in TextView
remove HTML tags
play Video files using MediaPlayer
play Audio Files using MediaPlayer
show Rounded image using RoundedImageView
Web Server on Android using NanoHttpd
IP Address of Android phone myself
read and write file with FilePicker
JetBoy is Android sample game that demonstrates the use of the android.media.JetPlayer class
bind Application Logic and Layout
Snackbar show a brief message at the bottom of the screen
key/value data storage library for Android
send Broadcast Message from Service to Activity
send and recieve messages between Activity and Service
StreetView PanoramaView Sample
display StreetView with Google Play Services maps:11.0.0
WebView Sample
WebView 2
HTML in TextView
Menu 1
display Menu without Support Libraly
Menu 2
display Menu with Support Libraly
Tab Layout Sample
GSON Sample 1
convert Java Objects into JSON and back with GSON
Asset Sample 1
rearead file in assets fonlder of app
Animation Sample 1
Animation Sample 2
animate view with AnimationDrawable
Animation Sample 3
animate view with Animation object
ListView Sample 1
ListView Sample 2
display image and text in list
Nougat Sample 1
ScopedDirectoryAccess
call the permission dialog and copy image files
Line Chart Sample 1
Line Chart
Line Chart Time Sample 1
Line Chart of
Time data with Random values
Line Chart Time Sample 2
Line Chart of
Sin Wave Data at one hour interval using l using MPChart 3.0.2
Line Chart Time Sample 3
Line Chart of
Sin Wave Data at one minute interval using MPChart 2.1.6
Line Chart Time Sample 4
Line Chart of
Sin Wave Data at one minute interval using MPChart 3.0.3
Line Chart Time Sample 5
Line Chart of
Sin Wave Data at one second interval using MPChart 3.0.3
Line Chart Time Sample 6
Line Chart of
Sin Wave Data at one millli second interval using MPChart 3.0.3
Real Time Line Chart Sample 1
write Storage for Android 4.4
wrie to application specific area
write Storage for Android 4.4
two different applications write to the application sharing area
write Storage in Android4.4 earlier style
Japanese fonts
enclose Japanese fonts in Android application
Strorage Access Framework
call the picker specified image files
Android 6.0 runtime permission
call trequest permissions
Logcat Sample 1
view logcat in activity
write logcat to file
Uncaught Exception Sample 1
write to log file when uncaught exception occurs
Device Id Sample 1
get Device Identities
IMEI, IMSI, ICCID, Mac Address, Android ID
System Info Sample 1
get System Informations
BRAND, DEVICE, MANUFACTURER, MODEL, VERSION.SDK_INT
Package Info Sample 1
get Package Informations
firstpackageName, versionCode, InstallTime
UUID Sample 1
genatate UUID
genatate once, save abd reuse
ServiceList Sample 1
get Service List in running
Sensor Sample 1
get values of Sensors
Light, Temperature, Humidity, Pressure
###Sensor Sample 2
get values of Enviromental Sensors
Temperature, Humidity, Pressure
Broadcast Receiver Sample 1
receive Broadcast events
ACTION_TIME_TICK, ACTION_TIME_CHANGED, ACTION_TIMEZONE_CHANGED
Content Observer Sample 1
observe events from Content Provider
receive events System Setting changeed
Output the caller's class name and method name to logcat