Solved

tab icon issue

Posted on 2012-03-26
6
371 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
  • 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now