[android-developers] Re: Intent to load Call Log

2010-10-14 Thread Muhammad Bilal
i tried that too , but it gave error, it seems that you cant use
android.provider.CallLog.Calls.CONTENT_URI for  ACTION_PICK , i looked
on other places places and did some search on that but this an't
possible there is no intent for selecting a contact from call log so
eventually i wrote my own code to load all call log contacts in a List
view.

On Oct 13, 3:00 am, Mark Murphy mmur...@commonsware.com wrote:
 You can try ACTION_PICK on android.provider.CallLog.Calls.CONTENT_URI.
 I do not know if it supports that particular action, but it should be
 easy enough for you to try.





 On Tue, Oct 12, 2010 at 5:49 PM, Muhammad Bilal se.bi...@gmail.com wrote:
  Hi,

  I am trying to locate theintenttoloadthecalllogview , does
  android platform provide that out of the box? the functionality that i
  am looking is just like picking a contact from address book , you can
  do that by usingintent.ACTION_PICK and using the people content URI

 Intentintent= newIntent(Intent.ACTION_PICK, People.CONTENT_URI);

  It 'll show all the contacts of the system and on selecting one it 'll
  return the data URI of that particular contact by using callback if
  you start it by using startActivityForResult .

  could we do the same withcalllogas well is their anyintentfor
  that ???, i would really appreciate your help.

  Thanks

  --
  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

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Android 2.2 Programming Books:http://commonsware.com/books

-- 
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: Intent to load Call Log

2010-10-14 Thread Muhammad Bilal
i tried that too , but it gave error, it seems that you cant use
android.provider.CallLog.Calls.CONTENT_URI for  ACTION_PICK , i looked
on other places places and did some search on that but this an't
possible there is no intent for selecting a contact from call log so
eventually i wrote my own code to load all call log contacts in a List
view.


On Oct 13, 3:00 am, Mark Murphy mmur...@commonsware.com wrote:
 You can try ACTION_PICK on android.provider.CallLog.Calls.CONTENT_URI.
 I do not know if it supports that particular action, but it should be
 easy enough for you to try.





 On Tue, Oct 12, 2010 at 5:49 PM, Muhammad Bilal se.bi...@gmail.com wrote:
  Hi,

  I am trying to locate theintenttoloadthecalllogview , does
  android platform provide that out of the box? the functionality that i
  am looking is just like picking a contact from address book , you can
  do that by usingintent.ACTION_PICK and using the people content URI

 Intentintent= newIntent(Intent.ACTION_PICK, People.CONTENT_URI);

  It 'll show all the contacts of the system and on selecting one it 'll
  return the data URI of that particular contact by using callback if
  you start it by using startActivityForResult .

  could we do the same withcalllogas well is their anyintentfor
  that ???, i would really appreciate your help.

  Thanks

  --
  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

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Android 2.2 Programming Books:http://commonsware.com/books

-- 
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] Intent to load Call Log

2010-10-12 Thread Muhammad Bilal
Hi,

I am trying to locate the intent to load the call log view , does
android platform provide that out of the box? the functionality that i
am looking is just like picking a contact from address book , you can
do that by using intent.ACTION_PICK and using the people content URI

Intent intent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI);

It 'll show all the contacts of the system and on selecting one it 'll
return the data URI of that particular contact by using callback if
you start it by using startActivityForResult .

could we do the same with call log as well is their any intent for
that ???, i would really appreciate your help.

Thanks



-- 
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] Intent to pick a contact from Call Log

2010-10-12 Thread Muhammad Bilal
Hi,

I am trying to locate the intent to load the call log view , does
android platform provide that out of the box? the functionality that i
am looking is just like picking a contact from address book , you can
do that by using intent.ACTION_PICK and using the people content URI

Intent intent = new Intent(Intent.ACTION_PICK, People.CONTENT_URI);

It 'll show all the contacts of the system and on selecting one it 'll
return the data URI of that particular contact by using callback if
you start it by using startActivityForResult .

could we do the same with call log as well is their any intent for
that ???, i would really appreciate your help.

Thanks

-- 
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: How to remove sms notifications in status bar

2009-11-23 Thread Muhammad Bilal
here you go  
http://stackoverflow.com/questions/419184/how-to-delete-sms-from-inbox-in-android-programmatically

this link provide great detail how to retrieve messages form in box
and delete them .


regards
MB

On Nov 14, 8:33 am, Sean Liao wirelessw...@gmail.com wrote:
 You guys are ahead of me, I don't even know how to delete the sms message
 from inbox.   Can you share some pointer?

 On Tue, Nov 10, 2009 at 2:17 PM, Muhammad Bilal se.bi...@gmail.com wrote:
  hi,

  its been a while since i am doing development on android sdk , one of
  the astonishing i come across that there is np support in the API to
  remove any notification in the status bar , i am working on an
  application which looks for every SMS coming and on some specific sms
  deletes them from the inbox till now its working fine , but the
  notification bar still showing that u got a new message despite the
  fact that u have deleted it form sms database , couls somebody suggest
  some solution how i can accomplish this , thanks

  regards
  MB

  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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] how to reject a call using Android SDK

2009-11-14 Thread Muhammad Bilal
Hi,

My question is really simple and to Geeks and experts in Android
development, is it possible to reject a incoming call using Android
SDK 1.6 or higher ?



regards
MB

-- 
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: How to remove sms notifications in status bar

2009-11-11 Thread Muhammad Bilal
well  in Cancel you need to specify the id of the alert , but as i
haven't created that alert as it was generated by android framework
itself on the receiving the new sms, i did delete that sms from sms
database and when u open messages you wont see it there but status bar
still shows new sms message and when user clicks on it there wont be
any thread cuz i have already delete that thread from database , could
some person of greater knowledge can help me over here , thnaks

On Nov 11, 2:00 pm, neil reuel.j...@gmail.com wrote:
 Hi Bilal,
     You can use the NotificationManager cancel method.

 On Nov 11, 6:17 am, Muhammad Bilal se.bi...@gmail.com wrote:



  hi,

  its been a while since i am doing development on android sdk , one of
  the astonishing i come across that there is np support in the API to
 removeany notification in thestatusbar, i am working on an
  application which looks for everySMScoming and on some specificsms
  deletes them from the inbox till now its working fine , but the
  notificationbarstill showing that u got a new message despite the
  fact that u have deleted it formsmsdatabase , couls somebody suggest
  some solution how i can accomplish this , thanks

  regards
  MB

-- 
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] How to remove sms notifications in status bar

2009-11-10 Thread Muhammad Bilal
hi,

its been a while since i am doing development on android sdk , one of
the astonishing i come across that there is np support in the API to
remove any notification in the status bar , i am working on an
application which looks for every SMS coming and on some specific sms
deletes them from the inbox till now its working fine , but the
notification bar still showing that u got a new message despite the
fact that u have deleted it form sms database , couls somebody suggest
some solution how i can accomplish this , thanks



regards
MB

-- 
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] how to add space between column in TableLayout

2009-06-01 Thread Muhammad Bilal

Hi i am just developing application in android . i am building a test
game TicTacToe . i am generating the GUI Programmatically  i know i
can develop the same gui using xml but again i am doing this for
learning .
 okay , i have created a TableLayout and add three TableRows in it and
each row i have created three buttons to create tictactoe interface .
the problem i am facing is that when i add buttons in column in table
row and run it there is no spacing between buttons. i have also use
setPadding() method but it adds spacing around the whole row not in
between columns ,

please help me resolving this issue , am i missing something thanks ..
i just was that i can't attached the image in the post , why is
that ..?
waiting anxiously for reply .

here is the code
---
package org.cprods.tictactoe;

import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.TableLayout;
import android.widget.TableRow;

public class GameScreen extends Activity{


private TableLayout gameTable=null;
private Button gameButtons[][]=null;
private TableRow rows[]=null;

@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);

gameTable=new TableLayout(this);
//  gameTable.setGravity(Gravity.CENTER_HORIZONTAL);
gameTable.setBackgroundColor(Color.BLACK);
LayoutParams param=new LayoutParams
(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT);
gameTable.setLayoutParams(param);
//  gameTable.getLayoutParams
().height=ViewGroup.LayoutParams.FILL_PARENT;
//  gameTable.getLayoutParams
().width=ViewGroup.LayoutParams.FILL_PARENT;
gameTable.setStretchAllColumns(true);
gameButtons=new Button[3][3];
rows=new TableRow[3];
int count=1;
for(int i=0;i3;i++)
{
rows[i]=new TableRow(this);
rows[i].setPadding(5,5,5,5);
//  rows[i].setLayoutParams(new LayoutParams
(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));


for(int j=0;j3;j++){
gameButtons[i][j]=new Button(this);
//  
gameButtons[i][j].setWidth((getWindowManager().getDefaultDisplay
().getWidth()/3-30));
//  
gameButtons[i][j].setHeight((getWindowManager().getDefaultDisplay
().getHeight()/3-30));
gameButtons[i][j].setWidth(75);
gameButtons[i][j].setHeight(75);

gameButtons[i][j].setBackgroundColor(Color.WHITE);

//gameButtons[i][j].setGravity(Gravity.CENTER_HORIZONTAL |
Gravity.BOTTOM);
gameButtons[i][j].setText(+count);
rows[i].setGravity(Gravity.CENTER_HORIZONTAL | 
Gravity.BOTTOM);
rows[i].addView(gameButtons[i][j]);
//rows[i].
count++;
}
gameTable.addView(rows[i]);
}
setContentView(gameTable);
gameTable.postInvalidate();




}
}




--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---