[android-developers] onClickListener for on a listView

2010-09-06 Thread kingh32
Hello I've got some code that pulls pulls in data from a database via a PHP service layer using JSON etc and displays it as a listview. It works and I'm very happy with it - but I wanted to add an onClickListener to it. I know how to do it for buttons but its proving more difficult for the list

[android-developers] Re: Programming a target in an Android Application

2010-09-06 Thread kingh32
theorem to calculate the hypotenuse of the triangle i.e. the longest side of an imaginary triangle that exists based on the coordinates recorded when somebody touches the screen. Award different points or do different things based on this length. Cheers guys On Aug 3, 9:47 pm, kingh32 horaceb1

[android-developers] Re: SQLite implementation - need help!

2010-09-05 Thread kingh32
uninstall com.shootingrange Like that? -- Kostya Vasilyev --http://kmansoft.wordpress.com 03.09.2010 18:09 пользователь kingh32 horaceb1...@gmail.com написал: Yes that is definately what iI did, replace package with com.shootingrange On Sep 3, 3:03 pm, Kostya Vasilyev kmans...@gmail.com

[android-developers] Re: SQLite implementation - need help!

2010-09-03 Thread kingh32
. How is this possible? On Sep 3, 8:56 am, Kostya Vasilyev kmans...@gmail.com wrote:   You have an error in the SQL for creating the table: 03.09.2010 5:54, kingh32 пишет:    + shotsPerRound, INTEGER The comma should be at the end shotsPerRound INTEGER,.  This misplaced comma causes

[android-developers] Re: SQLite implementation - need help!

2010-09-03 Thread kingh32
пользователь kingh32 horaceb1...@gmail.com написал: Thanks for spotting the comma. I've removed it but it still cites this query as an error. In fact, no matter what I try to do the same error is displayed. Even if I change the intent pointing to this class, to completely different non

[android-developers] Re: SQLite implementation - need help!

2010-09-03 Thread kingh32
column indices outisde the loop - Before running again, uninstall the application with adb uninstall to force the database to be recreated -- Kostya 03.09.2010 15:24, kingh32 пишет: E/CursorWindow( 1354): Bad request for field slot 0,-1. numRows = 1, numColumns = 2 -- Kostya Vasilyev

[android-developers] Re: SQLite implementation - need help!

2010-09-03 Thread kingh32
, totalScore } ); -- Kostya 03.09.2010 17:38, kingh32 пишет: I cant get adb uninstall to work I'm doing this adb uninstallpackage I've also tried adb uninstall [-k]package  and adb uninstall []package In the mean time I've created another database and tried to populate

[android-developers] Re: SQLite implementation - need help!

2010-09-03 Thread kingh32
Yes that is definately what iI did, replace package with com.shootingrange On Sep 3, 3:03 pm, Kostya Vasilyev kmans...@gmail.com wrote:   03.09.2010 17:58, kingh32 пишет: It says that there was a syntax error in my command. I think it's useful to learn. Use adb uninstall your package name

[android-developers] Re: SQLite implementation - need help!

2010-09-02 Thread kingh32
01.09.2010 20:26, kingh32 пишет:           // Set the list adapter           String[]from = {DBHelper.COL_ENTRYID, DBHelper.COL_EVENTNAME,                     DBHelper.COL_DATE, DBHelper.COL_EVENTTYPE, DBHelper.COL_NUMROUNDS,                            DBHelper.COL_PLAYSSPERROUND

[android-developers] Re: SQLite implementation - need help!

2010-09-02 Thread kingh32
Just to add, it gives me the same error even when i completely change the query and remove the apparently non existent column. I'm really confused! On Sep 3, 2:43 am, kingh32 horaceb1...@gmail.com wrote: Thank you for both of your replies. I have tried implementing both of your suggestions

[android-developers] SQLite implementation - need help!

2010-09-01 Thread kingh32
Hello All I'm stuck on an SQLite problem and have been for the past few day so I thought I would share it with you. All I'm trying to do is create an SQLite database to display the data generated by the use of my app. I've managed to get the app to send data to a MySQL database (quite easily)

[android-developers] Re: Passing variables using intents

2010-08-25 Thread kingh32
now! On Aug 25, 8:07 am, Kostya Vasilyev kmans...@gmail.com wrote:   25.08.2010 5:12, kingh32 пишет:           //round.setText(String.valueOf(round));  The app crashes if I include this line, I've tried it for all of the variables I don't see a variable named round. There is roundVal

[android-developers] Re: Passing variables using intents

2010-08-25 Thread kingh32
Would you happen to know what it means if when trying to do a setText the data shows as either null or a blank? Thank you On Aug 25, 8:07 am, Kostya Vasilyev kmans...@gmail.com wrote:   25.08.2010 5:12, kingh32 пишет:           //round.setText(String.valueOf(round));  The app crashes if I

[android-developers] Passing variables using intents

2010-08-24 Thread kingh32
Hello I am trying to pass some variables from a spinner to be displayed in the following activity but whenever I do variable.setText(String.valueOf(thing)); my app crashes. This is my intent Intent s= new Intent(NewCompetition.this,Target.class); s.putExtra(rounds,round);

[android-developers] Re: connect to sql server

2010-08-23 Thread kingh32
Hello I'm new to this too but I've managed to find a way to send and receive data using a php script. To send I have used this method public void Post() throws ClientProtocolException, IOException { /** Connect with the PHP script */ String address =

[android-developers] Re: connect to sql server

2010-08-23 Thread kingh32
Also, the PHP script should take request variables e.g. ?php //connect to server $connect = mysql_connect(host,user,password); //connect to database mysql_select_db(db_name); //query the database $query=mysql_query( INSERT INTO `db_name`.`table_name` (`name` , `flag`) VALUES (

[android-developers] Re: Programming a target in an Android Application

2010-08-03 Thread kingh32
Hello - Thanks for your reply! What you have just mentioned is pretty much where I'm stuck! I don't know how to identify programatically where the target actually is. Would this be done using pixel coordinates? Is there a way to determine the resolution of the phone (screen) that the app is being

[android-developers] Re: Programming a target in an Android Application

2010-08-03 Thread kingh32
factor of 1:1 won't cause you any trouble. There are times to be absolute, and times to be relative. This is one of the latter. On Aug 3, 9:25 am, kingh32 horaceb1...@gmail.com wrote: Hello - Thanks for your reply! What you have just mentioned is pretty much where I'm stuck! I don't

[android-developers] Programming a target in an Android Application

2010-08-02 Thread kingh32
as to how I can make an image of a target function in this way? The target is made up of 6-9 bands, each being the same width. Thanks Kingh32 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android