[android-developers] Re: Hoe to record voice..?

2011-01-11 Thread Matias Alberto de la Vega
Hello Abhilash, could you be more specific about the exception? what
kind of exception is the application throwing? have a nice day.

On Jan 11, 1:02 pm, Abhilash baddam
abhilash.androiddevelo...@gmail.com wrote:
 any help...

 On Tue, Jan 11, 2011 at 8:45 PM, Abhilash baddam 







 abhilash.androiddevelo...@gmail.com wrote:
  Hi friends,

                I am trying to record a voice but i am getting an
  exception..when the clicks on a button it will start recording and when he
  clicks on stop it's stops recording that is my idea and that recorded file
  will be stored in SDCard. But here i am getting IllegalStateException at
  recorder.start(); this line...

  @Override
  public void onClick(View v) {
  if(v==rec)
  {
    recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
   recorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);
  recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
   recorder.setOutputFile(/sdcard);
  try {
  recorder.prepare();
   } catch (IllegalStateException e) {
   e.printStackTrace();
   } catch (IOException e) {
   e.printStackTrace();
   }
  try
  {
   recorder.start();  *//here iam getting exception*
  }
  catch(IllegalStateException e)
   {
  System.out.println(Exception+e.toString());
  }
   }
  else if(v==stoprec)
  {
   recorder.stop();
   recorder.release();
   }

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Send email in background

2010-04-06 Thread Matias Alberto de la Vega
Really bad move not to allow developers to send email programatically
in the background, and not just that, you may also find annoying, as I
did, that you can only attach pictures to your emails =( I have a
nexus one and let me tell you, for such a device a lack of this
functionality is unacceptable =(

On Apr 5, 7:12 pm, RMD rmdel...@gmail.com wrote:
 Thanks!

 Robert

 On Apr 5, 11:38 am, Jiri jiriheitla...@googlemail.com wrote:



  See this:

 http://groups.google.com/group/android-developers/browse_thread/threa...

  Jiri

  On 05/04/2010 15:58, Mark Murphy wrote:

   Is there and accepted way to send an email in the background?

   You would need to integrate your own email client library (e.g.,
   JavaMail), as there is no way to send email in Android natively without
   user intervention.

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: delete the sqlite database?

2010-03-23 Thread Matias Alberto de la Vega
Probably won't work as you are not loged in as root in the device,
while you are loged in as rootin the emulator. You can try
anyway...good luck

On 23 mar, 12:32, christian.posta christian.po...@gmail.com wrote:
 At least one way is to login to the device using the Android Debug
 Bridge (http://developer.android.com/guide/developing/tools/adb.html)
 and locate the db on disk. I know it works on the emulator, and I'm
 pretty sure it works on a physical device as well.

 When the device is connected up, use 'adb devices' to show what
 devices that the adb can connect to. Then do a 'adb -s device-name
 shell' command to get to the command line.

 Usually the databases will be in /data/data/package-name/databases

 Try deleting using the command line (rm).

 Let me know if this works for you.

 Christian

 On Mar 23, 6:36 am, Ray da Costa raydaco...@gmail.com wrote:



  How do I delete the sqlite database exists in my android? There is a db
  behind my android qro and delete the same

  --
  Ray da Costa
  The best way to predict the future is to invent it.
  Alan Kay

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: GPS without gps signal

2010-03-18 Thread Matias Alberto de la Vega
As Mike said, you will be able to use GPS even if you have no mobile
signal or wifi connectivity, since GPS has it's own satellites, you
can get coordenates as long as you have GPS friendly environment, some
tips: you MUST be able to see the sky, no tall buildings around is
better, and the bigger piece of sky you can see, the better GPS will
work, but I think you may not have problems with that if you are going
to be in the mountains. Take care.

On 18 mar, 13:23, mike enervat...@gmail.com wrote:
 On 03/18/2010 09:12 AM, David Toledo wrote:

  I refered , is in the montains without signal telephony

 Then yes, definitely, from much first hand experience :)

 Mike





  Thanks

  2010/3/18 mike enervat...@gmail.com mailto:enervat...@gmail.com

      On 03/18/2010 08:29 AM, David Toledo wrote:

          Hi All
          Is possible that can using the signal GPS without signal the
          telephony active. I need save the gps location in the sqllite
          when the telephony is disabled

      GPS works fine without the cellular network. If there's no network
      AGPS won't
      be of any help, but that's just a optimization for finding where
      you are quicker.

      But I'm not sure what you mean by telephony disabled are you
      talking about
      Airplane mode? If so, Android still allows use of GPS in airplane
      mode, unlike
      iPhone.

      Mike

          Thanks
          David

          --
          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
          mailto:android-developers@googlegroups.com
          To unsubscribe from this group, send email to
          android-developers+unsubscr...@googlegroups.com
          mailto:android-developers%2bunsubscr...@googlegroups.com
          For more options, visit this group at
         http://groups.google.com/group/android-developers?hl=en

      --
      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
      mailto:android-developers@googlegroups.com
      To unsubscribe from this group, send email to
      android-developers+unsubscr...@googlegroups.com
      mailto:android-developers%2bunsubscr...@googlegroups.com
      For more options, visit this group at
     http://groups.google.com/group/android-developers?hl=en

  --
  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
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: email multi attachments

2010-03-18 Thread Matias Alberto de la Vega
Yes I have the zip stuff working, yet couldn't manage to make
ACTION_SEND_MULTIPLE either =( too bad that Google had put so little
info about that topic in the API documentation. If you need some
snippets with the zip let me know. Bye

On 17 mar, 22:51, SRF srfar...@gmail.com wrote:
 I couldn't get ACTION_SEND_MULTIPLE to work, either.  I think I'm
 going to zip the attachments into one archive and use ACTION_SEND like
 you are suggesting,Matias.  Have you had any luck with the zip
 approach yet?

 On Mar 2, 8:14 am,MatiasAlberto de laVega



 delavega.mat...@gmail.com wrote:
  Sleith, I've been doing some research on this topic yet I couldn't
  make a lot of progress, anyway there is a tip that I can share...As I
  couldn't manage to attache multiple files, I've decided to attach only
  one file containing the rest of them, I mean a zip file. If this
  scenario is good enough for you, in case you don't need a special
  approach, let me know and I can send you some code snippets to zip the
  file and then attaching it to the email. Take care

  On 2 mar, 02:41, sleith raysle...@gmail.com wrote:

   still dont find any solution for this..
   please help .

   On Feb 21, 9:16 pm, sleith raysle...@gmail.com wrote:

anyone can help? .

On Feb 21, 9:35 am, sleith raysle...@gmail.com wrote:

 Hi, is it possible to send email with multi attachments?
 Because what i see is only Intent.EXTRA_STREAM to attach the file, and
 it's only one file.
 Thanks for the help :)

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: CAMERA permission features

2010-03-18 Thread Matias Alberto de la Vega
Sure you can use something like:

Camera mCamera = Camera.open();
Camera.Parameters params = mCamera.getParameters();
ArrayListString focusModes = params.getSupportedFocusModes();
ArrayListString flashModes = params.getSupportedFlashModes();

Take care.

On 18 mar, 13:30, Paolo brand...@gmail.com wrote:
 I have to develop an app which can take a picture and do some work
 with it.
 I have read I need to set the permission on the manifest file, for
 using camera.

 I would like to use also the autofocus and flash feature, but Android
 explains to use a lot of permission can limit the number of compatible
 mobile with my app. For this reason I have preferred to use only this
 permission features:

 uses-permission android:name=android.permission.CAMERA /
 uses-feature android:name=android.hardware.camera /

 Is there a way to know at runtime if the specified mobile has the
 autofocus or flash features and to enable the app to use them?

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: Activity lifecycle problem on Nexus One - onStop not called

2010-03-04 Thread Matias Alberto de la Vega
Zuli, onStop() is called when your Activity is no longer visible, this
may happen if a new activity is created (full screen mode) and is
positioned in front of yours, also it may be caused because another
Activity is resumed and brought to front (also full screen) and in the
last case onStop() is called when your Activity is about to be
destroyed (prior to onDestroy). After onPause() is called there are
two options, onRestart() is called to restart your Activity or
onDestroy() is called to kill your activity. Hope this helped. Bye

On 4 mar, 13:26, Zuli paolo.zuli...@gmail.com wrote:
 Hi,
 I have a problem with the activity lifecycle specifically on Nexus One
 (2.1 running on emulator works fine).
 If I just create a simple empty Activity with no special launchModes
 that logs the calls on the onStart and onStop methods, this is what I
 see:

 - launch app: onStart called;
 - home button: onStop NOT called;
 - launch app: onStart NOT called;
 - home button: onStop NOT called:

 and so on. Sometimes if I press the back button then the onStop is not
 called, but the when i launch the activity again the onStart is called
 and right after the onStop is called.
 Similar results with different launchModes...

 What is going on? Can anyone confirm this?

 Zuli

 i found an android issue for the problem 
 here:http://code.google.com/p/android/issues/detail?id=6094
 and a similar thread 
 herehttp://groups.google.com/group/android-developers/browse_thread/threa...

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Advice please

2010-03-04 Thread Matias Alberto de la Vega
Harry you mean using a HashMap or an ArrayList with the 5000 words
hard-coded? That sounds like a bad idea, not to mention you'll go
crazy programming it.In my opinion the best approach is a SQLite
database, but I'm just a Newbie with Android, maybe some of the Gurus
out there can give you a better hint! Take care.

On 3 mar, 20:04, Harry68 rab.har...@gmail.com wrote:
 Hello Everyone,

 I want to write an dictionary application for Android.
 I want it offline with at least 5000words.
 my questions are:

 what should I use to store my words, I mean is it a good idea to
 create an ArrayList, hashmap etc?
 if not then why and what do you propose?

 the more important thing for me this this how to create a database to
 store the words which will be at least 5000
 I want the apps to work fast and work offline no need of network.

 thanks in advance

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android AudioRecord errors

2010-03-03 Thread Matias Alberto de la Vega
Dimitry, if I'm not wrong, Android currently only supports AMR_NB for
encoding+decoding, PCM is only supported for decoding so far. And the
file encapsulating this type encoding should be 3GPP (audio/3gp is the
MIME type which you may need). You can find more information about
MediaRecorder in developer.android.com, take care!

On 2 mar, 19:39, dmitriy325ci dmitriy.fro...@gmail.com wrote:
 Hi Guys,
 I am a newbie to android and was trying to get a simple recording
 application up and running.  However I am facing errors and wondering
 if some of you can point me in the right direction.

 Stack Trace:
 03-02 17:27:53.415: ERROR/AudioRecord(224): Could not get audio input
 for record source 1
 03-02 17:27:53.425: ERROR/AudioRecord-JNI(224): Error creating
 AudioRecord instance: initialization check failed.
 03-02 17:27:53.435: ERROR/AudioRecord-Java(224):
 [ android.media.AudioRecord ] Error code -20 when initializing native
 AudioRecord object.
 03-02 17:27:53.487: ERROR/AudioRecord(224): Recording Failed
 03-02 17:27:53.487: ERROR/AudioRecord(224):
 java.lang.IllegalStateException: startRecording() called on an
 uninitialized AudioRecord.
 03-02 17:27:53.487: ERROR/AudioRecord(224):     at
 android.media.AudioRecord.startRecording(AudioRecord.java:495)

 Sample Code:
 // Create a new AudioRecord object to record the audio.
 int bufferSize =
 AudioRecord.getMinBufferSize(AUDIO_SAMPLE_FREQUENCY_8000HZ,
                                                                     
 AudioFormat.CHANNEL_CONFIGURATION_MONO,
                                                                     
 AudioFormat.ENCODING_PCM_16BIT);
 AudioRecord audioRecord = new
 AudioRecord(MediaRecorder.AudioSource.MIC,
                                                                     
 AUDIO_SAMPLE_FREQUENCY_8000HZ,
                                                                     
 AudioFormat.CHANNEL_CONFIGURATION_MONO,

 AudioFormat.ENCODING_PCM_16BIT,

 bufferSize);
 audioRecord.startRecording();

 AndroidManifest.xml:
 ...
 uses-permission android:name=android.permission.RECORD_AUDIO/uses-
 permission
 ...

 System Info:
 Eclipse Galileo + SDK 2.1
 IBM T60 running Windows XP

 Thanks in advance,
 Dmitriy

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Delete files from Phone memory(Internal)

2010-03-03 Thread Matias Alberto de la Vega
Hey Reju, I'm not an expert but I would recommend you trying with
CLEAR_APP_USER_DATA permission in your AndroidManifest.xml file.

On 2 mar, 19:19, Reju rej...@gmail.com wrote:
 Help Me experts

 On Feb 22, 2:33 pm, Reju rej...@gmail.com wrote:

  I can access the external memory and i could delete all the files
  successfully.

  Please let me know if it possible to delete files(like
  Images,Videos,Audios etc) from internal memory?

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Delete files from Phone memory(Internal)

2010-03-03 Thread Matias Alberto de la Vega
Also, considering Androids security architecture, keep in mind that
the files generated by each application are only accessible to that
application only, at least for default. That said, you are probably
not going to be able, by default, to delete or modify files which were
not created by your application, unless you give some permission. As
Google says, An application's process is a secure sandbox. It can't
disrupt other applications, except by explicitly declaring the
permissions it needs for additional capabilities not provided by the
basic sandbox.

On 2 mar, 19:19, Reju rej...@gmail.com wrote:
 Help Me experts

 On Feb 22, 2:33 pm, Reju rej...@gmail.com wrote:

  I can access the external memory and i could delete all the files
  successfully.

  Please let me know if it possible to delete files(like
  Images,Videos,Audios etc) from internal memory?

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Problem with image scrolling

2010-03-03 Thread Matias Alberto de la Vega
Satish, your layout structure should be something like this:

ScrollView
   LinearLayout
  ImageView

  /ImageView
   /LinearLayout
/ScrollView

On 2 mar, 16:56, Satish satishkolaw...@gmail.com wrote:
 Hi
   i am adding scaling image (size 800 x 800) to Scroll layout but this
 image does not scroll vertical or horizontal..

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: List fils on SD card

2010-03-03 Thread Matias Alberto de la Vega
Some files, even if they are in the sdcard, are not accessible, for
instance, try using adb shell to acces a file or directory which owner
is not 'sdcard_rw'. If you list a directory content with 'ls -l' you
can see that even in sdcard, some files belong to owners like
'app_xxx' which is the UID related to the application that created
that file, each application in Android runs in its own Linux process
and also has a unique user ID related. I may be wrong since I'm not an
experienced android developer, but I know a litle about Linux and
Unix, and I can tell you, this OSs won't let unauthorized users to
access files or directories which they don't have permission to.
To clarify all this topic of Androids security architecture I would
recomend reading this section in developer.android.com:
http://developer.android.com/guide/topics/security/security.html

On Mar 2, 11:51 am, TreKing treking...@gmail.com wrote:
 On Tue, Mar 2, 2010 at 6:29 AM, Matias Alberto de la Vega 

 delavega.mat...@gmail.com wrote:
  Keep in mind that by default some files are only visible and accesible
  to the applications that create them

 For local files, yes, but the OP said he's listing files on the SD card
 which is essentially free-for-all.

 -
 TreKing - Chicago transit tracking app for Android-powered 
 deviceshttp://sites.google.com/site/rezmobileapps/treking

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android AudioRecord errors

2010-03-03 Thread Matias Alberto de la Vega
Dimitry, I've used MediaRecorder in a Nexus One and the quality is not
that great either. Maybe there's something we can do to improve
quality, but I had no time to research on that. I will let you know if
I make progress getting better audio quality. Take care

On 3 mar, 17:25, dmitriy325ci dmitriy.fro...@gmail.com wrote:
 I figured out what the problem was.  I was trying to start recording
 from 2 separate threads at the same time causing a conflict.

 Although I solved the issue,  I am facing very poor audio quality.  I
 tried using MediaRecorder as well with the same poor quality if not
 worse.  I verified mic's quality via Audacity otherwise and found no
 issues.

 So it seems as if emulator might be offering poor support for audio
 recording.  Am I missing something?  If this is indeed the issue with
 emulator, what options do we have to create/test voice recognition
 applications?

 Dmitriy

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android AudioRecord errors

2010-03-03 Thread Matias Alberto de la Vega
Voice search is great! how Google makes the magic happen remains a
mistery to me...so far at least. Take care!

On Mar 4, 12:48 am, dmitriy325ci dmitriy.fro...@gmail.com wrote:
 Wow, really?  One of the features of nexus one is voice search.  So
 there is got to be a way to record audio on the device with acceptable
 quality.   Unfortunately there is not much information available out
 there.  So keep me posted if you make any progress.

 Thanks,
 Dmitriy

 On Mar 3, 3:46 pm, Matias Alberto de la Vega

 delavega.mat...@gmail.com wrote:
  Dimitry, I've used MediaRecorder in a Nexus One and the quality is not
  that great either. Maybe there's something we can do to improve
  quality, but I had no time to research on that. I will let you know if
  I make progress getting better audio quality. Take care

  On 3 mar, 17:25, dmitriy325ci dmitriy.fro...@gmail.com wrote:

   I figured out what the problem was.  I was trying to start recording
   from 2 separate threads at the same time causing a conflict.

   Although I solved the issue,  I am facing very poor audio quality.  I
   tried using MediaRecorder as well with the same poor quality if not
   worse.  I verified mic's quality via Audacity otherwise and found no
   issues.

   So it seems as if emulator might be offering poor support for audio
   recording.  Am I missing something?  If this is indeed the issue with
   emulator, what options do we have to create/test voice recognition
   applications?

   Dmitriy

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: why I can't see google's nexus one from eclipse

2010-02-27 Thread Matias Alberto de la Vega
You can try connecting the phone with USB Debugging disabled (don't
mount your sdcard as a removable media from the Nexus One option
either), and then once the phone is connected you enable USB Debugging
in SettingsApplicationsDevelopmentUSB debugging. Sometimes my
Eclipse IDE doesn't recognize my Nexus One on Windows 7 Ultimate
(32bits) but following that procedure fixs the problem. Good luck!


On 16 feb, 14:42, cindy ypu01...@yahoo.com wrote:
 I need to test my application on nexus one. Why I could not see the
 device (connected to my USB port, with USB enable) from eclispe?

 Thanks!

 Cindy

-- 
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
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en