Re: [android-developers] Re: How to make a multi-player game on Android

2010-03-05 Thread Gavin Aiken
Yes it's possible, read up on Sockets in Java, you'll have to implement a server to match players based on location. Feel free to come back with some more specific questions when you have done some reading and played around with android a bit. On Fri, Mar 5, 2010 at 2:11 PM, Maxood wrote: > I w

Re: [android-developers] Re: How to make a multi-player game on Android

2010-03-05 Thread Gavin Aiken
Bluetooth is just for close quarters, you want two players on two phones within 10 feet? On Fri, Mar 5, 2010 at 1:41 PM, Maxood wrote: > Let's say it is simply a turn based game then do i have to use a > Bluetooth API for that? I precisely want a game app that can be played > by 2 players on 2 a

[android-developers] Re: Google wave invitations...?

2009-10-16 Thread Gavin Aiken
Takes at least 24 hours in my experience :) have fun waving! On Fri, Oct 16, 2009 at 2:09 PM, Kenneth Adam Miller < kennethadammil...@gmail.com> wrote: > Have any of you gotten an email yet? > I swear I've sent them out... > perhaps they're just nominations for a possible invite to google wave an

[android-developers] Re: Obtaining the exact SDK Source

2009-09-04 Thread Gavin Aiken
inition has full access to private APIs (since it is also the thing that > contains the private APIs). You'll need to make any necessary changes to > get it to compile cleanly against the SDK. > > > On Wed, Sep 2, 2009 at 3:13 AM, Gavin Aiken wrote: > >> Hey All, >>

[android-developers] Re: Inserting large volumes of data into SQLite - speed issues

2009-09-02 Thread Gavin Aiken
Does the data NEED to be on the device? Can it not reside on a server? Certainly you are better to manage the synchonisation yourself rather than bundle the 120MB lib for downloading through the marketplace. This sort of download needs to be resumable and I would recommend users only download with

[android-developers] Obtaining the exact SDK Source

2009-09-02 Thread Gavin Aiken
Hey All, I was hoping someone could give me instructions to obtain the *exact *source code for the current SDK. What I have so far is as discussed here; http://androidforums.com/android-developers/1045-source-code-android-jar.html By using commands such as; repo init -u git://android.git.kernel.

[android-developers] Re: data between activities

2009-07-01 Thread Gavin Aiken
is supposed to be done through > Bundles. I guess, that is why they are there... > > Dexter. > > On Jun 30, 3:21 pm, Gavin Aiken wrote: > > Yeah, I use an Application class which holds common data. There are a few > > options; > > > > http://developer.android.

[android-developers] Re: data between activities

2009-06-30 Thread Gavin Aiken
Yeah, I use an Application class which holds common data. There are a few options; http://developer.android.com/guide/appendix/faq/framework.html#3 On Tue, Jun 30, 2009 at 8:26 AM, Saurav Mukherjee < to.saurav.mukher...@gmail.com> wrote: > if both the activities are in the same app, yes, its po

[android-developers] Using an SqliteDatabase from multiple threads

2009-06-24 Thread Gavin Aiken
Hi, I run into a bunch of errors when running my app and calling these methods from multiple threads. Namely; SqlLiteMisuseException (Library called out of sequence) SqlLiteException (unknown) Error while compiling statement IllegalStateException trying to use a closed reference I understand

[android-developers] Scaling an image

2009-06-24 Thread Gavin Aiken
Hey all! This has been frustrating me for a while, all I want is to scale an image to dimensions that I define whilst keeping an aspect ratio. So for example, image comes in at 500 * 500, I want to scale to 320 * 480 so I need 320 * 320 so as not to distort the image. This must be a simple 3 line

[android-developers] Re: develop a simple game like tic toc

2009-06-13 Thread Gavin Aiken
http://bakhtiyor.com/category/30-days-of-android-apps/page/2/ If you're talking about tic-tac-toe you could look here :) Good luck On Sat, Jun 13, 2009 at 5:22 AM, jaimin wrote: > > hi. > i am new to android i have develop a some e book for android mobile > but i never develop a game > in andr

[android-developers] Checking the Hardware (Phone model) programatically

2009-06-13 Thread Gavin Aiken
Hi All, I was wondering if there is a way of finding the hardware on which the Android software stack is currently running. Specifically I'd be interested to get the processor on which the application is being run so that I can adjust the intensity of calculations performed. Thanks in advance! G

[android-developers] Re: How to execute chmod -R 777

2009-06-10 Thread Gavin Aiken
ust trying to do that for accademic reason!can i do this in an > other way? i don't want to use 1:1! > > i'd like to use an other way , not 1.1 can u suggest something? > > 2009/6/10 Gavin Aiken > >> Well I think the guys were saying it's a bad idea, what is

[android-developers] Re: How to execute chmod -R 777

2009-06-10 Thread Gavin Aiken
Well I think the guys were saying it's a bad idea, what is it that you're trying to achieve? On Wed, Jun 10, 2009 at 9:12 PM, Francesco Pace wrote: > Thanks Gavin, so I have to modify (with chmod 777) 1:1 all file in /data > directory.? > > 2009/6/10 Ga

[android-developers] Re: How to execute chmod -R 777

2009-06-10 Thread Gavin Aiken
http://groups.google.com/group/android-developers/browse_thread/thread/9646c6aea5b78c1f/47238ea9d76e4887?lnk=gst&q=gav+chmod#47238ea9d76e4887 Might help :) On Wed, Jun 10, 2009 at 9:04 PM, Francesco Pace wrote: > Hi guys,I have a problem. I'm working with adb shell and I have to execute > this

[android-developers] Re: Dalvik Version

2009-06-08 Thread Gavin Aiken
That's great cheers, I jsut need to quotre the VM version I ran my tests on. Gav On Mon, Jun 8, 2009 at 7:00 PM, fadden wrote: > > On Jun 7, 7:26 am, Gavin Aiken wrote: > > I am writing the report for my project and I was wondering if anyone > could > > tell me how t

[android-developers] Dalvik Version

2009-06-07 Thread Gavin Aiken
Hi Guys, I am writing the report for my project and I was wondering if anyone could tell me how to find the current version of the Dalvik VM. My phone is a Dev phone running cupcake. I just can't find it, I'm sure it must be obvious but if any of you know I'd really appreciate a pointer. Cheers,

[android-developers] Re: SoftHashMap implementation - For use as a Cache of thumbnails

2009-06-02 Thread Gavin Aiken
Hi Mark, Thanks so much for the pointer. It is indeed from the newsletter you mentioned, I shall be signing up too I think. Just in case you thought I was being cheeky and passing this off as my own, his name with a link is right at the top of the source :). Thanks again, Gavin On Tue, Jun 2,

[android-developers] Database Pattern - What's your method?

2009-06-02 Thread Gavin Aiken
Hi All, I was wondering if you could shed any light on the pattern you use for your database connections. I have a class; public class FilterDBHelper extends SQLiteOpenHelper{...} With a method; public Cursor getFilterNodes(int _id) {...} That returns a cursor. The activity then takes care

[android-developers] SoftHashMap implementation - For use as a Cache of thumbnails

2009-06-02 Thread Gavin Aiken
Hi All, I have adapted a SoftHashMap that I found online for use in my Android application. I generate many thumbnails which use a lot of memory and are easily traversed, I want to use an ADT like this so that I don't run out of memory but do make use of the memory available. The cache is meant to

[android-developers] Re: Grayscaling

2009-05-28 Thread Gavin Aiken
set its color-filter to the > ColorMatrixColorFilter (bwPaint). > - Draw the original bitmap onto the new canvas: > mutableCanvas.drawBitmap(immutable, 0, 0, bwPaint); > - After this drawBitmap call, the mutable bitmap contains a b&w > version of your original mutable bitmap. >

[android-developers] Re: Grayscaling

2009-05-28 Thread Gavin Aiken
Hi Marco, Would you mind giving a brief code snippet of how this might work? I've been trying to get a similar function to run faster but when I use the bitmap the values I thought were written by the canvas aren't there. Kind regards, Gav On Tue, Apr 21, 2009 at 12:21 AM, Marco Nelissen wrote:

[android-developers] Simple Canvas Question

2009-05-28 Thread Gavin Aiken
Hi All, I want to fill a bitmap with a colour. I have the a,r,g & b values. The techinique I'm using is; public Bitmap evaluate(Bitmap input) { Canvas c = new Canvas(input); c.drawARGB(a, r, g, b); return input; } But my changes are not apparent in the returned bi

[android-developers] Gathering Usage Data - Any ideas welcome!

2009-05-26 Thread Gavin Aiken
Hi all, I'm currently working on a demo project and I'm about to try it out with some users. I'd like to automatically record the way they use the application, their navigation route, times spent in each section and duration using the application in general etc. I was wondering if there are any so

[android-developers] Re: Color Bug?

2009-05-22 Thread Gavin Aiken
EDIT: 'signed' bytes, as you said Cheers On Fri, May 22, 2009 at 10:00 PM, Gavin Aiken wrote: > Thanks for the quick response and sorry for the unneccesary use of the word > bug. > > I was clearly confused wrrt signed ints and 'unsigned' bytes (the values >

[android-developers] Re: Color Bug?

2009-05-22 Thread Gavin Aiken
es are signed in Java, so 137 is not what you want. Also, > Color.rgb() take ints, not bytes. So (byte) 137 cast as an int results > in rg == -119. > > On Fri, May 22, 2009 at 1:09 PM, Gavin Aiken > wrote: > > Hey all, > > > > Before I submit this I just wanted to

[android-developers] Re: Color Bug?

2009-05-22 Thread Gavin Aiken
Did this in the end; ... int nr = table[r] & 0xFF; int ng = table[g] & 0xFF; int nb = table[b] & 0xFF; ... Where table is a byte array. Have a good weekend!! On Fri, May 22, 2009 at 9:09 PM, Gavin Aiken wrote: > Hey all, > > Before I submit this I

[android-developers] Color Bug?

2009-05-22 Thread Gavin Aiken
Hey all, Before I submit this I just wanted to check it's not a java nuiance. The Color class can be used to extract rgb values from a pixel (32 bit int). I implemented a lookup table filter and used a byte to store each individual r g & b value to save a bit of space. Long story short; p

[android-developers] Re: Running exclusively SmallTests

2009-05-21 Thread Gavin Aiken
Hey, Just wondering if anyone has found a way to pass the command line parameter '-e size small' to the Android JUnit test runner as configured through eclipse. I'd rather work within eclipse than on the command line if possible. Cheers, Gav On Sat, Apr 11, 2009 at 11:21 PM, Ga

[android-developers] Re: TDD with Android 1.5

2009-04-14 Thread Gavin Aiken
In my humble setup the test application is separate to the actual application but references it so that the required classes can be used. http://code.google.com/p/miffed/source/browse/#svn/trunk/MiffedTest%3Fstate%3Dclosed As such I can choose to install Miffed (The name of my app) or MiffedTest.

[android-developers] Re: Early Look Android 1.5 SDK

2009-04-14 Thread Gavin Aiken
+1 Thank you guys On Tue, Apr 14, 2009 at 7:58 AM, Pd wrote: > > +1 > > Al Sutton wrote: > > To Xav, Dave, JBQ, Dianne, Romain, and anyone else involved in getting > this > > out there. > > > > THANK YOU. > > > > You may not literally get a thousand thank yous in your mail box, but > it'll > >

[android-developers] Writing PerformanceTestCases

2009-04-11 Thread Gavin Aiken
Hi All, Does anyone have a simple example of a PerformanceTestCaseI want to get some timing metrics for certain business logic functions in my ap. Until now I have been using the current milli

[android-developers] Running exclusively SmallTests

2009-04-11 Thread Gavin Aiken
Hi all, To build a test suite containing only small tests I looked at the source examples and found SmallTests.javain the email app test

[android-developers] Re: How to login to the root of Android Dev Phone 1?

2009-04-09 Thread Gavin Aiken
Hi Guys, I'm having the same issue. I just go a dev phone and i'm used to wiping the database of my ap by removing it using eclipse from the /data/data//databse.db location. Now i'm developing on a dev phone I don;t have access to /data/. I've installed terminal emulator but I need to know what

[android-developers] Re: Taking a picture Intent?

2009-04-06 Thread Gavin Aiken
Hey, Currently you can only get a very small resolution image but I expect this to be changed in Cupcake (I don't know though). android.media.action.IMAGE_CAPTURE Is the intent you want search this list for it to get mroe info, on the emulator this yields a very low resolution still image from t

[android-developers] Image Manipulation - getPixel on a PNG resource error - bug?

2009-03-15 Thread Gavin Aiken
Hi all! I am trying to perform a transformation on an image, specifically a PNG although any lossless format supported by Android would suit me, when running my test suite I keep getting errors that the new pixel values I'm creating are slightly wrong. To narrow the problem I ran my tests with a

[android-developers] Re: How can I source-level debugging in unit test caes in android under eclipse with ADT?

2009-03-14 Thread Gavin Aiken
http://developer.android.com/reference/android/test/InstrumentationTestRunner.html * " To debug your tests, set a break point in your code and pass: -e debug true in addition to the other arguments. "* Knew i'd read it somewhere! Gav On Sat, Mar 14, 2009 at 8:53 PM, Gavin Aik

[android-developers] Re: How can I source-level debugging in unit test caes in android under eclipse with ADT?

2009-03-14 Thread Gavin Aiken
Hi Ying, Did you ever work out how to debug using adb shell am instrument? I can't work out what the flag to allow this is. Kind regards, Gav On Mon, Feb 2, 2009 at 8:09 PM, ying lcs wrote: > > By following this: > > http://dtmilano.blogspot.com/2008/11/android-testing-on-android-platf.html >

[android-developers] Re: JUnit and ClassNotFoundException

2009-03-13 Thread Gavin Aiken
ce, and use the "am > instrument ..." command on the device (through adb shell). > More information at > > http://developer.android.com/reference/android/test/InstrumentationTestRunner.html > > Xav > > On Fri, Mar 6, 2009 at 1:24 PM, Gavin Aiken > wrote: > &g

[android-developers] Re: SimpleCursorAdapter and OnListItemClick - Simple question

2009-03-08 Thread Gavin Aiken
).putExtra("_id", filterId)); finish(); } On Sun, Mar 8, 2009 at 7:56 PM, Gavin Aiken wrote: > Hi guys, > > I use a SimpleCursorAdapter like this; > > @Override > public void onCreate(Bundle icicle) { > super.onCreate(

[android-developers] SimpleCursorAdapter and OnListItemClick - Simple question

2009-03-08 Thread Gavin Aiken
Hi guys, I use a SimpleCursorAdapter like this; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); this.getIntent().getIntExtra("category", -1); Integer category = this.getIntent().getIntExtra("category", -1);

[android-developers] Re: Bitmaps (.bmp) don't show up in 'Pictures' when on SDCard

2009-03-08 Thread Gavin Aiken
Thanks clark, I wasn't aware png was lossless, I changed the format and it all works fine! Cheers, Gav On Sat, Mar 7, 2009 at 5:35 PM, clark wrote: > > The .png file format employs lossless data compression. You may give > that a try. I even through a .png image onto my SD card and it shows

[android-developers] Re: JUnit and ClassNotFoundException

2009-03-06 Thread Gavin Aiken
Hi Bo, Did you resolve this issue? I'm having a similar problem. My test suite is a separate eclipse project, I need to test my android program against a desktop Java program in order to verify that I have ported the application correctly. To so this I need to use classes from both the JAI libra

[android-developers] Gesture detection using touchscreen and accelerometer

2009-02-25 Thread Gavin Aiken
Hi Guys, I want to use gestures for navigation in my application. The classic would be to draw clockwise / counter clockwise on the screen for zooming. Does this functionality exist as is? Any third party libraries? Any reason why I shouldn't attempt to write one if it doesn't exist? I had a decen

[android-developers] Populating a database efficiently

2009-02-20 Thread Gavin Aiken
Hi all, It currently takes my onCreate method 147 seconds to create and populate my database, if anyone with a better knowledge of SQLite could help me reduce this it would be greatly appreciated. I have want to create a database with three tables; 1. CREATE TABLE "nodeConfigurations" ("nodeI

[android-developers] Content Providers and Database initialisation

2009-02-18 Thread Gavin Aiken
Hey, I have a plethora of data which is currently stored in 1000 different very small text files, I want to store this data in an SQLite database as I feel that this will be more space efficient and hopefully time efficient as I presume a database query is faster than opening and parsing a text fil

[android-developers] Re: Loading DEX files at runtime from SDCARD - Possible?

2009-02-09 Thread Gavin Aiken
Thanks for the response Dianne, I still live in the cotton wool word of University where third parties are friendly types. Understood, I did some more searching and found another thread in which you contributed regarding this topic; http://groups.google.com/group/android-developers/browse_thread/t

[android-developers] Re: Make a photo with Android Emulator

2009-01-22 Thread Gavin Aiken
There is a command line tool for making an SD card, you then need to pass it in as a command line argument to the emulator. Presuming tools is in your PATH; Command line: mksdcard 1024M sd.iso Argument to emulator: -sdcard C:\PATH_TO_SD\sd.iso Add files manually: adb push local_file sdcard/remote_

[android-developers] Re: Emit a signal

2009-01-21 Thread Gavin Aiken
to simulate a click on this button from another object. > > On 21 jan, 09:35, Gavin Aiken wrote: > > Hey Nico, > > Can you clarify the question, you want an action to be performed after a > > button is clicked? As in with a button listener? Or is your request more > > co

[android-developers] Re: Emit a signal

2009-01-21 Thread Gavin Aiken
Hey Nico, Can you clarify the question, you want an action to be performed after a button is clicked? As in with a button listener? Or is your request more complex than this? Cheers, Gav On Wed, Jan 21, 2009 at 8:31 AM, Nico wrote: > > Hi, > I need to emit a signal "clicked" to a button. How c