Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

tab icon issue

Posted on 2012-03-26
6
Medium Priority
?
388 Views
Last Modified: 2012-06-27
I have been following this tutorial on tabs and icons.

http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

I created all the files without errors from copying the code, and placed the icons in the 3 directories as there isnt a simple res/ dir. Eclipse has drawables in res/hdpi  res/ldpi etc

Anyway I get a force to  close errorwhen running the program  and after simply copying all the code, where do I go from here?
0
Comment
Question by:jagguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 

Author Comment

by:jagguy
ID: 37769395
1st error was
03-27 00:53:00.320: W/dalvikvm(277): threadid=1: thread exiting with uncaught exception (group=0x4001d800)

each file code is in this file except songs,artists .java which are copies of albums.java
tab.docx
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37769408
so are you OK now?
I acnnot open word documents so don't know what your prervious post says
0
 

Author Comment

by:jagguy
ID: 37769457
Hi,

I cant proceed with the tabs as I dont know how to run the tutorial in
http://developer.android.com/resources/tutorials/views/hello-tabwidget.html

I cant see why it wont run.

I cant view graphical output in main.xml either.

why cant you open word docs? what format is preferred?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 47

Expert Comment

by:for_yan
ID: 37769607
Yes, it did work for me
The main isse for me was to add these three additional activty - Albums, Artists, Song to the manifest file.
Checke if you did it, if not add them and check if it works

I aslo created foilder drawable i  res and placed there three xml files and two .png files which I downloaded with icons
after that it worked - trty if it doeas not work - ill make spnapshot of my project picture

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example7"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="10" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name=".HelloTabWidget2Activity"
            android:label="@string/app_name" 
            android:theme="@android:style/Theme.NoTitleBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
      <activity
            android:name=".AlbumsActivity"/> 
           <activity
            android:name=".ArtistsActivity"/> 
              <activity
            android:name=".SongsActivity"/>       
        
    </application>

</manifest>

Open in new window

0
 
LVL 47

Accepted Solution

by:
for_yan earned 2000 total points
ID: 37769614
albums_songseclipse_albums_songs
0
 

Author Comment

by:jagguy
ID: 37769676
the manifest file was the problem as your code fixed it.


 well done for this again!
0

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
There is a lot to be said for protecting yourself and your accounts with 2 factor authentication.  I found to my own chagrin, that there is a big downside as well.
This video teaches viewers about errors in exception handling.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question