New Uploader Available

I've added an Uploader module to Sprint Developers. You should see the link in the menu on the left hand side, but here's the direct link:

http://www.sprintdevelopers.com/modules.php?name=Uploader

It's pretty experimental at this point. I haven't tested it thoroughly but I was able to send a few JPEGs to my phone.

You should be able to use the Uploader to provision MIDlets to your phone. This should solve any caching issues during development. The Uploader is even pretty good at fabricating a JAD file if you don't have one. It extracts the manifest from the JAR and fills in the blanks.

The Uploader will remember phone numbers that you send files to so you don't have to re-enter your number ever time. Eventually, I'd like to add photo re-sizing to optimize pictures for your display. The Uploader will determine your handset model based on the headers it sends.

Please let me know if it works for you (or doesn't) and any additional features you'd like.

uploader: how to get one or design one

id like to make my own uploader for sprint network and would like info or a sample php script on how to do this...any info pointing in that direction would be most helpfull Thank you Johnny aka Pern

Re: uploader: how to get one or design one

[quote:b53825df2e="Pern"]id like to make my own uploader for sprint network and would like info or a sample php script on how to do this[/quote:b53825df2e]

Ah, where to start?

There are several parts to the Uploader on this website. I'll disect some of the key pieces and post them. Let's start with this PHP function that will extract a manifest from a JAR file. I use this to construct a JAD if one hasn't been provided.

[code:1:b53825df2e]function extract_manifest($filename)
{
$manifest = array();
$output = array();
$unzip = "unzip -p -j -C -qq $filename META-INF/MANIFEST.MF";

if ($filename)
{
exec($unzip, $output);
}
foreach($output as $line)
{
$words = explode(": ", trim($line));
if ($words[0] && $words[1]
&& $words[0] != 'MIDlet-Jar-URL')
{
$manifest[$words[0]] = $words[1];
}
}
return($manifest);
}[/code:1:b53825df2e]

The $filename parameter is the name of the JAR file that has been uploaded. Do I need to go through PHP uploads? There are lots of sites that cover that topic.

Notice that JAR files are just ZIP files with a different extension. The unzip command takes them apart easily.

Each manifest parameter is processed except the MIDlet-Jar-URL. The uploader will stuff in a different Jar-URL property later.

Extracting the manifest and using it to build a JAD is much better than using a JAD uploaded by the user. There is less chance that something is mismatched or corrupted. I believe that JAD construction is unique to the SprintDevelopers' uploader and a very helpful feature.

Upload Themes to T608

I've added Theme support to the [url=http://www.sprintdevelopers.com/modules.php?name=Uploader]Uploader[/url]. If you have a Sony Ericsson T608, you can use the Uploader to send new themes to your phone. You don't need a GCD file. Unfortunately, the theme will arrive with some randomly generated name. You'll have to manually rename the file once it arrives.

New Uploader Available

I'm working on my own script like this, but when it creates the gcd file and i got to it on my phone i get this error " Attribute Mismatch Error # 905 " when trying to get a .qcp file