Posts Tagged ‘iphone’

Mobile phones or smart phones are no more commodities people were using just to have mere communication or keep in touch with their contacts. Ever since smart phones have been introduced with advanced computing ability and connectivity users are no more using it as a device just to communicate. They have started using it as a computing device starting from checking email to playing games, from finding driving directions using map and Augmented reality to watching their favorite TV shows. All those features and much more have replaced the PC usage by 30% as per the report on Venture Beats.

NFC also known as Near Field Communication adds a new dimension to the functionalities of mobile phones and primarily being targeted for three main uses “sharing, pairing, and transaction. It is a set of short-range wireless technologies, typically requiring a distance of 4 cm or less.

It has two major components an initiator and a target. The initiator actively generates an RF field that can power a passive target. This enables NFC targets to take very simple form factors such as tags, stickers, key fobs, or cards that do not require batteries.

NFC tags contain simple data or elaborate instructions that enable them to perform such functions as unlocking doors, paying for goods, launching phone calls or exchanging data between users. The majority of tags for consumer applications are read-only. However, NFC tags can also be read and re-writeable.

The tags can securely store personal data such as debit and credit card information, loyalty program data, PINs and networking contacts, among other information.

NFC Multiple Uses

A wide range of applications are possible through NFC, such as:

– Mobile ticketing for public transport including rail, metro, and airline journeys; movies; concerts; and sporting events

– Mobile payment: Users can pay for goods using NFC-enabled devices, either NFC-enabled phones with stored data that act as a debit/ credit payment card or NFC-powered contact less payment cards they touch to readers.

– Smart posters and objects: NFC-enabled phones can be used to read RFID tags on commercial establishments’ signs for information or promotions or scan outdoor billboards.

– Bluetooth pairing: In the future, pairing of Bluetooth 2.1 devices with NFC support will be as easy as bringing them
close together and accepting the pairing.

Emerging applications include:
P2P payment, Identity documents, Mobile commerce, Electronic keys, Health and safety applications, Social networking, Smart mobility, Entertainment etc.

While Android supports NFC that typically acts as an initiator when the screen is on. The NFC enabled application actively looks for NFC tags and start activities to handle them. Android 2.3.3 also has some limited P2P support.

Tags can range in complexity, simple tags just offer read/write semantics, sometimes with one-time-programmable areas to make the card read-only. More complex tags offer math operations, and have cryptographic hardware to authenticate access to a sector. The most sophisticated tags contain operating environments, allowing complex interactions with code executing on the tag.

Here’s an example of Simple Photo Sharing Application on Android using NFC. Youtube Video

Rumors suggested the iPhone 5 would support NFC. We can never know until Apple officially announces it. However, a leaked document shows how apple plans to introduce NFC in Travel industry.

What might be interesting to discover is whether apple releases it as a framework for other developers to play around it or make it
a private API.

As one of the big demo of our application proceeded we (me and Ashok Jaga)
thought of a nice way to demonstrate our application. We could have done it
using simulator but we thought if we would make our Iphone as vnc server then
we can use any vnc client to see the screen!

After digging for couple of hours I noticed app store doesn’t have any app
for VNC server. And the one I found is Veency but again it needs to have
cydia installed on your device. And hence comes the steps to jailbreak my
ipod first.

* Download and Install redsn0w for your mac or windows machine from here.

* Download the right firmware for your iphone/ipod from this link.

You will use this firmware to restore your device.

* Now start redsn0w and browse the “*ipsw” file from finder.

* Follow the instructions displayed on redsn0w screen.

* Now your device is jailbroken and you can see an icon by the name
“Cydia” on your screen.

As now you have successfully installed cydia on your device, you can
launch the application and search for veency. Install it and you can
use your device as a vnc server.

Kyte is the online and mobile video platform for Live and on-demand content.

You can upload videos (in any supported format) to skype and later fetch video
with your desired extensions (mp4, mov …etc.). You can also get customize the
size of video and get video thumbnails etc.

The whole point of using Kyte is that it has got a list of APIs that deals with your
specific needs.

Some of the very basic advantages I see here is:

– You don’t have to upload video to your own server – save disk space
– Don’t have to write custom script to convert media to you desired extensions.
– Don’t have to deal with media size, height, width etc.
– Don’t have to worry about how to generate media thumbnail image.

When it comes to implementing it for your Iphone you need to just dig around the right API
method and implement it.

Here are the few steps you need to do

– Use your api key and signature to get server timestamp.

Note: the api signature needs to be in the exact format given in the api documentation.

– Once you get the server timestamp, create a new api signature and use it for fetching
data from other api services.

– Authenticate with your login id to get user ticket.

– You can fetch the media url for Iphone by requesting fetchTranscodedUrlservice with
transcodeType = “MOBILE_VIDEO” and extension “mp4”

To do anything in Iphone SDK development the 1st step is to find
the right framework you’ll be using!

There are two simple ways to play a video on your device.

1 – Play a Video which is locally available.
2 – Play a Video from an URL.

For both the things you need to use MediaPlayer framework.

Here are the steps you need to follow to build the application.

* Create a view based application on your Xcode.

* Expand Targets and select your project. Type ‘Command + I’
to bring the info window. You can add the MediaPlayer framework
there. (By default it’s not included)

* Import <MediaPlayer/MediaPlayer.h> in the header file of your

* Change your header file like this, you need to have a ‘Play’
button that plays the video. And link the button’s “Touch Up
Inside” event to the playVideo: action.

* Once both the header and view in the InterfaceBuilder is
ready you can write the implementation part in “.m” file

* MPMoviePlayerController work with a single designated initializer,
initWitContenthURL:. It either takes a le:// or a network URL (http://)

* You can add a Video that you want to play on project “Resources”

* Coming back to the playVideo action you just need to invoke the
play method on moviePlayer object.

* For more reference check Apple’s Iphone development reference library.