Meaningless Drivel is fun!
The moose likes Android and the fly likes Set values dynamically in a command set Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Set values dynamically in a command set" Watch "Set values dynamically in a command set" New topic
Author

Set values dynamically in a command set

Renjith Mohan
Ranch Hand

Joined: Nov 28, 2008
Posts: 65


My aim is to send a few sets of commands to an embedded device via bluetooth. Ideally, those commands look like:



I want to dynamically set the values of NUM and DEV. One way is creating this from scratch (by attaching to StringBuffer) each time it executes. Is there any proper way of implementing?

Can we use placeholders like we do in reporting APIs?

Thanks in advance!
 
 
subject: Set values dynamically in a command set