[android-developers] Keep runing the timer even switch over in new activity

2012-04-02 Thread jugni
hello all,

I have activity in which timer and it is running perfectly.I am going from 
this activity to other class and i am doing some task in that and come back 
to timer activity.But the problem is that when i comeback from other 
activity to current then timer is start from 00:00.I want to it will show 
the time as continuesly running.can any body know how to dfo this?I have 
use the preference and store the last pause value and start with that value 
when it will comeback in current activity.But the time which was in other 
activity that time also want to add in this time.so how can i do this?

-- 
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: Background listener getting killed

2012-03-28 Thread jugni
Hello ,

i have the android:enable=true.but when my application is run in background 
then call will not work that means we cant accept or reject call.When i am 
in application in front then all this work perfectly so what can i 
do?Thanks in advance.


On Thursday, 26 November 2009 00:00:12 UTC+5:30, Ravi wrote:

 I have an app that listens to incming Calls. If the user has another 
 app that listens to the same (Call popup applicaitons in specific) my 
 process is getting killed - any solutions or ideas on how to prevent 
 this ? 


On Thursday, 26 November 2009 00:00:12 UTC+5:30, Ravi wrote:

 I have an app that listens to incming Calls. If the user has another 
 app that listens to the same (Call popup applicaitons in specific) my 
 process is getting killed - any solutions or ideas on how to prevent 
 this ? 


-- 
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] [sip calling] application unregister and again register the user when push the notification during background running application

2012-03-28 Thread jugni
Hello All,

i have problem like when i press the home button then it will run in 
background.when my call is come in application then it will popup the 
alertdialog box.But when i press the accept or reject button in dialogbox 
then call is not handle.I think that is bacause when once the application 
is go to background and comeback in root then call state will me remove 
because for takling application in root i have call one other activity in 
broadcastreceiver and comeback from that activity to broadcast receiver.I 
have also test when the application run in background and i push the 
notification then it will come in front but the user is unregister and then 
again register this will happen.This is may be occure because i have call 
the main activity when push the notification and my call is handle in 
broadcastreciver class.so can any body help me for solving the 
problem.Anyway i need the call will properly need to handle when the 
application come from background to front.Thanks in advance

-- 
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] open application through hold-pressing home key will unregister the user then again register the user

2012-03-28 Thread jugni
hello all,

I press the home key for move the application to run in background and when 
i want to open that application then i pressing home key long time it will 
display all running activity.and i click on my application so i need it 
will open at last state where it is run in background but it will execute 
some code of application which will register the user in main activity.can 
we said that it is run from oncreate() or on what state?.or how can we 
perevent this code will not execute when the application come from 
background to front.Thanks in advance.

-- 
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: open application through hold-pressing home key will unregister the user then again register the user

2012-03-28 Thread jugni
now it is fixed.Actually onstart() i have call the function so that when 
the application come in front then it is call the onstart() thats why i am 
getting this unregister and register process.

On Wednesday, 28 March 2012 15:50:59 UTC+5:30, jugni wrote:

 hello all,

 I press the home key for move the application to run in background and 
 when i want to open that application then i pressing home key long time it 
 will display all running activity.and i click on my application so i need 
 it will open at last state where it is run in background but it will 
 execute some code of application which will register the user in main 
 activity.can we said that it is run from oncreate() or on what state?.or 
 how can we perevent this code will not execute when the application come 
 from background to front.Thanks in advance.


-- 
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] open menu in preferenceactivity class from activity class.

2012-03-27 Thread jugni
hello all

i want to open the menu which is created in main activity into prefeernce 
activity?
So can i open the menu and also work all the item as work in main activity.

-- 
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] write addPreferencesFromResource(R.xml.preferences); without extending preferenceactivity

2012-03-27 Thread jugni
hello all i want to write
addPreferencesFromResource(R.xml.preferences);  in class file that
does not extend prefercneceactivity.so how can i write that?

-- 
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: Save the whole Intent and context at somewhere

2012-03-27 Thread jugni
hello Ali Chousein ,

your reply will not handle my  call when my application is running in 
background.Is there any other way?

On Saturday, March 24, 2012 3:37:30 PM UTC+5:30, Ali Chousein wrote:

 When you register to ACTION_ANSWER it should work normally actually. 
 There is a short thread on this here: 

 http://stackoverflow.com/​questions/5990590/how-to-​detect-phone-call-broadcast-​receiver-in-androidhttp://stackoverflow.com/questions/5990590/how-to-detect-phone-call-broadcast-receiver-in-android
  
  This is such a common functionality, I'm sure you can find lots of 
 other examples. 

 If your implementation doesn't work, it's probable you are doing 
 something wrong when handling the related broadcast receiver. It might 
 be worth to check out this tutorial: 
 http://www.vogella.de/​articles/AndroidServices/​article.htmlhttp://www.vogella.de/articles/AndroidServices/article.html
  

 --​--- 
 Ali Chousein 
 http://socialnav.blogspot.com | http://twitter.com/socialnav1 
 http://weatherbuddy.blogspot.​com http://weatherbuddy.blogspot.com | 
 http://twitter.com/weather_​buddy http://twitter.com/weather_buddy 
 http://www.codeproject.com/KB/​android/PayGol-Android.aspxhttp://www.codeproject.com/KB/android/PayGol-Android.aspx
  
 http://geo-filtered-assistant.​blogspot.comhttp://geo-filtered-assistant.blogspot.com
  


 On Mar 24, 6:30 am, Jagruti Sangani jagruti.sang...@inextrix.com 
 wrote: 
  My problem is that when the application go in background running and 
 call 
  arrive then that application cant handle the call in front. 
 

-- 
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] Etends two activity in one class file

2012-03-27 Thread jugni
Hello all,

i have one class file in which i have extends preferenceActivity.now i also 
want to extends mainactivity because in main activity i have created the 
menu that menu i need in this preference class.so is it possiblem to extend 
preferenceactivity and mainactivity within on class file?

-- 
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: Start service

2012-03-27 Thread jugni
write like context.startservice();


On Sunday, 4 July 2010 23:29:34 UTC+5:30, Alex wrote:

 Hi there, 
 I am trying to start a service from the BroadcastReceiver, but I keep 
 getting the startService line marked as an error (The constructor 
 Intent(alarmReceiver, ClassaService) is undefined) 

 public class alarmReceiver extends BroadcastReceiver{ 

 NotificationManager notifMgr; 

 private static final int NOTIFICATION_ID = 0; 

 @Override 
 public void onReceive(Context context, Intent intent) { 

 startService(new Intent(this,aService.class)); 
 } 
 } 

 Any help is greatly appreciated. 
 Thanks!! 



On Sunday, 4 July 2010 23:29:34 UTC+5:30, Alex wrote:

 Hi there, 
 I am trying to start a service from the BroadcastReceiver, but I keep 
 getting the startService line marked as an error (The constructor 
 Intent(alarmReceiver, ClassaService) is undefined) 

 public class alarmReceiver extends BroadcastReceiver{ 

 NotificationManager notifMgr; 

 private static final int NOTIFICATION_ID = 0; 

 @Override 
 public void onReceive(Context context, Intent intent) { 

 startService(new Intent(this,aService.class)); 
 } 
 } 

 Any help is greatly appreciated. 
 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] show the incoming call screen in front when the application run in backgound

2012-03-19 Thread jugni
hello,

I have two incomingcallreceiver java class file.in that i have made
the alertdialog which will popup when the call is arrive in
application.but when my application is run in background then it will
not show this pop up.I have got one solution for showing this popup
like when the call arrive then open the other activity class file so
that the background application is pop up the alertdialog in
front.This is done succssfullt.but now the problem is that when the
call is arrive that time it come in incomingcallreceiver class which
handle the call and from that this new activity will open for showing
the alert dialogbox.so when in dialog i press the accept or reject
then the will not answer or reject.it might be because of call handle
in incomingcallreceiver and i try to end in new activity class.so how
can i again go in incomingcallreceiver class for call reject or
receive.or can i call the method of reject or accept of
incomincallreceiver from new activity class?

-- 
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] Loudspeaker on

2012-03-15 Thread jugni
Hello,
I want to make speaker on when my call is live.So can anybody know how
can i do when click on button then speaker will on.I am using the sip
demo example for making and receiving the call.
Thanks in advance.

-- 
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] Take the dialogbox in notification

2012-03-14 Thread jugni
Hello All,

I want to show the notification in statusbar when the call is
incoming.And also with the notification i want to sho the dialogbox
for accept or reject the call.and also as per accept or reject in
dialogbox i can do work in my application.My application is running in
background but when the call will come then this notification i want
to show.Can anybody help me.

Thanks in advance.

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