Click here to Skip to main content
14,662,534 members
Home » Discussions » Android
   

Android

 
AnswerRe: Want to automatically calculate age and date of birth... Pin
Awesome Sohel25-Feb-15 0:24
MemberAwesome Sohel25-Feb-15 0:24 
QuestionHow can we display the pop up message in android Pin
pankaj78818-Feb-15 6:09
Memberpankaj78818-Feb-15 6:09 
AnswerRe: How can we display the pop up message in android Pin
Richard MacCutchan18-Feb-15 7:21
mveRichard MacCutchan18-Feb-15 7:21 
GeneralRe: How can we display the pop up message in android Pin
pankaj78818-Feb-15 7:33
Memberpankaj78818-Feb-15 7:33 
GeneralRe: How can we display the pop up message in android Pin
Richard MacCutchan18-Feb-15 7:42
mveRichard MacCutchan18-Feb-15 7:42 
QuestionRe: How can we display the pop up message in android Pin
David Crow19-Feb-15 5:07
MemberDavid Crow19-Feb-15 5:07 
QuestionAndroid sharedPreferences not working on spinner Pin
pankaj78817-Feb-15 4:24
Memberpankaj78817-Feb-15 4:24 
AnswerRe: Android sharedPreferences not working on spinner Pin
David Crow17-Feb-15 6:02
MemberDavid Crow17-Feb-15 6:02 
pankaj788 wrote:
How save spinner data using sharedPreferences...
Assuming you already have the data from the spinner, try:
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
Editor editor = prefs.edit();
editor.putString(key, value_obtained_from_spinner);
editor.commit();


pankaj788 wrote:
...How that data load in that spinner after reopening of the activity?
In onCreate(), onStart(), or onResume(), you'll need something like:
String value = prefs.getString(key);
int pos = adapter_tied_to_spinner.getPosition(value);
spinner.setSelection(pos);

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles


QuestionRe: Android sharedPreferences not working on spinner Pin
pankaj78818-Feb-15 6:01
Memberpankaj78818-Feb-15 6:01 
QuestionRe: Android sharedPreferences not working on spinner Pin
David Crow18-Feb-15 8:04
MemberDavid Crow18-Feb-15 8:04 
QuestionAndroid Activity Service communication: which one is the best approach? Pin
angelo.mastropietro13-Feb-15 4:50
Memberangelo.mastropietro13-Feb-15 4:50 
QuestionSending email via Intent Pin
Member 822518012-Feb-15 10:25
MemberMember 822518012-Feb-15 10:25 
AnswerRe: Sending email via Intent Pin
Richard MacCutchan12-Feb-15 22:53
mveRichard MacCutchan12-Feb-15 22:53 
QuestionRe: Sending email via Intent Pin
David Crow13-Feb-15 5:41
MemberDavid Crow13-Feb-15 5:41 
AnswerRe: Sending email via Intent Pin
Member 822518013-Feb-15 7:12
MemberMember 822518013-Feb-15 7:12 
SuggestionRe: Sending email via Intent Pin
David Crow13-Feb-15 8:07
MemberDavid Crow13-Feb-15 8:07 
GeneralRe: Sending email via Intent Pin
Member 822518013-Feb-15 10:26
MemberMember 822518013-Feb-15 10:26 
QuestionChinese Gifts for provide solution of challenge QR-code scanning requirement Pin
Member 114409179-Feb-15 21:51
MemberMember 114409179-Feb-15 21:51 
QuestionHelp with app Pin
jjamesx27-Feb-15 12:11
Memberjjamesx27-Feb-15 12:11 
QuestionRe: Help with app Pin
David Crow12-Feb-15 7:41
MemberDavid Crow12-Feb-15 7:41 
Questionprobleme l'hors d'installation des packages android SDK manager Pin
Member 114299235-Feb-15 7:20
MemberMember 114299235-Feb-15 7:20 
SuggestionRe: probleme l'hors d'installation des packages android SDK manager Pin
Richard MacCutchan5-Feb-15 22:05
mveRichard MacCutchan5-Feb-15 22:05 
Questiondisplay image from remote sqlserver db in Android Pin
Member 5933975-Feb-15 0:58
MemberMember 5933975-Feb-15 0:58 
AnswerRe: display image from remote sqlserver db in Android Pin
Richard MacCutchan5-Feb-15 2:46
mveRichard MacCutchan5-Feb-15 2:46 
SuggestionRe: display image from remote sqlserver db in Android Pin
David Crow5-Feb-15 4:04
MemberDavid Crow5-Feb-15 4:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.