This doesn't seem like a IOIO specific question, but rather a general question about exception handling in Java. In short, you have to either catch the exception or specify it as being thrown out of the calling method. Why is that a problem in your case? See IOIOSimpleApp for an example for how to read analog inputs in case that's what you're doing.
On Aug 1, 2016 1:21 PM, <[email protected]> wrote: > How can I give the value of ioioController.getBatteryVoltage() [A method I > wrote to get battery voltage] to a variable I declared as a float in > android. > > The problem is that I need to do the try{} catch{} thing so I cant just > say float b_v=ioioController.getBatteryVoltage(); > > And more I hope to toast it > > Thanks guys for the help! > > -- > You received this message because you are subscribed to the Google Groups > "ioio-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/ioio-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "ioio-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/ioio-users. For more options, visit https://groups.google.com/d/optout.
