title: android.content.res.Resources$NotFoundException: Resource ID #0x0
body: <p>I am following steps to fetch data from Linkedin.     But I am getting error:</p>
  
  <p>04-25 15:19:09.516    3078-3078/app.plusconnect.com.linkedindummy E/AndroidRuntime﹕ FATAL EXCEPTION: main
      android.content.res.Resources$NotFoundException: Resource ID #0x0</p>
  
  <pre><code>public class MainActivity extends ActionBarActivity {
  
  //declaration
  SocialAuthAdapter adapter;
  Button linkedin_button;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      adapter = new SocialAuthAdapter(new ResponseListener());
  
      linkedin_button = (Button)findViewById(R.id.SubmitButton);
      linkedin_button.setBackgroundResource(R.mipmap.linkedin);
  
      linkedin_button.setOnClickListener(new View.OnClickListener()
      {
          public void onClick(View v)
          {
              adapter.authorize(MainActivity.this, Provider.LINKEDIN);
          }
      });
  
  }
  
  public class ResponseListener implements DialogListener {
  
      @Override
      public void onComplete(Bundle bundle) {
  
          adapter.getUserProfileAsync(new ProfileDataListener());
      }
  
      @Override
      public void onError(SocialAuthError socialAuthError) {
      }
  
      @Override
      public void onCancel() {
      }
  
      @Override
      public void onBack() {
      }
  }
  
  public class ProfileDataListener implements SocialAuthListener&lt;Profile&gt; {
  
      @Override
      public void onExecute(String s, Profile profile) {
          Log.d("Custom-UI", "Receiving Data");
          Profile profileMap = profile;
          Log.d("Custom-UI",  "Validate ID         = " + profileMap.getValidatedId());
          Log.d("Custom-UI",  "First Name          = " + profileMap.getFirstName());
          Log.d("Custom-UI",  "Last Name           = " + profileMap.getLastName());
          Log.d("Custom-UI",  "Email               = " + profileMap.getEmail());
          Log.d("Custom-UI",  "Country                  = " + profileMap.getCountry());
          Log.d("Custom-UI",  "Language                 = " + profileMap.getLanguage());
          Log.d("Custom-UI",  "Location                 = " + profileMap.getLocation());
          Log.d("Custom-UI", "Profile Image URL  = " + profileMap.getProfileImageURL());
  
      }
  
      @Override
      public void onError(SocialAuthError socialAuthError) {
      }
  }
  
  }
  </code></pre>
  
  <p>this is the layout file</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
  android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"
  android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"&gt;
  
  &lt;TextView
      android:id="@+id/textMessage"
      android:padding="20dp"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerHorizontal="true"
      android:layout_centerVertical="true"
      android:text="Test Connect application like to fetch Profile details from LinkedIn Account."/&gt;
  
  &lt;!-- Submit button --&gt;
  &lt;Button
      android:id="@+id/SubmitButton"
      android:layout_width="200dp"
      android:layout_height="40dp"
      android:layout_marginBottom="20dp"
      android:background="@android:color/holo_blue_dark"
      android:text="Fetch from LinkedIn"
      android:textColor="@android:color/white"
      android:layout_alignParentBottom="true"
      android:layout_centerHorizontal="true"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>I am getting following error in logcat:</p>
  
  <pre><code>04-25 15:19:09.456    3078-3078/app.plusconnect.com.linkedindummy     W/ResourceType﹕ No package identifier when getting value for resource number 0x00000000
  04-25 15:19:09.477    3078-3078/app.plusconnect.com.linkedindummy W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
  04-25 15:19:09.516    3078-3078/app.plusconnect.com.linkedindummy E/AndroidRuntime﹕ FATAL EXCEPTION: main
  android.content.res.Resources$NotFoundException: Resource ID #0x0
          at android.content.res.Resources.getValue(Resources.java:1018)
          at android.content.res.Resources.getDrawable(Resources.java:663)
          at org.brickred.socialauth.android.SocialAuthDialog.setUpTitle(SocialAuthDialog.java:191)
          at org.brickred.socialauth.android.SocialAuthDialog.onCreate(SocialAuthDialog.java:146)
          at android.app.Dialog.dispatchOnCreate(Dialog.java:353)
          at android.app.Dialog.show(Dialog.java:257)
          at org.brickred.socialauth.android.SocialAuthAdapter$4$1.run(SocialAuthAdapter.java:649)
          at android.os.Handler.handleCallback(Handler.java:605)
          at android.os.Handler.dispatchMessage(Handler.java:92)
          at android.os.Looper.loop(Looper.java:137)
          at android.app.ActivityThread.main(ActivityThread.java:4424)
          at java.lang.reflect.Method.invokeNative(Native Method)
          at java.lang.reflect.Method.invoke(Method.java:511)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
          at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>Where is the problem? Can anybody help please?</p>