It's all right now, thanks for help.
Just put the b_v=ioioController.getBatteryVoltage();  within the try{ }

On Monday, August 1, 2016 at 4:25:17 PM UTC-4, Ytai wrote:

> 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] <javascript:>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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.

Reply via email to