How i can open CALLER SETTINGS

Put your problem here if it does not fit any of the other categories.

How i can open CALLER SETTINGS

Postby blade404 » Fri Mar 18, 2011 12:07 am

Hi,

with this code i can open Settings Intent, but how i can open Caller Settings? or other Intents that are not in the
android.provider.Settings....

thx for youre help!


Code: Select all
package kom.tudarmstadt.p2pmonitoring.gui;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;

import android.widget.TextView;
import android.widget.ToggleButton;


public class Main extends Activity implements OnCheckedChangeListener  {

   private TextView statusText;

   @Override
   public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);

      CompoundButton toggleButton = (ToggleButton) findViewById(R.id.toggleButton);
      toggleButton.setOnCheckedChangeListener(this);
   }

   public void onCheckedChanged(CompoundButton button, boolean isChecked) {
      
      if (button.isChecked()) {
      
      Intent a = new Intent(android.provider.Settings.ACTION_SETTINGS);
      startActivityForResult(a, 0);
   

      } else {
         
         
      
      }

   }
}

blade404
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Mar 18, 2011 12:02 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 7 guests