How to change or transform an ImageView to a object or a string? So, I can send that imagview as a String to API.
Example, I have 4 id imageview from xml :
@+id/q1
@+id/q2
@+id/q3
@+id/q4
and i want to change all those imageviews to be a string in Java. So, i can send them to API as a JSON like this :
{
option_code: 'rp001o001',
option_value: 'Likuiditas dan keamanan investasi'
}
option_code: 'rp001o001'
is the paramater that i get from ImageView. How to make it possible?
Thank you.