Java

How to render smooth Gradients with Android

SneWs's picture

If you're like me, you've probably noticed that when making gradients with Android, they might get rendered badly, it's not as smooth as it can be, especially when using the emulator.

To get nice and smooth gradients, you just need to add one line of code to you're Activity.

// Call this in you're onCreate() for ex.
getWindow().setFormat(PixelFormat.RGBA_8888);

The above code snippet will enable a much better and smoother look of you're gradient(s). But please be advised that this isn't a silver bullet, the downside is the following.

Clipboard Dialer 1.6 Released

SneWs's picture

I've made some small tweaks to Clipboard Dialer that makes it even better at extracting phone numbers with odd formatting.

There's not much else to report. The app is very stable and seems to be appreciated by it's users. So go get you're own copy for free if you haven't done it yet.

https://market.android.com/details?id=se.grenangen.clipboarddialer

Enjoy!

[Edit] Spelling...

Get your copy of Clipboard Dialer

SneWs's picture

Having trouble dialing a phone number in your browser, an email or any other text based source? Clipboard Dialer is for you. Copy a page or section of text and open it with Clipboard Dialer and you'll be able to call and create contacts from all the valid phone numbers found in that text.

Grab it from the Android Market.
It's Free!

Clipboard Dialer 1.5 Released

SneWs's picture

I've release Clipboard Dialer v. 1.5. This version only fixes some small bugs that's been reported.

* Numbers containing dots (.) was not properly recognized.
* Numbers was not always formatted according to the phones Locale when displayed in the main list.

Go get it!

Clipboard Dialer 1.4 Released

SneWs's picture

I've release Clipboard Dialer v. 1.4. This version brings two new features.

* Speech input
* Speech to clipboard

Please note that you need to have Voice Search installed to be able to use this feature.

Go get it!

Clipboard Dialer 1.3

SneWs's picture

I've release Clipboard Dialer v. 1.3. This version brings new features and some bug fixes.

New features
* Clear clipboard - Let's you clear the content of the clipboard.
* Edit clipboard - Let's you edit the content in the clipboard.

Bug fixes
* Same number could show multiple times. It now only extracts unique numbers.

Go get it!

C# and SoapHttpClientProtocol with Java Axis based server

SneWs's picture

If you want to use a C# based client to connect to a Java Axis based Web service and if the server is using complex types, you might get into some troubles / strange behavior when making a call to a method using complex types as it's argument(s).

Here are some simple ways that might help you get it up and running.
First, make sure you use the correct namespace when adding the service reference.

Subscribe to RSS - Java
© 2008 - 2012 Marcus Grenängen. Drupal theme by Kiwi Themes.