Discussion on:

4
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
Editor’s Choice
biggest fan
dr_oopie 9th Oct 2011 Editor’s Choice
its 2:00am on a saturday night, sunday morning. before going to bed on the weekends, i check the tech republic pages for new tech updates. i especially look forward to try out each weeks tutorial from William J. Francis. he is the greatest tutorial writer i have seen for android. this latest tutorial actually woke me up from laughing throughout the page. keep up the great work!
0 Votes
+ -
it requires a missing jar. the source is pointing to a jar located at the editors location.

http://developer.android.com/sdk/compatibility-library.html#Downloading
in the eclipse project properties, go to JAVA BUILD PATH and click ADD EXTERNAL JAR.
0 Votes
+ -
adding icons to tabs
dr_oopie Updated - 14th Oct 2011
all i did was follow this.. http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

to test it out and learn how to add icons, i just did exactly what step 3 says to do.
jumped to step 6 in the main.java class and added..

Resources res = getResources(); // Resource object to get Drawables

then changed

ts1.setIndicator("First Tab").setContent(new Intent(this,tab1.class));

to

ts1.setIndicator("First Tab",res.getDrawable(R.drawable.ic_tab_artists)).setContent(new Intent(this,tab1.class));

all it does is add ,res.getDrawable(R.drawable.ic_tab_artists) after "First Tab". works great!
0 Votes
+ -
Contributr
Missing JAR
authorwjf 17th Oct 2011
Sorry about that guys! Actually the compatibility library isn't really needed for this project. I just failed to start from a clean environment. Oops. Thanks @ dr_oopie though for pointing other readers to the JAR download. I will try and be more diligent when packaging up my source code downloads in the future.
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.