**** BEGIN LOGGING AT Tue Jun 26 02:59:58 2012 Jun 26 03:00:23 hey, would anyone be willing to share a full android project? I would like to see how its done, maybe from a different perspective Jun 26 03:00:58 you mean you want to see a full android project Jun 26 03:01:12 jrockjiggz: you can look at the iosched code Jun 26 03:01:17 or any aosp project Jun 26 03:01:24 hmm ok Jun 26 03:01:35 like contacts, the browser, the old music player, erc Jun 26 03:01:37 *etc Jun 26 03:01:43 cool Jun 26 03:02:02 i would look at iosched 2010 and ignore 2011, and then when 2012 comes out look at that one again Jun 26 03:02:30 which should be very soon Jun 26 03:02:37 do you know a way to have a user log-in and share that session with a php session? is there any frameworks built for this? Jun 26 03:03:53 jrockjiggz: you can also watch the io 2010 talk on android & rest Jun 26 03:04:04 i /think/ its 2010 , could be 2011 Jun 26 03:04:34 thanks i'm lookin at it now Jun 26 03:05:03 there's tons of awesome open source apps Jun 26 03:05:12 search GitHub Jun 26 03:12:23 Is anyone willing to take a look at my application and tell me what the hell I am doing wrong? Jun 26 03:13:33 What errors are you getting. Jun 26 03:14:18 Sometimes it will pass in my values and create the new table row some times it wont. Jun 26 03:14:28 and sometimes it will force close and sometimes it wont Jun 26 03:14:29 http://db.tt/WvuTAELQ Jun 26 03:14:33 There is my app Jun 26 03:15:59 if i was making a question game, where would i load the questions and answer s from if there's like 40 questions and 160 answers? Jun 26 03:18:26 T-Dub, will you take a look at that for me Jun 26 03:18:55 An array? Jun 26 03:18:57 how do i connect my android 2.3.4 tablet to a windows wireless share without installing other apps? Jun 26 03:19:00 Austrie^ Jun 26 03:19:39 BrutalSauce, I don't have time to look at your whole project, just send me a snipit of where the problem is. Jun 26 03:19:44 So uh, starting my first hello world type deal. Anyone have time to answer a few questions? Jun 26 03:19:56 Ask away Schuler113. Jun 26 03:20:24 Downloading the SDK libraries, which API/Distro would I want if I want the app to be compatible with all devices? Jun 26 03:20:41 http://pastebin.com/iX4t2KJm Jun 26 03:20:47 There you go T-Dub Jun 26 03:20:49 T_DUB Jun 26 03:21:11 40 QUESTION && 160 ANSWERS IN A ARRAY!!!! Jun 26 03:21:20 caps Jun 26 03:21:36 Schuyler114, you would want to go with the lowest number then. (lowest api level) Jun 26 03:21:37 android 2.1 Jun 26 03:21:53 the code will look sloppy and unmanagable Jun 26 03:22:01 Alrighty, that's what I thought. Thanks! Jun 26 03:22:13 Austrie, I would suggest two different arrays, one for questions and one for answers. Or maybe even a 2d array. However that isn't really a big array at all. You can have thousands of indexes with no problems. Jun 26 03:22:44 An array would looke better than hard codding 200 different variable.s Jun 26 03:23:11 and i want the 4 answer to show on the screen and you have to select one for the question then it'll show either correct or wrong Jun 26 03:23:15 I wouldn't suggest making a text file then loading it because the user could delete it. If you want to take the time you can also make each question/answer a string inside string.xml Jun 26 03:23:45 Using an array could make that possible. Just would require some math. Jun 26 03:23:53 i would just put the questions and answers in res/arrays.xml or something. like parallel arrays or whatever Jun 26 03:24:15 T-Dub but what about making the question show up a certain way Jun 26 03:24:17 if you need to localize them, its easy Jun 26 03:24:20 for example.... Jun 26 03:24:31 How old is Fred? Jun 26 03:24:36 A: 10 years Jun 26 03:24:46 B: 27 years Jun 26 03:24:53 C: 08 yearsa Jun 26 03:25:00 D: 94 years Jun 26 03:25:14 then it would shows either a correct or wrong image Jun 26 03:25:29 Just set the array in the format of "question","answer1","answer2","answer3","answer4","question","answer1" etc Jun 26 03:25:45 and explanation for the answer Jun 26 03:25:49 ok Jun 26 03:25:52 cool Jun 26 03:26:05 that deals with the array part Jun 26 03:26:17 and do echo array[questionNumber] array[questionNumber + 1] array[questionNumber + 2] Jun 26 03:26:17 etc Jun 26 03:26:32 but what would i show it in aka a view Jun 26 03:27:08 Just do textView.setText(array[questionNumber]; textView2.setText(array[questionNumber + 1] Jun 26 03:27:09 etc Jun 26 03:27:31 You would also need another array to decide what answer is correct. Jun 26 03:27:43 And correspond it to the index of your answer within the first array. Jun 26 03:28:01 Or actually Jun 26 03:28:06 Just check the text Jun 26 03:28:34 when they click the text view do like answer = textView.getText(); Jun 26 03:29:14 then like if(answer.contains("theRealAnswerText") { echo"Hey you got the answer right"; }else{ nope } Jun 26 03:32:44 hmm Jun 26 03:36:29 thanks Jun 26 03:36:41 so my ui is gonna be mosty array... Jun 26 03:40:54 Well if you know a better way go for it. Jun 26 03:52:16 how do you make an EXIT/CLOSE button for android. Jun 26 03:52:35 You aren't supposed to. Jun 26 03:52:50 ... unless you're using services which you need to actually quit. Jun 26 03:53:01 Google frowns upon it. Jun 26 03:53:30 The service just needs to close/stop, not necessarily just a exit/close button. Jun 26 03:53:45 Any ways jerry_1 the only way I know how to is to just start every activity with startActivityForResult Jun 26 03:53:51 i made a small app but hate to have to use the back arrow to get out of it. would rather close it. Jun 26 03:53:52 And when the "quit" button is pressed. Jun 26 03:54:06 close window? Jun 26 03:54:14 Set the result to a universal number that you want to be the "quit" number, and make a chain reaction of finish()'s Jun 26 03:54:20 stop activity? Jun 26 03:54:26 uh Jun 26 03:54:33 just call the method finish() Jun 26 03:54:47 thanks. Jun 26 03:56:16 Answert (Romain Guy): The user doesn't, the system handles this automatically. Jun 26 03:56:24 http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon Jun 26 03:56:54 That's what I basically just told you. Jun 26 03:57:12 yep. Jun 26 03:57:27 i was looking up how to do it. Jun 26 03:58:44 what is the correct term for an autocomplete search box that pulls its list from an online resource? Jun 26 04:01:19 reading more about it, but is still readiing more about reason why not. Jun 26 04:03:04 on my friends ipad(new one) it started boggin down while using music apps and then we found that 5 different apps were still running (nornal) so we had to close them for the virtual instruments not ot lag real hard. Jun 26 04:03:26 running in the background. Jun 26 04:11:43 jerry_l: that wont't happen on android, since only the foreground activity is running at any given time, others are stopped in the background (services etc. notwithstanding) Jun 26 04:14:09 that sounds good. Jun 26 04:15:15 i was going start sqlite learning for android tablet to modify DB on XP cpu file server. Jun 26 04:19:05 Jackneill: I think your missing an "O" in there some place... Assuming I have the reffrence correct and that is not just your name. Jun 26 04:19:19 :) Jun 26 04:19:49 Jackneill: I guess I got it right :D +1 Jun 26 04:22:21