Reg.UUID class

22 views
Skip to first unread message

ldina...@gmail.com

unread,
May 2, 2019, 12:30:13 AM5/2/19
to CodenameOne Discussions
Hi [Dinakaran From India]
I bought Bluetooth TVSE Mobile Thermal Printer,
they given sdk and their sample apk.
There apk working fine.

In my codename one development, I am facing 
issue of UUID class missing while I am using their sdk for 
printing. 

After that I have gone through the net and came to know
that some of the java classes are blocked to control the
development size.

I need solution for the above issue mentioned.

Their sdk working in android studio, basically I am java
developer since 18years. So that I preferred codename 
one for app development. 

Now I am facing problem in UUID class in bluetooth printing.

Shai Almog

unread,
May 3, 2019, 12:35:10 AM5/3/19
to CodenameOne Discussions
I would suggest printing by generating an HTML file and firing up the browser using Display.execute. The browser would probably have access to the printer and can carry out the printing process for you. This will work on all platforms and should be simple to implement. Notice you can also generate images etc using the same approach.

If you need access to native system functionality you can do so with native interfaces but you would need to implement them for all platforms including iOS etc.: https://www.codenameone.com/how-do-i---access-native-device-functionality-invoke-native-interfaces.html

ldina...@gmail.com

unread,
May 3, 2019, 2:13:53 AM5/3/19
to CodenameOne Discussions
Sir,

Thanks for the reply, still I have doubt will share it.
App developed for bill collection by using sqlite db,
during collection would like to give receipt slip,
there is no internet connection either by wifi or 
data mode in the mobile. 
(INTERNET CONNECTIVITY ISSUE DUE TO BAD SIGNAL STRENGTH)
I want u to clarify, for that case also ur solution can support or not ?
Thanks, waiting for ur reply.

Shai Almog

unread,
May 4, 2019, 12:45:43 AM5/4/19
to CodenameOne Discussions
Sure. You will open an HTML file that's local to the device using a file:// URL. You need to create that file using the file system storage API which will also provide the URL you can execute.
Reply all
Reply to author
Forward
0 new messages