My eclipse is not showing description of any default classes.
It is showing:
Source not found.
The source attachment does not contain the source for the file GestureDetector.class
You can change the source attachment by clicking change attached source below
Please help me..
As the error say. Click on "Change attached source" (there should be a button) and specify the jar file or folder that does contain the source code for this class.
I assume, that you include some jar file that contains GestureDetector.class in your project. Per default, Eclipse looks into this jar for the source code. Thus, I assume the jar contains binary only. Thus, you need to get a different jar that contains binaries and source code. Or you need to download the source code from somewhere on the Internet (if available), store in at any location you like and then specify this folder as indicated at the beginning.
You have to attach the java documentation and if you already have, navigate to the folder and select it. If you dont have you either download or make. To make download Jdecompiler it will generate the source for you.
You can also take help of grepcode here
Related
I am trying to use a different audio advice language for navigation, however when I set the SKAdvisorSettings to use a new language (en_us) it said it could not find the file. After some research I found this link saying I needed to add the sound files to the .zip file:
http://forum.skobbler.com/showthread.php/7250-Language-files-for-2-5-0-and-2-5-1
However when I unzip, add the file, and zip again (using Mac, right click, compress), the map fails to initialize and the only error shown is E/SKPrepareMapTextureThread: Shaders or Common files not found
Maybe I do not know how to add files to a .zip without otherwise affecting it, or I am missing how I am supposed to add the sound files to the project completely.
tl;dr: I want to be able to add more sound files to the navigation advice.
Thanks
After you have added the language files, you have to create a new zip by selecting all files inside the SKMaps folder, and renamed it from Archive.zip to SKMaps.zip and move it the assets folder replacing the old SKMaps.zip.
I was looking for a way to add some such folder in my Android Project that do no get compiled up to my apk file.
Why I need it :-
We need to maintain proper documentation for project (that actually
everybody needs to ;) nothing new),
but I find it very irritating to look out for that documentation
folder again and again.
.
I am open for any way i can make dcocumentain folder easily one
click accessible (I am already doing it thru taskbar sortcut. ) But
I want it to get the ease of version control thru Eclipse likewise we
do it for our project
IDE :- Eclipse
I got a way myself :-
I had an idea that if I create a folder in my application project with
some anonymous name that actually android has not listed in its
directories ("I am talking about the default one like "res", "src",
"anim"......)
Then either it should "raise an error" or should "ignore" it while compiling to form apk file
luckily it ignores any such folder. now i can put all the documentation in my project.
NOTE:-
My answer empirically driven
I had tested it by creating a "Docs" folder and then copied 1 GB of
random data (includes almost all type of files we came across from
multimedia to zipped ones).
Then I build the apk and the size of the apk was in-effective of all
this..
but when i copied the same data to assets it was showing a huge change
in size of my apk file..
Consider using Javadoc in addition or, if possible, instead of any other documentation.
I faced a strange error while working on android in Eclipse.The situation is like follows.I have a fully working project.While working on a activity java file, unfortunately my system shut down.When I reopen the eclipse after opening the system, some of the java files of my project converted to ASCII characters.I dont have a back up also.Please help me.The resulting java file look like the following,
Right click on your project -> Properties -> Resource -> Text file encoding and then choose your encoding (UTF-8, etc.)
EDIT :
Another approach could be Window -> Preferences -> General -> Workspace and then choose your encoding here
Finally I found the solution to the above problem.Eclipse always saves the file in a local history based on the modified date and time.To retrieve the recently modified file from the local history, follow the steps,
1.Open the corrupted file with eclipse editor.
2.right click -> Team -> Show Local History“
View the result in ‘History View’
and based on the modified time open the file with a text editor and copy your original content.
Another way
Eclipse workspace-->.metadata-->.plugins-->org.eclipse.core.resources-->.history
you can find a list of folders named with few letters, use the “Date Modified” column and open the latest of those folders to get the recent files you were working on.In that folder, you can find some files with unusual naming, open the files with some text editor to find the file you are searching for, if possible try to match the file size.
I am developing android applications using Eclipse IDE.
Now, I have given someone else's code to modify.
I need to check where a particular drawable/image in the res/drawable folder is used in the code or in the xml (res/layout). Also I need to find where I a particular xml (res/layout file) is used in the code.
Is there any short-cut to find out these things or I need to go through each & every line of code to find out these things ?
Please help.
#Ankit
For First Thing for checking a particular drawable/image in the res/drawable folder if you want to find that whether image resource is used in project or not for that you have to search like this in Eclipse For Example Your image name is bg.png so you can search like this using Ctrl+h in your Project Explorer than when search window Open you will find one File Search tab than write this in search box #drawable/bg than you will get Match Result.
For Second Thing Now use Same Ctrl+h than write this R.layout.yourlayoutname in search box than if this layout is used in your android project than you will get result for that.
hey,
i have new activity that extends Activity and when i'm trying to change to her i'm getting the following error:
"the source attachment does not contain the source for the file instrumentation.class"
any ideas?
Apparently, this behavior is "normal". I found an answer to this question from a different forum.
That's normal. The SDK doesn't include source code for Android
classes. If you step into an Android class while debugging, you'll
get the "source not found" message. Do Run -> Step Return to finish
executing the method without source code.
However, when I try to Step Over or Step Return, I still receive this error and the program stops. So, I guess it's an answer, but not a solution. I don't know how to get passed this issue.
Here's a link to the original forum post
Update:
Using this link View Android Source Code in Eclipse, I found the solution I needed. Find the post by Volure in the comments section. It has a link to a packaged set of Android base code needed to overcome this issue. Put the zip file in the corresponding directory. Then in the Package Explorer, r-click on the jar file, select Properties. In the Java Source Attachment dialog, select External File. Select the zip file. Press OK. Again, r-click the jar file in Package Explorer and select refresh. Test the setup by double-clicking any of the Android classes. You should now see the source.
Hope this saves someone some time. It took me 4 hours of research to discover the solution.