[android-developers] Re: Typo in HelloSpinner example

2011-06-23 Thread ThaMe90
Yes, but you forget that the Toast.makeText takes 3 parameters, not one. Toast.makeText(context, message, Toast.LENGTH_LONG/SHORT).show(); So the extra parenthesis is a typo. On 23 jun, 08:24, rich friedel rich.frie...@gmail.com wrote: Actually that is correct... you are leaving out the

[android-developers] Re: recognize text in images on opening the camera

2011-06-21 Thread ThaMe90
Doesn't the Goggles application do that aswell? On 21 jun, 14:56, Mark Murphy mmur...@commonsware.com wrote: Converting images to text is called OCR. There are no APIs in Android for OCR. You are welcome to attempt to find a working OCR solution -- the only one I can think of that works well

[android-developers] Re: Help Fixing a 9-patch

2011-06-20 Thread ThaMe90
What exactly is your problem? On 20 jun, 16:06, Jake Colman col...@ppllc.com wrote: I realize that this is not a programming question but I'm hoping someone here can help with a quick solution. I have a 9-patch file that I use as my widget background.  I did not create it, I found it on the

[android-developers] Re: Why does home screen widget confuse land/port images?

2011-06-17 Thread ThaMe90
You might have different images for different screen orientations, but the names of the images are the same: button_image_on.png button_image_off.png Because the names are the same the OS doesn't know which you want it to show. Putting the images in different subfolders doesn't matter, as the

[android-developers] Re: Can I use a real phone and emulator in eclipse?

2011-06-10 Thread ThaMe90
Don't forget to check the Unkown sources checkbox to be able to install the application from Eclipse. On 10 jun, 08:37, Marcin Orlowski webnet.andr...@gmail.com wrote: yes. enable debugging feature in system prefs (app - development). you may also need drivers for your phone (depends on model)

[android-developers] Re: can i start an activity from a broadcast?

2011-06-10 Thread ThaMe90
It basically means that though both starting an Activity and a BroadcastReceiver respond to Intents, neither can react to each other's specific Intents. An Activity will only respond to the Intent that is sent with a call to Context.startActivity(), while a BroadcastReceiver listens to system wide

[android-developers] Re: Android 3.1 is too slow

2011-06-10 Thread ThaMe90
I only use the emulator to test screen configurations on different devices... Specs are available on the internet, so you can change your Emulator easily enough to use those specs. For real testing, like say if the application actually works and performance testing, I use a real device. On 10

[android-developers] Re: problem with ontouch of surfaceview

2011-06-09 Thread ThaMe90
What do you use to hide/show the LinearLayout? Could you show the onTouch listener for the SurfaceView? On 9 jun, 06:29, grace grace.a...@wipro.com wrote: Hi, I have my layout like this FrameLayout        SurfaveView            VideoView/VideoView         /SurfaceView        

[android-developers] Re: java.net.SocketException: Address family not supported by protocol

2011-06-07 Thread ThaMe90
What address are you trying to use? On 7 jun, 11:45, Ankur Kumar specialan...@gmail.com wrote: Not able to figure out the solution to this problem. Have searched many forums and blogs. Please help. My application is not loading in the emulator and in the* LogCat* I see the following:

[android-developers] Re: UI problem

2011-05-26 Thread ThaMe90
Depends on if you use custom images for the UI elements. If so, you will need to make different versions for each screen configuration (LDPI, MDPI, HDPI and the xtra large one if you truly avid in this). If your UI is comprised of only the standard UI components that the Android SDK presents you,

[android-developers] Re: What did you use to create your launcher icon for your app?

2011-05-25 Thread ThaMe90
I've used GIMP aswell. Took a while to learn, but it's quite powerfull. I bet you can get almost the same functionality out of it that you can get with Photoshop. On 25 mei, 02:02, B Lyon bradfl...@gmail.com wrote: I am about to work on making the launcher icon for an app.  Lots of stuff out

[android-developers] Re: What exactly is the obtainBuffer in an AudioTrack?

2011-03-31 Thread ThaMe90
. The delay I have when playing Audio still remains and I still haven't found a solution regarding the obtainBuffer warning... ¬¬ On 25 mrt, 11:11, ThaMe90 theprophes...@gmail.com wrote: Could anyone share their insights on this one? On 22 mrt, 13:00, ThaMe90 theprophes...@gmail.com wrote

[android-developers] Re: What exactly is the obtainBuffer in an AudioTrack?

2011-03-25 Thread ThaMe90
Could anyone share their insights on this one? On 22 mrt, 13:00, ThaMe90 theprophes...@gmail.com wrote: On a side note, I am developing for Android 2.2 minimum. And I use a real device to test everything. I've stopped using the Emulator for sound related topics, as I never got the sound

[android-developers] What exactly is the obtainBuffer in an AudioTrack?

2011-03-22 Thread ThaMe90
I wonder, what exactly is the obtainBuffer in an AudioTrack? I ask this because there is no documentation about it what-so-ever. I have the famous obtainBuffer timed out (is the CPU pegged?) warning whenever I try to play a sound in my project, which causes quite a delay. To try to solve the

[android-developers] Re: What exactly is the obtainBuffer in an AudioTrack?

2011-03-22 Thread ThaMe90
Hmm, I'd rather solve it, as it is the only viable explanation left for why I have delays in playing... As I've said in my first post, I've tried playing with the buffersize of the AudioTrack, but to no avail. The only lead to a solution I have atm. is the warning, so I can't ignore it... On 22

[android-developers] Re: What exactly is the obtainBuffer in an AudioTrack?

2011-03-22 Thread ThaMe90
/browse_thread/thread/bc65a57e445e9f29/558dfc39a7da7361?#558dfc39a7da7361 On 22 mrt, 12:56, ThaMe90 theprophes...@gmail.com wrote: Hmm, I'd rather solve it, as it is the only viable explanation left for why I have delays in playing... As I've said in my first post, I've tried playing

[android-developers] Re: How to turn on the sound in the Android Emulator?

2011-03-15 Thread ThaMe90
use no special settings. You could try removing (or disabling in Windows Device Manager) all your sound cards but one (while removing your earlier special -audio startup options), but here I am only guessing... On Mar 3, 8:25 am, ThaMe90 theprophes...@gmail.com wrote: I have 2 AVD's

[android-developers] Re: How to turn on the sound in the Android Emulator?

2011-03-02 Thread ThaMe90
Bump... On 28 feb, 09:06, ThaMe90 theprophes...@gmail.com wrote: Anybody got an idea about this? On 25 feb, 12:51, ThaMe90 theprophes...@gmail.com wrote: I don't think so... I use API level 8 to develop... So I doubt this is the issue... On 25 feb, 12:15, blindfold seeingwithso

[android-developers] Re: How to turn on the sound in the Android Emulator?

2011-03-02 Thread ThaMe90
);             player.start(); On Mar 2, 1:57 pm, ThaMe90 theprophes...@gmail.com wrote: Bump... On 28 feb, 09:06, ThaMe90 theprophes...@gmail.com wrote: Anybody got an idea about this? On 25 feb, 12:51, ThaMe90 theprophes...@gmail.com wrote: I don't think so... I use API level

[android-developers] Re: How to turn on the sound in the Android Emulator?

2011-03-02 Thread ThaMe90
to be causing problems with sound (at least for me on Windows 7 64-bit). On Mar 2, 4:26 pm, ThaMe90 theprophes...@gmail.com wrote: I'm not asking how to play a sound, just how to activate the sound on the Emulator, because I hear no sound at all... On 2 mrt, 13:09, Dixi dixitwadhw...@gmail.com

[android-developers] Re: How to turn on the sound in the Android Emulator?

2011-02-28 Thread ThaMe90
Anybody got an idea about this? On 25 feb, 12:51, ThaMe90 theprophes...@gmail.com wrote: I don't think so... I use API level 8 to develop... So I doubt this is the issue... On 25 feb, 12:15, blindfold seeingwithso...@gmail.com wrote: You should be getting sound from the emulator by default

[android-developers] Re: How to turn on the sound in the Android Emulator?

2011-02-28 Thread ThaMe90
Anybody got an idea about this? On 25 feb, 12:51, ThaMe90 theprophes...@gmail.com wrote: I don't think so... I use API level 8 to develop... So I doubt this is the issue... On 25 feb, 12:15, blindfold seeingwithso...@gmail.com wrote: You should be getting sound from the emulator by default

[android-developers] Re: Not setting buffersize on a DatagramPacket

2011-02-27 Thread ThaMe90
:53 am, ThaMe90 theprophes...@gmail.com wrote: Is it possible to not set a DatagramPacket's buffersize? I want to use this DatagramPacket in the receive method of my DatagramSocket, but I don't know how large the buffersize should be as the data I receive is unknown. If this is possible

[android-developers] Re: How to turn on the sound in the Android Emulator?

2011-02-25 Thread ThaMe90
Maybe a little side question: what are the available backends to use on Windows? On 24 feb, 11:03, ThaMe90 theprophes...@gmail.com wrote: Hello all, I wonder how to turn on the sound in the Android Emulator? I've 2 headsets connected to my pc, but I can't seem to get sound on either of them

[android-developers] Re: How to turn on the sound in the Android Emulator?

2011-02-25 Thread ThaMe90
affects you too? On Feb 24, 11:03 am, ThaMe90 theprophes...@gmail.com wrote: Hello all, I wonder how to turn on the sound in the Android Emulator? I've 2 headsets connected to my pc, but I can't seem to get sound on either of them (One is connected through USB, the other through a 3.5mm

[android-developers] How to turn on the sound in the Android Emulator?

2011-02-24 Thread ThaMe90
Hello all, I wonder how to turn on the sound in the Android Emulator? I've 2 headsets connected to my pc, but I can't seem to get sound on either of them (One is connected through USB, the other through a 3.5mm Jack). I've set the AVD I use to enable Audio Input Output, and I have set the

[android-developers] Not setting buffersize on a DatagramPacket

2011-02-24 Thread ThaMe90
Is it possible to not set a DatagramPacket's buffersize? I want to use this DatagramPacket in the receive method of my DatagramSocket, but I don't know how large the buffersize should be as the data I receive is unknown. If this is possible, please enlighten me. If not, could anybody show me a

[android-developers] Re: Showing a custom dialog, a question about a DatagramSocket Services...

2011-02-18 Thread ThaMe90
elsewhere so this one is closed as far as I'm concerned... On Feb 16, 6:53 pm, TreKing treking...@gmail.com wrote: On Mon, Feb 14, 2011 at 1:51 AM, ThaMe90 theprophes...@gmail.com wrote: Now this is where the custom dialog shows up. On it I have 2 EditTexts, and 2 Buttons. However, when I try

[android-developers] Showing a custom dialog, a question about a DatagramSocket Services...

2011-02-15 Thread ThaMe90
Okay, now for the third time in 4 days, I will try to get this message posted Anyway, I have a problem while showing a custom dialog. In an Activity where I have to enter a couple of different settings for my application, I want to show a custom dialog on which I want to let the user put in an