Android :: How To Include File And Access With Media Player?
Aug 31, 2010I want to play a alarm on my app so I need to know how to include it and to access the file with the media player?
View 2 RepliesI want to play a alarm on my app so I need to know how to include it and to access the file with the media player?
View 2 Repliescurrently Media Player getCurrentPosition gives the timestamp of the song being played by the music player . is it possible to extract the data from that poit onwards or do we have any api using which we can extract the chunk of mp3 file which is being played.
View 2 Replies View RelatedIs there any way to get the details of media files that is executed in android(default) media player?
View 3 Replies View RelatedI just started with creating my own media player application by looking at the code samples given in Android SDK. While I am trying to play a local media file (m.3gp), I am getting IOException error :: error(1,-4).
package com.mediaPlayer;
import java.io.IOException;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;...........
Is there any support for avi and other media formats except mp4 and 3gpp? If there is no support may I develop a support through correct the program? Will that be too difficult ?I don't know where to put my hands into first, should I correct programs in opencore first or should I just correct programs in directory frameworks/base/include/ media . I want to have a clear mind how I can achieve my goal, I need a roadmap to guide me how to do it.
I am trying to get familiar with the SDK 1.0 now. another question, my chip is from freescale and it supports hardware codecs of mpeg4, h.263 and h.264, I don't know whether I can change the program or the architecture of mediaplayer to utilize my hardware codecs instead of software codecs provided by android opencore. I once implement an mplayer to my platform, there is problems about sync of audio and video due to the quality of my chips(CPU can support software codecs but is not fast enough to make sure sync of audio and video), So I am worried about when the android is implemented, there would also be the same problem, and for this reason, I am thinking whether I can utilize my hardware codecs for mediaplayer.
I am also getting the same error while playing the media file
E/MemoryHeapBase(31): mmap(fd=20, size=233472) failed (Invalid argument) E/VideoMIO( 31): Error creating frame buffer heap.
We've a mpeg4 source that we would like to play in the media player. Our source is not in a file or on an rtsp server. It is hand coded to generate mpeg4 source on the fly. Imagine the data is coming from an unix pipe stream instead of rtsp or a file. How can I use that stream in media player?
View 1 Replies View RelatedI just got a Droid yesterday since I took advantage of dropping my Sprint contract without a ETF fee, gonna blow up my HTC Touch Pro later.Feels great, the grass is definitely greener and the abttery life is just BAMAZING.With that said, I was wondering. Isn't there ANY MP3 programs that have a file explorer so I can open certain songs and folders on my micro SD card? Or am I screwed till they release the Coreplayer for Android?
View 2 Replies View RelatedDo u know any music app which opening .wma files?
View 1 Replies View RelatedI'm coding an app that works with the current status of the Android Media Player, basically, I'm trying to find a way to obtain, for example, the current track information or the track next on the library/playlist. Thing is, I couldn't find any way to "connect" to the app, I read about some services and copying an Android MP file to my project and so on, but I just wanted to check if there's another way such as a content provider.
View 2 Replies View RelatedFollowing is the layout xml file. Here I used <include> tag. in that the layout="@layout/player_view", player_view is another xml file that contains a seat with avatar, 2cards and player name and bet amount. I need 2 seats like that so I used <include> 2 times and it is showing in screen fine. My problem is how to access the views in the player_view to give different names to players and to show different cards for each seat. I didn't find any where how to do that.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="@drawable/game_background">
<AbsoluteLayout android:id="@+id/game_table" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_margin="30dip"
android:background="@drawable/game_table"
Every time someone leaves me a voicemail on my home phone number, VOIP home phone voice mail box sends me the voicemail as a .wav file attachment. When I try to play this .wav file the phone refuses, saying "Sorry, the player does not support this type of audio file".
So, I take it the .wav files cannot be played on Android phones. Has anyone found a workable and simple workaround to this yet?
I'm creating an app that I want to seed with a data file the app will use as its initial state. In the Eclipse project structure, where do I add the data file so that when the app is deployed to the device (and emulator) the data file is deployed with it?
View 1 Replies View RelatedUse adb logcat, DDMS, or the DDMS perspective in Eclipse to look at LogCat and examine the stack trace associated with your error.
- Hide quoted text -
I lose phones... habitually. Sometimes they find their way back to me and sometimes they don't, It is unsettling to me that even if I have a security app installed, or a GPS tracker that ability to perform a google search can simply factory wipe my phone and make it their own.
So the question: Is it possible to include a password requirement to access the bootloader or recovery? I realize that if you forget your password there would likely be no way to save your phone in the event you need to, but I don't forget my passwords so this does not affect me.
Even registering the broadcast receiver at the highest priority still fails to receive the Bluetooth media button events on the HTC Hero phone. The Bluetooth media button registration code works fine on the other Android phones that I have tested. Apparently this isn't the first time HTC has done something like this, as I also found a report of a similar problem on one of the HTC Microsoft Mobile Devices reported here
It seems extremely short sighted of HTC to code their media player so that it grabs the Bluetooth AVRCP media button events in such a way that other applications are unable to work with the Bluetooth head phone buttons and Bluetooth in car stereo systems.................
I use Windows Media Player to manage all my mp3s and playlists. I want my Samsung Galaxy S to be synchronized with my PC. I can connect my Galaxy S using "Media Player" mode and use the built-in sync with WMP, but there are issues:
1) Some mp3s get "corrupted" - how do I force WMP to "re-sync" them without losing my playlist association (if I manually add it as a file to sync, it is no longer associated with the playlist)
2) If I delete an mp3 from the device, WMP doesn't realize and won't re-sync the file again... is there a way to re-sync?
3) Sometimes WMP will re-sync playlists and each song shows up 3-4+ times when I load up a playlist on my device. I then have to wipe the Music and Playlist folder and re-sync from scratch any way around this?
4) Where are android playlists stored? The Playlists folder on the sd card can be wiped, but the playlists still show up in the music player?
5) If I make a change to a playlist on my PC, WMP will freeze and start skipping random files the playlists get corrupt and I see problem #3 occur. Essentially, if I change a playlist, I have to wipe the Music and Playlist folder and re-sync from scratch.
I want to create a grid of images with text right below the images.
I created in a xml file a image_text item which basically is a linearlayout with and imageview and a textview right below.
I created a tablelayout and I want to add my custom image_text.xml to the table row. But I dont know how to reference my xml file inside. If I use the include statament, how do I pass the image id and text to my item_text.xml? code...
Does anyone know where to find a media player that would allow you to play streaming videos on Android Browser?
I want to know if you can play streaming videos on your web browser on your android os phone.
I want to be able to use/view the video's I record with my phone on my computer. (open from an email or use in window's movie maker)I have a new computer with Windows seven at work and a Vista laptop at home. I can send the video to myself and try to open in from my email or tether to the computer and transfer the file manually. Either way I can't open with windows media player. Video's taken with default "Camcorder" app on a myTough 3G running Android 1.6.I know it has something to do with the codec's the phone uses but wonder why they wouldn't use codec's that are compatible with the most commonly used pc's?Is there any way around this? Some kind of converter for the computer or for the phone?Is there another camcorder app that can record video with a different codec or is it phone hardware specific?So far have been able to use these forum's to sort out most of my Android problems but I'm stumped on this one. It doesn't seem like it should be this hard to do. Should be more user friendly.
View 5 Replies View RelatedSync Music to Nexus One using itunes and Windows Media Player. This process automatically creates a Music folder at the root level of the SD card. Hopefully some of you find this useful, especially coming from using iTunes Read more
View 3 Replies View RelatedI have just got a HTC desire and like many people would like to be able to get rid of my iPod all together and have just my phone. The problem I'm having is that the media player on the HTC desire doesn't work nearly as well as iTunes. I have several issues that would needed to be resolved and wanted to know if anyone had a solution to any of them
1) Audio books, I have many of these on my iTunes and on an iPod they are displayed in a separate folder and are removed from shuffles, not so on the HTC, solution?
2) Podcasts, Again i subscribe to many podcasts on my iTunes and wanted to know if there was any way of adding them to my HTC automatically or having them download automatically (Despite this being very annoying and clogging up my hard drive with duplicated podcasts)
3)Playlists I am currently using iTunes agent to sync from my iTunes but it means that I cannot sync playlists that i can then play on my phone. (I can sync playlists just not then play them on their own once they are on my phone)
I guess no one cares to listen to their favorite music in the order the artist intended? we now listen to timeless classic Opera in whatever order? makes no difference? Classic Rock albums out of order? Pink Floyd "Dark Side of the Moon"?
View 6 Replies View RelatedThe tracks in an album playing alphabetically instead of by the track number?
View 3 Replies View RelatedAfter hours of hit and miss using programs like Double Twist etc. I found that the easiest way to sync music to the iHTC Music player is to use Windows Media Player and buy Album Art Grabber to load the album art. Once you have done the initial sync with WMP you can go back and load individual albums simply by dragging them to the sync area. Connect your phone to the PC and unmount the SD card Open WMP and click the sync tab. Click the drive that represents your SD card (mine was H You will be prompted to sync everything for either this session or all sessions. (I always click this session only). Works great and all I will need in the future!
View 5 Replies View RelatedI've got a ton of music on my SD card in my phone, approx. 6.5GB worth on an 8GB card. The problem is, the music players in Android (I've used the default, RockOn and MixZing, though I want to stay with MixZing) only recognize about 80% of the music, in their libraries. The thing is, the music is there! If I browse to the folder and launch the file it will play, but there's no artist/title data, even though all the files are properly tagged (mp3s), plus, it opens in a weird verion of the default music player that will stop playing if it loses focus.
This has been a issue ever since I got this phone. It's a brand new SD card (my previous one, in addition to this problem, had major corruption issues; I originally thought it was the card but I guess that's not the case). Also, I've gone through two different ROMs (one when I first got the phone, and a second that I upgraded to about a month ago), so I don't think that's the issue. It seems to affect random folders (albums) at different times, whenever the library is refreshed, but I can't refresh the library manually (that I've found) to see if it's just not scanning those files, or if it's a more underlying issue. I'm stumped
My application gets playlist from a XML file, requests URL of mp3 file from server, downloads and plays it. It was able to download mp3 file but unable to play it. When I used emulator with Android 2.1, it was displayed in LogCat:
[Quote]
I recently bought some gameloft games for my droid incredible but i noticed all the sounds of music of the games are showing up on my media players. Is there any fix for this issue?
View 2 Replies View RelatedI'm looking for an app which will let me listen to music through a shared itunes library, or windows media player library - any suggestions?
View 1 Replies View RelatedI found this site that says when you mount the phone, is should show up on the list of devices within WMP, mine isn't for some reason
https://supportforums.motorola.com/thread/17148
Does any know what is going on? I am mounting the phone, and can see it as a removable drive under my computer, am I doing something wrong?