[android-developers] Support for Cross-Platform Windowed 3D

2017-08-02 Thread Alistair Lowe
Hi guys, I'm wishing to integrate a 3D view into my app that contains a single textured and rigged 3D model of a human, there's no requirement for any interactive controls. Is it possible to: A. Display a 3D view/window within a standard app surrounded by standard UI widgets? B. Are there any

[android-developers] Android NFC Options

2012-06-21 Thread Alistair Lowe
Hi guys, I'm attempting to get into NFC on Android by communicating with a custom PN532 device, however I'm a little confused as to my options and the Android protocol. - NFCIP-1, is it possible to place my device as a target into this mode, for Android to automatically detect and

[android-developers] Custom SurfaceView with overlayed views

2011-04-07 Thread Alistair
Hi there, My program is a grid (surfaceView) which holds tiles. The surfaceView runs a thread which has synchronized access to the surfaceView (I used the lunar lander example). The surfaceview is added programmatically to a frame layout. I have a palette object which extends a view. When i

[android-developers] Re: Rotate bitmap in opengl

2010-11-03 Thread Alistair.
, with the inverse angle (in your case, the value in 'angle' without the '-'). This will reverse the rotation so the translate call can undo the translation. -- Kostya Vasilyev --http://kmansoft.wordpress.com 15.10.2010 1:30 ÐÏÌØÚÏ×ÁÔÅÌØ Alistair. alistair.rutherf...@gmail.com ÎÁÐÉÓÁÌ: Alas

[android-developers] Re: Rotate bitmap in opengl

2010-10-14 Thread Alistair.
On Sun, Oct 10, 2010 at 10:46 PM, Alistair. alistair.rutherf...@gmail.comwrote: I am trying to rotate a bitmap in OpenGL. I have searched around and come up with this    public void drawTexture(Texture texture, int index, float x, float y, float angle)    {        int[] ids

[android-developers] Re: Rotate bitmap in opengl

2010-10-13 Thread Alistair.
After a great deal of searching I have discovered that you cannot use glRotate and glDrawTexfOES. I will have to use the quad grid from the SpriteMethodTest in apps-for-android. On Oct 10, 6:16 pm, Alistair. alistair.rutherf...@gmail.com wrote: I am trying to rotate a bitmap in OpenGL. I have

[android-developers] Rotate bitmap in opengl

2010-10-10 Thread Alistair.
I am trying to rotate a bitmap in OpenGL. I have searched around and come up with this public void drawTexture(Texture texture, int index, float x, float y, float angle) { int[] ids = texture.getTextureIds(); if (ids != null) {

[android-developers] Re: Can't debug with my Nexus One

2010-05-22 Thread Alistair.
I had to update my usb drivers. http://developer.android.com/sdk/win-usb.html Al. On May 22, 8:37 am, Dominik Erbsland derbsl...@gmail.com wrote: Hi all I have a HTC Hero and newly also a Nexus One. I used to debug with the HTC Hero which worked just fine. Now when I try to debug with my

[android-developers] Noiz2 Android Port Source Code Available

2010-05-15 Thread Alistair.
Since this languishing at the bottom of the Arcade and Action section in the marketplace I figured I may as well make the source available. It's maybe not everyone's cup of tea for sure judging from the somewhat polarised comments on it but I learnt a lot from converting it from the original

[android-developers] Re: Debug certificate has expired!

2009-09-20 Thread Alistair.
certificates. http://developer.android.com/guide/publishing/app-signing.html Changed the certificate over and now it works. Al. On Sep 19, 6:03 pm, Alistair. alistair.rutherf...@googlemail.com wrote: Mydebug.keystorecertificate has expired. Does anyone know how to force Android to regenerate either

[android-developers] Debug certificate has expired!

2009-09-19 Thread Alistair.
My debug.keystore certificate has expired. Does anyone know how to force Android to regenerate either certificate or the whole directory under C:\Documents and Settings\Admin\Local Settings\Application Data \Android I have tried deleting the file then recompiling and switching SDK's but nothing

[android-developers] Certificate has expirted

2009-09-19 Thread Alistair.
My debug.keystore certificate has expired. Does anyone know how to force Android to regenerate either certificate or the whole directory under C:\Documents and Settings\Admin\Local Settings\Application Data \Android I have tried deleting the file then recompiling and switching SDK's but nothing

[android-developers] Re: Game using Canvas porting to OpenGL please help

2009-07-01 Thread Alistair.
Take a look at the sprite drawing code in the apps-for-android code here http://code.google.com/p/apps-for-android/ You will see how you go about drawing a bitmap onto the OpenGL surface. Trying to explain the steps required to re-implement your sample code in Android might have seemed a bit of

[android-developers] Re: Live traffic events as icons on a map

2009-06-22 Thread Alistair.
Are you sure you want to update the map in real time? In terms of a mobile application users are not going to have the application open to the map view constantly they will open the app and observe the current state of the road location they are interested in. All you really need to do is fetch

[android-developers] Re: Getting driving directions from application

2009-06-10 Thread Alistair.
I think this might be a bit out of date. I put the phrase android draw polyline into Google. http://www.anddev.org/route_-_improved_google_driving_directions-t1892.html Al. On Jun 10, 9:57 am, skyman krzysiek.bieli...@gmail.com wrote: Anyone?

[android-developers] Re: Getting driving directions from application

2009-06-10 Thread Alistair.
Perhaps some combination of http://data.giub.uni-bonn.de/openrouteservice/ http://wiki.openstreetmap.org/index.php/OpenRouteService#ORS_.22API.22 But it's Europe only I'm afraid. Al. On Jun 10, 1:21 pm, skyman krzysiek.bieli...@gmail.com wrote: In current SDK there is no com.google.googlenav

[android-developers] OpenGL - glLineWidthx, glLineWidth bug

2009-05-26 Thread Alistair.
Can anyone confirm that the OpenGL methods glLineWidthx, glLineWidth do not work. That is, setting these to anything about 1 has no effect when running on the phone. They appear to work on the emulator okay but not the phone. Al. --~--~-~--~~~---~--~~ You

[android-developers] Re: OpenGL - glLineWidthx, glLineWidth bug

2009-05-26 Thread Alistair.
/message_boards/viewtopic.php?f=4t=1223 It seems that only a line-width of exactly 1 must be supported, anything else is optional.http://www.khronos.org/opengles/documentation/opengles1_0/html/glLine... On May 26, 4:58 am, Alistair. alistair.rutherf...@googlemail.com wrote: Can anyone confirm

[android-developers] Re: Using glColor4x

2009-05-19 Thread Alistair.
' values in your code-example have values between 0 and 255 (in fixed format: 0.0, 1.0, 2.0 -- 255.0).http://www.khronos.org/opengles/documentation/opengles1_0/html/glColo... Try this as your last statement: surface.glColor4x(red/255, green/255, blue/255) On May 18, 8:53 am, Alistair

[android-developers] Using glColor4x

2009-05-18 Thread Alistair.
Anyone used glColor4x much? I am passing colours into a line draw rtn in the usual format '4 bytes: alpha, red, green, blue.' my call to to set the colour attempts to modify the RRGGBB parts into fixed format values. int red = (color0x00FF); int green = (color0xFF00)8;

[android-developers] Re: Marker Info Window

2009-05-10 Thread Alistair.
This page makes a start and should give you some ideas. http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/ The code for the one the image shows would be very useful but I've yet to come across a fully featured pop-up yet On May 10,

[android-developers] BulletML : Source Code

2009-05-10 Thread Alistair.
Hi everybody, I have ported Kenta Chos BulletML demo code to the Android platform here: http://code.google.com/p/netthreads-for-android/ From his site BulletML is the Bullet Markup Language. BulletML can describe the barrage of bullets in shooting games I thought a few game designers would

[android-developers] Re: SW (2D API) vs. HW (openGL) rendering

2009-04-28 Thread Alistair.
Take a look at SpriteMethodTest here http://code.google.com/p/apps-for-android/ Al. On Apr 27, 9:51 pm, mcmc manni...@gmail.com wrote: I'm trying to compare the difference in speed between software and hardware graphics rendering, but I'm a little confused... Can someone please give me a

[android-developers] Re: Initial database population from large data files, several problems

2009-03-06 Thread Alistair.
Justin, You might find this article of interest. This is a technique to pre- populate the database and bundle into the assets directory of your application. http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ Al. On Mar 5, 7:49 am, Justin Allen Jaynes

[android-developers] Re: getAssets().open(file.txt)

2009-02-19 Thread Alistair.
Based more or less line for line from EULA.java in apps-for-android Google Code project. http://code.google.com/p/apps-for-android/source/browse/trunk/Photostream/src/com/google/android/photostream/Eula.java public static CharSequence readAsset(String asset, Activity activity) {

[android-developers] Re: Programmatically get resource information

2009-02-14 Thread Alistair.
Something like: private Bitmap getFromName(String bitmapName) { Bitmap target = null; try { int value = getFieldValue(bitmapName, R.drawable.class); InputStream is = context.getResources().openRawResource(value); target =

[android-developers] Geocoder county code started to return NULL

2009-02-09 Thread Alistair.
I am using the Geocoder call 'getFromLocationName' to return an Address object given some location text. On one application I examine the country code value of the Address object. I have noticed that at some point over the weekend the Geocoder started returning NULL for this field where it had

[android-developers] Re: base64 in the sdk ?

2009-02-04 Thread Alistair.
I think the answer is no. You will find a Base64 encoder/decoder here: http://www.source-code.biz/snippets/java/2.htm It seems that it has been used with some success already. http://groups.google.com/group/android-developers/browse_thread/thread/1b434be82afd2661/da653497508b22a3 Al. On Feb

[android-developers] Re: Fwd: GMAPS is not being displayed in the emulator

2009-02-03 Thread Alistair.
This really looks to me like your debug map key is incorrect. Refer to http://code.google.com/android/toolbox/apis/mapkey.html There are a couple of batch files, definition.bat and getDebugKey.bat which might help here:

[android-developers] Re: Force close (exception) during rotation

2009-01-30 Thread Alistair.
This might help. http://groups.google.com/group/android-developers/browse_thread/thread/db839840e8f20dc1/ed7737e3e3587881 Al. On Jan 29, 3:16 am, Sean E. Russell seaneruss...@gmail.com wrote: I have a strange problem where, if the screen is rotated while a dialog is displayed, an exception

[android-developers] Re: EULA

2009-01-26 Thread Alistair.
I too am looking for a sample EULA. I found this. http://www.developer-resource.com/sample-eula.htm Al. On Dec 5 2008, 6:14 am, lior liorza...@comcast.net wrote: Thanks, I actually meant an agreement example as most examples out them deal with companies (not single developers) On Dec 4,

[android-developers] Re: Unable to reconstruct bitmap from ksop2 response

2009-01-13 Thread Alistair.
I am not that familiar with using SOAP but I have passed images using Strings in the past. Can I suggest you encode your image using Base64 and then decode it on the Android side. You can use something like this: http://www.source-code.biz/snippets/java/2.htm Al. On Jan 13, 11:17 am,

[android-developers] Re: how to map physical address to map?

2009-01-12 Thread Alistair.
I have been playing around with the Geocoder. Take a look at this. http://ccgi.arutherford.plus.com/blog/wordpress/?p=261 Al. Faber Fedor wrote: Never mind. I found the Geocoder class! Now to figure out how it works... On Sun, Jan 11, 2009 at 7:58 PM, Faber Fedor faberfe...@gmail.com

[android-developers] Re: Receive notification for onDestroy, onStop, and onPause etc in other applications?

2009-01-02 Thread Alistair.
Maybe your best best is to have a root around the Activity source code http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/app/Activity.java;h=eafb0488490fd144fa6fac15cbd303dfd93eb894;hb=HEAD Having said that the base activity doesn't seem to be signalling

[android-developers] Re: getFromLocationName() broken?

2008-12-30 Thread Alistair.
Maybe this has been fixed in the latest sdk as I have been using it and it seems to work for me. http://code.google.com/p/netthreads-for-android/source/browse/trunk/place-finder/src/com/netthreads/android/command/GeoCodeCommand.java Al. On Dec 30, 6:06 pm, DMT droiddevelo...@gmail.com wrote:

[android-developers] Re: Greasemonkey on steroids and grouping installed apps

2008-12-15 Thread Alistair.
Fantastic stuff, Jeff. Thanks. On Dec 15, 8:01 am, Jeffrey Sharkey jeffrey.shar...@gmail.com wrote: Hey, just wanted to drop a quick line about two Android projects that I just open-sourced. One is Greasemonkey on steroids, which lets websites reach into the Android intent world.  There's

[android-developers] Re: Anyone willing to share...

2008-12-15 Thread Alistair.
I had a sort of similar problem. This has been discussed here: http://groups.google.com/group/android-developers/browse_thread/thread/75dc91441a151039/557f1cb99c8f4f8d?lnk=gstq=java.lang.IllegalArgumentException+screen+orientation+#557f1cb99c8f4f8d On Dec 15, 4:44 pm, Al Sutton

[android-developers] Re: Problem with the onUpdate method of an SQLiteOpenHelper

2008-10-30 Thread Alistair.
Okay I fixed it. Not sure if the solution will apply to you. In my 'onUpgrade' function the table name value was incorrect. Basically it looks like you are not dropping the table you subsequently then attempt to recreate. Check your defns. Al. On Oct 29, 8:16 pm, Frew [EMAIL PROTECTED]

[android-developers] Re: Problem with the onUpdate method of an SQLiteOpenHelper

2008-10-30 Thread Alistair.
I am getting it as well. If I find out what the problem is I will post it up. Al. On Oct 29, 8:16 pm, Frew [EMAIL PROTECTED] wrote: So I presume that no one else has seen this error? -fREW On Oct 27, 8:30 pm, Frew [EMAIL PROTECTED] wrote: Ok, so everything that I've been doing with my

[android-developers] Re: my post is not appearing

2008-10-30 Thread Alistair.
This seems to be a common theme with this forum. I have posted stuff which hasn't appeared until days later. Al. On Oct 30, 9:43 pm, Ernest Freund [EMAIL PROTECTED] wrote: Hi, my recent post to the Android 'Developer' group is not appearing.  I posted it about 45 minutes ago.  my login is:

[android-developers] Re: HOWTO: SimpleCursorAdapter with custom row display

2008-07-18 Thread Alistair.
After digging a bit further into this group and reading the documentation some more I think I have even simpler mechanism than that above. 1) Include the column(s) you want to convert into icons in the adapter assignment. In this case the last column 'type' is a string which like 0, 1...etc.

[android-developers] HOWTO: SimpleCursorAdapter with custom row display

2008-07-12 Thread Alistair.
I have been playing around with Android for a couple of weeks and am finally getting somewhere with a small application I have written which downloads Yahoo traffic data according to the current GPS position and a set radius. In the process of this I have created a content provider which holds