[android-developers] Re: is video recording available in V1.1?

2009-04-02 Thread ambrosehua


It seems that Android doesn't support AMR recording currently, which
is actually different from audio recording
On 4月2日, 下午3时16分, david david...@gmail.com wrote:
 Hi zeeshan,

 I also tried audio recording of AMR on G1. But I'm failed. Could you
 please share your way with me? Thanks in advance.

 david

 On Mar 26, 2:46 am, zeeshan genx...@gmail.com wrote:



  Hi Experts,

  i am looking for video recording example, it suppose to be in api-
  sample but not available
  i am wondering if 1.1 release still missing this feature?

  if it does support then in which format and where is the example

  also i am trying to figure out mp3 encoding long ago but still no
  solution
  i have recorded an audio ()which is in AMR by default, how can i
  convert it in mp3 (any external package i can use?)
--~--~-~--~~~---~--~~
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: Use native C/C++ libraries

2009-04-01 Thread ambrosehua

Yes.
The C lib is bionic which didnot provide  exactly the  same functions
as  glibc!

On 4月1日, 下午4时47分, gunar adrian.proco...@gmail.com wrote:
 Hi!

 Is it possible to use a native C/C++ library? If so, are there any
 restrictions for those libraries to be used?

 Br,
 gunar

--~--~-~--~~~---~--~~
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: Help! Process down after loadlibrary in Service

2009-04-01 Thread ambrosehua

It seems that the process(26719) shut down, rather than the service
(26726);
Do you mean whether  the service which loaded the .so shut down or
after service loaded .so, the process(26719) which maybe use the
service got killed?

On 4月1日, 下午4时32分, herain herainw...@gmail.com wrote:
 I need to load a .so library in my Service onCreate method, but the
 process just down after System.load. On the other hand, the same code
 can work in Activity.
 Are there some differences between activity and service in the way of
 load .so file.

 My code:
 class AisoundService extends Service{
 @Override
 public void onCreate() {
 Log.d(TAG,  TestService.onCreate);
 String libFile = /data/nativelib/libAisound4.so;
 Log.d(TAG, Trying to load +libFile);
 System.load(libFile);
 Log.d(TAG, Load +libFile+ Succes);
 }

 }

 This is Logcat record:
 04-01 07:57:25.761: DEBUG/AisoundService(26726): 
 TestService.onCreate
 04-01 07:57:25.771: DEBUG/AisoundService(26726): Trying to load /data/
 nativelib/libAisound4.so
 04-01 07:57:25.771: DEBUG/dalvikvm(26726): Trying to load lib /data/
 nativelib/libAisound4.so 0x42fc5230
 04-01 07:57:25.781: DEBUG/dalvikvm(26726): Added shared lib /data/
 nativelib/libAisound4.so 0x42fc5230
 04-01 07:57:25.901: INFO/DEBUG(26719): *** *** *** *** *** *** *** ***
 *** *** *** *** *** *** *** ***
 04-01 07:57:25.901: INFO/DEBUG(26719): Build fingerprint: 'tmobile/
 kila/dream/trout:1.1/PLAT-RC33/126986:user/ota-rel-keys,release-keys'
 04-01 07:57:25.901: INFO/DEBUG(26719): pid: 26726, tid: 26726  
 com.iflytek.service 
 04-01 07:57:25.901: INFO/DEBUG(26719): signal 11 (SIGSEGV), fault addr
 0018
 04-01 07:57:25.901: INFO/DEBUG(26719):  r0   r1 ad0665f0  r2
 fffee5cc  r3 c33578a5
 04-01 07:57:25.901: INFO/DEBUG(26719):  r4 802cc814  r5 ad07edf8  r6
   r7 802cc7e0

 Thanks for any 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
-~--~~~~--~~--~--~---



[android-developers] Re: Error creating file on SD card

2009-04-01 Thread ambrosehua

Are you sure that you have  write permission to /sdcard ( sdcard
mounted with RW and the directory /sdcard i writable) ?
I suggest you  run another app to  store some information  in /sdcard
for a test

On 4月2日, 下午12时23分, BJP bjpcalt...@gmail.com wrote:
 Thanks Mark, but I'm debugging the application on a T-Mobile G1 with
 installed SD card (real hardware) ~ no emulator, just the real thing.
 Is there a permission needed that I'm not recognizing?  Or, is there a
 special exclusive way to deal with files on the SD card?  Any help or
 pointing in the right direction would be very helpful!

 Thanks,
 Ben

 On Apr 1, 10:36 am, Mark Murphy mmur...@commonsware.com wrote:



  BJP wrote:
   I would like to write a file to the SD card from my application, but
   the following code throws an IOException when debugged on a T-Mobile
   G1:

   String p = Environment.getExternalStorageDirectory() + /log.txt;
   File recfile = new File(p);
   recfile.createNewFile();

   The last line throws an IOException with detailMessage = Cannot
   create: /sdcard/log.txt.  The MOUNT_UNMOUNT_FILESYSTEMS permission is
   set in the manifest.  And yes, I really do want to write to the SD
   card; I don't want to use the logging features Android includes for
   this particular application.  The Android documentation does not seem
   to give any specifics on how one might write files to removable
   storage in Data Storage under Framework Topics.  What am I doing
   wrong, or where can I read more about this topic?

  If you are running this on the emulator, do you have an SD card image
  set up? The emulator does not have SD card storage by default -- you
  need to use mksdcard to create an image and then tell the emulator to
  use that image via a command-line switch at startup.

  --
  Mark Murphy (a Commons 
  Guy)http://commonsware.com|http://twitter.com/commonsguy

  Warescription: Three Android Books, Plus Updates, $35/Year
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---