Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your code is</p> <pre><code>@Override public SlidingMenu getSlidingMenu() { // TODO Auto-generated method stub return null; } </code></pre> <p>You are returning null from this method. You should add your code to return the slidingmenu instance <strong>that you should have created elsewhere</strong> (most likely in the OnCreate() method of your activity).</p> <p>If you return null, that is exactly what you will get.</p> <p>You would be better following the "<a href="https://github.com/jfeinstein10/SlidingMenu#simple-example" rel="nofollow">Simple Example</a>" on the github page rather than implementing the <code>SlidingActivityBase</code> interface.</p> <p>By implementing the interface you are saying that you want to handle all of the coding for the slidingmenu system and do not want to use the built in code. </p> <p>Implementing an interface (what you are doing) is an entirely different thing to extending a base class (what is explained in the tutorial you are following).</p> <p>Your choices are:</p> <ol> <li><p>Forget the tutorial you have found as it does not apply to you and implement your sliding menu manually using the instructions <a href="https://github.com/jfeinstein10/SlidingMenu#how-to-integrate-this-library-into-your-projects" rel="nofollow">here</a>. This method does not require you to extend or implement anything and is the easier option.</p></li> <li><p>You have the source code for both <a href="https://github.com/JakeWharton/ActionBarSherlock" rel="nofollow">ActionbarSherlock</a> and <a href="https://github.com/jfeinstein10/SlidingMenu" rel="nofollow">SlidingMenu</a>. Change it so SlidingActivity extends the Sherlock Activity instead of the standard Activity.</p></li> <li><p>Continue implementing the interface but you have to write the code for all of the implemented methods. Easier than it sounds as you can basically copy the code in the class <strong><a href="https://github.com/jfeinstein10/SlidingMenu/blob/master/library/src/com/jeremyfeinstein/slidingmenu/lib/app/SlidingActivity.java" rel="nofollow">here</a></strong> with a minor adjustment to the class declaration like this.</p> <pre><code>public class SlidingActivity extends Activity implements SlidingActivityBase { </code></pre> <p>change to</p> <pre><code>public class SherlockSlidingActivity extends SherlockFragmentActivity implements SlidingActivityBase { </code></pre></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload