[android-developers] How to use Bluetooth with VoIP

2009-07-30 Thread Breno

Hi,

i did a search in this forum, and found nothing related. I have a
voip app working, and i need to implement conversation over bluetooh,
when connected. I dont want to connect, but use it. When the handsfree
is connected, the audio (i.e, media) is routed automatically to it,
but the microphone continues on phone. How can i route the microphone
to bluetooth microphone? i tried

  audioManager.setBluetoothA2dpOn(true) or
audioManager.setBluetoothScoOn(true),

but both doesn't work in this case.

Thanks a lot

Breno
--~--~-~--~~~---~--~~
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] How to increase speaker volume using AudioTrack

2009-06-26 Thread Breno

Hey everyone,

 Does anybody knows how to increase the volume of speaker using
AudioTrack? the streamed audio is playing in speaker, but not loud as
voice call. Here my code

   mPlayer = new AudioTrack(AudioManager.STREAM_RING,
AUDIO_SAMPLE_FREQUENCY_8000HZ,
AudioFormat.CHANNEL_CONFIGURATION_MONO,
AudioFormat.ENCODING_PCM_16BIT, 32000,
AudioTrack.MODE_STREAM);
   mAudioManager = (AudioManager) (App.getSystemService
(Context.AUDIO_SERVICE));

   mAudioManager.setMode(AudioManager.MODE_NORMAL);

   //this line, apparently, has no effect
   mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC,
mAudioManager.getStreamMaxVolume
(AudioManager.STREAM_MUSIC), 0);

  Thanks a lot


--~--~-~--~~~---~--~~
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] Cupcake Firmware to Dev Phone

2009-05-11 Thread Breno

Hi,
 I have two Dev phones here. One, i updated with HTC Cupcake
firmware, as soon lunched, and the other not. But now, i'd like to
update the other Dev Phone, but, apparently, HTC has removed the
Cupcake Firmware to Dev Phone from site. (http://www.htc.com/www/
support/android/adp.html)  I'm not able to get it.Every time i clicked
on Android 1.5 images, returns to previous page. I tried with Linux,
Windows (firefox) and Internet Explorer, and the same behaviour
happens. Does anybody has this firmware or know some alternative place
to get it? i'd like the original one, not the modified...

Thanks a lot

--~--~-~--~~~---~--~~
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: establishing two connection( 3G & Wifi )at the same time

2009-05-07 Thread Breno

  I'm facing tha same problem, but with Edge, instead of 3G.
Everytime that wifi get connected to a network, down the edge/gprs/3g
network. This really needs to be optional, not a default. But this is
not the worst: there is no broadcast message that inform that GPRS/
Edge/3G is disconnected, just the messages: Wifi Connected, Wifi
Disconnected and GPRS/Edge/3G Connected. Is missing one.
  Anyone from Google could say something about it, and why this is
implemented in this maner?

Thanks a lot

Breno

On Apr 22, 8:16 am, Mouna  wrote:
> We are doing some research using android handset , G1 and i don not
> find any clear information in order to manage the connection, as i
> note all classes allow us for only accessing the information about a
> connection,
>
> i would like to ask if  there is really  such solution already
> avaliable in order to  opens two connections for two different network
> ( 3G &Wifi) at the same time and use them to exchange data
> "establishing two connection at the same time".
>
> i look in the source code of the Mms app to see how it as you
> recommend but no related information
>
> pls if there is no avaliable code or solution for our problem, kindly
> if you let me know if there is clear steps to follow
>
>  We appreciate your help in providing us with any useful information
> about this subject
>
> Best Regards
> Mouna
--~--~-~--~~~---~--~~
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] Using DNS Lookup

2009-04-29 Thread Breno

  Hi,

 Is there any API to use dns lookup in android? my app
connect to a server, and to final user, we don't want that user need
to enter the ip, but a hostname. I found dnsjava, a lib to handle
that, but if Android would have this, it becomes better.

Thanks a lot

Breno
--~--~-~--~~~---~--~~
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: Development in G1 in Ubuntu 9.04

2009-04-29 Thread Breno

Thanks JBQ,

Now works perfectly. If you can, say this to web designers, to
upgrade this link, http://developer.android.com/guide/developing/device.html,
because will help many developers from now on!!!

Best Regards

Breno

On Apr 29, 1:04 pm, Jean-Baptiste Queru  wrote:
> Try to call your file 51-android.rules.
>
> (I think something changed in 9.0.4 where a module that the android
> stuff relies on is also initialized at step 50 which ends up being too
> late).
>
> JBQ
>
>
>
> On Wed, Apr 29, 2009 at 9:00 AM, Breno  wrote:
>
> > Hi,
>
> >     Is Ubunto 9.04 compatible with development in Android? Before i
> > ugrade, deploy on device was normal. Now, using 9.04, doesn't
> > recognize it using "adb devices".
>
> > This below is already set on my ubuntu:
>
> >   1. Login as root and create this file: /etc/udev/rules.d/50-
> > android.rules.
>
> >      For Gusty/Hardy, edit the file to read:
> >      SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
>
> >      For Dapper, edit the file to read:
> >      SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"
> >   2. Now execute:
> >      chmod a+rx /etc/udev/rules.d/50-android.rules
>
> > Any ideas?
>
> > Thanks a lot
>
> --
> Jean-Baptiste M. "JBQ" Queru
> Android Engineer, Google.
>
> Questions sent directly to me that have no reason for being private
> will likely get ignored or forwarded to a public forum with no further
> warning.
--~--~-~--~~~---~--~~
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] Development in G1 in Ubuntu 9.04

2009-04-29 Thread Breno

Hi,

 Is Ubunto 9.04 compatible with development in Android? Before i
ugrade, deploy on device was normal. Now, using 9.04, doesn't
recognize it using "adb devices".

This below is already set on my ubuntu:

   1. Login as root and create this file: /etc/udev/rules.d/50-
android.rules.

  For Gusty/Hardy, edit the file to read:
  SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

  For Dapper, edit the file to read:
  SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"
   2. Now execute:
  chmod a+rx /etc/udev/rules.d/50-android.rules

Any ideas?

Thanks a lot
--~--~-~--~~~---~--~~
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] Problem with ActivityGroup app ported to 1.5

2009-04-29 Thread Breno

Hi,

 We have an app almost done, and what is done untill now is
working perfectly. I tried yesterday to use with SDK 1.5 Official, and
after inserted the



  Compiled normally. But, when starts the app, crashes at beginning.
  Our app consist in a list of contacts, downloaded from a server.
This contact list have a ImageViewer, an Icon and few text, each
contact. The main Activity is a ActivityGroup, because we use a
TabActivity and a Activity inside. The Activity is just a Combo Box
with a ViewHolder. So, nothing special untill here.
When the app crashes, the output log in logcat is below:

04-29 09:24:36.608: INFO/dalvikvm(1031): Stack overflow, expanding
(0x41048200 to 0x41048000)
04-29 09:24:36.618: INFO/dalvikvm(1031): Shrank stack (to 0x41048200,
curFrame is 0x41049cd8)
04-29 09:24:36.628: DEBUG/AndroidRuntime(1031): Shutting down VM
04-29 09:24:36.641: WARN/dalvikvm(1031): threadid=3: thread exiting
with uncaught exception (group=0x4000fe70)
04-29 09:24:36.648: ERROR/AndroidRuntime(1031): Uncaught handler:
thread main exiting due to uncaught exception
04-29 09:24:36.718: ERROR/AndroidRuntime(1031):
java.lang.StackOverflowError
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.widget.ImageView.onDraw(ImageView.java:842)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.View.draw(View.java:5838)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.widget.AbsListView.dispatchDraw(AbsListView.java:1319)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.widget.ListView.dispatchDraw(ListView.java:2820)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.View.draw(View.java:5944)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.widget.AbsListView.draw(AbsListView.java:2121)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.View.draw(View.java:5841)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.View.draw(View.java:5841)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.widget.FrameLayout.draw(FrameLayout.java:352)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1486)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228)
04-29 09:24:36.718: ERROR/AndroidRuntime(1031): at
android.view.ViewGroup.drawChild(ViewGroup.java:1484)
04-29 09:24:36.718: ERROR/AndroidR

[android-developers] Capture data packet of dev phone

2009-03-20 Thread Breno

Hi,

 Does anybody knows how can i capture data packets transmitted/
received by Dev Phone (real hardware)? this is very important in
development stage. In emulator it's very easy, just start wireshark. I
need to do the same in real hardware. Anybody knows?

Thanks a lot

Breno
--~--~-~--~~~---~--~~
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: Unofficial SDK 1.5 with Media Files

2009-02-04 Thread Breno

Please, use this linksthe others has a 90 days of life just...

http://rapidshare.com/files/193806918/android-eclipse-0.9.0-plugin.zip
http://rapidshare.com/files/193811442/android-sdk_15_windows.zip
http://rapidshare.com/files/193814085/android_sdk_15_linux.zip

Best Regards

Breno

On Feb 4, 12:07 pm, Breno  wrote:
>  Hi,
>
>             Here i'm posting my SDK 1,5, based on Latest Cupcake
> source code, and this SDK includes the media files, that normally are
> hidden under @hide directive. The emulator are ok in both Linux and
> Windows. Sorry Mac OX Users, i don't have one to build. Apparently,
> the SDK is ok, and the documentation also. The plugin is also there.
>
> http://rapidshare.com/files/193805280/android_sdk_15_linux.zip.htmlhttp://rapidshare.com/files/193788111/android-sdk_15_windows.zip.htmlhttp://rapidshare.com/files/193806918/android-eclipse-0.9.0-plugin.zi...
>
> Enjoy!!
>
> Breno T. Minzon
--~--~-~--~~~---~--~~
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] Unofficial SDK 1.5 with Media Files

2009-02-04 Thread Breno

 Hi,

Here i'm posting my SDK 1,5, based on Latest Cupcake
source code, and this SDK includes the media files, that normally are
hidden under @hide directive. The emulator are ok in both Linux and
Windows. Sorry Mac OX Users, i don't have one to build. Apparently,
the SDK is ok, and the documentation also. The plugin is also there.

http://rapidshare.com/files/193805280/android_sdk_15_linux.zip.html
http://rapidshare.com/files/193788111/android-sdk_15_windows.zip.html
http://rapidshare.com/files/193806918/android-eclipse-0.9.0-plugin.zip.html

Enjoy!!

Breno T. Minzon
--~--~-~--~~~---~--~~
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] How to pass arguments to emulator using ADT 0.9

2009-01-30 Thread Breno


  Hi,

After generating ADT 0.9, using Cupcake SDk, i
need to specify a sdcard to emulator, in eclipse. In ADT 0.8 there is
a field in Run Configuration, but in ADT 0.9 no. How can i do that?
Thanks a lot

Breno
--~--~-~--~~~---~--~~
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: Audio in the emulator...

2009-01-27 Thread Breno

Hey Andrei,

   To record audio it's pretty easy. But, you must record in
sdcard, only. Be sure your path to file it's pointing to sdcard, and
you have one mounted in eclipse (or something else). It's working
perfectly.

Regards

Breno

On Jan 15, 8:58 am, "Andrei Craciun"  wrote:
> Thanks David...
>
> 2009/1/15 David Turner 
>
> > the emulator now supports audio recording. If you have problems with it,
> > you should report mode detailed information about it here
>
> > On Thu, Jan 15, 2009 at 11:05 AM, Andrei Craciun wrote:
>
> >> Hi All,
> >> As reported on this blog:
> >>http://blog.roychowdhury.org/2008/04/29/sip-ua-for-android-stack-rtp-...are 
> >>some problems in recording audio on the emulator, but everything
> >> works fine on the real phone. Does anyone has a workaround for recording
> >> audio on the emulator?
>
> >> Thanks in advance,
> >> A.
--~--~-~--~~~---~--~~
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: After the ADT 0.9 update, Eclipse can not create R.java automatically

2009-01-26 Thread Breno

Same issue in Windows SDK...

On 26 jan, 19:15, Penguin of Death  wrote:
> I ran into the same problem after building SDK/ADT on Mac OS X
> Leopard; no R-file is being generated.
> At least it doesn't seem like an isolated issue...
>
> On Jan 25, 10:49 pm, MayFirst  wrote:
>
> > I am facing the same issue
>
> > On Jan 24, 6:55 am, Oxygen  wrote:
>
> > > I build the SDK and ADT under linux.
> > > And I met this issue too.
>
> > > On 1月23日, 下午10时08分, moontain  wrote:
>
> > > > Does anybody have any clues on how to fix this issue?
>
> > > > 2009/1/21 moontain 
>
> > > > > Hi,
>
> > > > >   I checked out cupcake branch yesterday and made the full build and 
> > > > > sdk
> > > > > successfully, and I also built the ADT 0.9 with the command
> > > > > cupcake/development/tools/eclipse/scripts/build_server.sh on another 
> > > > > Linux
> > > > > box. Then I updated the ADT 0.9 and set new SDK on Eclipse.
> > > > >Then I created a simple Android project Test with Android Project
> > > > > Wizard, the Eclipse created project files except the R.java and then
> > > > > reported following errors.
> > > > > Seems the resources are  not correctly parsed.
>
> > > > > Errors:
>
> > > > > [2009-01-21 15:07:32 - Test] W/ResourceType(  267): Unable to get 
> > > > > buffer of
> > > > > resource asset file
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > > > > resource identifier found for attribute 'orientation' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > > > > resource identifier found for attribute 'layout_width' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > > > > resource identifier found for attribute 'layout_height' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> > > > > resource identifier found for attribute 'layout_width' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> > > > > resource identifier found for attribute 'layout_height' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> > > > > resource identifier found for attribute 'text' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERROR No
> > > > > resource identifier found for attribute 'versionCode' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERROR No
> > > > > resource identifier found for attribute 'versionName' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERROR No
> > > > > resource identifier found for attribute 'icon' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERROR No
> > > > > resource identifier found for attribute 'label' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERROR No
> > > > > resource identifier found for attribute 'name' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERROR No
> > > > > resource identifier found for attribute 'label' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:10: ERROR No
> > > > > resource identifier found for attribute 'name' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:11: ERROR No
> > > > > resource identifier found for attribute 'name' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:15: ERROR No
> > > > > resource identifier found for attribute 'minSdkVersion' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test] W/ResourceType(  268): Unable to get 
> > > > > buffer of
> > > > > resource asset file
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > > > > resource identifier found for attribute 'orientation' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > > > > resource identifier found for attribute 'layout_width' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:

[android-developers] Re: Anyone success to build emulator for Windows?

2009-01-26 Thread Breno


Hey,

   According with this link,
http://android.git.kernel.org/?p=platform/development.git;a=blob_plain;f=tools/eclipse/README_WINDOWS.txt;hb=HEAD,
some cygwin packets are necessarily. But it missed one: flex.

Regards

Breno

On Jan 5, 8:04 am, Tim  wrote:
> Hi HISONA,
>
> It works, thx!
>
> Btw, step 2 Remark the "-lpthread", should be not needed if you
> installed pthread for mingw as below :)
>  install pthread for mingw 
> 1. download pthreads-w32-2-8-0-release.tar.gz 
> fromftp://sourceware.org/pub/pthreads-win32
> 2. tar -zxvf pthreads-w32-2-8-0-release.tar.gz
> 3. cd pthreads-w32-2-8-0-release
> 4. make clean GC-static
> 5. cp libpthreadGC2.a /mingw/lib/libpthread.a
> 6. cp pthread.h /mingw/include/pthread.h
>  end 
>
> On Dec 26 2008, 1:11 pm, HISONA  wrote:
>
> > Hi,
>
> > android-emulator-1.0_r2.tar.bz2 has some bug ...
>
> > 1. Copy the "qemu\android\config\windows\config-host.h" to "qemu
> > \config-host.h"
> > 2. Remark the "-lpthread" option in "qemu\Makefile.android" line 476.
> > 3. Execute "sh build-emulator.sh" in root directory.
>
> > Good luck ...
>
> >http://ohadev.tistory.com/
--~--~-~--~~~---~--~~
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] Port Forward in Cupcake

2009-01-21 Thread Breno

Hi,

Untill now, i were forwarding my PC ports using telnet, but with
Cupcake, it's possible to use directly with emulator, using -qemu -
redir option. But i'm not getting success doing this. I'm doing

emulator -vm myconfig -qemu -redir udp:1234::1234

   or

emulator -vm myconfig -qemu -redir udp:1234::1234

and both starts the emulator with the warning

"qemu: could not set up redirection 'udp:1234::1234' " or
"qemu: could not set up redirection 'udp:1234::1234' "

Please, what i'm doing wrong? any successfull case? thanks a lot

P.S - i already compiled SDK 1.5 and it's working perfectly

Breno
--~--~-~--~~~---~--~~
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: Fwd: Audio Streaming

2009-01-20 Thread Breno

Hey Tez,

   it's not only a .jar...you need to :

1) download source code
2) Compile it ("make")
3) Create SDK ("make sdk")

  It's quite easy. The problem is that you cannot use this new SDK in
Eclipse, because conflicts between the SDK and the Eclipse plugin.
There is a way to generate this plugin using the source code, but this
is what i'm trying to figure out

Cheers

Breno

On Jan 20, 2:14 am, Tez  wrote:
> Hi,
>
> I noticed in your post that you were successful in building the new
> sdk. I have been trying to accomplish the same thing. Could you send
> me the jar that you compiled or maybe only the cupcake branch source
> code?
>
> Cheers,
> Earlence
>
> On Jan 19, 9:18 pm, "Breno T.Minzon"  wrote:
>
> > Hey Dave,
>
> >     I downloaded the android source code and this already has Cupcake branch
> > merged into main. I compile and made the sdk ("make sdk") with success. But
> > now i need the eclipse plugin compatible with this version of this "custom"
> > sdk. Note that i just downloaded and compile. I need to work with audio
> > streaming, and in our prototype we walked around, but now, we really need
> > this feature. So i'm trying to use it. I looked the source, and, apparently,
> > Cupcake solves our needs...
> >      I try this 
> > link,http://review.source.android.com/5290/diff/201/z474cb3132ea0f2114f9e5...,
> > but when i import the projects into my workspace, many compile errors
> > appear. I think that there is a lot of new functions and classes, that
> > eclipse plugin doesn't detect...So, how can i build successfully the eclipse
> > plugin?
>
> > Thanks a lot
>
> > Breno
>
> > On Jan 17, 5:44 am, Dave Sparks  wrote:> OK, now I 
> > see where you going with it. :)
>
> > > What you want is coming in Cupcake. There is astreaminginterface
>
> > foraudioinput and output that gives you an array ofaudiosamples you
>
> > > can do your signal processing on.
>
> > > If you need something for SDK 1.0, there is a MediaRecorder function
> > > called getMaxAmplitude(). You should be able to get what you want by
> > > writing theaudiofile to /dev/null and calling into getMaxAmplitude
> > > periodically. Take a look at the source code for SoundRecorder on
> > > android.git.kernel.org.
>
> > > On Jan 16, 3:20 pm, "Matt Flax"  wrote:
>
> > > > we are implementing a sound level meter. For privacy reasons, we don't
> > want
> > > > theaudiolying around on the disk.
>
> > > > We could do it on the fly without recording to disk, however I don't
> > think
> > > > that is possible with the sdk ... is it ?
>
> > > > Matt
>
> > > > On Fri, Jan 16, 2009 at 12:16 PM, Dave Sparks  > >wrote:
>
> > > > > I am pretty sure that won't work. Why do you want to record a bunch of
> > > > > smallaudiofiles without dropping samples?
>
> > > > > On Jan 14, 7:52 pm, flatmax  wrote:
> > > > > > Hi there,
>
> > > > > > Has anyone managed to recordaudioto small files without dropping
> > > > > > samples between ?
>
> > > > > > perhaps it is possible to use two recorders which toggle between
> > > > > > recording states ... when on is recording, the other is priming and
> > > > > > waiting to record ...
>
> > > > > > Something like :
>
> > > > > > //declare two recorders
> > > > > > MediaRecorder recorder1 = new MediaRecorder();
> > > > > > MediaRecorder recorder2 = new MediaRecorder();
>
> > > > > > /// continuously prime, start and stop the two streams so one is
> > > > > > always capturing ...
>
> > > > > > //prime and start recorder1 - this is the loop roll in
> > > > > > recorder1.setAudioSource
> > > > > > recorder1.setOutputFormat
> > > > > > recorder1.setAudioEncoder
> > > > > > recorder1.setOutputFile
> > > > > > recorder1.prepare
> > > > > > recorder1.start
>
> > > > > > while (1){
>
> > > > > > //prime and start recording from recorder2
> > > > > > recorder2.setAudioSource
> > > > > > recorder2.setOutputFormat
> > > > > > recorder2.setAudioEncoder
> > > > > > recorder2.setOutputFile
> > > > > > recorder2.prepare
>
> >

[android-developers] Fwd: Audio Streaming

2009-01-19 Thread Breno T. Minzon
Hey Dave,

I downloaded the android source code and this already has Cupcake branch
merged into main. I compile and made the sdk ("make sdk") with success. But
now i need the eclipse plugin compatible with this version of this "custom"
sdk. Note that i just downloaded and compile. I need to work with audio
streaming, and in our prototype we walked around, but now, we really need
this feature. So i'm trying to use it. I looked the source, and, apparently,
Cupcake solves our needs...
 I try this link,
http://review.source.android.com/5290/diff/201/z474cb3132ea0f2114f9e594c44542a0d9502c478,
but when i import the projects into my workspace, many compile errors
appear. I think that there is a lot of new functions and classes, that
eclipse plugin doesn't detect...So, how can i build successfully the eclipse
plugin?

Thanks a lot

Breno

On Jan 17, 5:44 am, Dave Sparks  wrote:
> OK, now I see where you going with it. :)
>
> What you want is coming in Cupcake. There is astreaminginterface
foraudioinput and output that gives you an array ofaudiosamples you
> can do your signal processing on.
>
> If you need something for SDK 1.0, there is a MediaRecorder function
> called getMaxAmplitude(). You should be able to get what you want by
> writing theaudiofile to /dev/null and calling into getMaxAmplitude
> periodically. Take a look at the source code for SoundRecorder on
> android.git.kernel.org.
>
> On Jan 16, 3:20 pm, "Matt Flax"  wrote:
>
> > we are implementing a sound level meter. For privacy reasons, we don't
want
> > theaudiolying around on the disk.
>
> > We could do it on the fly without recording to disk, however I don't
think
> > that is possible with the sdk ... is it ?
>
> > Matt
>
> > On Fri, Jan 16, 2009 at 12:16 PM, Dave Sparks wrote:
>
> > > I am pretty sure that won't work. Why do you want to record a bunch of
> > > smallaudiofiles without dropping samples?
>
> > > On Jan 14, 7:52 pm, flatmax  wrote:
> > > > Hi there,
>
> > > > Has anyone managed to recordaudioto small files without dropping
> > > > samples between ?
>
> > > > perhaps it is possible to use two recorders which toggle between
> > > > recording states ... when on is recording, the other is priming and
> > > > waiting to record ...
>
> > > > Something like :
>
> > > > //declare two recorders
> > > > MediaRecorder recorder1 = new MediaRecorder();
> > > > MediaRecorder recorder2 = new MediaRecorder();
>
> > > > /// continuously prime, start and stop the two streams so one is
> > > > always capturing ...
>
> > > > //prime and start recorder1 - this is the loop roll in
> > > > recorder1.setAudioSource
> > > > recorder1.setOutputFormat
> > > > recorder1.setAudioEncoder
> > > > recorder1.setOutputFile
> > > > recorder1.prepare
> > > > recorder1.start
>
> > > > while (1){
>
> > > > //prime and start recording from recorder2
> > > > recorder2.setAudioSource
> > > > recorder2.setOutputFormat
> > > > recorder2.setAudioEncoder
> > > > recorder2.setOutputFile
> > > > recorder2.prepare
>
> > > > //wait a certain ammount of time to allow capture
> > > > sleep
>
> > > > recorder2.start
>
> > > > recorder1.stop
> > > > recorder1.reset
>
> > > > //prime recorder1
> > > > recorder1.setAudioSource
> > > > recorder1.setOutputFormat
> > > > recorder1.setAudioEncoder
> > > > recorder1.setOutputFile
> > > > recorder1.prepare
>
> > > > //wait a certain ammount of time to allow capture
> > > > sleep
>
> > > > /// switch recorders
> > > > recorder1.start
>
> > > > recorder2.stop
> > > > recorder2.reset
>
> > > > }
>
> > > > recorder1.release();
> > > > recorder2.release();
>
> > --http://www.flatmaxstudios.com

--~--~-~--~~~---~--~~
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] Record Audio problem in SDK 1.0 r2

2008-12-18 Thread Breno

Hello fellows,

 i'd like to know if anybody here had a problem in recording audio
using sdk 1.0 r2. I did my project using sdk 1.0 r1, and audio record
works fine. I change to r2, and the audio it's very damaged. I spent
sometime trying to discover, but nothing. So, i revert to SDK 1.0 r1
and the problem was solved.
   What i'm doing wrong, or, what's the problem with r2?


    Thanks a lot


Breno
--~--~-~--~~~---~--~~
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: Recorder Audio

2008-11-25 Thread Breno

Dave,

But how about the codec, which is the kbps/sec rate? in AMR_NB there
is a lot...thanks

Breno

On Nov 7, 1:01 am, Dave <[EMAIL PROTECTED]> wrote:
> Audio recording support is a bit rough in 1.0. The AMR-NB file format
> is described here:
>
> http://www.ietf.org/rfc/rfc3267.txt
>
> It's just a simple header appended to the raw AMR stream.
>
> On Nov 4, 1:55 am, mesak82 <[EMAIL PROTECTED]> wrote:
>
> > I'm using Sound Recorder application and after recording I cannot see
> > that audio in the playback list in Music application, but it's on the
> > SD card.
>
> > Sound Recorder also stores recorded audio in raw format? Is it
> > expected not to see the recorded file in playback lists?
>
> > Rgrds,
> > Misa
>
> > > if u are just receiving the data from recorder and storing it in raw
> > > format it wont play; requires other magic headers to be placed
> > > for .amrfile format;
>
> > On Oct 28, 10:49 pm, gs_cmans <[EMAIL PROTECTED]> wrote:
>
> > > >>> But the music media in Android can't play this format?
>
> > > try save it as .3GPP and play it.
>
> > > if u are just receiving the data from recorder and storing it in raw
> > > format it wont play; requires other magic headers to be placed
> > > for .amrfile format; refer IF2 documentation
>
> > > -g
>
> > > On Sep 22, 9:50 am, ZIN <[EMAIL PROTECTED]> wrote:
>
> > > > I saw in the properties MediaRecorder.AudioEncoder.AMR_NB, so the only
> > > > format audio recorder type is .AMR
> > > > But the music media in Android can't play this format?
> > > > What can i solve this problem?- Hide quoted text -
>
> > > - Show quoted text -
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Extending Contacts info in existing phone book

2008-11-17 Thread Breno T. Minzon
Hi,

   After looking for this subject, i found some old posts, like this (
http://groups.google.com/group/android-developers/browse_thread/thread/cc61aad4b6cda7f9/fd2ece81bf8de3e8?lnk=gst&q=contacts#fd2ece81bf8de3e8).
Now, one year after, any google team opinion about that? It's very important
to be able to extend Contact List. Now that the code it's opened, i think
that this can be easier.

Thanks a lot,

Breno

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



[android-developers] Re: How to Redir UDP Packets at init

2008-11-17 Thread Breno

Hey David,

Thanks for this. Untill next SDK we will use manually so, or Milano's
script (thanks for that!) .

Best Regards

Breno

On Nov 14, 6:32 pm, "David Turner" <[EMAIL PROTECTED]> wrote:
> You should be able to use QEMU -redir options when starting the emulator, as
> in:
>
> emulator  -qemu -redir tcp:8000::8010
>
> to redirect tcp port 8000 on localhost to 8010 on the emulated system. You
> can also use several successive options.
>
> The only problem is that the parsing/handling of the -qemu option was broken
> in the latest SDK.
> This will be fixed in the next release though (sorry for that)
>
> On Fri, Nov 14, 2008 at 7:14 PM, Breno <[EMAIL PROTECTED]> wrote:
>
> >     Hello,
>
> >        i'm trying to receive UDP packets, and to do that, i need to
> > redir using
>
> >     1) telnet localhost 5554
> >     2) redir add udp:5000:5000
>
> >    This works fine. But, every time i close the simulator, i need to
> > do it again. Please, must be a way to automate that. Does anybody
> > knows a file, a scrpit, a place to put a config line to do this every
> > time automatically?
>
> > Thanks a lot
>
> > Breno
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to Redir UDP Packets at init

2008-11-14 Thread Breno

DIego, actually a just find your post. It's very interesting, but you
said

"You can also create ~/.android/redir.conf file and add the
redirections you want, one per line"

where can i create this file?

thanks a lot guys

Breno

On Nov 14, 4:51 pm, Diego Torres Milano <[EMAIL PROTECTED]> wrote:
> you may find this post 
> usefulhttp://dtmilano.blogspot.com/2008/03/automating-port-redirection-in-a...
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Upload files on Androïd

2008-11-14 Thread Breno

Hey Nicolas, you can use adb push

"adb push helloNote.txt  /data/data/org.myapp/files"

check permission first. If you can't, do a

1) adb shell
2) chmod 777 /data/data/org.myapp/files

regards

Breno

On Nov 14, 12:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi,
> I need to upload files in the directory /data/data/org.myapp/files/
> How can I do it ? Ftp ?
> Thx
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to Redir UDP Packets at init

2008-11-14 Thread Breno


 Hello,

i'm trying to receive UDP packets, and to do that, i need to
redir using

 1) telnet localhost 5554
 2) redir add udp:5000:5000

This works fine. But, every time i close the simulator, i need to
do it again. Please, must be a way to automate that. Does anybody
knows a file, a scrpit, a place to put a config line to do this every
time automatically?

Thanks a lot

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



[android-developers] Re: Correct usage of getNetworkInfo(int networkType)

2008-11-07 Thread Breno

Sorry,

> But, when running this piece of code, in Android Screen appear that
> error "Sorry application (software) is not responding" and in LogCat
> no info about this. When debugging, an error appear "Source not
> found". What is the correct usage of this method?

i mean, when i try to run the first piece of code...the last one that
i'm using is ok...i'm trying to discover a new way to do that. Thanks

Breno

On Nov 7, 10:37 am, Breno <[EMAIL PROTECTED]> wrote:
> Hey all,
>
>      reading google documentation about NetworkInfo class, i found the
> method
>
> public NetworkInfo  getNetworkInfo(int networkType) ;
>
> This will be very usefull for me, to get info about the network.
>
>  but there is no documentation about this method. I'm trying to get
> the network info, doing
>
> NetworkInfo netInfo = new
> NetworkInfo(ConnectivityManager.TYPE_MOBILE);
>
> ConnectivityManager  connManager =
> (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
>
> netInfo = connManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
>
> Actually, I'm capable to get those information usign
>
> String extra_info;
> extra_info = "" +
> intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);
>
> But, when running this piece of code, in Android Screen appear that
> error "Sorry application (software) is not responding" and in LogCat
> no info about this. When debugging, an error appear "Source not
> found". What is the correct usage of this method?
>
> thanks a lot
>
> Breno
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Correct usage of getNetworkInfo(int networkType)

2008-11-07 Thread Breno

Hey all,

 reading google documentation about NetworkInfo class, i found the
method

public NetworkInfo  getNetworkInfo(int networkType) ;

This will be very usefull for me, to get info about the network.

 but there is no documentation about this method. I'm trying to get
the network info, doing

NetworkInfo netInfo = new
NetworkInfo(ConnectivityManager.TYPE_MOBILE);

ConnectivityManager  connManager =
(ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);

netInfo = connManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);


Actually, I'm capable to get those information usign

String extra_info;
extra_info = "" +
intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);

But, when running this piece of code, in Android Screen appear that
error "Sorry application (software) is not responding" and in LogCat
no info about this. When debugging, an error appear "Source not
found". What is the correct usage of this method?

thanks a lot

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



[android-developers] How to detect when there is GPRS?

2008-11-06 Thread Breno

Hey fellows,

 i read in somewhere that is possible to do something (for
example, start a service) when phone power up or do something when
there is GPRS, or EDGE, or anything like that. I'm doing some tests
here, and till now i'm just able to wake up my app when
BOOT_COMPLETED. My question is how can i detect when there is (and
when there is not) GPRS, so i can do what needs to be done with this
info.

Thanks a lot

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



[android-developers] Re: How to design a layout

2008-10-31 Thread Breno

Thank you very much, Alvin...RelativeLayout solved my problem. Here
what i'm using now


http://schemas.android.com/apk/res/android";
>













Best Regards

Breno


On Oct 30, 7:27 pm, Alvin Yates <[EMAIL PROTECTED]> wrote:
> If you only use one layout, you're telling Android to render 4 objects
> in a single row.  For your design (Using LinearLayout at least) you
> either need:
>
> 
>     
>     
> 
>
> ... or...
>
> 
>     
>     
> 
>
> You may also be able to use a TableLayout or RelativeLayout if you're
> feeling frisky.  Also, be aware that images in Android seem to be
> fairly finicky for me at least.  If the image seems to distort your
> layout, you probably need to fix the canvas the image is drawn on,
> even if the background is transparent.
>
> On Oct 30, 4:24 am, Breno <[EMAIL PROTECTED]> wrote:
>
> > Hey every one, i want to to a layout like this
>
> > *
> > *#   Text here                   text here  *
> > *#   Text here         small icon here   *
> > *#                                                  *
> > *
>
> > where ### is a image of 48x48. This will be used as a contact list,
> > with person photo, name, number, status and status icon. I did
> > something like that, but i'm not able to do like this. My xml is
>
> > 
> > http://schemas.android.com/apk/res/
> > android"
> >                 android:orientation="horizontal"
> >         android:layout_width="fill_parent"
> >         android:layout_height="fill_parent">
>
> >      >         android:layout_width="48dip"
> >         android:layout_height="48dip" />
>
> >      >         android:layout_gravity="left|top"
> >         android:layout_width="wrap_content"
> >         android:layout_weight="0.0"
> >         android:layout_height="wrap_content"
> >         android:textStyle="bold" />
>
> >              >         android:layout_gravity="bottom|left"
> >         android:layout_width="wrap_content"
> >         android:layout_weight="0.0"
> >         android:layout_height="wrap_content" />
>
> >     >         android:layout_gravity="right|bottom"
> >         android:layout_width="19dip"
> >         android:layout_height="19dip" />
>
> >       >         android:layout_gravity="right|top"
> >         android:layout_width="wrap_content"
> >         android:layout_weight="0.0"
> >         android:layout_height="wrap_content" />
> > 
>
> > Thanks a lot,
>
> > Breno
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] What am i doing wrong binding service?

2008-10-31 Thread Breno
if (isClientConnected) {
// Bind Service
String action = 
INotifyUserRemote.class.getName();
isConnected = bindService(new Intent(action), 
mConn,
Context.BIND_AUTO_CREATE);
i++; // just for debugging isConnected
} else {
unbindService(mConn);
}
}
};

private ServiceConnection mConn = new ServiceConnection() {

public void onServiceConnected(ComponentName arg0, IBinder 
arg1) {
mService = INotifyUserRemote.Stub.asInterface(arg1);

try {
mService.notifyUser("Connecting to Client",
Toast.LENGTH_LONG);
} catch (Exception e) {
Toast.makeText(StartService.this,
"Failled Calling Remote 
Service", Toast.LENGTH_LONG)
.show();
}
}

public void onServiceDisconnected(ComponentName name) {
mService = null;
Toast.makeText(StartService.this, "Remote Service 
Disconnected",
Toast.LENGTH_LONG).show();
}
};
}


I omitted the other parts in Manifest, that i believe doesn't interfer
in this process binding. The program does not have any compiling
issue. And, logcat is returning  "Binding to a unknow
[EMAIL PROTECTED]" Thanks a lot,

regards

Breno


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



[android-developers] Re: AMR Codec List

2008-10-30 Thread Breno

Thanks g, this is exactly what i was looking for

Breno

On Oct 29, 2:40 am, gs_cmans <[EMAIL PROTECTED]> wrote:
> i think default configured to 5.15;
> looks the api to set mode is left out; see other threads for my post
> on the same
>
> -g
>
> On Oct 7, 1:29 pm, "BrenoT. Minzon" <[EMAIL PROTECTED]> wrote:
>
> >   Hi all,
>
> >      After spent some time googling, i can't find any information about AMR
> > audio codec list. i found just this google's doc
>
> >http://code.google.com/android/reference/android/media/MediaRecorder
>
> > but there is no information about what codecs it support, like 12.2, 10.2,
> > 7.95, 7.4, 6.7, 5.9, 5.15 and 4.75. Does anybody has this information?
>
> > Thanks a lot,
>
> >Breno
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to design a layout

2008-10-30 Thread Breno

Hey every one, i want to to a layout like this

*
*#   Text here   text here  *
*#   Text here small icon here   *
*#  *
*

where ### is a image of 48x48. This will be used as a contact list,
with person photo, name, number, status and status icon. I did
something like that, but i'm not able to do like this. My xml is


http://schemas.android.com/apk/res/
android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent">







   

 


Thanks a lot,

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



[android-developers] Re: Start Service when phone power up

2008-10-27 Thread Breno

Hey Charlie

Thanks for the advice...I will look carefully this LAUNCH option. I
tried to create an Activity, just to put in

   Notification notification = new Notification(moodId, "MPTT
Client Started", System.currentTimeMillis());

// The PendingIntent to launch our activity if the user
selects this notification
PendingIntent contentIntent = PendingIntent.getActivity(this,
0,
new Intent(this, MainClass.class), 0);

and now works. I wass passing instead of MainClass.class, i was
passing null, as you can see on my previous post. Now works!! Thanks a
lot!!!



On Oct 27, 10:14 am, Charlie Collins <[EMAIL PROTECTED]>
wrote:
> At a glance your code looks correct.  I use that same approach and it
> works fine (this project for 
> example:http://unlocking-android.googlecode.com/svn/chapter4/trunk/WeatherRep...).
>
> The only difference I see there is that your "receiver" has the
> LAUNCHER category, and that may be causing it not to match (or worse
> an illegal combination). Try removing that and see if works.  Also,
> try posting more info about the error if that's not the problem (the
> debug output of logcat).
>
> On Oct 27, 7:05 am, Breno <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> >     after i read some posts here in forum, i'm able to start my
> > program when phone power up. But i need to start a Service, in this
> > case, the service is a notification, just for testing. Here is my
> > code.
>
> > package com.test.StartupTest;
>
> > import android.content.BroadcastReceiver;
> > import android.content.Context;
> > import android.content.Intent;
> > import android.widget.Toast;
>
> > public class TesteStartup extends BroadcastReceiver {
>
> >         @Override
> >         public void onReceive(Context context, Intent intent) {
> >                 Toast.makeText(context, "Test to see if this
> > works",Toast.LENGTH_LONG).show();
>
> >                 //Start explicitly a Service that show in Notification bar 
> > a message
> >                context.startService(new Intent(context,
> > NotifyInfoUser.class));
> >         }
>
> > }
>
> > and the  NotifyInfoUser.java:
>
> > package com.test.StartupTest;
>
> > import com.test.R;
>
> > import android.app.Notification;
> > import android.app.NotificationManager;
> > import android.app.PendingIntent;
> > import android.app.Service;
> > import android.content.Intent;
> > import android.os.IBinder;
>
> > public class NotifyInfoUser extends Service{
>
> >         private NotificationManager mNM;
> >     private static int MOOD_NOTIFICATIONS = R.layout.main;
>
> >         @Override
> >     public void onCreate() {
> >         mNM = (NotificationManager)
> > getSystemService(NOTIFICATION_SERVICE);
> >     }
>
> >           @Override
> >         public void onStart(Intent intent, int startId) {
> >                 super.onStart(intent, startId);
> >                 showNotification(R.drawable.online_connected, "Connected");
> >         }
>
> >         private void showNotification(int moodId, CharSequence text) {
>
> >         // Set the icon, scrolling text and timestamp.
> >         // Note that in this example, we pass null for tickerText.  We
> > update the icon enough that
> >         // it is distracting to show the ticker text every time it
> > changes.  We strongly suggest
> >         // that you do this as well.  (Think of of the "New hardware
> > found" or "Network connection
> >         // changed" messages that always pop up)
> >         Notification notification = new Notification(moodId, "Client
> > Started", System.currentTimeMillis());
>
> >         // The PendingIntent to launch our activity if the user
> > selects this notification
> >        //I guess putting null in Intent(this,null) can be crashing
> >         PendingIntent contentIntent = PendingIntent.getActivity(this,
> > 0,
> >                 new Intent(this, null), 0);
>
> >         // Set the info for the views that show in the notification
> > panel.
> >         notification.setLatestEventInfo(this, null, text,
> > contentIntent);
>
> >         // Send the notification.
> >         // We use a layout id because it is a unique number.  We use
> > it later to cancel.
> >         mNM.notify(MOOD_NOTIFICATIONS, notification);
> >     }
>
> >     @Override
> >     public void onDestroy() {
> >        

[android-developers] Start Service when phone power up

2008-10-27 Thread Breno

Hi,

after i read some posts here in forum, i'm able to start my
program when phone power up. But i need to start a Service, in this
case, the service is a notification, just for testing. Here is my
code.

package com.test.StartupTest;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class TesteStartup extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {
Toast.makeText(context, "Test to see if this
works",Toast.LENGTH_LONG).show();

//Start explicitly a Service that show in Notification bar a 
message
   context.startService(new Intent(context,
NotifyInfoUser.class));
}
}

and the  NotifyInfoUser.java:

package com.test.StartupTest;

import com.test.R;

import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

public class NotifyInfoUser extends Service{

private NotificationManager mNM;
private static int MOOD_NOTIFICATIONS = R.layout.main;

@Override
public void onCreate() {
mNM = (NotificationManager)
getSystemService(NOTIFICATION_SERVICE);
}

  @Override
public void onStart(Intent intent, int startId) {
super.onStart(intent, startId);
showNotification(R.drawable.online_connected, "Connected");
}

private void showNotification(int moodId, CharSequence text) {

// Set the icon, scrolling text and timestamp.
// Note that in this example, we pass null for tickerText.  We
update the icon enough that
// it is distracting to show the ticker text every time it
changes.  We strongly suggest
// that you do this as well.  (Think of of the "New hardware
found" or "Network connection
// changed" messages that always pop up)
Notification notification = new Notification(moodId, "Client
Started", System.currentTimeMillis());

// The PendingIntent to launch our activity if the user
selects this notification
   //I guess putting null in Intent(this,null) can be crashing
PendingIntent contentIntent = PendingIntent.getActivity(this,
0,
new Intent(this, null), 0);

// Set the info for the views that show in the notification
panel.
notification.setLatestEventInfo(this, null, text,
contentIntent);

// Send the notification.
// We use a layout id because it is a unique number.  We use
it later to cancel.
mNM.notify(MOOD_NOTIFICATIONS, notification);
}

@Override
public void onDestroy() {
// Cancel the persistent notification.
mNM.cancel(MOOD_NOTIFICATIONS);
}

@Override
public IBinder onBind(Intent intent) {
return null;
}
}

and finally my manifest


http://schemas.android.com/apk/res/android";
package="com.test"
android:versionCode="1"
android:versionName="1.0.0">
















When phone power up, the screen with "This app execute a ilegal
operation, etc" appear. When i comment the startService, the Toast
appear in screen. So, what is wrong with the context.startService?
thanks a lot

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



[android-developers] Re: setOnKeyListener problem

2008-10-23 Thread Breno

Hey pabbot,

 I'm facing the same problem you had, but, sorry, i didn't
understand your solution. Could you explain better? thanks a lot

Breno

On 15 out, 05:03, pabbot <[EMAIL PROTECTED]> wrote:
> Ok. It's solved.
>
> The solution is not only to detect the KEYCODE_ENTER but also the key
> down. Previously it detected both the key press and the key release
> and this fired two KEYCODE_ENTER events...
>
> On 14 oct, 23:50, pabbot <[EMAIL PROTECTED]> wrote:
>
> > Hi everyone,
>
> > this is my first post here so I'll try not to extend so much.
>
> > I've got a Layout with 3 EditText, called mText1, mText2 and mText3.
> > I want to navigate through them by pressing the ENTER KEY, so I
> > decided to set a onKeyListener for every of them and every time I
> > detect the user presses the ENTER KEY, I set the focus on the next
> > EditText. But it sets the focus on the "next's next". If I press the
> > ENTER KEY on mText1, the focus is set on mText3; the same with mText2
> > (it is set on mText1) and so on...
>
> > I can't understand this kind of behaviour.
>
> > Any solution? Many thanks in advance.
>
> > Here, the code:
> > mText1.setOnKeyListener(new OnKeyListener() {
>
> >                         public boolean onKey(View v, int keyCode, KeyEvent 
> > event) {
> >                                 if(keyCode == KeyEvent.KEYCODE_ENTER) {
> >                                         mText2.requestFocus();
> >                                         return true;
> >                                 }
> >                                 return false;
> >                         }
>
> >         });
> > mText2.setOnKeyListener(new OnKeyListener() {
>
> >                         public boolean onKey(View v, int keyCode, KeyEvent 
> > event) {
> >                                 if(keyCode == KeyEvent.KEYCODE_ENTER) {
> >                                         mText3.requestFocus();
> >                                         return true;
> >                                 }
> >                                 return false;
> >                         }
>
> >         });
> > mText3.setOnKeyListener(new OnKeyListener() {
>
> >                         public boolean onKey(View v, int keyCode, KeyEvent 
> > event) {
> >                                 if(keyCode == KeyEvent.KEYCODE_ENTER) {
> >                                         mText1.requestFocus();
> >                                         return true;
> >                                 }
> >                                 return false;
> >                         }
>
> >         });
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: AMR Codec List

2008-10-16 Thread Breno

Nobody? Google Team, can you help me?

Thanks a lot

Breno

On Oct 7, 11:29 am, "Breno T. Minzon" <[EMAIL PROTECTED]> wrote:
>   Hi all,
>
>      After spent some time googling, i can't find any information about AMR
> audio codec list. i found just this google's doc
>
> http://code.google.com/android/reference/android/media/MediaRecorder
>
> but there is no information about what codecs it support, like 12.2, 10.2,
> 7.95, 7.4, 6.7, 5.9, 5.15 and 4.75. Does anybody has this information?
>
> Thanks a lot,
>
> Breno
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: persistent socket connection

2008-10-08 Thread Breno T. Minzon
Switching Towers does not drop the connection. What will drop is changing
phone's IP or handoff...

regards

2008/10/8 Josh Roesslein <[EMAIL PROTECTED]>

> I think you should be fine with a persistent connection. It might affect
> the battery life a bit, but if you need live data then its really your only
> option.
> Only issue you might have is the connection getting dropped due to signal
> lose or maybe when the phone switches cells (not sure if the network
> preserves the connections between towers).
> But you can always reconnect when this happens.
>
>
> On Wed, Oct 8, 2008 at 2:36 PM, jay <[EMAIL PROTECTED]> wrote:
>
>>
>> You could try running a server socket on the phone. The server would
>> connect to the phone's port when it has something to send down and
>> then tear it down. If TCP is too heavy handed for this, you could try
>> using UDP (DatagramSocket)
>>
>> If T-Mobile has a NAT like router/firewall between the phone and the
>> server, the server will not be able to reach the phone directly. Any
>> body know if this is the case with T-Mobile?
>>
>> On Oct 8, 2:04 pm, j <[EMAIL PROTECTED]> wrote:
>> > I would like to maintain a persistent socket connection to a server
>> > via my background Service.  The reason is I want to be able to push
>> > notification data to client with minimal delay.  Is there any problem
>> > with this approach besides negative effects on the battery?
>>
>>
>
> >
>

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



[android-developers] AMR Codec List

2008-10-07 Thread Breno T. Minzon
  Hi all,

 After spent some time googling, i can't find any information about AMR
audio codec list. i found just this google's doc

http://code.google.com/android/reference/android/media/MediaRecorder.AudioEncoder.html

but there is no information about what codecs it support, like 12.2, 10.2,
7.95, 7.4, 6.7, 5.9, 5.15 and 4.75. Does anybody has this information?

Thanks a lot,

Breno

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