[android-developers] Re: Invert and entire Bitmap

2012-02-07 Thread hhenne
You can make a Paint and setXfermode to XOR (PixelXorXfermode) and the draw a solid rect on the bitmap. It will invert every bit - so when you do it once more you are back to non-inverted. I am doing so in my keyboard (http://www.maxikeys.com) to invert pressed keys - the room between the keys

[android-developers] Re: including/excluding conditional code in different builds

2011-12-15 Thread hhenne
In java you don't have macros (#ifdef) = compiler instructions. In stead you have to make a plain java function, which will do the same - the only difference is, the macro will not generate a call instruction - so it's more efficient. Personally I use it a lot. It is nice, to be able to switch off

[android-developers] Re: Architecture - Best Practice

2011-11-23 Thread hhenne
Seek information on android architectural design patterns - evt. through this link: http://stackoverflow.com/search?q=android+design-patterns+architecture Hardy Henneberg http://www.maxikeys.com On 22 Nov., 20:33, Rajib rajibkanu...@gmail.com wrote: Hello Friends, I am new to Android. I am

[android-developers] Re: What is the best Client Server framework to use for Android?

2011-11-16 Thread hhenne
Playframework makes it easy to make REST/JSON services. Hardy Henneberg http://www.maxikeys.com On Nov 16, 9:21 pm, JackN j...@jacknorth.com wrote: HTML over HTTP On Nov 16, 9:52 am, raduq radu...@gmail.com wrote: Hello! I'd like to ask you all, what framework would you recommend for

[android-developers] Re: Is it possible that LINK/CALL a class in another package as a library or plug-in?

2011-11-12 Thread hhenne
In my keyboard app (http://www.maxikeys.com) the keyboard LAYOUTS are services provided as seperate apks, which dynamically plugs in the keyboard ENGINE service. You have to make an intent to the plugin service and a serviceConnection with callback methods , and then call the bindService method.

[android-developers] Re: Use the Gyroscope to improve the orientation

2011-11-11 Thread hhenne
Hi again, In my app, I am only interested in pitch and roll - not in yaw. The accelerometer can measure static pitch and roll (because of the gravity) - but not static yaw. Acceleration caused by movements are just unwanted noise in my app and is filtered away by a usual digital Lowpass filter.

[android-developers] Re: Parsing JSON from Grails application

2011-11-11 Thread hhenne
On Grails you can use the gson library - it is very simple and easy to use. Android has built in the org.json library - tutorial here: http://www.vogella.de/articles/AndroidJSON/article.html Hardy Henneberg http://www.maxikeys.com On Nov 11, 3:05 am, Nikolay Elenkov nikolay.elen...@gmail.com

[android-developers] Re: ERROR/libEGL(206): call to OpenGL ES API with no current context

2011-11-09 Thread hhenne
Hi, Try to add a Log statement to your constructor, to see if you have more than one SurfaceView created. Hardy Henneberg http://www.maxikeys.com On Nov 7, 12:11 pm, saex elpablos...@gmail.com wrote: First of all, this is not a duplicate of other questions with similar error, because in

[android-developers] Re: Mixing OpenGL with Android Lifecycle.

2011-11-09 Thread hhenne
Hi, Try to add a Log statement to your SurfaceView constructor to see if more that one SurfaceView is created Hardy Henneberg http://www.maxikeys.com On Nov 6, 12:54 am, millerni...@hotmail.com primalha...@live.com wrote: Hey I tried posting this before but I don't think it went through. So

[android-developers] Re: Need help on connecting android app to remote database.

2011-11-09 Thread hhenne
Also recommends REST services and using JSON. Recommends Playframework as server for implementing REST services. On the client side you can use a RestClient class to help you with communication. Google for it. Use the AsyncTask object for handling server communication in background. Use the

[android-developers] Re: Use the Gyroscope to improve the orientation

2011-11-09 Thread hhenne
Hi, In my app (http://www.maxikeys.com) I use TYPE_GYROSCOPE to assist the accelerometer. The response is much faster and smoother than using the accelerometer alone, and also much better than using the computed TYPE_ROTATION_VECTOR. Using the gyro alone (with integration) will lead to drift, as

[android-developers] app issue report utility

2011-08-04 Thread hhenne
Hi, I'm developing a couple of apps with more than 20 activities in each. When pilot users/testers detect an issue it would be nice if they could - without leaving the view - write a report and send it as an email to support. From anywhere in the app they can make a certain gesture and a report

[android-developers] Re: app issue report utility

2011-08-04 Thread hhenne
without a crash. cheers Hardy On Aug 4, 2:48 pm, TreKing treking...@gmail.com wrote: On Thu, Aug 4, 2011 at 7:38 AM, hhenne hhe...@gmail.com wrote: If anybody knows of anything like that I would appreciate a hint. ACRA

[android-developers] Server certificate validation - HTTPS

2011-08-03 Thread hhenne
Hi, My first post to this list - I think. When calling a payment service (HTTPS) from an Android 2.3 (Google Nexus S) mobile, I got an exception from validation of the server certificate. It is a valid certificate - no problem when calling the same service from an IPhone. It seems to be a well

[android-developers] Re: Server certificate validation - HTTPS

2011-08-03 Thread hhenne
about certificate issues. Further response is embedded below: On Aug 3, 6:30 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Thu, Aug 4, 2011 at 1:06 AM, hhenne hhe...@gmail.com wrote: Hi, My first post to this list - I think. When calling a  payment service (HTTPS) from an Android

[android-developers] setting size of a SurfaceView

2010-12-15 Thread hhenne
I am making a service much like the softkeyboard sample - the service UI should be presented in one half of the screen, while the other half is used by the application, which requests the service (like the soft keyboard). The UI is a view derived from SurfaceView and the content is dynamically

[android-developers] softkeyboard sample not activated

2010-12-10 Thread hhenne
Hi, I am starting to write an InputMethod. My first step is to deploy the sample: softkeyboard - my only change is to include some Log statements in the on??? methods. I have deployed it on a device (Sony Xperia 8) and on the emulator. It seems to be installed OK, and I can see the process is

[android-developers] softkeyboard sample problem solved

2010-12-10 Thread hhenne
I found the solution in this forum. What I missed was the LONG press in an input field. That activates a menu where you can change input method. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to