android


Print jpeg/png images using Wifi/Bluetooth Printer from Android app


I have Hp Photosmart Wifi printer and I developed app for one of my product. Now I would like to add the functionality of printing images from my app using Wifi printer. I want to connect my app with wifi printer and for that i did some googling and found that I can do so using Socket programming as wifi has the IP address. But i am unable to find anything which can help me for printing images from android app programmatically.
Can anyone guide me how can i print images on A4 size paper with Wifi printer from my app? All suggestions are welcome.
I used this for blutooth
try this for wifi also
OutputStream os = null;
try {
os = wifiSocket.getOutputStream();
} catch (Exception e) {
e.printStackTrace();
}
os.write(("Hello").getBytes());
os.write(("printing").getBytes());
os.close();
for printing the image you need to send some commands before print the data,
need to convert the image to byte array and then you need to send to printer.

Related Links

Unable to save image from the directory using FileProvider
Sqlite 3.8 with pre-Lollipop APIs
IconTabBar loses content only on device - cordova android
Get PDF stream from (Xamarin)Android.Print.PrintDocumentAdapter
how to compare my contact with the contacts uploaded in firebase database
How to change independently the distance between ActionBar icons in Android?
MPAndroidChart x-axis date/time label formatting
Why does the 'layout_column' does not place the element in a GridLayout?
Geolocation API with HTTPS on Firefox Android
Tracking objects using Bluetooth
not getting the specific result json object and how to compare the two string's
How do I save a captured image into my phone gallery in android?
delete a row in SQLite with a value of null
Android: Reduce the width of a cell in PdfPTable
updating sdk manager for android vs 4.3
Deep-links work from browser, but not from facebook app (Android)

Categories

HOME
turing-machines
codenvy
redux-form
jmx
youtube-data-api-v3
nuget
spring-data-mongodb
big-o
nested-if
jetty
settings
mvc5
fosrestbundle
32bit-64bit
octave
commonjs
endeca
openpyxl
magnetic-cards
qsqlquery
entitymanager
package.json
smartclient
windows-xp
gulp-watch
named-entity-recognition
pchart
tosca
jquery-callback
fragment-backstack
spotipy
quantlib
realm-mobile-platform
eviews
xbox
scatter3d
dumpbin
clickjacking
fossil
arduino-ide
jwplayer6
dm-script
timing
release
loading
c9.io
datacachefactory
ssrs-2014
xmldocument
fwrite
serde
dtsearch
tf
magic-draw
custom-font
avx
change-tracking
hadoop-2.7.2
seek
neon
model-associations
drawstring
ng-grid
scaffolding
android-dateutils
nservicebus5
riot
tracker-enabled-dbcontext
bizagi
uiactionsheet
aspen
ascii-art
toran-proxy
decimalformat
assertion
terracotta
ons-api
visual-sourcesafe-2005
iced-coffeescript
zscript
google-refine
nutiteq
typeconverter
osc
diff3
shopizer
phpldapadmin
primitive-types
tweenlite
cuba
ora-00904
menubar
clickbank
multiautocompletetextview
android-usb
inappsettingskit
gpars
mvc-editor-templates
poker
node-blade
chart-director
garbage
jsr286
jquery-tools
matlab-load
mbeans
ruby-1.8
timertask
qtabbar
duplex
web-application-project
complex-event-processing
flvplayback

Resources

Encrypt Message