title: Unable to start activity ComponentInfo - Binary XML file line
body: <p>I am experiencing issues running my application on a physical device such as the Samsung Note 3 running on 4.4.2. For some odd reasons, the application works on the ace 2, as well as the emulator. To try and understand as to why it was not working on the note 3. I ran the application from eclipse through the device (connected it using a USB), and below is the log message that was generated from the unexpected error message that was triggered after login. The social media login is located in the login page, and then redirects users to another page, which is where the unexpected error is triggered.</p>
  <p>Below is the log cat message:</p>
  <pre><code>8-18 15:57:56.227: E/AndroidRuntime(19911): FATAL EXCEPTION: main
      08-18 15:57:56.227: E/AndroidRuntime(19911): Process: com.dooba.beta, PID: 19911
      08-18 15:57:56.227: E/AndroidRuntime(19911): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dooba.beta/com.dooba.beta.MoodActivity}: android.view.InflateException: Binary XML file line #90: Error inflating class &lt;unknown&gt;
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2282)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2340)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.app.ActivityThread.access$800(ActivityThread.java:157)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.os.Handler.dispatchMessage(Handler.java:102)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.os.Looper.loop(Looper.java:157)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.app.ActivityThread.main(ActivityThread.java:5293)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at java.lang.reflect.Method.invokeNative(Native Method)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at java.lang.reflect.Method.invoke(Method.java:515)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at dalvik.system.NativeStart.main(Native Method)
      08-18 15:57:56.227: E/AndroidRuntime(19911): Caused by: android.view.InflateException: Binary XML file line #90: Error inflating class &lt;unknown&gt;
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.view.LayoutInflater.createView(LayoutInflater.java:626)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.view.LayoutInflater.onCreateView(LayoutInflater.java:675)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:700)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.view.LayoutInflater.inflate(LayoutInflater.java:498)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:340)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.app.Activity.setContentView(Activity.java:1973)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at com.dooba.beta.MoodActivity.onCreate(MoodActivity.java:20)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.app.Activity.performCreate(Activity.java:5389)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2246)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    ... 11 more
      08-18 15:57:56.227: E/AndroidRuntime(19911): Caused by: java.lang.reflect.InvocationTargetException
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at java.lang.reflect.Constructor.constructNative(Native Method)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.view.LayoutInflater.createView(LayoutInflater.java:600)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    ... 24 more
      08-18 15:57:56.227: E/AndroidRuntime(19911): Caused by: java.lang.OutOfMemoryError
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:677)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:507)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:872)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.content.res.Resources.loadDrawable(Resources.java:3022)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.content.res.TypedArray.getDrawable(TypedArray.java:602)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.view.View.&lt;init&gt;(View.java:3694)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.widget.TextView.&lt;init&gt;(TextView.java:868)
  
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.widget.Button.&lt;init&gt;(Button.java:108)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    at android.widget.Button.&lt;init&gt;(Button.java:104)
      08-18 15:57:56.227: E/AndroidRuntime(19911):    ... 27 more
  </code></pre>
  <p>class activity</p>
  <pre><code>public class LoginActivity extends Activity {
  
      private Button facebookButton;
      private Button twitterButton;
      private Dialog progressDialog;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          setContentView(R.layout.main);
          
          twitterButton = (Button) findViewById(R.id.twitterButton);
          twitterButton.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  findViewById(R.id.twitterButton).setBackgroundResource(R.drawable.ltwitternf);
                  onTwitterButtonClicked();
              }
          });
  
          facebookButton = (Button) findViewById(R.id.facebookButton);
          facebookButton.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  findViewById(R.id.facebookButton).setBackgroundResource(R.drawable.lfacebooknf);
                  onLoginButtonClicked();
                  
  
              }
          });
  
          // Check if there is a currently logged in user
          // and they are linked to a Facebook account.
          ParseUser currentUser = ParseUser.getCurrentUser();
          if ((currentUser != null) &amp;&amp; ParseFacebookUtils.isLinked(currentUser)) {
              // Go to the user info activity
              intropage();                
          }
      }
      
      
      
      
  
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main, menu);
          return true;
      }
  
      @Override
      public void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
          ParseFacebookUtils.finishAuthentication(requestCode, resultCode, data);
          
          
      }
      
      
  
      private void onLoginButtonClicked() {
          LoginActivity.this.progressDialog = ProgressDialog.show(
                  LoginActivity.this, &quot;&quot;, &quot;Logging in...&quot;, true);
          List&lt;String&gt; permissions = Arrays.asList(&quot;public_profile&quot;, &quot;user_about_me&quot;,
                  &quot;user_relationships&quot;, &quot;user_birthday&quot;, &quot;user_location&quot;);
          ParseFacebookUtils.logIn(permissions, this, new LogInCallback() {
              @Override
              public void done(ParseUser user, ParseException err) {
                  LoginActivity.this.progressDialog.dismiss();
                  if (user == null) {
                      Log.d(IntegratingFacebookTutorialApplication.TAG,
                              &quot;Uh oh. The user cancelled the Facebook login.&quot;);
                  } else if (user.isNew()) {
                      Log.d(IntegratingFacebookTutorialApplication.TAG,
                              &quot;User signed up and logged in through Facebook!&quot;);
                      showUserDetailsActivity();
      
                  } else {
                      Log.d(IntegratingFacebookTutorialApplication.TAG,
                              &quot;User logged in through Facebook!&quot;);
                  moodpage();             
  
                  }
              }
          });
      }
      
      private void onTwitterButtonClicked() {
          ParseTwitterUtils.logIn(this, new LogInCallback() {
                @Override
                public void done(ParseUser user, ParseException err) {
                  if (user == null) {
                    Log.d(&quot;MyApp&quot;, &quot;Uh oh. The user cancelled the Twitter login.&quot;);
                  } else if (user.isNew()) {
                    Log.d(&quot;MyApp&quot;, &quot;User signed up and logged in through Twitter!&quot;);
                    showUserDetailsActivity();        
                    } else {
                    Log.d(&quot;MyApp&quot;, &quot;User logged in through Twitter!&quot;);
                    moodpage();               }
                }
                
              });
      }
      
  
      private void showUserDetailsActivity() {
          Intent intent = new Intent(this, ProfileCreation.class);
          startActivity(intent);
      }
      
      private void moodpage() {
          Intent intent = new Intent(this, MoodActivity.class);
          startActivity(intent);
      }
      
      private void intropage() {
          Intent intent = new Intent(this, introActivity.class);
          startActivity(intent);
      }
  }
  </code></pre>
  <p>Below is the moodactivity page</p>
  <pre><code>public class MoodActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_mood);
          
          final TextView teating = (TextView) this.findViewById(R.id.tdinning);
          teating.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  MoodActivity.this.startActivity(new Intent(MoodActivity.this, CasualEventsActivity.class));
              }
          });
          
          final ImageView ieating = (ImageView) this.findViewById(R.id.idinning);
          ieating.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  MoodActivity.this.startActivity(new Intent(MoodActivity.this, CasualEventsActivity.class));
              }
          });
          
          final TextView tdrinks = (TextView) this.findViewById(R.id.tcasual);
          tdrinks.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  MoodActivity.this.startActivity(new Intent(MoodActivity.this, CasualEventsActivity.class));
              }
          });
          
          final ImageView idrinks = (ImageView) this.findViewById(R.id.icasual);
          idrinks.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  MoodActivity.this.startActivity(new Intent(MoodActivity.this, CasualEventsActivity.class));
              }
          });
          
          final TextView tshows = (TextView) this.findViewById(R.id.tshows);
          tshows.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  MoodActivity.this.startActivity(new Intent(MoodActivity.this, CultureEventsActivity.class));
              }
          });
          
          final ImageView ishows = (ImageView) this.findViewById(R.id.ishows);
          ishows.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  MoodActivity.this.startActivity(new Intent(MoodActivity.this, CultureEventsActivity.class));
              }
          });
          
          final TextView tarts = (TextView) this.findViewById(R.id.tculture);
          tarts.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  MoodActivity.this.startActivity(new Intent(MoodActivity.this, CultureEventsActivity.class));
              }
          });
          
          final ImageView iarts = (ImageView) this.findViewById(R.id.iculture);
          iarts.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  MoodActivity.this.startActivity(new Intent(MoodActivity.this, CultureEventsActivity.class));
              }
          });
          
          final Button viewall = (Button) this.findViewById(R.id.brandom);
          viewall.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  MoodActivity.this.startActivity(new Intent(MoodActivity.this, CasualEventsActivity.class));
              }
          });
      }
      
      
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
  
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main_activity_actions, menu);
          getActionBar().setDisplayShowTitleEnabled(false);
          
  
          
          return true;
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          // Handle presses on the action bar items
          switch (item.getItemId()) {
              case R.id.pageExperience:
                  openPageExperience();
                  return true;
              case R.id.pageMessaging:
                  openPageMessage();
                  return true;
                  
              case R.id.pageEventsBooking:
                  openPageBook();
                  return true;
                  
              case R.id.pageProfile:
                  openPageProfile();
                  return true;
                  
              case R.id.pageReport:
                  openPageReport();
                  return true;
                  
              case R.id.pageAbout:
                  openPageAbout();
                  return true;
                  
              default:
                  return super.onOptionsItemSelected(item);
          }
      }
  
      private void openPageAbout() {
          // TODO Auto-generated method stub
      
      }
  
      private void openPageReport() {
          // TODO Auto-generated method stub
          
      }
  
      private void openPageProfile() {
          // TODO Auto-generated method stub
          Intent intent = new Intent(this, ProfileChange.class);
          startActivity(intent);
          
      }
  
      private void openPageBook() {
          // TODO Auto-generated method stub
          
      }
  
      private void openPageMessage() {
          // TODO Auto-generated method stub
          
      }
  
      private void openPageExperience() {
          // TODO Auto-generated method stub
          Intent intent = new Intent(this, MoodActivity.class);
          startActivity(intent);
      }
      
  }
  </code></pre>
  <p>If you need clarification, let me know.
  Thanks in advance.</p>