Affichage des articles dont le libellé est Android. Afficher tous les articles
Affichage des articles dont le libellé est Android. Afficher tous les articles

mardi 11 janvier 2011

Ethical Shopping application for Android

To begin the year with ethical concerns, I developed an application for android that helps the consumer to choose the most ethical products while shopping.
The idea of the application is simple: whenever you decide to buy a product, in the mall for example, you use my application eShopper (e for ethical!) to scan the bar code of the product, and automatically the application will give you a score on a scale of 14 of the ethical behavior of the producing company. The score is fetched from the site http://www.corporatecritic.org and it is based on the behavior of the target corporate in the following domains:
   -Environment (Climate Change, Pollution & Toxics, Habitats & Resources..)
   -People (Human Rights, Workers' Rights, Irresponsible Marketing..)
   -Sustainability (Organic Product, Fairtrade product..)
   -Political activities 
   -Animals
 Here's some screen shots of the application:





There is a nice application in the market that offers a similar functionality: barcoo. barcoo is based on Rank a Brand, which obviously is website for ranking a brand, but based on the input of users and till now its database isn't big enough (cant find France Telecom for example!). This is why I prefered using the corporatecritic website, because their database is bigger and based on publications, communications, news...

Installation and usage

To install my app, you first have to install Bar code scanner app, because I use its library for scanning bar codes. Download eShopper from here and install it on your phone. To use it, just scan a product bar code, and wait for the results (you must have an internet connection of course!). When the results appear, verify that the found company in the title is the same one figuring in the bottom text.

Geeks Section:

eShopper uses Zxing library for scanning bar codes. I only limited bar codes to one line EAN codes found on most products. Once we have the results of the scan, I send the EAN code to GS1 website and parse the HTML response to get the name of the company that manifactured the product. Lets suppose I got "France Telecom Reseaux", then I send this string to corporatecritic and parse the response HTML to get the score. If I dont get the score at the first time, I retry with "France Telecom" and so on.. ( if  the app doesnt find "France Telecom", it will searches for "France" and will find unrelevant results, this is why the user has to verify that the found company in the bar code (title) corresponds to the company searched for (bottom text)).

I hope that you find the application useful, and I wish you a very ethical 2011! and don't hesitate to leave a feedback on the application in the comments.

Note well that the application will not be maintenained, it has been developped very fast (so might have some remaining bugs) and doesnt have any commercial purposes (otherwise it would be a freaky unethical ethical app  no?)

Achraf Souk


dimanche 21 novembre 2010

Mobil-Inn a new innovative SME(PME) in Lannion

Mobil-Inn is a new small business in Lannion, France, presented by its founder Frederic Jeanne, as a mobile development enterprise.
Frederic is a former Alten employee, he has more than 15 years of experience in software architecture in the telecom industry.
Frederic's concept is is based on the fact that smartphone market is growing very fast, and its share is increasing among mobile devices, so why don't we use smartphones to replace old fashioned boxes with dedicated functionality? a simple app on a smartphone can make use of the several capacities of the device (geolocalization, communication, orientation, sound...) to provide a similar functionality to a traditional box.
The first ready product of Mobil-Inn is Avenguard. Avenguard is a solution to protect isolated workers. In fact in France, the law defines isolated workers and requires that they can be able to ask for help at any moment when something bad happens to them. The current solutions for this are expensive dedicated boxes, which are hardly customizable to the needs of a specific company:



Avengard is a solution on smartphone, on Android in its first version, which allows an isolated worker to use his mobile to inform about his problem. In the basic free version, Avenguard sends an SMS to a prefigured contact upon a fast movement (worker falling), long time immobility (worker lost conscious) or an intentional click of a big button on the screen in case the worker feels threatened. The SMS includes the name of the worker, a preconfigured message and his GPS coordinates. In its Pro paid version, avenguard back end system initiates a call to the preconfigured contact, interacts with the callee using the latest IVR technologies to inform him about the worker and then puts him in contact with him. You can test the demo version in the android market here.



Mobil-Inn is in its very first steps of creation, searching for its form, its economical model, its financing, market studies, partners..
Frederic still has a lot of innovative ideas in this field, and he has the necessary experience and dedication for succeeding in his project.
Fore more information, you can check Mobil-Inn's website: http://www.mobil-inn.com/, or contact Frederic directly on this email: frederic.jeanne@mobil-inn.com

Achraf

jeudi 26 août 2010

Android in 3 days

Android OS for mobile phones is gaining market shares in an exponential rhythm : 1.8% in the second quarter of 2009 to 17.2% one year later, thus making it the third worldwide popular mobile OS just behind Symbian and RIM  (Source: Gartner).Android changed the landscape of the mobile ecosystem: HTC doubled his shares by taking the risk of massively investing on android, a platform leveraged by the APIs of Google almighty, app store, open source, active developpers community..
Personally, i was seduced by the OS and im using android on HTC legend. Im quite happy with the richness of its interface and its functionalities.But i think Google still have alot to do on its performance, clearly android have inherited the sins of Java.
So now all telcos are investing on android, and there is more and more demand on development of applications on this platform. In this context i had to discover the platform, and it took me three days to understand it and develop my first application on it. this is Mainly due to:
1 - Google provides freely a very easy to install environment: Android SDK (Emulators, platforms..) and an Eclipse plugin (ADT) that gives you all the necessary tools to develop, debug, test, deploy...
2 - Google provides tons of documentations, and plenty of well explained samples.
3 - Android is based on Java, and it is somehow inspired of some J2ME concepts. (comparison)

In the following i will explain rapidly main concepts of android, and than use them to explain my application.
An android application is composed of one or many of the following elements:


View
UI elements that form the basic building blocks of a user interface: e.g. Buttons, Images…
Activity
A user interface concept, It represents a single screen. The design of the Activity is separated of the programming logic in an XML file.
Intent
Intention to do some work: Broadcast a message, Start a service, Launch an activity, Display a web page, Dial a phone number
Content Provider
A standard mechanism for applications to share data
Service
Background processes that can be local services or remote services
Broadcast receivers
A component that receive and react to broadcast announcements: time zone has changed, that the battery is low, that a picture has been taken…
AndroidManifest.xml
Lists app’s activities and services along with application permissions

For deeper understanding of the fundamentals of android click here.
My application is a fake call simulator. it is a widget, that once it is clicked, it launches a Calling similar screen after 7 seconds and play the default ringtone of the phone. the user accepts the fake call, so an In Call screen shows up. Very useful to find an excuse to runaway from someone :)
Here are the screens of the application:


So in the AndroidManifest.xml i declared the followinf entities:
1 - FCWidget.Java: defines the behavior and design of the widget
2 - FCService.Java: the service that waits 7s and launches the fake call
3 - CallingActivity.Java: defines the first screen of the application
4 - InCallActivity.Java: defines the second screen of the application

When the widget is clicked, it start the service. After 7 seconds, the service creates and intent to launch the Calling Activity screen. Once created, the activity plays the default ringing ringtone. Clicking on the answer image button will stop the ringtone and create an intent to launch the InCall Activity. finally the End Call image button will end up the application. you can download and try the application here: Fake_Call.apk

Bref, i think android is a promising platform, many telcos are adopting it in their offers, especially that they can customize it, and a key benefit of developping products on this plateform, is the fast time to market (TTM) (i developped on iPhone, i know what im saying :D)

Achraf