R.java went missing when I built the Android Application in Eclipse

I was writing my first Android Application, and suddenly when I rebuilt the application R.java file goes missing. This resulted into red underlined errors in the source code. After 2 hours of searching, I found that there could be various reasons for this, but those things could not help in my case. I continued playing around with my first application and found that I have used a string variable “title_activity_display_message” in AndroidManifest.xml file, which was not defined in res/values/strings.xml. I corrected this and I recovered R.java. Oh R.java I really missed you for around 2 hours.

Snippet from AndroidManifest.xml

<activity 
     android:name=".DisplayMessageActivity"
     android:label="@string/title_activity_display_message">
     <meta-data 
          android:name="android.support.PARENT_ACTIVITY"
          android:value="com.example.myfirstapp.MainActivity"/>
</activity>

Snippet from res/values/strings.xml

<resources>
    <string name="app_name">My First App</string>
    <string name="edit_message">Enter a message</string>
    <string name="button_send">Send</string>
    <string name="menu_settings">Settings</string>
    <string name="title_activity_main">MainActivity</string>
    <string name="title_activity_display_message">DisplayMessageActivity</string>
</resources>

Full Source Code @ SourceForge

Leave a Comment

Filed under Android

Mobile Agents

Mobile Agents

Leave a Comment

Filed under Technical Exploration

RTP: Real-time Transport Protocol

RTP (Real-time Transport Protocol): A Transport Protocol for Real-Time Applications

  1. RTP Specification
  2. RTP Wiki
  3. ZRTP
  4. ZORG: Implementaion of ZRTP Protocol
  5. Java Media Framework
  6. JMF – RTP Tutorial
  7. Java Media Framework basics – IBM Developerworks

Leave a Comment

Filed under Uncategorized

SIP: Session Initiation Protocol

SIP

  1. An Introduction to the JAIN SIP API
  2. JAIN SIP API Download
  3. CafeSip
  4. PhonerLite
  5. iSip(formerly SipPhone on iPhone)
  6. SIP programming for the Java developer
  7. Micromethod: A SIP based Company
  8. SIPp
  9. OpenSER:
    Kamailio (OpenSER) – the Open Source SIP Server
    Opens SIPS
    sip-router.org
  10. STUN
  11. Next-generation network (NGN)
  12. H.323
  13. Siphon SIP -VoIP for iPhone and iPod Touch

Peer to Peer and SIP(Session Initiation Protocol):

  1. http://www.p2psip.org/reading.php
  2. http://p2p-sip.blogspot.in/
  3. http://jitsi.org/

Video Tutorials

1) Fundamentals of SIP

2) Introduction to Voice Over IP

Leave a Comment

Filed under Technical Exploration

Distributed Systems

Client-Server

Peer-to-Peer

  1. Overlay Network
  2. Distributed Hash Table (DHT)
  3. http://code.google.com/edu/parallel/
  4. A Distributed Hash Table – by Frank Dabek (PhD Thesis)
  5. CS 264. Peer-to-Peer Systems H harvard
  6. Projects:Freenet, eMule, BitTorrent, Apache Hadoop,
  7. Papers:Chord: A Scalable Peer to peer lookup Service for Internet ApplicationsIon Stoica, Robert Morris, David Karger, M. Frans Kaashoek, Hari Balakrishnan
    Building Peer-to-Peer Systems With Chord, a Distributed Lookup Service – Frank Dabek, Emma Brunskill, M. Frans Kaashoek, David Karger Robert Morris, Ion Stoica, Hari Balakrishnan
  8. OpenDHT
  9. Amazon’s Dynamo
  10. Bamboo DHT
  11. Chord
  12. Pastry
  13. Chimera(Formerly Tapestry)
  14. Planet Lab
  15. One Hop Lookups for Peer-to-Peer Overlays – Anjali Gupta, Barbara Liskov, Rodrigo Rodrigues
  16. Routing Algorithms for DHTs: Some Open Questions – Sylvia Ratnasamy, Scott Shenker, Ion Stoica

Leave a Comment

Filed under Technical Exploration

java.net.SocketException: Too many open files

If you are getting “Too many open files” error in Java Environment on Linux, then refer to this following article:

Linux Increase The Maximum Number Of Open Files / File Descriptors (FD)

Leave a Comment

Filed under Errors/Exceptions, Java / Java EE, JBoss, Linux

jtwain

How to acquire images with jtwain.

Download:
jtwain.zip
jtwain1.zip

References

http://www.java.net/author/jeff-friesen

Leave a Comment

Filed under Projects