Android findViewById in service

I am doing something like when a service get started, a custom toast notification shows up.

The custom toast view is defined in a xml file, the problem is that findViewById is not available in Service class.

  • change the height of custom dialog in Dialog Fragment
  • How to upload file to dropbox from url?
  • Divider not working for TitlePageIndicator with viewpagerindicator & actionbarsherlock
  • how to get Activity's windowToken without view?
  • Show marker inside a resource drawable which obtained from url
  • Wifi Connect-Disconnect Listener
  • Since it’s a bad idea to start an activity in a service. So, how can i solve this problem ?

    Related posts:

    How can I create an AttributeSet from a style.xml?
    zooming and dragging images using matrix in android
    Android Grid View Scroll Horizontally
    Android Google Chrome not firing after lockscreen app
    Android BLE Passive scan
    Android: java.net.protocolException does not support output
    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.