Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old February 4th, 2013, 07:09 PM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Feb 2013
Posts: 16
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 0 Times in 0 Posts
Default Day 2: save data

Hi,

Today is my second day playing (learning) android app dev. On day 1, was lucky enough to get a very basic app up and running with ADT and tested it w/ AVD. But too basic, input simple text and displays it.

Was hoping to be able to save input into local file system or some sort of db today. The thought is to use SharedPreferences class for simple key/value pair storage for now. And use putString to save input. But I would need to use getString to get it back and output it to screen (to verify data storage), the thing is, I don't know the syntax to display a simple text string, anyone?

Thanks.

Advertisements
justme2013 is offline  
Reply With Quote
sponsored links
Old February 4th, 2013, 11:11 PM   #2 (permalink)
The Real Bass Creator
 
Digital Controller's Avatar
 
Join Date: Sep 2012
Location: Cincinnati, Ohio
Gender: Male
Posts: 12,497
 
Device(s): Galaxy Note 3 4.4.2(Eclipse) , Nexus 7 (Stock), (RIP) Galaxy Nexus 4.4(SlimKat)
Carrier: Verizon

Thanks: 748
Thanked 3,421 Times in 2,163 Posts
Default

I have moved this thread into the Application Development forum per request.

Hope this helps
__________________
Want Faster help? Read this before posting!

I love this community and so should you! So before posting please read:
Site Rules & Guidelines and Android FAQ's
Digital Controller is offline  
Reply With Quote
The Following User Says Thank You to Digital Controller For This Useful Post:
justme2013 (February 5th, 2013)
Old February 5th, 2013, 12:15 PM   #3 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,935
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts
Default Re: Day 2: save data

Im confused on what exaxtly youre looking for. You say you are confused on the syntax, but what syntax?
__________________
My blog, Inverted Keystrokes, is looking for aspiring developers (not necessarily with Android) to post articles. If you have any development experience and are interested in participating, please PM me. =)
jonbonazza is offline  
Reply With Quote
Old February 5th, 2013, 09:50 PM   #4 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Feb 2013
Posts: 16
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 0 Times in 0 Posts
Default

Prob resolved, key is OutputStreamWriter and editor to get user input. Next task for me to output the saved data (in a file) back to the user screen (this is not a question, talking to myself .
justme2013 is offline  
Reply With Quote
Reply
Tags
output string


Go Back   Android Forums > Android Development > Application Development
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 04:03 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.