Wrox Programmer Forums
|
BOOK: Beginning Android 4 Application Development
This is the forum to discuss the Wrox book Beginning Android 4 Application Development by Wei-Meng Lee; ISBN: 978-1-1181-9954-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android 4 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 10th, 2014, 12:04 PM
Registered User
 
Join Date: Feb 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default error in debugging hello world

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

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="This is my first Android Application!" />

<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="And this is a clickable button!" />

</LinearLayout>

*error is on 10th line,no resource found dat matches the string
 
Old February 11th, 2014, 02:08 PM
Registered User
 
Join Date: Feb 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

would like to get my hands on the code in pdf form can u help
thanks mikec
 
Old February 16th, 2014, 12:23 PM
Registered User
 
Join Date: Feb 2014
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Shashwat Singh View Post
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="This is my first Android Application!" />

<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="And this is a clickable button!" />

</LinearLayout>

*error is on 10th line,no resource found dat matches the string
Your error is android:text="@string/hello"
You did not add entry to strings.xml file.

If you don't want to go through the hassle of adding an entry to strings.xml, change that line to android:text="hello world"
 
Old February 16th, 2014, 12:25 PM
Registered User
 
Join Date: Feb 2014
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by mikec53 View Post
would like to get my hands on the code in pdf form can u help
thanks mikec
Why are you hijacking someone else's post?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugging error Swati Chari C# 1 July 7th, 2008 04:55 AM
Debugging error Idontliketobeaggravated VS.NET 2002/2003 0 April 29th, 2007 02:12 PM
error debugging pratik28 General .NET 0 July 24th, 2006 06:49 AM
Debugging Error rwalker ASP.NET 1.0 and 1.1 Basics 2 February 6th, 2004 05:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.