background preloader

Android

Facebook Twitter

PhoneGap RSS Reader. Earlier today I noticed an entry on the PhoneGap forums from a user asking about an RSS reader. I thought I'd whip one up using PhoneGap and jQuery Mobile and see what it took. Here's what I came up, and as always, feel free to rip apart the code and write it better. I'll warn folks that I only wrote the code to support RSS2, not ATOM, but in theory, it should be possible without too much additional work.

(You would simply look at the metadata, note it, and change how you get data.) I began by creating a new PhoneGap project. ColdFISH is developed by Jason Delmore. My code listens for my initial page to load. As a reminder, AJAX code in PhoneGap applications are not restricted by normal remote domain rules. ColdFISH is developed by Jason Delmore. So my handler can simply append to it.... ColdFISH is developed by Jason Delmore. Note two things here. Ok, so what's going on with the content page? ColdFISH is developed by Jason Delmore. ColdFISH is developed by Jason Delmore. How to access Samsung Galaxy S II usb drive in Ubuntu | Tuxtrix. I recently had a chance of playing with a Samsung Galaxy S II . It is indeed quite a stunning phone. Thin, lightweight with an awesome camera and a brilliant display screen, it just blows your mind away.

And it is fast too! The real issue came into light when I tried to transfer some photos from the Galaxy S II to my laptop running Ubuntu using a usb cable. To get past this issue, enabling USB storage will do the trick.Once this is enabled, Kies will be disabled and the stock USB handler will come into effect. Here's how to do it. 1. Menu -> Settings -> Wireless and network -> USB utilities 2. 3. 4. 5. 6. Hope this helps! Setting Up An Android App Build Environment With Eclipse, Android SDK, PhoneGap (Ubuntu 11.04.

Version 1.0 Author: Falko Timme <ft [at] falkotimme [dot] com> Follow me on Twitter Last edited 06/22/2011 This tutorial describes how you can set up an development environment for building Android apps on an Ubuntu 11.04 desktop using Eclipse, the Android SDK, and PhoneGap. I will describe how to build Android apps from the command line with PhoneGap and from the GUI with Eclipse and PhoneGap and how to test them in an Android emulator and on a real Android device. PhoneGap allows you to develop your Android applications using web technologies such as HTML, CSS, and JavaScript (e.g. with JavaScript libraries such as jQuery/jQTouch), and it will turn these web apps into native Android apps (in fact, PhoneGap supports multiple platforms such as Android, iPhone, Palm, Windows Mobile, Symbian, so you can use the same sources to create apps for multiple platforms). I do not issue any guarantee that this will work for you!

1 Preliminary Note Tutorial: A simple Twitter client with JQTouch android. Fragments. A Fragment represents a behavior or a portion of user interface in an Activity. You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities. You can think of a fragment as a modular section of an activity, which has its own lifecycle, receives its own input events, and which you can add or remove while the activity is running (sort of like a "sub activity" that you can reuse in different activities).

A fragment must always be embedded in an activity and the fragment's lifecycle is directly affected by the host activity's lifecycle. For example, when the activity is paused, so are all fragments in it, and when the activity is destroyed, so are all fragments. When you add a fragment as a part of your activity layout, it lives in a ViewGroup inside the activity's view hierarchy and the fragment defines its own view layout.

Design Philosophy You should design each fragment as a modular and reusable activity component. Short Introduction to Android. Essential Links Excellent step-by-step, (almost) fail-proof installation guide for the Android development tools Android Developers should be your primary source of information. Among other things, it contains the following essential sections: Tutorials in the Resources section (many of the tutorials below are from this website. Sample code for going beyond tutorials (also in the Resources section) Complete reference to the Android SDK (in the Reference section). Best Practices (in the Dev Guide section). Short Presentations Following is a list of presentations that gradually introduce the basic concepts in Android programming.

Java review (ppt). Sample Code BroadcastChatUI1 Just UI (no network functionality) When users type a message, the message is just displayed in ListView BroadcastChat1 Add UDP broadcast When users write a message, the message is sent using UDP broadcast A separate thread listen broadcast packets and update UI. Common Problems Other Resources.