Learn about this topic in these articles:
Granitic, or rhyolitic, magmas and andesitic magmas are generated at convergent plate boundaries where the oceanic lithosphere (the outer layer of the Earth composed of the crust and upper mantle) is subducted so that its edge is positioned below the edge of the continental plate or another oceanic plate. Heat will be added to the subducting lithosphere as it moves slowly into the hotter depths...
Lavas of andesitic or intermediate composition commonly form a somewhat different type of flow, known as a block lava flow. These resemble aa in having tops consisting largely of loose rubble, but the fragments are more regular in shape, most of them polygons with fairly smooth sides. Flows of more siliceous lava tend to be even more fragmental than block flows.