its is possible just bind your service with activity On Tue, Oct 19, 2010 at 4:31 PM, Rocky <[email protected]> wrote:
> thanx for tremendous ans. > > but i want to thr alertdialog in any way, like first call activity den thr > alert dialog, or call any java class, den any activity class, and den alert > dialog, > > so i mean, in any way, (any steps), it is not possible. > > > On Tue, Oct 19, 2010 at 4:25 PM, damodhar meshran <[email protected]>wrote: > >> Notification ,toast easy implemented in service >> >> On Tue, Oct 19, 2010 at 4:21 PM, Nithin <[email protected]> wrote: >> >>> >>> Service, normally use notifications.. not dialog.. >>> >>> Nithin >>> >>> >>> >>> >>> >>> On Oct 19, 3:35 pm, damodhar meshran <[email protected]> wrote: >>> > As per my knowledge its is not possible to display dialog in service >>> > >>> > On Tue, Oct 19, 2010 at 3:17 PM, RKJ (Android developer) < >>> > >>> > [email protected]> wrote: >>> > > Hey i want to use alert dialog in services, but i'm not getting the >>> > > dialog, >>> > >>> > > public void myEventOccurred(Event evt) { >>> > > // TODO Auto-generated method stub >>> > > System.out.print(">>>>><<<<<< Event fired..."); >>> > > new AlertDialog.Builder( this ) >>> > > .setTitle( R.string.SaveConnectionChangeWarningTitle ) >>> > > .setMessage( "Alert !" ) >>> > > .setPositiveButton( android.R.string.ok, >>> > > new DialogInterface.OnClickListener() >>> > > { >>> > > public void onClick( DialogInterface dialog, int >>> > > whichButton) >>> > > { >>> > > dialog.dismiss(); >>> > > } >>> > > }) >>> > > .show(); >>> > > } >>> > >>> > > is i'm doing wrong, (this alert dialog code is working in activity). >>> > >>> > > -- >>> > > You received this message because you are subscribed to the Google >>> > > Groups "Android Developers" group. >>> > > To post to this group, send email to >>> [email protected] >>> > > To unsubscribe from this group, send email to >>> > > [email protected]<android-developers%[email protected]> >>> <android-developers%[email protected]<android-developers%[email protected]> >>> > >>> > > 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 [email protected] >>> To unsubscribe from this group, send email to >>> [email protected]<android-developers%[email protected]> >>> 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 [email protected] >> To unsubscribe from this group, send email to >> [email protected]<android-developers%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > > > -- > Thanks & Regards > > Rakesh Kumar Jha > Software Developer > Symphony Services Corp (India) Pvt Ltd > Bangalore > (O) +918030274295 > (R) +919886336619 > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

