PhoneGap: download & save binary files (mp3s) for iPhone & Android - iphone

Is there a way in PhoneGap to download & save a binary file (I'm specifically interested in mp3s) that works across both iPhone and Android?
A web search reveals a plugin for Android:
http://www.toforge.com/2011/02/phonegap-android-plugin-for-download-files-from-url-on-sd-card/
And some code for iPhone:
http://blog.clearlyinnovative.com/post/1097750723/phonegap-plugin-for-downloading-url
But nothing that covers both.

PhoneGap has evolved & added this functionality.

I would suggest that you write some lines of javascript code to hide them both behind the same interface (you will have to provide different storage locations anyway)
Their interfaces look pretty similar already

Related

I have one html file, I will set the html file in iphone based application by using mgwt .. How i am set?

I have one html file, I will set the html file in iphone based application by using mgwt .. Please help me to set the html files in phone ...
Thanks in advance..
Based on what I was able to grasp from you question you have an HTML file and you want that file to act as an iPhone hybrid app using mGWT. If that's the case, then there is an huge abyss to cover before getting to that point. This is the list of general steps you would need to cover to get all the way there.
Get a grasp of GWT Basics
Configure a simple mGWT application with PhoneGap support.
Understanding the way GWT MVP works will also be very helpful but not required
Once you have that working its time to wrap the web app into a iOS cordova webview with PhoneGap
Please note that you will require an Apple Mac to acomplish the last step. You will also reequire to be registered as an Apple developer if you intent to get your resulting app into a real device. Also you will require a good understanding of Java application development and a good grasp on how Web applications work (HTML, JS and CSS at least).
You have a long way ahead of you.

Is there a way to automate conversion of web app to iphone or android native app?

I came across this link:
http://ofps.oreilly.com/titles/9780596805784/
which seems to suggest web app can be converted to native iphone without writing a single line
of objective-c code. But the book mentioned there is outdated now and things may have changed a lot.
Are there open source software that will allow me to automatically convert my web application to native iphone ( or android) application? By the way my web application is html5 canvas based animation application with lot of html and css as well.
PhoneGap doesn't generate native code for you: it creates an application consisting of a WebView and throws your HTML code on it. From personal exerience I can add that the performance is quite slow, on both iPhone and Android, compared to a native app.
jqTouch creates a nice way to access your web application, but the application remains a web application residing on your site, plus you have to use some jquery for styling.
Apparently the only one that actually does generate native code is Appcelerator Titanium. On RhoMobile I never managed to get to the point to actually write some Ruby code because you have to know all the Ruby in he word just to install it on your Mac.
So the verdict was to sit down and develop the app in objective-c.
Have you looked at PhoneGap?
Simple steps to put your html app into iOS native container, without coding:
Download xCode
Download simple web view app from https://github.com/nomtek/iOSWebViewApp
Open simple web view app within xCode
Add your HTMLs to the project file structure
Run your app and voila :)
This approach is good if you don't need access to any phone specific features, just a standard Web View. Loading time will be short as this approach doesn't load any extra libraries.

iphone - Extracting ZIP files in iPhone App

I am aware of some third party libraries and open source libraries to extract ZIP files within iPhone application.
But I would like to know whether there are any default iPhone frameworks provided in SDK itself?
None that I know of. I have been using Objective-Zip and it seems pretty good for my needs. But I am deflating not inflating.

Dashcode: How to add custom inspector panel for custom Dashcode Parts?

I like using Dashcode for making quick little web apps, but it specifically targets the iphone version of mobile safari, which is not acceptable for cross-platform development. I've developed a number of laundry-list hacks that I tend semi-manually add to my scripts to facilitate cross platform development (like, say, to the Android or Palm) and to perform useful iPhone tricks, like stopping the 'bounce' associated with web apps on the iphone and I'm turning these into custom Dashcode Parts so that I can drag & drop them into my project. This is mostly working so far, but here my dilemma:
How can I create a custom Inspector component to go along with my custom Dashcode Part? Is it possible? Ever heard of being done? What are the minimum steps?
I see some compiled .nib files, and an existin Dashcode Part's Info.plist has a key CYPartInspectorClass that maps to CYPushButtonInspectorPane and like CYPushButtonInspectorPane and that apparently corresponds to English.lproj/CYPushButtonInspectorPane.nib which is a compile .nib. Does this imply that everything here is semi-hardcoded, and thus impossible to add my Inspector changes?
Any pointers to the above would be helpful.
After a lot of digging, I don't think this is possible, but I'd still be happy to eventually be proven wrong.

Will all javascript libraries work with Iphone? Aptana question

I am trying to use Aptana to build an IPhone web application. I've never use Aptana. I downloaded the iphone support and started a new project. It is now asking me if I want to import a javascript library and lists the "big ones." Will IPhone's Safari be able to use these, specifically jquery? I saw that jquery had a special iphone library so my guess is no.
Should I tell it to use jquery (or other library) or should I download the special iphone javascript subset manually and try an integrate it in my project?
As far as I know JQuery should work fine on the iPhone. The specific libraries you are talking about must be additions to take advantage of iPhone only features like being able to handle the display orientation event or maybe use the webkit css animation extensions.
Although you will need to be careful with events since most mouse related events on the iPhone behave a little different from what you might expect. This presentation by PPK offers some clues about it:
http://yuiblog.com/blog/2009/04/27/video-ppk-jsevents/
Yep, iphone should run jquery just fine. The javascript support is surprisingly capable. Although you may want to look at some of the iPhone specific libraries out there. I forget their names. iUI I think?