To bat kuch aur thi.....


Hamne unhe chaha
Vo b hame chahte to bat kuch aur thi...
Pyar ka izhaar lafzo se karte
To bat kuch aur thi...
Zindgi me sab kuch mila
Vo hasil hote to baat kuch aur thi...

Hamesha mene hi pyar kiya
Vo b kabhi chahte to bat kuch aur thi..
Mahfil me to sab mila karte hai
Vo tanhai me aate to bat kuch aur thi...
Hamne unhe chaha
Vo b hame chahte to bat kuch aur thi.....

~~ Suraj Shukla

Minor Projects # 1


Online Book Portal

Today I am posting a minor project based on Android. Students can download that project from the given links, its totally free of cost. I have made it while learning Android.

Environment : Eclipse Indigo
Minimum SDK version : 10

Description

The aim of my project is to provide a user friendly application where people can easily buy the books using their mobile Phones. Proposed system is fully automated which strive to provide better services to the customer. They can visit the application and login to their accounts.

Widgets Used :

The widgets which I used in my projects are:-

1)    EditTexts.
2)    TextViews.
3)    Buttons.
4)    ProgressBar.
5)    GridView.
6)    ScrollView.
7)    Gallery.
8)    RatingBar.

Details of Activities :


First of all user have to login with their User-id and Password in first activity and if he doesn’t have an Id then he need to sign up in the Second activity.




After registering, user can choose any book category in the Third Activity.  After selecting book category user will be redirected to the Fourth Activity in which he can select any book.

After selecting a book user will be able to see his cart list in the Fifth Activity. He can also add more items by going back.

In Sixth Activity user can see the details of his purchasing. User can pay for his purchase in the Seventh Activity. After that user can logout from the application or if user wants then he can also go for purchasing more books.



User can also see the details of this application in About us Activity. If in case user forgot his password then user can recover it in Recover Password Activity. After providing some details user password will be sent to user’s phone number.

For Code : Download Code

For video : Online Book Portal

Comment your queries and don't forget to thank :)

~~ Suraj Shukla

Young Artist # Sketch 1

Just now Priya Gupta joined Above the sky, judge priya's first sketch submitted to us.



~~ Priya Gupta

Calling web services using ajax, jquery in phoneGap in android


Hey folks...

Today I am going to post one useful code for those who face some problem in calling web services in android using phonegap.

This is a very simple example for calling  a web service through ajax..

So here we go.

 $.ajax({
url:"url",
type:"GET",
data:'UserId=1',
dataType:"json",
error:function(jqXHR,text_status,strError){
alert("no connection");},
success:function(data){
var i = data;
var data_string = JSON.stringify(i);
                alert(data_string);
                }
        });
If there is an error in calling aja erquest then it will go to error function else in success function.
so friends if you want to send parameters with the url the url pattern and data will look like this

var url="http://someIPAddress/bla/bla/serviceName"
and send parameter like this.

 var para="email="+mail+"&password="+pwd;

Then our ajax request look like this:-

 $.ajax({
url:"url",
type:"GET",
data:para,
dataType:"json",
error:function(jqXHR,text_status,strError){
alert("No connection");},
success:function(data){
var i = data;
var data_string = JSON.stringify(i);
                alert(data_string);
                }
        });


points to remember:-

1- parameter Name should be same as in your web service parameter, in my case email & password.
2- Type should be same as in your web service.
3- dataType should be same as in your web service. 
Enjoy.

Happy coding :-)

~~ Suraj Shukla

Cartoon Sketch # 2

One of ma favorite Cartoon character........Pluto.



~~ Prachi Gupta