Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old January 28th, 2012, 01:16 AM   #1 (permalink)
Junior Member
 
Join Date: Dec 2011
Location: chennai
Posts: 61
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default Login page using sessions

Hi Good Afternoon,

am new to android ....i need login page using session concepts,..how is creating session variable in android..plz reply me...send me what is the best link for learning above concepts...

krishnaveni is offline  
Reply With Quote
Sponsors
Old January 28th, 2012, 02:01 PM   #2 (permalink)
Junior Member
 
jonathanrz's Avatar
 
Join Date: Jan 2012
Location: Brazil - Blumenau, SC
Posts: 69
 
Device(s): Motorola Defy - Gingerbread(2.3.3)
Thanks: 12
Thanked 5 Times in 4 Posts
Send a message via MSN to jonathanrz jonathanrafaelz
Default

The best way to init in android dev is the google tutorials: The Developer's Guide | Android Developers
jonathanrz is offline  
Reply With Quote
Old January 30th, 2012, 12:53 AM   #3 (permalink)
Junior Member
 
Join Date: Dec 2011
Location: chennai
Posts: 61
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default login page with sessions in android

Hi Good Afternoon,

am developed one login page..here i like to managing session concepts..but i dono...plz help me..i know ly the managing session concepts coding part is
HttpSession session = request.getSession (true);
if (session.isNew() == false) {
session.invalidate();
session = request.getSession(true);
}
session.setAttribute("username", firstname);
firstname username = (firstname)
session.getAttribute('username');
if (username == null) {
response.sendRedirect
("LoginLayoutActivity.java");
return;
}.
dis coding am inserting my project..but here that pink color username having error..the error is invalid character constant..how it is cleared?....help me..
krishnaveni is offline  
Reply With Quote
Old January 30th, 2012, 03:10 AM   #4 (permalink)
Junior Member
 
jonathanrz's Avatar
 
Join Date: Jan 2012
Location: Brazil - Blumenau, SC
Posts: 69
 
Device(s): Motorola Defy - Gingerbread(2.3.3)
Thanks: 12
Thanked 5 Times in 4 Posts
Send a message via MSN to jonathanrz jonathanrafaelz
Default

Quote:
Originally Posted by krishnaveni View Post
session.getAttribute('username');
You are using ', in Java, this is used for char, to strings is used ", same way you do in the SetAtribute.

Ex:
char c = 'A';
String s = "A";
jonathanrz is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 12:10 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo