• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Why error in this code

 
Ranch Hand
Posts: 643
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all , i am getting error on following programs , while shifting from one activity to other i means from one screen to other.







 
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the error? Can you paste the exception you are getting?
 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your first xml frag has some errors..
 
chetan deol
Ranch Hand
Posts: 643
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

1.First Activity


2. Second Activity


3.AndroidManifest.xml
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
reply
    Bookmark Topic Watch Topic
  • New Topic