Android : How to add actionbar in default inage view implicit intent action?

on Sunday, September 21, 2014


I am opening an image on click from one activity. I am using the following code for opening the itent with the file path.



Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("file://" + "/sdcard/test.jpg"), "image/*");
startActivity(intent);


I want to add the action bar on the view displayed. HOw to add a actionvar on this enter image description here


0 comments:

Post a Comment