Android: Failed to record byte handshake (-1 of 14): Broken pipe

Basqually I try to add back functionality using (MinSDK is set to 11)

getActionBar().setDisplayHomeAsUpEnabled(true); 

Here is my function:

 public class DetailActivity extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.detail_layout); getActionBar().setDisplayHomeAsUpEnabled(true); } 

Logcat Details:

 07-28 18:26:50.030 19793-19795/? E/art﹕ Failed writing handshake bytes (-1 of 14): Broken pipe 
+5
source share
2 answers

Instead of getActionBar() try the following: getSupportActionBar().setDisplayHomeAsUpEnabled(true)

0
source

Try adding AppCompactActivity instead of ActionBarActivity .

And change the getActionBar function to getSupportActionBar

0
source

All Articles