Q. What is your opinion?
A. Only if you want to do this to try out the Android OS, and you don't want to continue with the iPhone. ALSO if this were me, I would want so way to undo the trade, say in X number of days, if I did not like the phone I traded for. But that's me covering my bases.
Streaming MP3s from web server to HTC One X?
Q. I have set up an Ubuntu 12.04 web server and loaded a few thousand songs onto it (arranged into albums). I have written a basic "Index" page so I can access them on my phone over 3G (all-you-can-eat data plan) but what I want is an app which can take the root IP address and make all the songs more user-friendly to access with an MP3 Player-style interface perhaps.
A. if ur using Apache it supports both php , perl etc thought about instead just a index page using somthing like html5 jplayer http://jplayer.org/ (Free)
and just using perl to generate and html5 doc with the mp3 loaded in or even just a index page with all the mp3 files loaded since jplayer supports playlist even still i would advice writing a script to dynamicly generate this page (why edit a html file every time u add a album when u can just have a php or perl script that just get all mp3's with in a destination and automatically generates the html5\js for ya 1 time write vs updating every time u delete rename move or add a song)
you could also use flash but tbh html5 does the job its quick its free and its the future imo
i presume the htc one x runs ICS (android 4.0) which means will fully support flash in browser and html5\js jplayer etc
http://www.catswhocode.com/blog/10-awesome-html5-audio-players
there 10 on there they probs will all work for what you need but ive done a similar project to get movies and songs streamed to a internet TV with html5 support and used jplayer can confirm worked like a charm
just tested on samsung galaxy S2 with speakker works like a charm
http://www.script-tutorials.com/using-speakker-cool-html5-audio-player/
link above for speaker ready to go with all files u need
allows you make the playlists in php comes with a predfiend sample if u just want it to add the entire folder u can use somthing like this in PHP
f ($handle = opendir('./data')) {
echo "Directory handle: $handle\n";
echo "Entries:\n";
$aResult = array();
$i = 1;
/* This is the correct way to loop over the directory. */
while (false !== ($entry = readdir($handle))) {
array_push for each entry or if ur like me and im runing windows on this system i cheated and linked it to the .net and used this
string begin_file = "<?\r\n $aResult = array('playlist' => array(";
string end_file = "));\r\n header(\"Content-Type: application/json\");" +
"\r\nrequire_once('Services_JSON.php');" +
"\r\n$oJson = new Services_JSON();" +
"\r\necho $oJson->encode($aResult);?>";
string middle_file = "";
string path = @"C:\htdocs\data"; \\enter path to folder where mp3s stored
if(System.IO.Directory.Exists(Environment.CurrentDirectory.ToString() + "data"))
{
path = Environment.CurrentDirectory.ToString() + "data";
}
if(System.IO.Directory.Exists(path))
{int i =1;
string[] ds = System.IO.Directory.GetFiles(path,"*.mp3",System.IO.SearchOption.AllDirectories);
foreach (string a in ds)
{char[] x = {'\\'};
string[] ab = Regex.Split(a,"data");
string d = ab[ab.Length - 1];
d = d.Replace('\\', '/');
if (d.Contains('\''))
{
string newmp3 = a.Replace("'", "");
System.IO.File.Move(a, newmp3);
}
d = d.Replace("'", "");
middle_file = middle_file + " '" + i.ToString() + "' => array('src' => 'data"+d.ToString()+"',"+
" 'type' => 'audio/mp3','config' => array('title' => '"+d+"', 'poster' => 'data/cover.png'),),";
i++;
}
string fsile = begin_file + middle_file + end_file;
if (System.IO.File.Exists(@"C:\Users\enter ur user name\Desktop\playlist.php"))
{
System.IO.File.Delete(@"C:\Users\enter ur user name\Desktop\playlist.php");
}
System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\Users\enter ur user name\Desktop\playlist.php",false);
file.WriteLine(fsile);
file.Close();
}
that make a playlist file for every mp3 in specifiyed directory and copy it to ur desktop just simply copy it to ur public html folder u set up on apache on what ever server ur runing
im more comfortable writing in c#.net so there's a new for php lol php used to dynamically generate pages and im dynamically generating a php script find it ironic :P
updated again since i found that if the song name had a ' in it would thro the script so redone it to rename them files and leave the ' out so can't go on becomes cant go on who cares lol oo and tested on 80 albums now fully working with full directory support with in the media player :)
how do i get root access to my phone ?
Q. i have a sprint samsung intercept thats android powered. and have an app called "shoot me" (screen capture app) and it says i need root access, but how do i get it?
A. First, keep in mind that rooting voids your warranty.
XDA Developers has the most comprehensive information out there on rooting (forum-style):
http://forum.xda-developers.com/forumdisplay.php?f=564
Heres some text from PCWorld (Sep 14, 2010) on the topic:
Until fairly recently, rooting Android was a messy process that required installing the Android Debug Bridge and hacking the phone from a command line. Fortunately, some industrious hackers have produced a few simple apps that can root your device in seconds with the tap of a finger. In this tutorial, I'll discuss two such apps--Easy Root (for the Motorola Droid, Droid X, and Milestone, and the HTC/Google Nexus One) and Unrevoked (which supports a variety of HTC handsets).
It's important to note here that although these one-click root apps are easy to use, they aren't completely trouble-free. For instance, as of this writing the developer of Unrevoked 3 is reviewing it to solve a problem with the HTC EVO 4G (but Unrevoked 2 is still available). And the latest version of Android, 2.2 (aka Froyo), will present new challenges for root users as carriers and phone manufacturers continue to try to block users from hacking their handsets. These obstacles are a basic reality for anyone attempting to root their device, just as Apple iPhone users must constantly adapt to Apple's efforts to block people from jailbreaking the iPhone.
Even though Easy Root and Unrevoked don't work on all Android phones, they do cover a broad swath of the Android universe. If you're interested in rooting a Samsung Galaxy or another device, however, you still have options--they're just not as easy. Because the state of Android hacking is constantly in flux, your best bet for phones not covered in this tutorial is to google "root" and the name of your phone, or to keep an eye on the discussions about your phone on a good Android forum, such as AllDroid.org.
Powered by Yahoo! Answers
Title : Should I trade my iPhone 4s against a Samsung Galaxy Nexus?
Description : Q. What is your opinion? A. Only if you want to do this to try out the Android OS, and you don't want to continue with the iPhone. AL...