Back to project page android-document-viewer.
The source code is released under:
?Sitewaerts Document Viewer App for Android? is free software: you can redistribute it and/or modify it under the terms of the Affero GNU General Public License (http://www.gnu.org/licenses/agpl-3...
If you think the Android project android-document-viewer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.sitewaerts.cleverdox.viewer; /*from ww w.j ava 2 s . c o m*/ import android.app.ActionBar; import android.content.Intent; import android.graphics.drawable.ColorDrawable; import android.os.Bundle; import android.view.MenuItem; import com.artifex.mupdfdemo.PrintDialogActivity; public class PrintActivity extends PrintDialogActivity { private String closeLabel; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Get the intent that started this activity Intent intent = getIntent(); // get options passed from cordova closeLabel = intent.getStringExtra("closeLabel"); //create action bar ActionBar ab = getActionBar(); //enable up navigation ab.setDisplayHomeAsUpEnabled(true); // //invisible icon // ab.setIcon(new ColorDrawable(getResources().getColor(android.R.color.transparent))); // //set title to close lable string from cordova options // if (closeLabel != null) { // ab.setTitle(closeLabel); // } } /** * handle action bar menu events */ @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle item selection switch (item.getItemId()) { //up navigation case android.R.id.home: finish(); return true; default: return super.onOptionsItemSelected(item); } } }