If you think the Android project mobilepower-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/*
* Copyright (C) 2013 Dario Scoppelletti, <http://www.scoppelletti.it/>.
* /*fromwww.java2s.com*/
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/package it.scoppelletti.mobilepower.app;
import android.app.*;
import android.os.*;
import android.text.*;
import android.text.util.*;
import android.view.*;
import android.widget.*;
import org.apache.commons.lang3.*;
import it.scoppelletti.mobilepower.ui.resources.*;
/**
* Attivit` di visualizzazione delle note di rilascio
* dell’applicazione.
*
* @since 1.0
*/publicfinalclass ReleaseNoteActivity extends Activity {
/**
* Azione di visualizzazione delle note di rilascio dell’applicazione.
*/publicstaticfinal String ACTION_RELEASENOTES =
"it.scoppelletti.mobilepower.intent.action.RELEASENOTES";
/**
* Parametro <CODE>{@value}</CODE>: Note di rilascio.
*/publicstaticfinal String EXTRA_RELEASENOTES = "releasenotes";
/**
* Costruttore.
*/public ReleaseNoteActivity() {
}
/**
* Creazione dell’attività.
*
* @param savedInstanceState Stato dell’istanza.
*/
@Override
protectedvoid onCreate(Bundle savedInstanceState) {
String notes;
TextView textControl;
Button button;
MarketTagHandler tagHandler;
super.onCreate(savedInstanceState);
setTheme(AppUtils.getActivityTheme());
setContentView(R.layout.releasenotes);
textControl = (TextView) findViewById(R.id.txt_content);
textControl.setKeyListener(null);
textControl.setAutoLinkMask(Linkify.EMAIL_ADDRESSES |
Linkify.WEB_URLS);
notes = getIntent().getStringExtra(
ReleaseNoteActivity.EXTRA_RELEASENOTES);
if (!StringUtils.isBlank(notes)) {
tagHandler = new MarketTagHandler();
textControl.setText(Html.fromHtml(notes, null, tagHandler));
tagHandler.addLinks(textControl,
AppUtils.getFullPackageName(this, false));
}
button = (Button) findViewById(R.id.cmd_continue);
button.setOnClickListener(new View.OnClickListener() {
publicvoid onClick(View v) {
finish();
}
});
}
}