Solved

tab icon issue

Posted on 2012-03-26
6
376 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
ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to get all the API from website? 11 90
oracle 11g 23 83
fibonacci ten numbers 4 38
How can I stop employees from downloading apps on their company phones? 6 38
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
This is an explanation of a simple data model to help parse a JSON feed
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

773 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