Returning a Boolean of your choice in Dalvik

The following code will do this:

    const/4 v3, 0x1

invoke-static {v3}, Ljava/lang/Boolean;->valueOf(I)Ljava/lang/Boolean;

move-result-object v3

return v3[/code]


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.