Powered by Blogger.

DO YOU WANT MONEY DAILY


EASY TO EARN DAILY 25$ TO 35$.FOR MORE DETAILS
CALL +919487747807

RSS FEED

Total Pageviews

Blog Archive

Showing posts with label Tutorial:. Show all posts
Showing posts with label Tutorial:. Show all posts

Thursday, 12 January 2012

Tutorial: How to set up iCloud on your Mac

How to set up iCloud on your Mac | News | TechRadar Updated 18 minutes ago

Username Password Remember me | Forgotten details?Forgotten details? Close

Email me my password

*Email not recognised

GoGo Please check your inbox for your password reminder email. Thank you.

-->Log in|Join TechRadar and get our free newsletter Home

Premier PartnerSamsungExperian Hitwise winner: Top 10 Website, Jan-Dec 2010 News All newsMobile PhonesTVsTabletsComponentsCamerasAVComputingLaptopsMore Reviews Browse categoriesMobile phonesComputingTabletsCamerasAVLatest ReviewsHow to buy Blogs New postsAppleHome CinemaPCsSatelliteHardwareMacTechRadarAll Forums Forum homeAdvanced search TR Store Phone dealsMobile phone recycling Magazines Tech magazines All magazines CES 2012   Like us on FacebookNokia LumiaCES 2012Where am I?NewsNews by technologyComputingAppleAll feeds Get weekly newsletter Join TechRadar How to set up iCloud on your Mac Tutorial: Get everything in sync and learn how to find a lost MacApple News By Laurence Cable Wednesday at 11:31 UTC | Tell us what you think [ 0 comments ]

Tweet Page 1: How to set up iCloud on your Mac

set-up-icloud-on-your-mac You will need the latest version of OS X or iOS in order to take advantage of iCloud

There's been a lot of fanfare about iCloud, Apple's free online storage system.

It doesn't just allow you to back up your iPhone, iPad or iPod touch; iCloud keeps your vital data in sync between multiple devices, be they Macs, Windows PCs, iPhones, iPads or iPod touches.

Designed to ensure you've always got your important stuff with you, it works seamlessly with many of your Mac's built-in apps, including Mail, iCal and Safari. Even if you only have a single Mac, it's worth setting it up to use iCloud, so that you've got an online backup of your data.

We're going to show you how to set it up on your Mac. Then we'll show how to use Find My Mac, a key feature that enables you to pinpoint your Mac's location, should it go astray.

iCloud can keep a range of things in sync for you. These include your emails, notes, contacts, calendars, Safari bookmarks, documents and data from compatible apps, and your photo stream. You can decide which of these things you'd like to keep synchronised.

What it doesn't do is back up much of the contents of your Mac's hard drive: you'll still need to use your Time Machine or online backup system to take care of that.

iCloud is free, but you do need to be running OS X Lion to use it, so if you haven't already upgraded, now's a great time to do so. Get it from the Mac App Store, or order a USB drive with it on from www.apple.com/uk/store. And to use it on your iPhone, iPad or iPod touch, these devices will need to be on iOS 5: plug your device into your Mac, open iTunes, click it in the left column, then click Check for Update on the right.

You'll need an Apple ID to use iCloud (the same you use for iTunes or App Store downloads). If you don't have one, set one up in the iCloud System Preferences pane (step 2).

How to set up iCloud on your Mac

01. Check you're up to date

iCloud 1

You need to be running the latest version of OS X Lion to take advantage of iCloud. Choose About This Mac from the Apple menu: if it says you're on version 10.7.2 or later, you're good to go. If it's 10.7.1 or 10.7, click Software Update… to get the newest version.

02. Enable iCloud

iCloud 2

All your important iCloud settings are in Apple > System Preferences > iCloud. Type your Apple ID and password into the boxes and click Sign In. You can't fine-tune things at this stage: we suggest you tick both boxes, but you can always manually add or remove elements later.

03. Allow location use

iCloud 3

If you're using Google Sync, this has to be switched off. If you're happy with this, click OK. You'll now need to authorise Find My Mac to access the location of the computer. Go ahead and click Allow, and you'll be taken to the main iCloud settings screen.

04. Fine-tune things

iCloud 4

You can now turn sync services on and off. Tick or untick the boxes as you wish. You may see an exclamation symbol next to the Find My Mac entry: if so, click More…. In our case, we needed to enable Wake for network access in Energy Saver.

05. Buy more storage

iCloud 5

You get 5GB of free iCloud storage. But as you add more things to it, you may find the capacity bar at the bottom filling up. To buy more storage, click Manage…, then Buy More Storage…. An additional 10GB costs £14 a year, 20GB is £28, while 50GB is £70 per annum.

How to find a lost Mac

01. Sign into iCloud.com

iCloud 6

Provided you've set up Find My Mac as above and it's connected to the internet, you'll be able to pinpoint where it is in the world. On the iPhone, iPad or iPod touch, download the Find my iPhone app. On a Mac or PC, go to www.icloud.com and click Sign In.

02. See it on a map

iCloud 7

Type in your Apple ID and password and press Return. Then click Find My iPhone: a map will load with your registered devices shown as pins. To see where a device is, click its name in the panel on the left. If it can't be located, you'll be shown when and where it was last sighted.

03. Remotely control it

iCloud 8

If you're concerned your Mac has fallen into the wrong hands, or have simply misplaced it, click the 'i' next to its name on the map to see your options. You can make it play a sound, send a message to appear on its screen, or you can remotely lock or wipe it.

--------------------------------------------------------------------------------------------------

First published in MacFormat Issue 242

Liked this? Then check out iCloud: everything you need to know

Sign up for TechRadar's free Week in Tech newsletter
Get the top stories of the week, plus the most popular reviews delivered straight to your inbox. Sign up at http://www.techradar.com/register

Follow TechRadar on Twitter * Find us on Facebook * Add us on Google+

Tags: tutorial, iCloud, online backup, online sync, AppleTweetreddit!Stumbleupon  Tell us what you thinkYou need to Log in or register to post comments

By submitting this form you agree to our Terms of Use and so are legally responsible for anything you submit. DO NOT submit anything which may violate the Terms of Use or another person's rights including copyrighted or offensive materials.

SubmitSubmit Explore News PCApple Related News Paddy Power taking bets on next Apple announcementApple patent hints at Thunderbolt for iOS devicesApple to bid on Premier League football for Apple TV?Apple New York event to focus on education?Apple planning New York 'media-related' event Related Reviews Apple TVApple MacBook Pro 13-inch (Late 2011)Apple MacBook Pro 15-inch (Late 2011) Get the best deals on subscriptions Get the best deals on subscriptions

And find out more about MacFormat Magazine

80 handy OS X Lion tips and tricks 80 handy OS X Lion tips and tricks

Fun and useful things you can do in OS X Lion

30 best free Mac programs to download 30 best free Mac programs to download

Top free software for OS X, iPad and iPhone

Best Mac backup software: 6 apps tested Best Mac backup software: 6 apps tested

Which software makes backing up your Mac painless?

How OS X Lion helps keep your files safe How OS X Lion helps keep your files safe

Why Lion's Autosave and Versions features are a real boon

NEWESTMOST READMOST COMMENTED TECH NEWS HEADLINESIn pictures: Razer Project FionaIn pictures: Samsung DA-E750 Audio DockHands on: HP Omni27 reviewIn pictures: Sony Vaio tablet conceptsHands on: Toshiba Qosmio F755 reviewHands on: Toshiba Satellite Ultrabook reviewNikon explains D4 pixel countMore TECH NEWS HEADLINES20 best mobile phones in the world today10 best touchscreen phones for 2012Best DSLRs for video: 15 cameras from £400 to £2,400The 10 best gadgets and tech at CES 2012In pictures and video: Samsung 55-inch Super OLED TVFujifilm announces X Pro1 lenses and accessoriesBest TV 2012: what TV should you buy this year? TECH NEWS HEADLINESHands on: Sony Xperia S review (13)The iPhone changed everything (13)10 best touchscreen phones for 2012 (11)Ballmer says Windows Phone now a 'strong third ecosystem' (6)Hands on: Nokia Lumia 900 review (6)Hands on: Huawei Ascend P1 S review (6)Using multiple Windows desktops with Dexpot (5)

Find a review

Get more from TechRadar Hands on: Motorola Droid 4 reviewiPad 3 rumours: what you need to knowiPhone 4SiPhone 5 rumours: what you need to know20 best mobile phones in the world todaySamsung Galaxy NexusNokia Lumia 800Amazon Kindle FireSamsung Galaxy NoteNikon V1HTC RadarNikon J1iPhone 3GSHTC SensationSamsung Galaxy AceHTC Wildfire SHTC Desire S TechRadar Poll

How much would you spend on 42" OLED TV?

£5,000+£4,000+£3,000+£2,000+£1,000+Under £1,000I don't want an OLED TV

VoteVote Results Where am I?Technology NewsTech newsApple newsMobile phone newsTablet newsTV newsCamera newsPC component newsPC newsLaptop newsInternet newsGadget newsGaming newsHome cinema newsHi-fi newsTechnology ReviewsDigital camera reviewsCamcorder reviewsMobile phone reviewsMP3 and iPod reviewsNetworking reviewsPC reviewsPC component reviewsLaptop reviewsTablet reviewsTV reviewsBlu-ray reviewsHi-fi reviewsTechRadarAbout usContact usSitemapReport this pageAccessibilityMedia enquiriesTerms and conditionsPrivacy policyAdvertising enquiriesJobsMore from TechRadarRegister & email newsletterFacebookTwitterYouTubeRSS feedsForumsPhone dealsSell your old mobileTechRadar Network3D RadarTap! magazineMacFormat magazinePC Format magazinePC Plus magazineLinux Format magazineFuture Publishing Logo

Copyright 2006 - 2011 Future Publishing Limited,
30 Monmouth Street, Bath, BA1 2BW, United Kingdom
England and Wales company registration number 2008885

Digital FutureBikeRadarT3MusicRadarGamesRadarPhotoRadar

Wednesday, 4 January 2012

Tutorial: How to manage your files with your iPhone

How to manage your files with your iPhone

Your smartphone is your true mobile companion. It has more computing power than it took to put a man on the moon. It's an always-connected PC, sitting in your pocket; yesterday's dreams made real. And, as such, your smartphone is the perfect device for dealing with your precious documents and files.

No other hardware has the power of internet connectivity, push notifications, compatibility with our PC operating systems, and most importantly, is omnipresent in everyone's lives, ready to be called on at a moment's notice.

Despite the smartphone's power to put files and documents at our fingertips, it can be surprisingly difficult to access them. One particular offender is iOS, which, despite being the operating system behinds the world's most popular handset, the iPhone, is totally inept when dealing with files.

We should point out that we're concentrating on iOS in this article, merely because it's the most restricted of the smartphone operating systems. Many of our tips will also apply to Android and BlackBerry handsets too. Grab the Dropbox app for Android and you'll be able to do many of the things we describe here.

Back to iOS, then. It hides its file system, it's unable to read files placed onto its memory using a USB connection, there's no microSD port for moving files physically, and Safari will plainly refuse to use web versions of online file systems such as Dropbox. It's like the anti-computer.

Even if you're able to access them - perhaps by connecting a camera connection kit to an iPad and inserting an SD card - iOS has little provision for reading files natively, so that essential Word document will be about as much use to you as an animated GIF of a gurning Jeremy Clarkson.

Luckily, what can't be done natively on the iPhone can mostly be achieved though the use of apps. You can extend your phone's functionality to add features, and when it comes to going mobile with your files, there are plenty of methods to choose from.

Dropbox

One of the first names that come to mind when dealing with file storage and distribution is Dropbox. And rightly so. This online cloud storage service has rocketed in popularity over the last couple of years due to its excellent connectivity options, fast speeds and intuitive interface. One of the best things about Dropbox is that it's multi-platform - you might already use it on PC or Mac through a desktop app or through the browser portal, which lets you to access the files you're storing from anywhere.

However, fewer people are aware of the rather excellent iOS version of the Dropbox app, which really puts you in control of your stored documents. If you're ever away from your PC, on the move or simply need to access an important file quickly, your smartphone can come to the rescue.

You can download the Dropbox app for iOS from the App Store free of charge. Once it's installed, tap it to open and you'll be asked if you're a Dropbox user. If you've used the service before, just add your details to access your files. If this is your first time using it, click 'I'm new to Dropbox'. There's a short signup process, which is kept to a minimum, then you're taken to your storage area.

Once you're logged into the app you can view any file that's been uploaded to your Dropbox and stored in the cloud from any system; this means your files can cross between Android handsets, PCs, email accounts, the lot.

There's also the option to view files, which is one of the few ways you can actually read documents that have been sent to your iPhone, given its usual stoic refusal to view anything other than PDFs and images.

Dropbox is able to natively display a host of image types, a variety of text documents and a string of other common file types besides. Unfortunately you can't make changes or amendments to the documents, and they will only open in a read-only mode.

Share and share alike

How to manage your files with your iphone

You can, however, redistribute files, which can be a godsend when you're on the move. If a colleague or family member has ever called you to ask for a file while you're enjoying a day off, it can often mean an irritating journey to your PC to send it.

Retrieving the file on Dropbox makes the process much easier. Open any file, even if it's in an unreadable format, and press the icon at the bottom left that looks like two linked chains. Choose 'Email link' and a new message containing a hyperlink will open using the iPhone's default mail programme. Send that to the recipient and they can download the file without any hassle, leaving you to get on with your day.

One weakness of using Dropbox on your iPhone is that there's little scope for uploading to the app. You can add files, but with iOS's limited file support you can only deal with your photos.

Thankfully, there's another way. Other apps that let you interact with your files can connect with Dropbox, letting you save your files in a central location. A great example of this is the email app provided with iOS. Scroll to the bottom of an email containing an attachment and tap it. When it loads, press the forward arrow in the top right corner. Choose 'Open in' and select 'Dropbox' from the list. The app prompts you to pick a location for it to be saved in before it's uploaded to the cloud.

Dropbox presents one of the simplest ways to control your files using your iPhone, and there's not a lot that it can't do.

However, mobile workers who use a host of FTP connections may find there's a lack of options on offer, and could be put off by the need to use the desktop application. Locked down corporate systems won't let you install the app either, which means it's a case of using the clunky web interface, which is never a good thing.

However, an iOS app called Air Sharing does offer a neat alternative.

Air Sharing and DiskAidAir Sharing

How to manage your files with your iphone

While Dropbox is a fantastic way to access files when you're away from your PC, it doesn't put you in full control. If you're looking to really work remotely, try the Air Sharing app, which is available for £1.49 from the App Store. This features a host of functions that give you the power to turn your iPhone from a basic file reader into a powerful server.

In short, Air Sharing lets you use your iOS device as a portable hard drive, with your files stored wherever you go. You can access them via your phone, PC, Mac or via a web portal which offers 10GB of storage. You can even mount your iOS device onto your desktop as if it were a portable hard drive, which is particularly useful if you have a large capacity device; it may not matter to you if the phone itself can read the files if you're always carrying the equivalent of a large USB drive in your pocket.

The key benefit of Air Sharing over other types of mobile storage is that instead of storing your data in the cloud, it uses the physical memory on your iPhone. This means you can use up to 10GB of storage, rather than the measly 2GB provided with the free version of Dropbox.

It also means that you have a backup if you need a file when you're offline, and you may even get better speed running over Wi-Fi than you would over USB.

How to manage your files with your iphone

To get started, download the Air Sharing app from the App Store. There's a Pro version that costs £3.99 and has many more features, and you can upgrade at any time. Mounting your iPhone as a physical drive on your PC is easy. First you need to connect your iPhone to your home network, then open the Air Share app and press the wireless icon at the bottom of the home screen. This will open a small menu that contains important information about your account.

Put your iPhone to one side and turn to your PC. In Windows 7, click the Start menu and right-click 'Computer'. Choose 'Map network drive' from the list, then enter the IP address listed in your Air Sharing app into the 'Folder' field. Click 'OK' and a Windows Explorer window will open showing all of the files contained in your Air Sharing inbox.

You can also do the same on a Mac, if you're using one. Begin by right-clicking on the Finder icon in your dock, then choose Connect to Server. Use the same IP address as you would on PC in order to have the storage location mounted for seamless connection between Mac and iPhone.

The support provided by Air Sharing is also fantastic, and includes some difficult formats. There's iWork, Microsoft Office, HTML, RTF, PDF, movies, audio, and even source code, including C++. That could prove invaluable if you're a programmer.

If you're a mobile worker, Air Sharing has a few more tricks up its sleeve. Unlike Dropbox, it supports a wealth of FTP file sharing protocols, Home Pipe, MobileMe, and Dropbox itself, which gives you plenty of options.

You don't have to settle for FTP links to get more from Air Sharing; if you have Bonjour installed on your PC or Mac, you can connect using your web browser. This address doesn't change from session to session; just find it in Air Sharing's connections menu once and you'll always know exactly how to connect to your phone.

View your files on your PC

How to manage your files with your iphone

Air Sharing is a powerful tool, but it's possible to supplement or even replace it with a different, more hardcore application. DiskAid is a PC app that lets you explore the contents of your iPhone like any other drive. You can download a 14-day trial, after which you can pay $9.95 to upgrade to the full program.

Once the trial is installed, it will prompt you to connect your iOS device, which must be unlocked the first time so DiskAid can recognise it. You will then get a basic file tree view, which lists all your installed apps as well as general storage. This is the bit of iOS that Apple tries its best to hide from public view - the file system itself.

We're of the mind that Apple isn't trying to be deliberately awkward, though; Steve Jobs' philosophy, even back when he and Steve Wozniak were designing the original Apple home computers, was that they should be simple enough for anyone to use. There was even an argument in those early days; Woz had to fight hard for the Apple II's expansion slots.

Reminiscing aside, you can use the DiskAid app to transfer files to and from your iPhone's memory. Unfortunately it's not a straightforward case of dragging and dropping - the tools are located at the top of the DiskAid window. Click one of these to locate the file and the destination, and DiskAid will take care of transferring it to your memory. This does introduce one large issue: you'll need a machine with DiskAid installed to move files around on an iOS device, so it's not a universal solution.

If you're using Air Sharing, you can also find these files by choosing the app from the list located near the bottom. Click on the name to display a new folder containing all of your remote files. You can transfer these to your PC by clicking them and choosing 'Transfer to PC'. Just set the destination and your file will be copied across.

There are a few other file management solutions worth mentioning here. If you're looking to grab files straight from the internet and store them on your device, you could do worse than trying Downloads, a £1.50 app that especially suits MP3s, given that it has its own built in player.

Or, if you're looking to improve iOS compatibility with media files, try something like VLC Streamer, which plays back videos of all types, streaming them over your network.

Or why not try Screens, which lets you see and control your PC's desktop directly from your phone? It's pricey at £14, but worth the investment.

If you're really looking to take control of your files then iOS is far from perfect, but the huge range of apps on offer means you don't have to rely on USB sticks and clunky cloud web interfaces.

We heartily recommend anyone to try Dropbox, and the app is a great extension of a superb web service. Alternatively, Air Sharing is a fantastic service, especially if you go for the pro version.

]]>

Saturday, 31 December 2011

Tutorial: How to build an Android app

How to create an Android app

One of the strengths of the Android platform compared to iOS, for example, is that it has an open source basis, which makes it easier to produce your own applications and distribute them without waiting for a lengthy approval process.

You can set up your own Android app on your PC as long as you have the right software installed, and you can even take it for a test drive using an Android emulator so you can see what it will look like when it's run on a smartphone.

There are two techniques that you can use to produce Android applications with a PC. The first uses the Android Software Development Kit (SDK). This lets you write raw code and helps you get it working in the Android environment. The second uses App Inventor, a Google Labs tool that's still in beta.

This provides you with a simple drag-and-drop environment that you can use to generate new applications made up of building blocks of code and media. It's an attempt to make application development possible for people who aren't hardcore coders, but it's not recommended for production environments.

Assuming that you'd like to try the full coded environment, we'll demonstrate how to produce a simple 'hello world' application. If you'd rather work in a GUI, we'll discuss App Inventor later on. Android apps are written in Java code, so you'll need a Java development kit installed on your PC. You also need an integrated development environment (IDE) so you can write and test the code.

You also need to get your computer ready for the Android SDK. Start by installing a Java Development Kit for your version of Windows.

You also need to install Eclipse IDE for Java developers. When you install Eclipse it will check for the JDK. It's best to unzip Eclipse in the same directory as the JDK. If it can't find the JDK it won't install, but you can always move the required files to whatever directory the Eclipse installer is examining.

With Eclipse up and running, you can download the Android SDK. Extract it to a safe directory on your PC and make a note of where it is.

How to create an android app

Back in Eclipse you need to add the Android Development Tools. To do this, choose 'Help > Install new software'. Next to 'Work with', enter https://dl-ssl.google.com/android/eclipse and click 'Add'. In the pane below this, check 'Development tools' and click 'Next'. Select 'Android DDMS' and 'Android Development Tools'. Click 'Next', accept the terms and restart.

You need to point the ADT plugin to where you extracted the Android SDK. In Eclipse choose 'Window > Preferences > Android'. Next to 'SDK location' click 'Browse' and locate the folder with the SDK. Click 'Apply' and 'OK'

Android platform

How to create an android app

Now that you've sorted out the programming environment, you also need to get at least one version of the Android platform. You can do this in the Android SDK and AVD Manager, which you can launch in Eclipse if you've set your system up correctly.

Choose 'Window > Android SDK and AVD Manager' to open it, then select 'Available packages' and tick the box next to 'https://dl-ssl.google.com/android/repository/repository.xml'.

After a brief scan of the repository, you'll see the available components. Tick those that you want to install and clear the rest. The most important package to install is the latest version of the Android platform. You'll only need older ones if you plan to release your app and need to test it in a range of different versions. At this stage you can also clear the samples, Google APIs and USB driver. If you need any of these later, you can always go back and install them.

Click 'Install selected' and wait for the components to download. Verify and accept the new components if prompted and they will be added to your existing Android SDK folders.

Android virtual devices

How to create an android app

Having downloaded a version of Android, you need to set up an Android Virtual Device (AVD) to run the computer. You can do this in the Android SDK and AVD Manager. Choose 'Window > Android SDK and AVD manager' and select 'Virtual devices'. Click 'New' and provide a name for your new device. Select the Android platform that you want to use as the target. Click 'Create AVD'.

If you want to test your application under different versions of Android, you'll need to create a new virtual device for each version of the platform. You can also specify other parameters here, including the presence and size of an SD card. It's also possible to select a file to use as a virtual SD card.

You can opt to use the built-in skin (recommended) or specify the resolution that you want to use. Under 'Hardware', click 'New' and select a device if you want to add more virtual hardware.

For a simple AVD, you'll generally be fine sticking with the default options. You can now close the Android SDK and AVD Manager.

Create and emulate your Android app

How to create an android app

Assuming you now have all the software in place and you've set up a virtual device in the Android SDK and AVD manager, you can create a new project. In Eclipse IDE choose 'File > New > Project'. In the New Project wizard, select the 'Android' folder and choose 'Android project'. Click 'Next'. You now have a new window for your project details.

To start with, we'll set up a simple 'Hello world' application that just displays some text when launched. In the field marked 'Project name', enter HelloAndroid. For 'Application name' enter Hello, Android. For 'Package name' supply com.example.helloandroid and for 'CreateActivity', enter HelloAndroid. Click 'Finish'. These parameters are used to set up your project in Eclipse.

The project name is also the name for the directory in your workspace that will contain your project files. Eclipse will create it for you. Assuming you accepted the default Windows workspace of C:\Users\[username]\workspace, you'll find the above directory at C:\Users\[username]\workspace\HelloAndroid.

If you browse to this in Windows Explorer, you'll see a number of subfolders and files set up as part of the project.

How to create an android app

The application name is the title of your app, which will be displayed in the Android device. Change this to change the name of the app. You need to be a bit more careful with the package name.

This is the namespace for the package where your source code resides. It needs to follow the rules for naming packages in Java. It also needs to be unique across the Android system, which is why a domain style package is used; 'com.example' is reserved for examples like this.

If you develop an app that's published, you'll need to use your own namespace. This usually relates to the organisation publishing the app.

'Create activity' relates to the class stub generated by the plug-in. An activity is basically an action. It might need to set up a user interface if it needs one. We left other project fields at their default values, but it's useful to know what they do. 'Min SDK version' lets you set the minimum API required by your application.

If 'Use default location' is ticked, your project will be saved in your workspace. You can opt to change this if you want to store the files elsewhere. 'Build target' is the platform target for your application. It's the minimum version of Android that it will run on.

If you develop an app to run on an earlier version of Android, it should run on a later one too, but one developed for a later version of the platform probably won't run on an earlier version. For an example like this, the build target isn't critical as long as you can get your application to run in the emulator. It's more of a concern when you come to release an app.

Finally, the option to create the project from an existing example enables you to select some existing code to modify. You'll find this of more interest as you move on to greater programming challenges.

Modify the code

You should now see your project displayed in the Package Explorer, which is shown in the left-hand pane of Eclipse. Double-click 'HelloAndroid' to expand it. Also expand 'src' and 'com.example.helloandroid'. Double-click 'HelloAndroid.java' to see the code that's already been set up. In the main pane you should see the following text:

package com.example.helloandroid;

import android.app.Activity;
import android.os.Bundle;

public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(BundlesavedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}

If you can't see all of this, try looking to the left-hand side of the pane and expanding any plus signs that indicate collapsed code. This defines your application without actually doing anything at this stage. To make it do some work, we need to add an object that will contain your text.

Having done that, we also need to specify the text. Below 'import android. os.Bundle;' add the following line:

import android.widget.TextView;

Also add the following above the two sets of closing curly brackets:

TextView tv = new TextView(this);
tv.setText("My First Android App"); setContentView(tv);

You can replace the text within the quotes to make your app say whatever you like. Check that the code in its entirety reads as the following, assuming you kept the displayed text the same:

package com.example.helloandroid;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(BundlesavedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("My First Android App");
setContentView(tv);
}
}

Save the changes to your code. You can now try it out in the Android emulator. In Eclipse, choose 'Run > Run > Android application'. The emulator launches. It can take a few minutes to boot into Android, so be patient. Once booted, your app should run automatically and you'll see a grey title bar with the app name in it. Below this, your chosen text is displayed.

Press the 'Home' button in the emulator to return to the Android home screen. Click the 'Applications' button to see the list of available applications. Among these you should see 'Hello, Android'. Select this to launch your app again.

Test your app on an Android device

How to create an android app

Now you've successfully run your app in the emulator, you can try running it on a real device. First you need to ensure that the USB driver is installed in the Android SDK and AVD manager. Choose 'Window > Android SDK and AVD manager > Available packages'. Select the Android repository, ensure that the USB driver is ticked and click 'Install selected'.

Connect your phone to a spare USB port and wait for Windows to detect it. In the New Hardware wizard, choose 'Locate and install drivers' and opt to browse your computer for the driver software. Browse to the 'Android SDK' folder and locate the subfolder for the USB driver. Windows should find and install it from here.

Now you need to declare your app as debuggable. In Eclipse, expand your HelloAndroid application and double-click 'AndroidManifest.xlm'. Move to the 'Application' tab and select 'True' from the Debuggable dropdown list. Save the project.

Go to your Android phone and choose 'Menu' from the home screen, then select 'Applications > Development' and enable USB debugging. Now you can reconnect it to your PC via USB. If you want to check that the SDK can see your phone, browse to the 'Tools' directory in your 'Android SDK' folder. Launch 'adb.exe' and you should be able to see your phone listed as 'Device'.

To launch your application on the connected phone, you need to choose 'Run > Run > Android application in Eclipse'. Now you have both the emulator and your phone connected, you need to specify which you want to run it on. Eclipse presents you with a Device Chooser that lists all the available devices and emulators. Select your phone from this list to install and run the app.

Now you've produced and run a very basic application from raw code in an emulator and on an Android device, you can begin to learn how to develop your own. It helps to have some knowledge of Java programming, but you'll also find a number of stepped tutorials in the Android Developer Resources pages.

These include introductions to the different views available to apps and how to implement them. You'll also find ways to use common resources like location information, and find out how to debug your work.

You can find a full list of sample code on these pages too. This will help you to work through example applications that you can modify to your own ends. These include games such as Snake and Lunar Lander, plus utilities like Note Pad and Wiktionary. You can find even more samples at Apps-for-Android.

How to use App InventorApp Inventor

How to create an android app

For those whose eyes glaze over at the sight of a few lines of code, App Inventor may well be the answer. This Google Labs innovation lets you create applications using your browser and either a connected phone or an Android phone emulator. All your work is stored on the App Inventor servers, so you can come back to it at any point.

App Inventor consists of three main components. The App Inventor Designer lets you select components for your app, including media, buttons, labels and everything else that's related to the way your app looks and feels.

How to create an android app

The App Inventor Blocks Editor is concerned with the processing components of your application. Any decision handling is dealt with here, and it's shown as a kind of puzzle. You drag and drop program pieces like a jigsaw.

The emulator provides a virtual phone so you can try your program out, and it's updated as you make changes in real time.

You can opt to use a real Android phone instead of the emulator, as long as there are Windows drivers to support it that will work with App Inventor.

While it's partially cloud-based, there are still components that need to run locally, with the most important being the most recent version of Java. It's worth running a couple of tests to ensure your browser can execute Java code correctly before downloading the full App Inventor local program. If you have any browser extensions installed that stop code running in the browser, such as No Script for Firefox, it's a good idea to disable or even uninstall these before attempting to run App Inventor.

Once you have App Inventor installed, you need to run it by connecting to the App Inventor site. You can't just launch it from the Start menu. In your chosen browser, head to App Inventor at Google Labs; if you have everything in place, the program will start. You may need to log into your Google Account if you haven't already done so, because this is where your development data will be stored.

Create your first Android app: step-by-step

How to create an android app

To create an Android app in App Inventor, first download the most recent version of your browser and get Java.

Run a couple of tests to ensure that your system is set up to run App Inventor, first by running the Java test. If it works, you'll be presented with a success message. If it fails, reinstall Java. After this, browse to the Check Java for App Inventor page, signing in with a Google account if prompted. The page will tell you if your browser is correctly configured.

How to create an android app

If it is, click the 'Launch' button to check that you can run a simple application in your browser using Java.

Now you know that App Inventor will run in your browser, go to the App Inventor Setup page and click 'Download'. Once downloaded, browse to the file named 'AppInventor_Setup_Installer_v_1_2.exe' and launch it. Follow the installation. Make a note of the installation directory in case you need it later, but don't change it.

The software already supports a number of popular Android phones. These include T-Mobile G1 / ADP1, T-Mobile myTouch 3G / Google Ion / ADP2, Verizon Droid (not Droid X), Google Nexus One and Google Nexus S. If you have a different phone, visit the Windows Drivers page to get its drivers. Alternatively, you can run your app in the emulator.

Next, go to App Inventor at Google Labs and wait for App Inventor to launch. Click 'New' to start a new project, name it 'HelloPurr' as one word and click 'OK'. This project uses two media files: a picture of a cat in PNG format and an MP3 of purring. You can download them from the Building Your First App tutorial webpage or use your own.

How to create an android app

The Designer opens. In the left-hand pane you'll see the palette, which shows each of the components you can use. Click and drag a button onto Screen 1 in the viewer, to the right of the palette. To the right of this is a list of components in use.

How to create an android app

Select Button 1 and click 'None' under 'Image'. Choose 'Add', then browse to your cat picture. This changes the appearance of the button. Click under 'Text' and delete the existing wording.

How to create an android app

You now need to set up the app in the Blocks Editor. This can run your app via its emulator or through your phone. Click 'Open the blocks editor' and wait for the editor to open in a new window. Keep the existing window open. Choose 'Connect to device' and select your phone from the dropdown list. Wait for the editor to connect properly. If all is well, you'll see a picture of a cat on your phone. Alternatively, click 'New emulator'.

How to create an android app

If you're using an emulator, once it's running you need to connect to it in the same way as a phone. Click 'Connect to device' and select the emulator. Once connected, you'll see your cat picture on the emulator's screen. You may need to unlock the emulated phone by dragging the green lock button to the right.

How to create an android app

Return to the Designer window and drag a label from the palette to the viewer in Screen 1 so it appears below the picture. In the label properties on the right, enter the text 'Stroke the cat'. Change the font size to 30 and choose a different colour if you like. We'll now add the purring sound for when the cat is stroked.

How to create an android app

In the Designer window, click 'Palette > Media > Player'. Drag it to Screen 1 in the Viewer. Select 'Components > Player1 > Source and add'. Find the MP3 file of the purring sound, select it and choose 'OK'.

Everything is now in place, but the application needs to know to play the sound only when the cat is touched.

How to create an android app

Return to the Blocks Editor, select the tab 'My blocks' and click 'Button 1'. Drag the element 'when Button1.Click do' into the main editor screen. Now click 'Player1' and drag the element 'call Player1.Start' into the space within the existing element. Now click the cat to play the sound.

Back in the editor, choose 'Package for phone and download to this computer', and that's it.

Once you have the simple Hello Purr program running, you can stretch your wings a little. There's a wide range of tutorials for developing applications at App Inventor. These include a simple painting program, various quiz and arcade style games, and apps that use a phone's GPS chip to help find your way back to your car.

You can use and modify these programs to help you to develop similar ones. If you need to get more information about App Inventor, you can find out more about components, blocks and more in the Reference pages.

]]>

Thursday, 15 December 2011

Tutorial: How to convert video for your iPhone or iPod

Tutorial: How to convert video for your iPhone or iPod

How to convert video for iPod, or iPhone

There are plenty of comprehensive and capable media conversion applications on the Mac, such as Roxio Toast/Popcorn, Handbrake and Elgato Turbo.264 HD.

But if all you want is a straightforward means of converting your music and video to an iTunes-friendly format, ready for streaming to an Apple TV or playing on your iOS device, look no further than Kiwi Fruitware's Media Converter.

A free download, Media Converter is surprisingly powerful and versatile under the hood. Using a simple drag-and-drop interface, you can convert your media files into a variety of formats. It also comes with a list of presets. Standard settings exist for iPod, iPhone, DivX, DVD Video in PAL or NTSC formats, MP3 audio and WebM, an audio/video file format built for use on the web and compatible with HTML5 video.

Media Converter is based on Burn, Kiwi Fruitware's disc-burning utility. Its user community has created numerous custom presets that can be downloaded from here, and you can even create your own.

1. Select output format

step 1

On opening the application for the first time, you're invited to update the presets to take account of its new subtitle support. Do so – it doesn't take long.

You're now ready to convert your media. Using the pull-down menu labelled Convert To, select which format you wish to save it as. By default, DivX, DVD-Video (NTSC), DVD-Video (PAL), iPod/iPhone (H.264), MP3 and WebM are available.

2. Drag and drop

step 2

After selecting your output format, simply drag and drop the media file onto the Media Converter window; it's as simple as that. Conversion starts automatically, and by default, converted files are saved in your Movies folder. Here we're converting a sample video for playback on an iPod or iPhone, or streaming to an Apple TV.

3. Conversion in progress

step 3

While the conversion is being carried out, a progress bar shows how far the encoding has got, with a percentage displayed too. You can cancel the conversion if you wish. Completed conversions retain the original's filename, but with an extension that reflects the file format you've converted it to. In this case, it's M4V.

4. Batch conversions

step 4

You can drop a bundle of files or even entire folders into the Media Converter window, and re-encode them as a batch. Here we're converting a folder full of OGG files into MP3 files. Unlike the Ogg Vorbis audio format, MP3s can be played using iTunes, copied to iOS devices and streamed to an Apple TV using your wireless network.

5. Preferences

step 5

The app can be customised using its Preferences window (found under the Media Converter menu bar). You can set up a new target folder (Movies by default), or have it ask where to save. This is useful when batch-converting a folder, as the folder itself isn't retained; completed files are saved loose in the target folder.

6. Changing presets

step 6

Under the Presets tab, you can reorder or customise your preset encoding settings. Modified presets can be saved, though doing so overrides the original. If you need both, just change the name of the custom preset before you save it, then download and reinstall the original preset using the method described in Step 7.

7. Adding presets

step 7

The Get More Presets button takes you to the Media Converter website, from where you can download the default presets and also custom-built settings created by other users. Click on a preset's icon to download it, then double-click on the downloaded file to install. You can even email your own custom presets to the developers.



Labels

Design by araba-cı | MoneyGenerator Blogger Template by GosuBlogger