fetching problem of header of song files - java

for getting information of song header i see the following sites for reference.
1)http://www.jthink.net/jaudiotagger/examples_id3.jsp
and i created a project with download files from following site
2)http://java.net/projects/jaudiotagger/sources/svn/show/tags/2.0.2/src/org/jaudiotagger/audio/mp3?rev=969
i get error even if build with given jid3lib-0.5.4.jar and no main method please give guide to done the project

For mp3 files you could use the Java ID3 Tag Library to extract information.

Related

Could not load wrapper properties in android studio

please help me, when i create a new project in android studio there is an error
Could not load wrapper properties from Could not load wrapper properties from 'C:\Users\baren\AndroidStudioProjects\ToyaGarage\gradle\wrapper\gradle-wrapper.properties'.
1
enter image description here
In my case, I have a blank space at the end of "distributionUrl" row
I Searched for your problem and i found this,maybe this solution can help you https://stackoverflow.com/a/64439711/15805169
Delete the wrapper properties file in your app that is having the problem and copy the wrapper property file from your working apps to the same place where you deleted that file.
this is like the basic path to get to that file
C:\Users\TT Virtual\AndroidStudioProjects\KotlinFirebaseAuth\gradle\wrapper
remember this here is my path to that file

Resource not found: /credentials.json Google Sheets API

I follow the google Sheets quickstart and download the credentials.json put in my project main/res.
No matter how I change the place, it always shows the error java.io.FileNotFoundException: Resource not found: /credentials.json
I have tried the other way that I found in this post:
java.io.FileNotFoundException: Resource not found: /credentials.json on Java QuickStart for Classroom API
But still the same.
Can anyone tell me how to fix it? I google it for a long time. Thanks
You are storing the credentials.json file in the main app folder but, as you can see in the corresponding Java Quickstart for Sheets API, this file should be in src/main/resources/.
Your issue should be solved by moving the file to the specified location.
I use the android studio, and I solved it by created a res/raw folder.
Then moved the credential.json into it.
And use the following code instead to access it.
InputStream in = this.getResources().openRawResource(R.raw.credentials);

Jenkins - Email attachment with dynamic html report files

I am using Editable Email Notification in Jenkins. How do we get dynamic(report file name changed in work-space after every build) .Pdf files attached in e-mail from work-space.
Example: Root/TestResults/*.pdf
Above will give all pdf attachments
Example: Root/TestResults/Final_Report_2015_11_07_06_47.pdf
Above path is giving same file when exist.
But file name is getting changed dynamically, i.e. Final_Report_XXXX_XX_XX_XX_XX.pdf.
Is there any way to get latest file based one dynamic report file name check.
You can use 'Filesystem List Parameter' Plug-in in Jenkins, which can be useful for your question. refer to link for reference
https://wiki.jenkins.io/display/JENKINS/Filesystem+List+Parameter+Plug-in
you can sort and send the first one

processing for android: AssetManager and list() not working

I've been developing for android using processing but have come to a halt when I wanted to retrieve a list of files within a given directory. Below is a screenshot of the code I have been trying.
I have tried different variations of this (such as getbaseContext().getAssets();) and nothing seems to work. Whenever the code tries to execute the list() part it has an error and there is nothing in 'fileNames'.
Am I missing anything? Is this a problem with processing?
Thanks
EDIT: The direction I am trying to access is "assets/Levels/" which I can see from my project view in eclipse.
I experienced a similar issue because I used folder names with a trailing / character.
So for others experiencing this issue, you need to make sure the folder name you use are just the folder name with no trailing / (so "movies" instead of "movies/")
You do not need any additional permissions in order to run the code that you have. I just compiled it on my device and it works fine. You mention you are attempting to list the files in a given directory. What you are doing is listing the files in the Levels folder, which should be a sub folder of assets. What you will get back is an array of all file names in that folder.
If you are actually looking to get a list of files from a given directory, it has nothing to do with the assets folder and I suggest you check out a tutorial on Android external and internal storage. The information directly on the android page was very helpful to me.
http://developer.android.com/guide/topics/data/data-storage.html
If that's not what you are looking for though, I suggest rewording your question.
So I got it to work!
Turns out it was a problem with where I was placing the 'String[] fileNames;' code before trying to put data into it. The below code works fine:
Thanks for the help!
*Note : Individual folder should not empty.. It will return zero for folder with no files. *
void getFolderDetais(String folder_name)
{
// pass folder_name empty to get detail of root that means assets folder details
String[] filelistInSubfolder = assetManager.list(folder_name);
Log.v("Floder Details ----- >", " Length --- "
+ filelistInSubfolder.length);
}

Why does this large Java Project need common-ant.xml for building?

This is the error when trying to build the Pet Store example:
C:\Users\user\workspace\common-ant.xml could not be found
BUILD FAILED
java.io.FileNotFoundException: C:\Users\user\workspace\common-ant.xml
(The system cannot find the file specified)
The common-ant.xml part is making no sense. I have no idea why it says common-ant.
The install_dir/samples/common-ant.xml file defines properties common to all sample applications and implements targets needed to compile, assemble, deploy and undeploy sample applications. In most sample applications, the build.xml file includes common-ant.xml.
Found on a tutorial here
Have a look at your build.xml file, the location may be declared inside. Then, read the pet store tutorial carefully (again), maybe there's a sentence where you're asked to copy some predefined common-ant.xml to some location.
Is this a GWT project? If so, it requires to have a common-ant.xml. Google that file, and you'll see examples online.

Categories

Resources