Sunday, September 30, 2012

Appc Mobile Dev Challenge App - ShareCar

My App(ShareCar) for Appcelerator Mobile Dev Challenge

A new Car Sharing service for commuters in India.

Simple and intuitive-to-use car sharing(carpooling) application empowers ride-sharing in real time within India. A ShareCar is a must have app which enables passengers or drivers to save money, commute, carbon emissions and reducing traffic congestion. This app helps you find interesting people in your neighborhood attending the same destination that you are heading to. Users can offer a ride to them or join their ride. Users can easily search, connect and organize their car share together, dividing the fuel cost. It lets you forge useful relationships with like-minded people. Simply use the journey planner to search the database by date and route. Using ShareCar user can share their ride information easily on Facebook.

Why Share?
  • Fuel is very expensive 
  • Control air pollution & go green
  • Save oil, time and money
  • Reduce traffic
  • Make new friends
  • Helps you, helps someone else

Key Features
  • Users can quickly and easily insert carpools(offer/request)
  • Intuitive messaging system
  • Easy overview and management of listings
  • Detailed user profile
  • Detailed search options for national travel (offer or request, trips by women for women, for smokers / non-smokers, etc.)
  • No limit on the number of rides you offer or take
  • Easily flip through with clear search result details

Technical Features
  • Support for Android and iOS 
  • Build by Appcelerator Titanium Framework
  • Backend - Appcelerator Cloud Services(ACS)
    [Cloud Users, Social Integration,  Custom Objects,  Photos, Messages]

Get connected, socialize, and save money and fuel.

Sunday, September 23, 2012

ACS Social Integration

Do you know, How to create ACS cloud user account using Facebook login?
Yes, we can do using ACS Social Integrations.

The external account login will create a ACS Services account if it hasn't been created, otherwise, it will login using the user who has the matching external account info.

STEP 1 - Facebook login in Titanium App 
Use below sample code for Facebook login

STEP 2 - Social Integration
After successfull login with Facebook, you will get Facebook accessToken, you can retrive this token using "Ti.Facebook.accessToken".

To integrate your facebook account with cloud, you need to pass three parameters to "Cloud.SocialIntegrations.externalAccountLogin" method,

id - External account's user id, optional for facebook. ACS server will obtain the uid using facebook token if id is missing
type - Type of the external account social media like Facebook, LinkedIn, Twitter(Currently only facebook token will be validated by the ACS server)
token - Token provided by the external account
add SocialIntegrations in Facebook login event listener

After the successful ACS Social Integrations go to -> ypou-app -> Manage ACS -> Development -> Users
Here you will find a new cloud user account, which was created by external account login.

Other Methods
externalAccountLink - Associate an external account with an existing Appcelerator Cloud Services user account

externalAccountUnlink - Disassociate an external account from a Appcelerator Cloud Services user account.

searchFacebookFriends - Retrieves a list of Facebook Friends


Monday, September 17, 2012

Locking Android Orientation Mode

You can lock the orientation mode for Android in Titanium by successfully implementing the following steps :

By following the below steps you can lock the orientation mode throughout the app.

 1) Create a custom AndroidManifest.xml (copy this from original generated source
2) Copy this on the created folder "platform/android/AndroidManifest.xml" at the top level of your project.(Inside your project root)
Locking Android Orientation Mode

3) Add this: android:screenOrientation="portrait" to all activities
4) Remove this: "|orientation" from all activities.

Here is my AndroidManifest.xml.

Here you can download the complete working project from my Github account Titanium-Android-Orientation

Wednesday, September 12, 2012

Appcelerator Titanium Alloy Framework

My Presentation About Appcelerator Alloy Frame work

Here you can download the complete working project from my Github account  Appcelerator Titanium Alloy Sample App