Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <PreferenceScreen android:title="@string/aboutmenu" android:key="about" android:summary="">
- <intent
- android:action="android.intent.action.DEFAULT"
- android:targetPackage="com.prefs.learn"
- android:targetClass="com.prefs.learn.About"
- />
- </PreferenceScreen>
- package com.prefs.learn;
- import android.app.Activity;
- import android.app.AlertDialog;
- import android.os.Bundle;
- public class About extends Activity
- {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- pp();
- }
- public void pp(){
- final AlertDialog d = new AlertDialog.Builder(this)
- .setIcon(R.drawable.ic_launcher)
- .setCancelable(false)
- .setTitle("About")
- .setPositiveButton(android.R.string.ok, null)
- .setMessage("About stuff bla bla bla")
- .create();
- d.show();
- }
- }
- <activity android:name=".About" >
- </activity>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement