Solved

tab icon issue

Posted on 2012-03-26
6
385 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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 500 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

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!

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This video teaches viewers about errors in exception handling.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

734 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