Created
          February 17, 2012 15:54 
        
      - 
      
- 
        Save meeDamian/1854124 to your computer and use it in GitHub Desktop. 
    Service in TabActivity - News Activity
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package com.example.app; | |
| import com.example.R; | |
| import android.app.ListActivity; | |
| import android.os.Bundle; | |
| import android.view.View; | |
| import android.widget.AdapterView; | |
| import android.widget.AdapterView.OnItemClickListener; | |
| import android.widget.ListView; | |
| import android.widget.Toast; | |
| public class NewsActivity extends ListActivity { | |
| public void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.news_list); | |
| ListView lv = getListView(); | |
| // How to reference to mService.pastafarianism() from here ? | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment