Solved

tab icon issue

Posted on 2012-03-26
6
374 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 80
Where to store the queries for modification of table 4 55
github account with ecipse 1 42
eclipse argument 14 53
If your app took Google’s lash recently, here are the 5 most likely reasons.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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…

895 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

11 Experts available now in Live!

Get 1:1 Help Now