Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9230171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:45:27+00:00 2026-06-18T05:45:27+00:00

<?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.thenewboston.travis android:versionCode=1 android:versionName=1.0 > <uses-sdk android:minSdkVersion=10 android:targetSdkVersion=17 /> <application

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

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

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <activity
        android:name=".Splash"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".startingPoint"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="com.thenewboston.travis.STARTINGPOINT" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
</application>

</manifest>

1) this is my xml manifest

package com.thenewboston.travis;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class Splash extends Activity{

@Override
protected void onCreate(Bundle InstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(InstanceState);
    setContentView(R.layout.splash);
    Thread timer = new Thread(){
        public void run(){
            try{
                sleep(5000);
            } catch (InterruptedException e){
                e.printStackTrace();
            }finally{
                Intent openStartingPoint = new       Intent("com.thenewboston.travis.STARTINGPOINT");
                startActivity(openStartingPoint);
            }
        }
    };
    timer.start();

}


}

2) this is my splash java activity

package com.thenewboston.travis;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class startingPoint extends Activity {

int counter;
Button add, sub;
TextView display;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    counter = 0;
    add = (Button) findViewById(R.id.bAdd);
    sub = (Button) findViewById(R.id.bSub);
    display = (TextView) findViewById(R.id.tvDisplay);
    add.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            counter += 1;
            display.setText("Your total is" + counter);
        }
    });
    sub.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub
            counter -= 1;
            display.setText("Your total is" + counter);
        }
    });
}

}

3)and that is my starting point java activity

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
tools:context=".MainActivity" >

<TextView
    android:id="@+id/tvDisplay"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:gravity="center"
    android:text= "@string/text"
    android:textSize="@string/text_size" />

<Button
    android:id="@+id/bAdd"
    android:layout_width="250dp"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:text="@string/atext"
    android:textSize="@string/btext_size" />

<Button
    android:id="@+id/bSub"
    android:layout_width="250dp"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:text="@string/stext"
    android:textSize="@string/btext_size" />

</LinearLayout>

4) this is my main xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" 
android:background="@drawable/splash">


</LinearLayout>

5)this is my splash xml

01-30 17:43:17.396: E/(7511): <s3dReadConfigFile:75>: Can't open file for reading
01-30 17:43:17.396: E/(7511): <s3dReadConfigFile:75>: Can't open file for reading
01-30 17:43:22.391: E/AndroidRuntime(7511): FATAL EXCEPTION: main
01-30 17:43:22.391: E/AndroidRuntime(7511): java.lang.RuntimeException: Unable to start   activity ComponentInfo{com.thenewboston.travis/com.thenewboston.travis.startingPoint}:   android.view.InflateException: Binary XML file line #9: Error inflating class <unknown>
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2088)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2113)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.app.ActivityThread.access$700(ActivityThread.java:139)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1224)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.os.Handler.dispatchMessage(Handler.java:99)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.os.Looper.loop(Looper.java:137)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at  android.app.ActivityThread.main(ActivityThread.java:4918)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at java.lang.reflect.Method.invokeNative(Native Method)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at java.lang.reflect.Method.invoke(Method.java:511)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1004)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:771)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at dalvik.system.NativeStart.main(Native Method)
01-30 17:43:22.391: E/AndroidRuntime(7511): Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class <unknown>
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.view.LayoutInflater.createView(LayoutInflater.java:613)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at   com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:    56)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:306)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.app.Activity.setContentView(Activity.java:1901)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at com.thenewboston.travis.startingPoint.onCreate(startingPoint.java:19)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.app.Activity.performCreate(Activity.java:5048)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2052)
01-30 17:43:22.391: E/AndroidRuntime(7511):     ... 11 more
01-30 17:43:22.391: E/AndroidRuntime(7511): Caused by: java.lang.reflect.InvocationTargetException
01-30 17:43:22.391: E/AndroidRuntime(7511):     at java.lang.reflect.Constructor.constructNative(Native Method)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at   android.view.LayoutInflater.createView(LayoutInflater.java:587)
01-30 17:43:22.391: E/AndroidRuntime(7511):     ... 24 more
01-30 17:43:22.391: E/AndroidRuntime(7511): Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x3
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:463)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.widget.TextView.<init> (TextView.java:898)
01-30 17:43:22.391: E/AndroidRuntime(7511):     at android.widget.TextView.<init>   (TextView.java:556)
01-30 17:43:22.391: E/AndroidRuntime(7511):     ... 27 more

6) This is my log cat

7) This code runs the splash screen but when the 5000ms is done it crashes????

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:45:28+00:00Added an answer on June 18, 2026 at 5:45 am

    From the LogCat:

    Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x3
        at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:463)
        at android.widget.TextView.<init> (TextView.java:898)
        at android.widget.TextView.<init>   (TextView.java:556)
    

    I don’t think a text size can be represented by a string.

    <TextView
        ...
        android:textSize="@string/text_size" />
    

    Try hard coding this value for all of your Views:

    <TextView
        ...
        android:textSize="16sp" />
    

    If it works, look into Styles and Themes for the appropriate way to set one text size for every View.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.androidgames android:versionCode=1 android:versionName=1.0> <uses-sdk android:minSdkVersion=3 /> <application android:icon=@drawable/icon android:label=@string/app_name>
<?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.android> <application android:icon=@drawable/ic_launcher android:label=@string/app_name> <activity android:name=.hba1c android:label=@string/app_name android:screenOrientation=portrait> <intent-filter>
<?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=sditm.app android:versionCode=1 android:versionName=1.0 > <uses-sdk android:minSdkVersion=8 /> <application android:icon=@drawable/ic_launcher
<?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.org.EasyUpload android:versionCode=1 android:versionName=1.0> <uses-sdk android:minSdkVersion=7 /> <application android:icon=@drawable/icon android:label=@string/app_name>
So, this is my manifest: <?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=info.dierrelabs.h4m android:versionCode=1 android:versionName=1.0> <uses-sdk
This is the manifest file <?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=net.learn2develop.SMSMessaging android:versionCode=1 android:versionName=1.0> <uses-sdk
My Manifest file is below <?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=FXPAL.Unity.Android android:versionCode=1 android:versionName=1.0 >
So this is my Android Manifest <?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.xxx.xxxxxxxxxxxxxxxx android:versionCode=3 android:versionName=1.02>
Here's my Manifest: <?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.mappp.mobile android:versionCode=1 android:versionName=1.0 > <supports-screens android:largeScreens=true
I have the following AndroidManifest.xml : <?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=my.app android:versionCode=1 android:versionName=1.0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.