package com.maurya.appcontrol; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.View; import android.widget.Button; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button but2 = (Button) findViewById(R.id.button1); but2.setOnClickListener(new View.OnClickListener() { Intent in = new Intent("com.example.appcontrol.Pref"); @Override public void onClick(View v) { // TODO Auto-generated method stub startActivity(in); } }); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.menu_main, menu); return true; } }
package com.maurya.appcontrol; import android.app.Activity; import android.os.Bundle; public class Backup extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); //--load the preferences from an XML file--- addPreferencesFromResource"(int appsbackup)";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)