Showing posts with label mobile. Show all posts
Showing posts with label mobile. Show all posts

Monday, 30 March 2015

Cloud Tech 101

“It went up, it went up to the cloud”
“You can’t get it down from the cloud?”

“Nobody understands the cloud, it’s a ****ing mystery.”

... says Cameron Diaz ! Well, here is something that should help !




[Update]: Here is the link to a more detailed article : http://mashable.com/2015/04/02/public-private-hybrid-cloud/?utm_cid=mash-com-Tw-main-link

Source: http://www.intel.in/content/www/in/en/cloud-computing/cloud-computing-innovation-infographic.html

Monday, 23 March 2015

Mobile App Review: CultureAlley's English App

Listed by Economic Times as one of the 15 hot startups to watch out for in 2015, CultureAlley brings to the market a unique B2C proposition - A Hindi based English Learning App.

With well crafted modules starting from spelling names to incrementally building expertise in grammar and vocabulary, English App is a class apart from several other Edutainment  based mobile apps.

Strategic Analysis: With only 10% of the Indian population currently speaking English and a growing need for innovative language learning techniques,CultureAlley's English App fits right into the space of making learning entertaining. The app begins with the user spelling his or her name and then carefully leads the user through various levels of learning English. Several other startups in the space like Rosetta Stone, LearnEnglish Grammar, Duolingo etc. each come with their own unique points of differentiation in the edu-tech space, but English App has a competitive edge ,having incorporated several unique techniques together.

PODs: Several unique feature that make the English App fun to use are :

  • Gamification: Well designed games like Cutting Chai are conceptually right on the spot given the target audience and not only help keep the user engaged but also make learning fun.
  • Superior UI/UX: The app is very user friendly and also includes commonly used English words in Hindi ("continue","next") etc. The color tone is fresh and as the lessons progress, navigation and screen flow is seamless.
  • FB/Wiki Integration: The app allows the user to link his/her FB newsfeed and get translation highlights for the key words. This inclusion of the social aspect is one of the most attractive and innovative features of the app.
  • Audio-Visuals: It sure helps to hear each word out loud.And the app scores rather well there. Each new module has some crisp AVs that make things easy for the learner.
  • Help at Hand and Tutor Notifications: Timely assignments from the tutor and online chat facility keep the learner engaged and motivated.   
Revenue Model: Freemium + Ads

Started in Dec 2014, English App is well loved by the investors and by the users as well.



Monday, 24 February 2014

adb not detecting your Android Device ?

To debug your mobile application on an actual device, Android requires you to connect your device to your computer and test if it is detectable by Android.

To achieve that , you need to go to -

<android-install-location>/sdk/platform-tools 

and give the command

adb devices

You might not have platform-tools  installed by default.
So install it through the SDK Manager before you read further.

Ideally the output of  the command should be the serial number of your device.

But many times if the device is not read by Android you end up seeing blank.

To troubleshoot , make sure that -

  1.  USB debugging is enabled on your Android phone
  2.  Ensure that you have successfully downloaded and installed Google USB Driver Package
  3.  In case of Samsung devices,install Samsung Kies as it installs device drivers.
  4. Goto Control Panel->System ->Device Manager and make sure that none of the drivers show any error.
For Samsung devices Samsung Kies software installs device drivers.
There are different Kies versions for different Samsung devices so make sure you have installed the right Kies

Eg:  Kies 2 supports Samsung Note 2 but Kies 3 doesnt.
If you try to connect a Samsung Note 2 with Kies 3 installed,you will observe device driver errors.
You will then have to install Kies 2


Tuesday, 22 January 2013

Adding extra packages to Android SDK

Recently I wanted to download some additional packages to my existing Android SDK.

The simplest way to go about anything is seemingly the UI way.

So I went ahead and launched my Android SDK from the Start Menu.,and as expected it displayed the sdk contents.But to my absolute amazement ,even thought the updates options was checked the Packages View would not show me any updates to the folders.
All it would show me was that updates were available for "Android SDK Tools" and "Android SDK Platform-tools".



Since I had no use for an update I happily ignored those two and focussed on the Extras folder which is where the said packages were supposed to reside.
No matter how many restarts I made to the SDK Manager (including launching it from eclipse,starting it from Start menu with administrator permissions)

Finally I decided to do the minimal and updated the suggested updates to  "Android SDK Tools" and "Android SDK Platform-tools" and restarted the SDK  Manager

And to my utter surprise .....

The Packages View goes ahead and shows all that is available for download in all the expected folders: Tools,Various Android Versions and the Extras.
now it was easy to download whatever I required .



Moral of the Story : Need an extra package? update exisiting packages and restart SDK Manager (run as administrator)

Wednesday, 13 June 2012

Simple plugins with PhoneGap1.7 Android

Recently I had a major run in with PhoneGap 1.7 and since I had a lot of java just begging to be called I ended up using plugins in PhoneGap.

Though there is a decent example on the PhoneGap website , I found it a little off base for a first plugin example , to explain just the basic functioning of plugins.The example I post here is a beginner level example which will help you understand the basic mechanism of plugins without any fancy stuff.

Steps :
1)Create an PhoneGap powered Android Project using phonegap docs
2)This is where we write our business logic . Create a java file MyPluginClass . This class will return some standard string to a html. You need to override the execute method of Plugin class and send back your result in a PluginResult object

package org.firstplugin;



public class 
MyPluginClass extends Plugin{



@Override

public PluginResult execute(String action, JSONArray data, String callbackID) {

       try{

       PluginResult rs=null;

      /* Create the JSONObject which will be sent in PluginResult */

      JSONObject jsonobj=new JSONObject();

    /* Add whatever you want to send back to PhoneGap in the JSONObject */

       jsonobj.put("myname","whats in a name");

   /*  Put your JSONObject in a PluginResult object */

       rs=new PluginResult(Status.OK,jsonobj);

}
catch(JSONException e){ LOG.d("DEBUG",e.getmessage())}

/* Send your PluginResult object back to PhoneGap */

return rs;
}

}

3)Now we shall write the plugin javascript which will call MyPluginClass.This "myplugin.js" JS file will call PhoneGap.exec which in turn will call the execute method of MyPluginClass.


var CallPlugin=function(){};

CallPlugin.prototype.get=function(successCallback,failureCallback){

  return PhoneGap.exec(successCallback,failureCallback,'  MyPluginClass ','show',[ ]);

};

PhoneGap.addConstructor(function() {

//Register the javascript plugin with PhoneGap
PhoneGap.addPlugin('callplugin', new CallPlugin());



});
In detail :
successCallback : This method will be called after the plugin gets executed
failureCallback : This method will be called in case of error
We can also pass arguments to the Java class through the array

4)Register the plugin in plugins.xml with :
<plugin name="
MyPluginClass" value="
org.firstplugin.MyPluginClass"></plugin>

5)Now write the html which will execute this plugin.Click the button " Click Me To Return Name" to run the plugin


<!DOCTYPE html>

<html>

    <head>

        <meta charset="utf-8" />

        <meta name="viewport" content="width=device-width, initial-scale=1" />

        <title>

        </title>

        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />

        <link rel="stylesheet" href="my.css" />

        <link rel="stylesheet" href="photoswipe.css" type="text/css"/>

        <style>

           /* App custom styles */

        </style>

        <script type="text/javascript" src="klass.min.js"></script>

        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">

        </script>

        <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js">

        </script>

        <script src="cordova-1.7.0.js">

        </script>

        <script src="
myplugin.js">

        </script>

      </head>

    <body>

      

         <div data-role="page" id="home">

              <div data-theme="a" data-role="header">

                <h3>

                    Plugin Example

                </h3>

               </div>

               <div data-role="content">

                <div>

                        <a data-role="button" data-transition="fade"  id="runplugin">

                            Click Me To Return Name

                        </a>

                        </div>

                </div>

               <div data-role="footer"></div>

         </div>

<script type="text/javascript">





$("#
runplugin").click(function(e){

     window.plugins.callcamplugin.get(

function(r){alert(JSON.stringify(r);},

function(e){console.log(e)}

);

});





</script>

   </body>

</html>


 
Using this code you will be able to run a simple plugin using PhoneGap