This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Android and the fly likes Why error in this code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Why error in this code" Watch "Why error in this code" New topic
Author

Why error in this code

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 639

Hi all , i am getting error on following programs , while shifting from one activity to other i means from one screen to other.








Author @ http://www.ideasforideas.org/
Moody blogger who do not like to behave like target setting machines work.
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

What is the error? Can you paste the exception you are getting?


[List of FAQs] | [Android FAQ] | [Samuh Varta]
Fred Grott
Ranch Hand

Joined: Oct 05, 2002
Posts: 346
Your first xml frag has some errors..


MobileBytes blog - Sharing Technology - My Programming Knols
chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 639

This is the log when error is thrown and i am unable to shift from one screen to another.Do you have any sample code.Emulator forces it to close the application

D/KeyguardViewMediator( 51): pokeWakelock(5000)
I/Process ( 159): Sending signal. PID: 159 SIG: 9
I/ActivityManager( 51): Process com.android.databse (pid 159) has died.
D/dalvikvm( 51): GC freed 3830 objects / 326568 bytes in 181ms
D/dalvikvm( 91): GC freed 318 objects / 17752 bytes in 79ms
D/dalvikvm( 51): GC freed 2083 objects / 161456 bytes in 118ms
Imran Mohd
Ranch Hand

Joined: Mar 02, 2009
Posts: 38

1.First Activity


2. Second Activity


3.AndroidManifest.xml


Cheers,
Mohd Imran (SCJP 1.5)
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

As already pointed out by Fred, tags in your first XML are in error. They miss certain attributes.

To start with, you can compare tags common in both the layout XMLs...
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Why error in this code
 
It's not a secret anymore!