![]() bash_profile (make sure you replace my filepath with your filepath): I created a Development folder for my Android dev tools. Keep in mind that it is a hidden file, so you need to enable viewing hidden files (in case you didn’t know). ![]() bash_profile sleeps at night, but mine was in my home directory (aka ~/.bash_profile). You may have to do some searching to find where your. In fact, PhoneGap wants to use some commands for Android development, but SURPRISE! Those commands are not available until you manually edit your. Command Line GoodnessĮveryone wants to use command line tools. If that doesn’t work, it’s probably because you have a problem that will be solved by reading the next section of this blog post. Type android in a terminal to open the SDK manager. Use the SDK manager to install the desired API. I used API 17 for supporting phones with Android v4.2. Android SDK: platform Software Dev Kit (make sure it comes with Eclipse)Īfter you install the Android SDK, you probably want to make sure you have the right API version.Some PhoneGap tutorials cover some of these dev components, but I don’t remember seeing one that covered all of them so here you go: Maybe it’s because my personal dev machine is running Ubuntu, but I had to install many missing pieces to the PhoneGap puzzle. I’m sure you were told to just install the Android SDK plus PhoneGap and then you’d be off to the races, right? WRONG. I really wish someone had warned me about these hoops, but my loss is your gain. There were many unspoken hoops I had to jump through to get it working for me when I worked on an outdoor video game app. Although if you’re developing for iOS, you’ll still face annoyances like having to disable WebView bounce (why doesn’t PhoneGap do that for you by default?!). You do have Google Fu, right? Don’t forget that Adobe PhoneGap is oftentimes referred to as Apache Cordova (even in modern documentation).Īnyway, this blog post is meant to disclose the growing pains you could encounter upon trying PhoneGap for the first time for Android development. There are many pros and cons to developing with PhoneGap, but I won’t review those because you can find debates on the usefulness of PhoneGap and others like it so long as you have (at least) mediocre Google Fu. The app will simply use a browser embedded in a native app wrapper (hence, the “hybrid” label). You write HTML, CSS, and JavaScript code for PhoneGap to compile into an app for iOS, Android, Windows Phone, Blackberry, etc. PhoneGap is a crazy tool for building “hybrid” smartphone apps.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |