[android-beginners] Re: Saving calculator result problem

2009-09-29 Thread bgoody
I couldn't get that one to work so I'm trying something else. Here's where the button is pressed: btnMP.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { memNum = memNum +

[android-beginners] Re: Saving calculator result problem

2009-09-28 Thread Yusuf Saib (T-Mobile USA)
txt is declared inside your if (hasChanged) { scope. Then you use it after the corresponding }. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those

[android-beginners] Re: Saving

2009-08-13 Thread Michael Leung
Can you explain more about what you are trying to do? On Fri, Aug 14, 2009 at 6:09 AM, RustedApple kim00...@gmail.com wrote: I am trying to understand what data is saved when I change the phone's orientation. For instance, I have a couple guys walking around and when I flip the orientation,

[android-beginners] Re: saving data to text file using eclipse

2009-08-12 Thread Saeed
Thank you Jack, It works. On Aug 11, 5:16 pm, Jack Ha jack...@t-mobile.com wrote: Context.openFileOutput() opens a private file associated with this Context's application package for writing and the name of the file to open can not contain path separators. Try this:        try {        

[android-beginners] Re: saving data to text file using eclipse

2009-08-11 Thread Jack Ha
Context.openFileOutput() opens a private file associated with this Context's application package for writing and the name of the file to open can not contain path separators. Try this: try { File root = Environment.getExternalStorageDirectory(); if

[android-beginners] Re: Saving a preference isn't working

2009-06-22 Thread Balwinder Kaur (T-Mobile)
You need to get an instance of the SharedPreferences.Editor and carry out all your operations on it. Try this. SharedPreferences.Editor editor = getPreferences(MODE_PRIVATE).edit(); editor.putString( DrinkName , chai); editor.commit(); SharedPreferences prefs = getPreferences(MODE_PRIVATE);

[android-beginners] Re: Saving image to SD Card

2009-04-17 Thread jwesonga
I changed my code to : FileOutputStream fos = new FileOutputStream(filepath + / + filename); This allowed me to save the image, I loaded the device using DDMS and noticed the image had been saved. I've tried using the MediaScannerConnection to refresh the sd card so that I can view the image, I

[android-beginners] Re: Saving Files

2009-01-06 Thread g1port.com
Search for SharedPreferences class. http://code.google.com/android/reference/android/content/SharedPreferences.html Cheers. On Dec 31 2008, 4:53 am, Neelima neelima.neelu...@gmail.com wrote: Hi.. Is it possible to store application specific data in android phone. Please help if anyone