Source not found [message #725892] |
Fri, 16 September 2011 02:01  |
Eclipse User |
|
|
|
Hello,
I am newbie to Eclipse. I am working on Android and Eclipse on the linux ubuntu platform.
I am trying to write a program for Server-Client socket communication.
Below is the code snippet:
try{
Log.d(LOG_TAG, "OK");
providerSocket = new ServerSocket(8000, 10);
connection = providerSocket.accept();
boolean a = connection.isConnected();
Toast.makeText(this, "Connection established!",
Toast.LENGTH_LONG).show();
return;
}
catch(IOException e)
{
Log.v(LOG_TAG, "NOK");
e.printStackTrace();
}
When i debug the code, it reaches at connection = providerSocket.accept(); and stops debugger by showing below message
Source Not found
The source attachment does not contain the source file ServerSocket.class
You can change the source attachment by clicking Change Attached Source below:
When i try to click on button i dont find any source file src.zip in the directory of Android.
Eclipse does have src.zip but in many folders so i am confused to choose which file to be selected.
Any other clues??
Prasad
|
|
|
|
|
|
|
|
|
|
Re: Source not found [message #727188 is a reply to message #725922] |
Tue, 20 September 2011 11:18  |
Eclipse User |
|
|
|
On 9/16/11 3:44 AM, Prasad wrote:
> It is packed in the android.jar file.
> I think java and android libraries are bundled in the same .jar file.
>
>
Install the Android Sources plugin and you'll be able to view much of
the code for android.jar classes: http://code.google.com/p/adt-addons/
(scroll down to the section "Android Sources."
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.12273 seconds