0

Here I have a main class that extends activity and having a function say abc(). Now I want to call it in my services class. But I am unable to do that plz some one help as I found error : "Source not found"..

Simon Gates
  • 23
  • 1
  • 1
  • 11
  • Welcome to Stackoverflow community. Please do practice of asking question with details like **code/effort** you have tried, **logcat output** if you are getting any exception, problem snaps.... – Paresh Mayani Jun 11 '12 at 06:18
  • public class Abc extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main);} – Simon Gates Jun 11 '12 at 06:39
  • Possible duplicate of [In Android: How to Call Function of Activity from a Service?](http://stackoverflow.com/questions/2843874/in-android-how-to-call-function-of-activity-from-a-service) – Guido Mar 25 '16 at 17:26

1 Answers1

0

Maybe some of the related Topics/Questions have already solved your problem, e.g.

In Android: How to Call Function of Activity from a Service?

Call a Method in the main activity from a custom view

How to call An activity class from a service class

Community
  • 1
  • 1
banzai86
  • 727
  • 1
  • 5
  • 13