How to copy audio file from application to phone local storage - audio

I'm creating a tizen mobile web application and i'm very new to web applications, in which a list of audio files will display and user can listen to those songs and set as their ringtone, sms or notification tone.
I have all those files in application's raw folder.For setting ringtone audio file should be in phone's storage.
Can anybody help me how to copy audio file to phone's local storage.

In tizen 2.3 you can't copy audio file to ringtone storage.
in device api filesystem document
ringtones - the location for ringtones (read-only location)
if you just want copy file, use copyTo.

Related

Windows Media Player 12 wont play mp4, mp3, wmv files through IIS local hosted website when PC is disconnected from the Internet

I have an IIS 6.1 website on a local Windows 7 32-bit machine that serves HTML and MP4 videos through Internet Explorer all on the local machine. An internet connection is not required as this is all local storage and local hosting via IIS. IIS is configured to serve the MP4 videos as downloadable files, not streaming in any way. I do have the proper MIME type ".mp4" with "video/mp4" setup in the IIS server, so I do not believe that is the problem.
When the machine is connected to the internet, clicking an MP4 video link in any HTML page served by the local IIS server results in Windows Media Player opening up and playing the video in its own window. However, when the Ethernet cable is unplugged, clicking the same MP4 video link results in Windows Media Player opening its own window, then displaying this error message:
Windows Media Player cannot play the file. If the file is located on the Internet, connect to the Internet. If the file is located on a removable storage card, insert the storage card.
It is almost as if Windows Media Player has a bug and since it is accessing this media file via a URL but the machine is not connected to a network, it thinks this file is unplayable.
When the Ethernet cable is disconnected, the local IIS server still serves all the HTML and ActiveX content except for media files. I also tried to access MP3 and WMV files through the IIS server to see if Windows Media Player would open those when the machine is disconnected from the Internet. Those files also caused Windows Media Player to display the same error message.
I tested VLC player (VideoLAN) after changing file extension ownership to VLC from WMP for .mp4 files. With VLC installed and extension ownership changed to VLS, I can download/open the MP4 video using the link in the web page served by IIS all while disconnected from the internet. The only thing I cannot do is get VLC player to open up and play the video simply by clicking the link in the Internet explorer web pages served up by the local IIS server.
I would like to make use of Internet Explorer and Windows Media Player with this IIS server serving MP4 videos rather than use VLC player.
Thanks
Michael Rayman
I finally figured out the answer to my problem:
While disconnected from the internet, mysteriously, Windows Media Player 12 requires that you check a checkbox in the Tools > Options... > Player tab settings area called "Connect to the Internet (overrides other commands)". Once this is checked and settings saved with APPLY, then Windows Media Player 12 will play videos served through the local IIS webserver on the same machine, while disconnected from the Internet.

Is there an API to access the Music used in Xbox Music from my App?

I have a Program that uses the Music of the User. Currently the User just can open the Files to use these in the Program. But on smal devices the user maybe stores his music in the cloud and uses streaming.
Is threr a way to acces his music from XBox music (including his Onedrive Music) without downloading the files to his device?
You can access the a user's OneDrive Music folder through the special folder endpoint. There are more details at https://dev.onedrive.com/items/special_folders.htm.

How can I access to Android file system (e.g. navigate a dir) and stream data through the browser without using an app?

I'm trying to develop the client side application of a remote audio player. I developed the server side application but I'm lost on the android side.
I want to navigate all the files in the music directory, obtain a list stored in my android phone and send music data through wifi to my PC. Is this possible? Can I implement this without make an apposite app? How can I do this?

how to send sms from pc to mobile in J2ME

I have a Java me midlet which can send group message repeatedly, it worked well on my WMA console. How could I deploy it so that it can be tested on a real device?
Moreover, what should I do to let it send sms from PC to mobile?
For the deployment of J2ME Application ( .Jad & .Jar ) following ways can be used,
Connect Device with PC by USB cable or bluetooth and transfer the files,
Put your .Jad & .Jar file on live ip based server and download on the device using live ip+file name as path in device's browser
For more information on J2ME Application's deployment, visit following link
http://www.developer.nokia.com/Community/Wiki/How_to_install_Java_ME_application_in_mobile_phone
For sending sms from pc to mobile see my answer.

can't play/download MP4 files from behind .htaccess on mobile device such as android / blackberry

I have made a site with a password protected directory and
inside is simple html page with link to mp4 video file located inside directory.
When logged into to directory Android device such as Samsung Galaxy S2 or Blackberry Playbook fail to open this video file. On desktop , IE and FF work fine.
this is response from host:
"It appears this is a limitation of the browsers in mobile devices being unable to use the authentication that has already been completed to fetch the video file using the embeded player. After investigating in depth I am unable to get any other player to play video on my mobile device if it is behind a .htaccess password protection since the requests for the actual video file are being denied with 403."
So what is solution to play Mp4 behind htaccess on mobile device?
I am guessing one way to do it is that the link should be not to the file directly but should trigger a small module that will give permissions to the file for the client ip that has just connected then redirect to the file. The permissions can be retracted sometime later. But it feels messy and am not really sure if this is scalable at huge traffic levels.

Resources