Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning Android Application Development
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Android Application Development
This is the forum to discuss the Wrox book Beginning Android Application Development by Wei-Meng Lee; ISBN: 978-1-1180-1711-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android Application Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 10th, 2013, 04:19 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2013
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Unhappy chapter2-using startActivityForResult

Many Thanks to author for such a nice book for novice Android learners like me. I have understood how 'startActivity' method works for starting second activity from first activity, and the program works fine. However though I have understood how the 'startActivityForResult' method works, but when I try to run the program nothing happens in the emulator after I click on keypad center button...I have thoroughly checked and ensured that in manifest file, main.java, main.xml, activity2.java and activity2.xml there are no mistakes in writing the code...can the experts guide me please? ---arun karkare
Reply With Quote
  #2 (permalink)  
Old May 19th, 2013, 03:38 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2013
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Code Issue

Hello ArunKarkare,
I also encountered the same issue with the program and i changed it a bit to see the working. After changing the working is the same as described in the book. In the book the textView, EditText and the Button component are added to the main.xml but Activity2.xml file is shown in the image which consists of all this.

I am providing you the link to the file which i modified to make it work.I have added a button and used that to navigate to the other activity instead of using the DPAD action.
The target SDK for that is 2.3.3 API 10... You can download it and test it...

Almost all the code for the java files remains the same except for the button action only.....

http://sdrv.ms/10OiDoy


I hope i have helped you solve your issue...


Regards,
Nikhil

Last edited by Nik_Pro; May 19th, 2013 at 03:46 PM.
Reply With Quote
  #3 (permalink)  
Old May 19th, 2013, 10:31 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2013
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default chapter2-using startActivityForResult

Hello....Nikhil...many thanks for ur comments, and yes I realized the problem that some portion of the code must have been in Activity2.java that was wrongly included in main.java, also I realized that center-directional-button on emulator does not work, so I used the 'H' key on my laptop keyboard instead...anyway thanks again ....arun karkare
Reply With Quote
The Following User Says Thank You to ArunKarkare For This Useful Post:
Nik_Pro (May 20th, 2013)
  #4 (permalink)  
Old May 20th, 2013, 08:29 AM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2013
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Your Welcome Arun...


Regards,
Nikhil
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter2 - Showdialog mixieh BOOK: Beginning Android 4 Application Development 4 March 17th, 2013 02:25 PM
Chapter2 - To Do List error jmjiru BOOK: Professional Android 2 Application Development 2 November 21st, 2011 12:31 PM
Chapter2 : To Do List example albiert BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 2 June 1st, 2010 01:28 PM
Chapter2 error BlackSoul BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 1 January 4th, 2010 03:27 PM
Chapter2 netblue BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 2 June 5th, 2007 01:19 AM



All times are GMT -4. The time now is 06:33 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.