[android-developers] Re: Dialing Permission

2009-02-02 Thread Nauman ...

I think your problem is with the CALL intent and not the DIAL intent.
Dial intent doesn't require permission by default but CALL does...

I had the same problem with the CALL intent. I've downloaded the
latest SDK ... did they change the default permissions?

On Feb 2, 9:53 am, Sohail sohail.k...@imsciences.edu.pk wrote:
 I am not using the built in ACTIVITY for Dialer. Rather trying to
 create my own. I wrote the following code and when I run this; the
 Dialer starts to dial.

 package my.AndroidPhoneDialer;
 import android.app.Activity;
 import android.os.Bundle;
 import android.content.Intent;
 import android.net.Uri;

 public class AndroidPhoneDialer extends Activity {
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle icicle) {
         super.onCreate(icicle);
         setContentView(R.layout.main);
         Intent DialIntent = new Intent (Intent.ACTION_DIAL, Uri.parse
 (tel:03332424242));
         /** To Launch the Dialer Activity */
         DialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
         /** To start the Activity */
         startActivity(DialIntent);

         Intent CallIntent = new Intent (Intent.ACTION_CALL, Uri.parse
 (tel:03332424242));
         CallIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
         startActivity(CallIntent);

     }

 }

 On Jan 30, 11:22 pm, Charlie Collins charlie.coll...@gmail.com
 wrote:

  I don't think you need any permission to initial a phone call using
  the built in Activity. As long as you go through the built in activity
  and included user interface, no perms required.
  The CALL_PHONE permission is for making a call on your own without
  using the built in Activity, as I understand it (if you want to write
  your own dialer, or otherwise not go through the built in dialer).

  (And the built in Activity probably HAS the CALL_PHONE permission, so
  it's not your app that needs the permission if you are handing off,
  etc.)

  On Jan 30, 7:07 am, Sohail sohail.k...@imsciences.edu.pk wrote:

   Hi,

   I just created a simple application, that starts the Dial Activity and
   place a call. I did not provide any permission in the manifest file to
   start a call, but still the call activity starts.

   I also checked the AndroidManifest.xml file, there is no permission
   added, still the activity starts.

   can anyone explain, why this is so.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Dialing Permission

2009-02-02 Thread Dianne Hackborn
There was a very late fix with a problem where the dial permission wasn't
being enforced.  It is being enforced on current phones, and I'm not sure if
the fix is in the SDK emulator, but you'd want to get the latest SDK to have
the best chance of it being enforced. :}

On Sun, Feb 1, 2009 at 9:13 PM, Nauman ... recl...@gmail.com wrote:


 I think your problem is with the CALL intent and not the DIAL intent.
 Dial intent doesn't require permission by default but CALL does...

 I had the same problem with the CALL intent. I've downloaded the
 latest SDK ... did they change the default permissions?

 On Feb 2, 9:53 am, Sohail sohail.k...@imsciences.edu.pk wrote:
  I am not using the built in ACTIVITY for Dialer. Rather trying to
  create my own. I wrote the following code and when I run this; the
  Dialer starts to dial.
 
  package my.AndroidPhoneDialer;
  import android.app.Activity;
  import android.os.Bundle;
  import android.content.Intent;
  import android.net.Uri;
 
  public class AndroidPhoneDialer extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle icicle) {
  super.onCreate(icicle);
  setContentView(R.layout.main);
  Intent DialIntent = new Intent (Intent.ACTION_DIAL, Uri.parse
  (tel:03332424242));
  /** To Launch the Dialer Activity */
  DialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  /** To start the Activity */
  startActivity(DialIntent);
 
  Intent CallIntent = new Intent (Intent.ACTION_CALL, Uri.parse
  (tel:03332424242));
  CallIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  startActivity(CallIntent);
 
  }
 
  }
 
  On Jan 30, 11:22 pm, Charlie Collins charlie.coll...@gmail.com
  wrote:
 
   I don't think you need any permission to initial a phone call using
   the built in Activity. As long as you go through the built in activity
   and included user interface, no perms required.
   The CALL_PHONE permission is for making a call on your own without
   using the built in Activity, as I understand it (if you want to write
   your own dialer, or otherwise not go through the built in dialer).
 
   (And the built in Activity probably HAS the CALL_PHONE permission, so
   it's not your app that needs the permission if you are handing off,
   etc.)
 
   On Jan 30, 7:07 am, Sohail sohail.k...@imsciences.edu.pk wrote:
 
Hi,
 
I just created a simple application, that starts the Dial Activity
 and
place a call. I did not provide any permission in the manifest file
 to
start a call, but still the call activity starts.
 
I also checked the AndroidManifest.xml file, there is no permission
added, still the activity starts.
 
can anyone explain, why this is so.

 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Dialing Permission

2009-02-01 Thread Sohail

I am not using the built in ACTIVITY for Dialer. Rather trying to
create my own. I wrote the following code and when I run this; the
Dialer starts to dial.

package my.AndroidPhoneDialer;
import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
import android.net.Uri;

public class AndroidPhoneDialer extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
Intent DialIntent = new Intent (Intent.ACTION_DIAL, Uri.parse
(tel:03332424242));
/** To Launch the Dialer Activity */
DialIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
/** To start the Activity */
startActivity(DialIntent);

Intent CallIntent = new Intent (Intent.ACTION_CALL, Uri.parse
(tel:03332424242));
CallIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(CallIntent);

}
}


On Jan 30, 11:22 pm, Charlie Collins charlie.coll...@gmail.com
wrote:
 I don't think you need any permission to initial a phone call using
 the built in Activity. As long as you go through the built in activity
 and included user interface, no perms required.
 The CALL_PHONE permission is for making a call on your own without
 using the built in Activity, as I understand it (if you want to write
 your own dialer, or otherwise not go through the built in dialer).

 (And the built in Activity probably HAS the CALL_PHONE permission, so
 it's not your app that needs the permission if you are handing off,
 etc.)

 On Jan 30, 7:07 am, Sohail sohail.k...@imsciences.edu.pk wrote:

  Hi,

  I just created a simple application, that starts the Dial Activity and
  place a call. I did not provide any permission in the manifest file to
  start a call, but still the call activity starts.

  I also checked the AndroidManifest.xml file, there is no permission
  added, still the activity starts.

  can anyone explain, why this is so.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Dialing Permission

2009-01-30 Thread Dianne Hackborn
You don't need a permission to start the dialer.  That requires the user to
be involved in placing the call, so it wouldn't be useful to have a
permission on it.

On Fri, Jan 30, 2009 at 4:07 AM, Sohail sohail.k...@imsciences.edu.pkwrote:


 Hi,

 I just created a simple application, that starts the Dial Activity and
 place a call. I did not provide any permission in the manifest file to
 start a call, but still the call activity starts.

 I also checked the AndroidManifest.xml file, there is no permission
 added, still the activity starts.

 can anyone explain, why this is so.


 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Dialing Permission

2009-01-30 Thread Charlie Collins

I don't think you need any permission to initial a phone call using
the built in Activity. As long as you go through the built in activity
and included user interface, no perms required.
The CALL_PHONE permission is for making a call on your own without
using the built in Activity, as I understand it (if you want to write
your own dialer, or otherwise not go through the built in dialer).

(And the built in Activity probably HAS the CALL_PHONE permission, so
it's not your app that needs the permission if you are handing off,
etc.)

On Jan 30, 7:07 am, Sohail sohail.k...@imsciences.edu.pk wrote:
 Hi,

 I just created a simple application, that starts the Dial Activity and
 place a call. I did not provide any permission in the manifest file to
 start a call, but still the call activity starts.

 I also checked the AndroidManifest.xml file, there is no permission
 added, still the activity starts.

 can anyone explain, why this is so.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---