[android-developers] Loading and Saving Settings to a file

2012-02-06 Thread John-Marc Desmarais
Hi, I'm not sure what I'm doing wrong here: I have an Override on onPause to save settings to a file and an Override on onResume, and onCreate to load them back up from the file. The onPause method looks like this: @Override public void onPause() {

Re: [android-developers] Loading and Saving Settings to a file

2012-02-06 Thread John-Marc Desmarais
Hi, Thank you for your reply. I have a couple follow up comments/questions related to the responses. I have included these inline. On Mon, Feb 6, 2012 at 12:25 PM, TreKing treking...@gmail.com wrote: On Mon, Feb 6, 2012 at 11:15 AM, John-Marc Desmarais j...@ieee.org wrote: I have an Override

Re: [android-developers] Loading and Saving Settings to a file

2012-02-06 Thread John-Marc Desmarais
On Mon, Feb 6, 2012 at 12:56 PM, TreKing treking...@gmail.com wrote: On Mon, Feb 6, 2012 at 11:36 AM, John-Marc Desmarais j...@ieee.org wrote: How do I handle the byte[] settingsBuffer = new byte[(int) inputFile.length]; without opening a File? You get the stream of data as the returned

Re: [android-developers] Loading and Saving Settings to a file

2012-02-06 Thread John-Marc Desmarais
Yup. commit() still works as advertised. Thank you, -jm On Mon, Feb 6, 2012 at 1:19 PM, TreKing treking...@gmail.com wrote: On Mon, Feb 6, 2012 at 12:04 PM, John-Marc Desmarais j...@ieee.org wrote: And am now getting Input settings not found when closing and reopening my application

Re: [android-developers] NullPointerException error

2012-02-03 Thread John-Marc Desmarais
On Tue, Jan 31, 2012 at 6:37 AM, geo geoandr...@gmail.com wrote: Hello,i am getting error: Caused by: java.lang.NullPointerException E/AndroidRuntime(329):  at ...LineGraph.getIntent(LineGraph.java:109) E/AndroidRuntime(329):  at LineGraph.onCreate(LineGraph.java:80)

[android-developers] Tethering two android phones

2012-02-02 Thread John-Marc Desmarais
? Thanks, John-Marc Desmarais -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com

Re: [android-developers] VideoView and buffering

2012-01-31 Thread John-Marc Desmarais
by such solution is a bit better. HTH, Daniel On 30 January 2012 15:49, John-Marc Desmarais j...@ieee.org wrote: Hi, I am currently writing a video file to the SDCard while playing it with VideoView. My problem is that, if I buffer 1MB of video and begin the Video playback, the video stops

Re: [android-developers] VideoView and buffering

2012-01-31 Thread John-Marc Desmarais
. Daniel On 31 January 2012 14:50, John-Marc Desmarais j...@ieee.org wrote: Hi, I'm using the reset() now. There's a little bump in the playback every time it reaches the end of the content that existed in the file when it was initially loaded which I don't like but I'm using prepareAsync

[android-developers] VideoView and buffering

2012-01-30 Thread John-Marc Desmarais
Hi, I am currently writing a video file to the SDCard while playing it with VideoView. My problem is that, if I buffer 1MB of video and begin the Video playback, the video stops after 1MB has been played, even though by this time, 5MBs of file has now been written to the sdcard. I have been

[android-developers] VideoView.setLayoutParams - ClassCastException

2012-01-25 Thread John-Marc Desmarais
Hi, I have a VideoView in a LinearLayout with 2 other boxes. In trying to create a full screen video, I am doing the following: private boolean isFullScreen = false; public void onClick(View v) { VideoView vv = (VideoView) v.findViewById(R.id.videoView1);

Re: [android-developers] VideoView.setLayoutParams - ClassCastException

2012-01-25 Thread John-Marc Desmarais
That is a very good point. Thanks. -jm On Wed, Jan 25, 2012 at 2:33 PM, TreKing treking...@gmail.com wrote: On Wed, Jan 25, 2012 at 1:25 PM, John-Marc Desmarais j...@ieee.org wrote: Can anyone suggest why this is the case? This is your code: (LinearLayout.LayoutParams)vv.getLayoutParams

[android-developers] AsyncTask never calls onProgressUpdate

2012-01-16 Thread John-Marc Desmarais
Hi, I have the following AsynchTask class but, it fails to execute the onProgressUpdate method when doInBackground is running. That is to say the Log.v(LogName.onProgressUpdate, LogName.onProgressUpdate) never occurs in LogCat. There are two calls to publishProgress. The first is after the

Re: [android-developers] Re: AsyncTask never calls onProgressUpdate

2012-01-16 Thread John-Marc Desmarais
Hi, The authenticate method takes a long time, and I want to update progress while that's happening like this: Authenticating . Authenticating . . Authenticating . . . Authenticating . . . . Authenticating So I created a thread to add a dot to my TextView every 1/4 second. Mark Murphy's

Re: [android-developers] Re: AsyncTask never calls onProgressUpdate

2012-01-16 Thread John-Marc Desmarais
How do I pass my Dialog to onPreExecute? -jm 2012/1/16 Kostya Vasilyev kmans...@gmail.com: ... and this: textViewAuthenticating = (TextView) dialog.findViewById(R.id.TextViewAuthentication); belongs in onPreExecute, or elsewhere on the UI thread, *not* in doInBackground. 16 января 2012 

Re: [android-developers] Re: Giving away my book: Genius Android Marketing

2012-01-10 Thread John-Marc Desmarais
I'll play. Sign me up. -jm On Mon, Jan 9, 2012 at 3:45 PM, YuviDroid yuvidr...@gmail.com wrote: Looks very interesting! Count me in!  :) Yuvi On Mon, Jan 9, 2012 at 6:04 PM, PhotoSteve dfwgoph...@gmail.com wrote: Add me too...I'm so new to Android I don't even know what I don't know

[android-developers] Add Native Support not found in Eclipse

2012-01-10 Thread John-Marc Desmarais
Hi, Can anyone help getting Android Tools - Add Native Support to show up in Eclipse? Eclipse Version: Eclipse IDE for C/C++ Developers Version: Indigo Service Release 1 Build id: 20110916-0149 My system path includes C:\Android\android-ndk-r7 Running Windows 7. I have no problems building

Re: [android-developers] Re: Add Native Support not found in Eclipse

2012-01-10 Thread John-Marc Desmarais
Hi, Thanks for your help. I installed Sequoya and MTJ but, I still have no Add Native Support under Android Tools. I have also tried installing android-ndk-r6b and having C:\android\android-ndk-r6b in the path. But, currently, I have C:\android\android-ndk-r7 installed and in the system path.