**** BEGIN LOGGING AT Mon Jul 27 02:59:57 2009 Jul 27 03:00:35 Map 1 - throw 'Map 1' into the spinner and then using 'getSelectedItem()' pick up the 'value' which is 'map1' Jul 27 03:01:14 oh, do it that guys way Jul 27 03:01:21 but what's confusing you is name and value Jul 27 03:01:28 you're using value, he used name Jul 27 03:01:42 but in his example they are both the same Jul 27 03:02:01 it's a request code i assign to it Jul 27 03:03:00 so it should be a final int, correct? Jul 27 03:03:13 http://osdir.com/ml/AndroidDevelopers/2009-06/msg02926.html this one has a bit of complete code Jul 27 03:03:14 yeh Jul 27 03:08:04 Hmmm....It's poping up the image chooser but the onActivityResult never gets called Jul 27 03:13:12 where do u put the startactivity? are they in the same class? Jul 27 03:14:19 yes Jul 27 03:14:24 so u didn't see the Log message then? Jul 27 03:15:07 no Jul 27 03:15:17 the activity starts and then when it finishes nothing Jul 27 03:15:24 hmm... Jul 27 03:16:10 can you try to put startActivity in onCreate to see if it is called at start up? Jul 27 03:16:52 I know the activity is started because I see the photo picker Jul 27 03:17:03 but when it finishes my onActivityResult doesn't get called Jul 27 03:17:39 yeh but can u give that a try? Jul 27 03:17:54 wait, startActivity is called inside a function called from a button listener Jul 27 03:17:59 coudl that hose it? Jul 27 03:18:54 u know there are so much thing that can go wrong (that's what happen with me), i just want to see if it works from onCreate Jul 27 03:19:17 ok it does Jul 27 03:19:32 i have similar issue before and it works fine from onCreate so i know it works and i have to find the source of the problem from there Jul 27 03:19:35 which seems to mean that it thinks the button listener is starting Jul 27 03:19:56 so u need find the source of the problem urself now ;) Jul 27 03:23:27 Listner question: I attach an ananomous listner to a button in my activity. The way I got it to call the correct functions was the list the full class name, this and the function. Like MyActivity.this.finish(); Jul 27 03:23:31 Is that correct? Jul 27 03:24:07 why don't u pastebin it? Jul 27 03:41:00 http://pastebin.com/d66594aa4 Jul 27 03:41:44 yes, but why do you ahve an underscore in the class name? :) Jul 27 03:42:22 why don't you have underscores in yours?\ Jul 27 03:42:50 underscores and cooked food are what seperates us from animals Jul 27 03:44:20 whaledawg, lol! Jul 27 03:47:01 fixed it, I forgot that my test code was inside a seperate intent Jul 27 03:47:26 and I was calling finish right after I launched the photopicker Jul 27 03:47:40 so it was gone by the time the activityResult came around Jul 27 03:47:57 WHY IS ANDROID BUILT ON LIES!!!! Jul 27 03:50:14 duh! something is sucking up my cpu! Jul 27 03:52:38 yeh, that's what happen to me as well Jul 27 03:52:56 i am gonna reboot my machine Jul 27 04:11:45 I populate my spinner from String.xml, but when the application starts, it automatically selects the first item and onItemSelected is called. I want to call it on action of user selection. Jul 27 04:11:45 Is there a way to have nothing selected? A blank value ( but then that blank value appears in the list for the spinner : ( ) Jul 27 04:35:36 <_Auron_> http://pastebin.org/4475 <-- why is onCreate called again the second time I run my app from the app shortcut (even though the app is never destroyed/fully terminated), and if there's no way around it being called twice, how do I fix the openGL surface initialization in onCreate? Jul 27 04:37:25 <_Auron_> yet onRestart() is called instead of onCreate() if I go back to the app by holding Home and selecting my app from there Jul 27 04:37:42 _Auron_, what launchMode is your app using? Jul 27 04:37:59 <_Auron_> KNY: .. default? I don't know. Jul 27 04:38:16 <_Auron_> I don't have anything special set in the manifest Jul 27 04:38:17 _Auron_, you might want to look into that Jul 27 04:38:31 http://developer.android.com/guide/topics/manifest/activity-element.html#lmode Jul 27 04:39:05 <_Auron_> oh god Jul 27 04:39:17 I believe singleTask might be what you want Jul 27 04:39:28 (also, android:multiprocess="false") Jul 27 04:39:31 <_Auron_> yeah Jul 27 04:40:01 <_Auron_> default is false, but doesn't hurt to force-set Jul 27 04:40:48 maybe android:noHistory="true" ? I'm not sure what you want to happen Jul 27 04:41:24 ooo, and android:finishOnTaskLaunch :) Jul 27 04:42:04 <_Auron_> ooookay so this completely fixes the freezing issue Jul 27 04:42:12 haha Jul 27 04:42:14 <_Auron_> now I need to figure out why the texture breaks. Jul 27 04:42:22 not sure Jul 27 04:42:28 trace through your logcat Jul 27 04:42:32 I need to get some sleep though Jul 27 04:42:47 good luck; leave me a /msg if you get it Jul 27 04:42:47 <_Auron_> my logcat tells me my texture gets generated :/ Jul 27 04:43:03 <_Auron_> night Jul 27 04:43:10 <_Auron_> and thanks Jul 27 04:43:10 well Jul 27 04:43:14 there's part of that fixed Jul 27 04:43:18 <_Auron_> yeah Jul 27 04:55:28 <_Auron_> okay, so what I have now is that the texture gets created, draws in the first frame, and the second frame it 'breaks'. Jul 27 04:55:39 <_Auron_> very weird Jul 27 05:08:51 Hey guys, does Android's browser support any vector formats in the WebView? I have this large image i am displaying and it is lagging. Jul 27 05:09:27 maybe SVG won't be lagging so much Jul 27 05:12:19 vladikoff: SVG is not supported Jul 27 05:12:38 and I would be very surprised if displaying SVG was faster than a bitmap Jul 27 05:13:46 understatement of the day :D Jul 27 05:14:12 <_Auron_> romainguy: I got banned from android-developers for posting my plea for help Jul 27 05:14:49 <_Auron_> but KNY was able to help me out with manifest settings; at least for the freezing part. the broken texture issue isn't fixed yet, but I'm changing my code to go back to GL10 instead of GL11 since I discovered VBOs would be next to useless for me Jul 27 05:24:23 this network gets a lot of net splits Jul 27 05:25:51 <_Auron_> lately yeah Jul 27 05:26:07 hello jbq, romain. Jul 27 05:26:16 hey jasta Jul 27 05:28:33 _Auron_: banned?? Jul 27 05:28:44 hoyo jasonchen Jul 27 05:28:47 er jasta Jul 27 05:38:42 can somebody help me get my textview scrolling as a marquee? Jul 27 05:39:01 did you enable marquee? Jul 27 05:39:04 yes Jul 27 05:39:05 and singleline Jul 27 05:39:51 then it will marquee when the textview is selected/focused Jul 27 05:40:19 it cant just always do it? Jul 27 05:41:08 "it will marquee when the textview is selected/focused" Jul 27 05:41:15 look at the API, you'll know what to do Jul 27 05:42:05 where do you see that? it doesn't say that under the xml attribute or setEllipsize Jul 27 05:42:20 see what? Jul 27 05:42:57 that message Jul 27 05:43:11 i did look at the API, i cant find where it mentions that it needs to be selected/focused Jul 27 05:43:30 if i do a setSelected(true) in the code my text just dissapears Jul 27 05:43:54 that's probably because you are using a text appearance whose selected text color is the same as your background color Jul 27 05:45:16 i see Jul 27 05:45:16 thanks **** ENDING LOGGING AT Mon Jul 27 05:58:10 2009 **** BEGIN LOGGING AT Mon Jul 27 06:00:14 2009 **** ENDING LOGGING AT Mon Jul 27 06:02:16 2009 **** BEGIN LOGGING AT Mon Jul 27 06:03:37 2009 Jul 27 06:32:17 Hello. I have an app that needs to poll a URL every 15 seconds. In the Photostream app, the polling is started via a BootReceiver. If I only want to schedule the polling after a certain Activity has completed, where would be the best place to schedule it with the AlarmManager ? Do I still need to create a Service ? Jul 27 06:33:06 every 15 seconds? Damn, that's gonna kill the battery. Jul 27 06:33:34 Well the polling frequency is configurable. Jul 27 06:33:45 you can broadcast an intent when the activity completes Jul 27 06:33:52 and use a broadcast receiver to start the polling Jul 27 06:33:58 but not every 15 seconds Jul 27 06:34:47 even rss readers don't poll at that rate Jul 27 06:34:58 (I wouldn't poll more than once every 30 to 60 minutes, and even then I'd feel dirty doing it) Jul 27 06:35:31 Well the traffic in the exchange is very tiny. And I'm using ETAGs. Jul 27 06:36:14 but you still have to bring up the radio, get the data connection live, and continue powering it until it times out. Jul 27 06:37:17 Even if you were just establishing the socket every 15 seconds and not transmitting a byte on it, you'd still drain the battery in a few hours. Jul 27 07:24:33 The javadoc for Activity says: "There are situations where the system will simply kill the activity's hosting process without calling this method (or any others) in it." The this method refers to the #onDestroy() method. I plan to unschedule an alarm in onDestroy(). If my hosting process dies, is it guaranteed that the AlarmManager's scheduled job is killed ? Jul 27 07:26:41 ashitaka: yes. Jul 27 07:26:59 err wait, what am i saying Jul 27 07:27:00 no :) Jul 27 07:27:19 the point of AlarmManager is to be able to wake up your app, possibly even starting your process. Jul 27 07:27:23 and it will. Jul 27 07:28:18 that said, if you want to unschedule an alarm, why would you do it in ondestroy and not in onpause or onstop? Jul 27 07:28:41 onDestroy, for isntance, may not be called for quite some time after the user has left your screen Jul 27 07:29:01 do you really wish to have an alarm active in that instance? and if so, why did you want to unschedule it when ondestroy is finally called? Jul 27 07:29:05 I might be able to do it in onStop Jul 27 07:29:34 i can see no situation in which ondestroy is the right place to unschedule an alarm. Jul 27 07:29:43 but maybe im just not thinking about it broadly enough Jul 27 07:30:45 The alarm needs to be active only for the duration of the execution of the app. If the user decides to exit the app, then the alarm needs to be unschedule. Jul 27 07:30:58 That was what I wanted to do. Jul 27 07:31:25 then you want onStop Jul 27 07:31:32 onDestroy is not synonymous with the user leaving your screens. Jul 27 07:31:39 please refer to the activity lifecycle diagram. Jul 27 07:31:49 Ok. Thanks Jul 27 07:33:09 btw, i doubt an alarmmanager is really what you want. Jul 27 07:33:27 are you using it as a timer? Jul 27 07:34:44 It is scheduling an AsyncTask to execute every x duration. Jul 27 07:34:56 yeah, you dont want an alarmmanager. Jul 27 07:35:18 use the Handler class to schedule your asynctask to run Jul 27 07:35:19 Why not ? It sounds like the perfect fit. Jul 27 07:35:24 no, it doesn't. Jul 27 07:35:47 AlarmManager is designed to wake the CPU from sleep. it is very expensive for timers only active when the cpu isn't sleeping. Jul 27 07:36:01 for that, youc an use the event loop through Handler. Jul 27 07:36:12 there is a discussion on exactly this blogged about a long time ago by Dan Morrill Jul 27 07:36:17 bbl Jul 27 07:43:09 Morning! Jul 27 08:24:38 is there a way to simulate an actual keypress event as if i had pressed a key?? Jul 27 08:25:25 hello Jul 27 08:27:47 Gaz, what do you need it for? There is probably a better way. Jul 27 08:27:51 Gaz, monkey? Jul 27 08:28:26 http://developer.android.com/guide/developing/tools/monkey.html ... but this is probably not what you need Jul 27 08:28:51 well i have this extremely odd bug where the first keypress in gameplay most times just wont work and it brings up the "force close / wait " dialog, BUT if i do one keypress on my first screen (the languagfe select screen) it works perfectly and the issue is gone, so im kind of hoping i can have a keypress evento n the lang screen to solve the issue, ive tried a lot of things :/ Jul 27 08:29:29 better a solution than a hack :D Jul 27 08:29:32 That sounds like an awefull hack Gaz Jul 27 08:29:36 yeh Jul 27 08:29:40 i really dont care at this point Jul 27 08:29:47 ive spent WEEKS looking for a solution Jul 27 08:29:56 any hack will do me Jul 27 08:29:57 when clicking to cause the ANR, what code is being run that might make it happen? Jul 27 08:29:58 hehe Jul 27 08:30:00 :).. Take coffee break, have a smoke and do some debugging Jul 27 08:30:31 lol Jul 27 08:30:33 and Gaz, logcat :P is an error being thrown? Jul 27 08:30:34 easier said than done Jul 27 08:30:37 i HAVE NO CLUES Jul 27 08:30:41 logcat shows nothing Jul 27 08:30:55 well there's your problem ;P Jul 27 08:30:57 I'm developing web sites for mobile phones and I was trying to find a way to detect when the screen orientation has been changed under Android's browser Jul 27 08:30:59 something like the onorientationchange event under iPhone Jul 27 08:30:59 start logging stuff :F Jul 27 08:31:00 is there such a thing existing ? Jul 27 08:31:00 martin___, ANR? nothing its simply trying to accept a key press event Jul 27 08:31:07 (sorry to interrupt the conversation) Jul 27 08:32:16 this hack would def be enough for me, you cant quite realise how long and complex this issue is unless you download a snapshot of my brain for the last month Jul 27 08:32:38 as far as im concerned its an android bug Jul 27 08:33:39 strange that a keypres son lang screen works fine Jul 27 08:35:27 No one knows how to detect orientation change under Android's brwoser ? Jul 27 08:35:37 usign Javascript Jul 27 08:35:38 nope Jul 27 08:35:42 not I Jul 27 08:36:08 :/ ok thanks Jul 27 08:36:11 unless you wrote an app that specifically sent the info Jul 27 08:36:30 do you know where I could find more detailed info about the browser's webkit ? Jul 27 08:36:40 couldn't find anything relevant so far Jul 27 08:37:09 if you have looked at d.android.com then no Jul 27 08:38:46 .. I did Jul 27 08:38:50 but thanx Jul 27 08:38:56 I'll keep digging Jul 27 08:42:43 blorentin, if it helps.. http://developer.android.com/reference/android/webkit/package-summary.html Jul 27 08:43:54 thanx, I already have a look at this. But I would need some Javascript code to detect it... Jul 27 08:45:43 god dammnnnit Jul 27 08:46:02 you could try the main webkit site, and i think they use squirrelfish for java.. might find a squirrelfish script to do it Jul 27 08:46:24 java/javascript Jul 27 08:48:38 ok, I'll take a look Jul 27 08:52:10 <_yoyo> how to let RelativeLayout not use fullscreen, that is, always keep statusbar visible? Jul 27 09:12:14 hello ;) Jul 27 09:14:41 anyone knows how to force show on-screen keyboard? :) Jul 27 09:17:40 ive been testing on real device so long i dont remembe rhow to get an emulator going Jul 27 09:17:42 anyone? Jul 27 09:20:52 Gaz : unplug your phone Jul 27 09:21:20 if you have a virtual device set up it will use it automatically when the phone isn't plugged in (but check your launch configuration) Jul 27 09:23:18 Hello I've been trying to get included in the SMS/MMS attachment menu, so you can select attach and then my specific app. Jul 27 09:23:53 I tried by registering intent filters for everything but it was still not available for selection as a type in the attachment choice menu Jul 27 09:25:01 I'm now looking over the source code in the android repo Jul 27 09:25:31 I can see that the bundled sms app does not openly request attachments of different types Jul 27 09:25:49 instead it queries a custom adapter: AttachmentTypeSelectorAdapter Jul 27 09:26:11 With a bunch of predefined apps for different tasks Jul 27 09:26:24 Can anyone comment on this? Jul 27 09:27:01 I presume this means that it is currently impossible to add attachment functionality to the SMS/MMS app bundled with the current distros Jul 27 09:27:51 Hi, I want to read a file in Latin-1, I can open the file using openFileInput which gives me a FileInputStream. How do I make it use the "ISO-8859-1" encoding? Jul 27 09:54:33 heya Jul 27 09:55:10 ok so I'm building a menu from a string array. If there are no drawable resources in my package it works ok. If I add any drawables, I get NullPointerException trying to build that menu. (Which doesn't use any drawables.) Jul 27 09:56:06 weird or what? I have a hunch that the drawables are somehow messing up the creation of the resource package, but I'm not sure if that's the case or why Jul 27 10:00:11 wo weird Jul 27 10:10:53 ugh... didn't find the "cause of the cause" so to speak (which would be nice to know so I can keep it from happening again) but I seem to have found the immediate cause Jul 27 10:11:10 stale files, if I delete my whole gen and bin before I build this doesn't happen Jul 27 10:17:25 why does this line alwayas return false from the create new file regardless of what name i call my file? Jul 27 10:17:26 try { Jul 27 10:17:27 File words = new File(Environment.getExternalStorageDirectory(),"/words1.txt"); Jul 27 10:17:27 bout = new BufferedWriter(new FileWriter(words)); Jul 27 10:17:27 Jul 27 10:17:27 if(words.createNewFile()){ Jul 27 10:17:28 //make one then Jul 27 10:17:30 Jul 27 10:17:32 Jul 27 10:17:34 Log.e("debug","its newly madee"); Jul 27 10:17:36 Jul 27 10:17:38 } Jul 27 10:17:44 no matter what words1.txt is, words.createNewFile never returns true Jul 27 10:19:13 have you ever seen a file with a "/" in its name Jul 27 10:19:24 yeah i added thatin to fix the problem Jul 27 10:19:29 same behavior without it Jul 27 10:19:59 anyway i can scan the emulators sdcard directly Jul 27 10:20:04 The / makes it an absolute path Jul 27 10:20:06 so i can take a look for the file and its contents Jul 27 10:20:27 Hey Guys - I have been trying to install ADT for eclipse, but I am stuck at accepting the license agreements.. I am using Eclipse Galileo.. I Have scrolled down all the agreements and checked I agree, with all of them. Jul 27 10:21:39 .. Jul 27 10:24:16 hellpo Jul 27 10:24:17 annyone Jul 27 10:26:56 you either need to use string concatenation instead or take out that "/" at the beginning of your filename. Jul 27 10:27:37 yeah ive taken it out Jul 27 10:27:40 but it still doesnt work Jul 27 10:27:45 it simply returns false everytime Jul 27 10:27:51 its bloody weird Jul 27 10:30:05 ExxKA: I don't think 3.5 is supported yet. You might have to go with 3.4 Jul 27 10:30:06 so it looks like its already made, however its not - as when i try to make a bufferedreader to read it Jul 27 10:30:23 it null pointers at readLine Jul 27 10:32:54 kRutOn: 3.5 works fine here :) Jul 27 10:35:00 on my emulaotr Jul 27 10:35:03 if i shut it down and reopen it Jul 27 10:35:15 should the new files still exist on the virtual sdcard Jul 27 10:36:47 how do i inspect the contents of the virtual sd card Jul 27 10:37:34 cd /sdcard ? Jul 27 10:37:55 em.... Jul 27 10:37:58 where is that path tho Jul 27 10:38:04 adb shell Jul 27 10:38:50 so io run adb shell Jul 27 10:38:57 then cd /sdcard Jul 27 10:39:15 ls -a Jul 27 10:39:35 how do i spit out the contents of my txt file within the shell Jul 27 10:40:18 cat filename? Jul 27 10:40:20 or copy it to the desktop or sumthing Jul 27 10:40:47 i dont understand cat Jul 27 10:41:12 i did cat words.txt , it did nothing, so presume the files empty Jul 27 10:41:17 it is Jul 27 10:41:25 cat /default.prop Jul 27 10:41:27 hmm right Jul 27 10:41:30 that's a text file and will show things Jul 27 10:41:51 ok right Jul 27 10:41:55 so thats my issue then Jul 27 10:42:05 my file is empty hence why readLine is failing and b.ready() is false Jul 27 10:43:53 ok so when i close my avd, if i reload it Jul 27 10:43:58 will the contents of the sdcard still be the same Jul 27 10:44:00 or does it reset it Jul 27 10:44:31 same Jul 27 10:44:51 as far as I know bufferedreader should return true if the file is empty Jul 27 10:45:06 sorry, BufferedReader.ready() Jul 27 10:45:13 hmmm Jul 27 10:45:17 but that might be the problem, fill it with something Jul 27 10:45:20 something odd is happening Jul 27 10:45:25 cat "ahahah" > yourfile Jul 27 10:45:27 i do some writes to the txt file right Jul 27 10:45:30 and it keeps them Jul 27 10:45:33 i close my app Jul 27 10:45:37 the file still has contents Jul 27 10:45:39 i close the emulator Jul 27 10:45:41 reload it Jul 27 10:45:44 the file is now empty Jul 27 10:45:49 ? Jul 27 10:46:28 empty before loading your app after emulator restarts? Jul 27 10:46:37 what? Jul 27 10:46:42 oh yes Jul 27 10:46:50 so it's not your app clearing the file on load Jul 27 10:47:40 dont think so, this is what happens onload http://pastebin.com/m2ac96be7 Jul 27 10:49:11 if(words.createNewFile()) ? Jul 27 10:49:26 if that returns true then a new file is ccreated Jul 27 10:49:27 ah if it doesn't exist :) Jul 27 10:49:31 ye Jul 27 10:52:40 while(b.ready()){ <-- should this not be an if Jul 27 10:52:58 emmm Jul 27 10:52:59 nope Jul 27 10:53:12 that wouldnt stop the file from then appearing empty tho would it Jul 27 10:53:33 no it wouldn't Jul 27 10:53:56 maybe its an emulator sdcard issue Jul 27 10:54:06 tho chances are its a problem in this snippet of code Jul 27 10:54:11 cos the file name still exists Jul 27 10:54:51 you said the file contents exist after closing your app, you are sure your app was closed (onDestroy())? Jul 27 10:56:11 if you are using a BufferedWriter then be sure to .close() it or the contents will disappear Jul 27 10:56:17 yeah Jul 27 10:56:26 i do that when somebody closes the app Jul 27 10:56:44 i dont know actually Jul 27 10:57:16 what should i try Jul 27 10:57:36 Log.d(LOG_TAG, "woo ondestroy"); Jul 27 10:58:12 ? I don't know if onDestroy is always called unless you're out of memory ... maybe I should look that up Jul 27 10:58:17 but onPause() always is Jul 27 10:58:56 if you've closed the bufferedwriter after your write operation then thats not the proble Jul 27 10:59:26 after i close the bufferedwriter Jul 27 10:59:28 how do i open it again Jul 27 10:59:30 for next write Jul 27 10:59:57 the same way you made it in the first place? Jul 27 11:00:02 hmm ye ok so Jul 27 11:00:05 this is the code Jul 27 11:00:10 ull get a better picture of whtas happening Jul 27 11:00:27 http://pastebin.com/m59a89d0c Jul 27 11:00:30 a button is pressed Jul 27 11:00:38 and takes the entered text and outputs it to the file Jul 27 11:02:44 why a file over a database? Jul 27 11:03:07 never done db stuff with android Jul 27 11:03:13 found it VERY confusing when i last looked Jul 27 11:03:21 if its that easy Jul 27 11:03:26 could you draw up what id need for a db here Jul 27 11:03:28 1 table Jul 27 11:03:29 thats it Jul 27 11:03:34 but i duno how Jul 27 11:03:39 even wit docks Jul 27 11:03:41 docs Jul 27 11:04:19 well read operations from a database are probably far faster than a file Jul 27 11:04:27 you would have to iterate etc if this is a dictionary Jul 27 11:05:09 the database *is* a file, but I'm sure sqlite can do it faster than you or I :D Jul 27 11:05:23 what are you storing in your file? Jul 27 11:05:52 words Jul 27 11:05:53 thats it Jul 27 11:05:55 each line is a word Jul 27 11:08:18 how were you planning on using the file later? Jul 27 11:10:39 reading it at start of app Jul 27 11:10:39 thats it Jul 27 11:10:46 its just a record of added files Jul 27 11:10:54 words sorry Jul 27 11:11:07 a database would probably be easier then Jul 27 11:11:16 probably Jul 27 11:11:19 can u help me convert then? Jul 27 11:11:26 yes Jul 27 11:11:30 since i avoided a db cos i couldnt work it out Jul 27 11:11:32 cheers buddy Jul 27 11:11:35 whats my first step Jul 27 11:11:49 you will need to create a class that extends SQLiteOpenHelper Jul 27 11:11:55 ok sec Jul 27 11:12:31 which should override onCreate() and onUpgrade() Jul 27 11:12:37 ok done Jul 27 11:14:19 you should also have a private final variable that is your database version number Jul 27 11:14:33 ok Jul 27 11:14:54 onCreate() is called when you try to access the database and it doesn't exist, it houses the SQL code to make your database Jul 27 11:15:45 look for ex. here http://developer.android.com/guide/tutorials/notepad/index.html Jul 27 11:16:42 ok Jul 27 11:16:43 right Jul 27 11:16:55 so within onCreate i need to execute some sql Jul 27 11:17:38 the tutorial explains how / what Jul 27 11:17:42 are you familiar with SQL? Jul 27 11:18:51 yeah i am Jul 27 11:18:53 so id do Jul 27 11:20:22 db.execSQL("CREATE TABLE table ("id""int","value""varchar(255)")"); Jul 27 11:20:28 but that wouldnt work cos of all the " Jul 27 11:21:16 I don't know whether or not you *must* have a primary key, but it's advisable so you don't get duplicate words Jul 27 11:21:38 ok Jul 27 11:21:39 soo... Jul 27 11:21:43 what should my line look like Jul 27 11:21:45 as an example Jul 27 11:22:05 CREATE TABLE words ( _id INTEGER PRIMARY KEY AUTOINCREMENT, word TEXT NOT NULL); Jul 27 11:22:07 or similar Jul 27 11:22:44 ok cool Jul 27 11:22:46 so thats now done Jul 27 11:22:54 so how do i instaniate this object Jul 27 11:23:01 and add values / query the db Jul 27 11:23:07 you're not done yet Jul 27 11:23:27 oh Jul 27 11:23:29 read the tutorial that was linked above Jul 27 11:23:37 i kinda did Jul 27 11:23:41 its not readable Jul 27 11:23:44 ive looked at it before Jul 27 11:25:08 perhaps this? http://www.devx.com/wireless/Article/40842 Jul 27 11:28:01 that seems to use a very different approach Jul 27 11:28:06 it for first doesnt extend anything Jul 27 11:28:09 looks easier though Jul 27 11:28:14 any advantage between methods? Jul 27 11:28:53 if you look it has a private class that extends sqliteopenhelper, which does what I've just talked about Jul 27 11:29:40 oh i c Jul 27 11:29:43 which is also what happens in that notepad tutorial Jul 27 11:29:43 and it just wraps around it Jul 27 11:29:49 gotcha Jul 27 11:29:51 cheers buddy Jul 27 11:29:55 im gona try port this to use a db then Jul 27 11:30:01 nows as good a time as any to learn how Jul 27 11:30:11 if i get stuck ill come back here! Jul 27 11:30:19 I don't doubt it :P Jul 27 11:33:17 hey ... is there any way to 'force show' the soft keyboard? Or any default input method ... Jul 27 11:41:23 this look good martin___ - http://pastebin.com/m38da035f Jul 27 11:41:47 http://twitter.com/tmobileofficial <-- tmo uk getting the htc magic / mytouch , naming it the g2 touch Jul 27 11:43:39 * ewon wonders about htc lancaster Jul 27 11:43:53 a g1 with more cpu / rams would be nice Jul 27 11:45:54 yes, apart from the naming conventions Jul 27 11:46:19 you're using a mix of ideas :) Jul 27 11:47:01 google's own android code usually has an "m" in front of all member variables, for instance mDB and mDBhelper whereas local variables inside a method (the parameters, or things you've made) don't Jul 27 11:47:21 personally I wouldn't start a variable with a capital letter (DBHelper) Jul 27 11:47:49 this is just pedantics and if you can understand your code it's probably ok, but it helps people who are helping you :) Jul 27 11:49:46 i c Jul 27 11:49:51 well thats from the tutorial Jul 27 12:01:29 tutorials aren't always perfect :D Jul 27 12:07:35 martin___ do i need to cal oncreate manually Jul 27 12:07:45 its complaining when i try to query that my table todesnt exist Jul 27 12:09:36 getWritableDatabase() will call onCreate() if it does not exist Jul 27 12:11:19 hmmm Jul 27 12:11:32 i wonder why this isnt working then Jul 27 12:11:36 ill show u what im tryna do Jul 27 12:11:54 this is databse class Jul 27 12:11:55 http://pastebin.com/m38fa91 Jul 27 12:12:19 this is main class http://pastebin.com/m28b1813e Jul 27 12:12:25 problem is in updateadapter Jul 27 12:12:32 claims table words does not exist Jul 27 12:14:16 words does not exist, or db does not exist Jul 27 12:14:48 hmm Jul 27 12:14:50 but why Jul 27 12:14:55 cos it should therefore make it Jul 27 12:15:01 which exact line is the error? Jul 27 12:15:34 74 Jul 27 12:15:36 oops Jul 27 12:15:37 73 Jul 27 12:15:41 of dicitionary.java Jul 27 12:16:50 sure it's not erroring at line 72? Jul 27 12:17:15 as far as I can see updateAdapter doesn't have a "db" parameter, nor is there a private variable with it's name Jul 27 12:17:27 http://pastebin.com/m557c0e08 Jul 27 12:17:37 it does Jul 27 12:17:41 there is a variable Jul 27 12:18:21 oh you didn't paste the whole class, ok Jul 27 12:18:39 did i not/ Jul 27 12:18:57 http://pastebin.com/m61bb3b52 Jul 27 12:19:16 wait, sorry, you did, I'm being thick Jul 27 12:19:18 LOL Jul 27 12:19:23 heh Jul 27 12:20:09 I just looked for "private Database db" and didn't see one Jul 27 12:20:15 put "Database db;" at the top of the class :P Jul 27 12:20:15 i c Jul 27 12:20:20 yea lol Jul 27 12:20:20 not halfway down Jul 27 12:22:15 public class dictionary <--- capital letter for class names please :) Jul 27 12:22:59 yep yep Jul 27 12:23:44 changed Jul 27 12:24:09 if you didn't know, right click, refactor, rename will rename all instances of the thing you're changing Jul 27 12:24:28 yeah cheers Jul 27 12:24:30 useful thing that Jul 27 12:26:51 can databases have upper case in their filenames? Jul 27 12:27:02 (genuine question, I've always just used lowercase) Jul 27 12:27:12 i guess so yes Jul 27 12:27:20 but i still dont know why my app aint working Jul 27 12:27:42 have you run a previous versoin fo this app and created the database on the emulator without making a change Jul 27 12:27:51 that made very little sense Jul 27 12:28:09 have you run this app previously and created the database, and then made some change to the schema? Jul 27 12:28:48 and if you do.... sqlite3 /data/data/your/package/name/databases/yourdatabasename Jul 27 12:28:50 yeah Jul 27 12:28:53 i did Jul 27 12:28:55 it opens? Jul 27 12:29:01 one sec Jul 27 12:29:02 lemme run that Jul 27 12:30:05 well it seems to work ye Jul 27 12:30:10 it opens an sqlite prompt Jul 27 12:30:32 how do i delete the db Jul 27 12:30:36 and jsust remake it then Jul 27 12:31:12 hang on :) Jul 27 12:31:20 well Jul 27 12:31:27 ".tables" will show a list of tables Jul 27 12:31:36 ooo Jul 27 12:31:47 empty Jul 27 12:32:04 hello, is there a way to get the platform's linkcolor default value? Jul 27 12:32:41 but if you make a change to the database schema then you should increment your database_version variable, that way when onUpgrade() is called it will see the new one is newer Jul 27 12:32:56 and do what your code says, which is delete the old tables and make new ones Jul 27 12:33:21 oh Jul 27 12:33:25 so shall i change version to 2 Jul 27 12:33:27 and see what happens Jul 27 12:33:29 yes Jul 27 12:33:48 did your old version not have any create table commands? Jul 27 12:35:39 it did Jul 27 12:35:41 but for wrong table Jul 27 12:35:52 ok this time it runs Jul 27 12:36:02 and it gave an error cos no table rows were found fair neough Jul 27 12:36:07 so i added a word Jul 27 12:36:09 and it added fine Jul 27 12:36:11 i added another word Jul 27 12:36:16 and it is just sat there blocking Jul 27 12:36:26 rolls of stuff on the console whizzin past Jul 27 12:36:37 and its become unresponsive Jul 27 12:37:21 unless that's what your app is meant to do, something is wrong :) Jul 27 12:37:38 what is the rolls of stuff, do you have some loop somewhere? Jul 27 12:37:45 any news on ADP phones for europe ? the brightstar page says out of stock and resuming on March 4 , the only question is the yerar 2009 or maybe 2020 ? Jul 27 12:38:03 yeah i do have a loop in updateAdapter Jul 27 12:38:29 http://pastebin.com/m54ba5c70 Jul 27 12:38:37 which loop caused the error Jul 27 12:38:53 I assume the firt one Jul 27 12:38:58 i have no idea i presume so Jul 27 12:39:33 yeah your loop condition is wrong Jul 27 12:39:57 really? Jul 27 12:40:12 while(!cursor.isLast()){ should probably be while(cusor.moveToNext()) which will return true when you reach the end Jul 27 12:40:15 *return false Jul 27 12:40:46 while(cursor.isLast()) will infinite loop if you've more than zero items in the table Jul 27 12:41:34 why Jul 27 12:41:37 oo yea Jul 27 12:41:41 cos it wont move it forward Jul 27 12:41:45 bingo Jul 27 12:41:55 Does anyone know of what the standard java practice is for referring to class variables throughout code, is it to use this. or should it be something different? Jul 27 12:41:59 you could tell it to move to the next on the loop if you'd like Jul 27 12:42:04 but while(movetonext) is fine Jul 27 12:42:08 yeah Jul 27 12:42:12 now i see what i was missing Jul 27 12:42:30 gauntface i just use the var name Jul 27 12:42:36 but u can use this if there is ambiguity Jul 27 12:42:37 i.e Jul 27 12:42:43 class Myclass { Jul 27 12:42:48 int poo = 0; Jul 27 12:42:57 public void updatePoo(int poo){ Jul 27 12:43:01 this.poo = poo Jul 27 12:43:03 } Jul 27 12:43:03 } Jul 27 12:43:16 u need this to refer to the correct variabke Jul 27 12:43:21 other than that its up to yoi Jul 27 12:43:22 **you Jul 27 12:43:48 if you set your eclipse to be very strict, it will complain if you do not use this.x to access your class variables Jul 27 12:44:14 but I don't know what's best in terms of efficiency for android (apart from using class variables as little as possible) Jul 27 12:47:42 Cheers Andy Jul 27 12:48:09 ooo ok ill keep the this in anyway then, ta Jul 27 12:50:27 When you run the emulator, how large is the ram footprint?? Jul 27 12:50:38 It is incredibly slow on my machine Jul 27 12:51:08 150 mb for me right now Jul 27 12:51:34 It is my first time running it, and I have waited for 2 minutes or so.. Jul 27 12:51:48 136mb, and still chewing away Jul 27 12:51:53 first time takes a while, and sometimes you have to quit out and start over Jul 27 12:52:02 Okay Jul 27 12:52:11 First time ever, or first time running the same app? Jul 27 12:52:17 first time ever Jul 27 12:52:23 okay.. Thanks Jul 27 12:52:29 Now I feel better :) Jul 27 12:52:37 I thought this might be the end of my machine Jul 27 12:52:39 do you have at least a dual core? Jul 27 12:52:44 yeah Jul 27 12:52:51 1,8 ghz Jul 27 12:52:55 2 gb ram Jul 27 12:52:55 it'll eat an entire thread while it's running Jul 27 12:53:03 okay Jul 27 12:53:20 yeah I can see that now.. Jul 27 12:53:36 It stopped at 137mb... :D Jul 27 12:53:50 Now I am just hoping to see the UI Jul 27 12:54:11 give it about .. 5 minutes? Jul 27 12:54:19 I hope not.. Jul 27 12:54:21 if it stays on the loading screen just x out and start again Jul 27 12:54:48 ExxKA, it takes almost five minutes to boot on my eee pc, and the emulator is bigger than my screen Jul 27 12:55:00 *every time* Jul 27 12:55:11 that's gotta be painful Jul 27 12:55:17 I hate being away from my PC :p Jul 27 12:55:36 i leave eclipse and the emulator running 24/7 on my pc, just so i don't have to wait for it Jul 27 12:55:39 Wow martin___.. I think i'll reconsier buying an EEE for a developer machine :P Jul 27 12:55:46 Hahaha Jul 27 12:56:06 Fantastic Jul 27 12:56:12 Queue29, you can close eclipse without closing the emulator Jul 27 12:56:13 well it does have a 900mhz cpu :P Jul 27 12:56:16 how would i change a specific setting in the settings menu programatically Jul 27 12:56:26 How slow is it on your dev machine martin___? Jul 27 12:56:39 to boot? Jul 27 12:56:44 Yeah Jul 27 12:57:12 let's see Jul 27 12:57:12 KNY, when you start eclipse and run another app, will it then detect the running emulator and use that? Jul 27 12:57:24 yes Jul 27 12:58:10 closed to home screen took 27 seconds Jul 27 12:58:26 little longer to find a "cell signal" and a little longer to install the app Jul 27 12:58:28 you have me curious now Jul 27 12:59:01 What box are u on? martin___ Jul 27 12:59:16 it's over a year old, a q6600 Jul 27 12:59:31 guys if i wana change a setting from the settings is it simply a case of running the putInt command from this http://developer.android.com/reference/android/provider/Settings.System.html Jul 27 12:59:32 ghz, ram? Jul 27 12:59:49 stock at 4 * 2.4ghz, 4gb ddr2 800mhz memory Jul 27 12:59:51 wow Jul 27 13:00:08 AndyArmstrong, what "settings", a PreferenceActivity? Jul 27 13:00:15 that kicks the crap out of my E8400, 3ghz dual core + 8 gb ram -> 53 seconds to homescreen Jul 27 13:00:26 time to get a quad :( Jul 27 13:00:30 somethin from the locale and text settings menu Jul 27 13:00:38 ah I have no idea :) Jul 27 13:00:52 anyone got any idea? Jul 27 13:01:22 AndyArmstrong, it's better to open the settings screen for the user and let them do it Jul 27 13:01:28 not all of them can be changed programmatically Jul 27 13:01:37 id rather do this one myself Jul 27 13:01:43 martin___ linux or windows? Jul 27 13:01:45 can u just tell me how to do it Jul 27 13:01:48 cos im interested Jul 27 13:02:31 this is windows vista business (free on msdn academic alliance), but I've just learned that Steam friends chat now works properly under WINE, so yesterday I downloaded the latest ubuntu iso Jul 27 13:02:34 AndyArmstrong, just look through the Settings app code. Jul 27 13:02:34 my eee pc runs ubuntu Jul 27 13:02:43 where do i find it Jul 27 13:02:50 people always say this to me Jul 27 13:02:53 look thru the settings app code Jul 27 13:02:55 AndyArmstrong, source.android.com Jul 27 13:02:57 where can i bloomin find it Jul 27 13:03:46 can somrbody giv me the code for the settings app Jul 27 13:03:51 so i dont need to download 2.1gb of shit Jul 27 13:04:04 you can browse it online Jul 27 13:04:09 oh Jul 27 13:04:34 http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=summary this? Jul 27 13:04:45 click the "snapshot" link Jul 27 13:05:10 Hey Guys... I still don't see the emulator.. Jul 27 13:05:18 This is the output: Jul 27 13:05:18 [2009-07-27 15:04:28 - HelloAndroid] Starting activity com.example.helloandroid.HelloAndroid on device Jul 27 13:05:18 [2009-07-27 15:04:33 - HelloAndroid] ActivityManager: Starting: Intent { comp={com.example.helloandroid/com.example.helloandroid.HelloAndroid} } Jul 27 13:05:18 [2009-07-27 15:04:33 - HelloAndroid] ActivityManager: Warning: Activity not started, its current task has been brought to the front Jul 27 13:05:35 So it seems like it has started alright.. But I don't see it.. Jul 27 13:05:39 errrr Jul 27 13:05:41 do you have a phone connected via usb? Jul 27 13:05:44 martin___ that confuses me Jul 27 13:05:50 Nope i dont madis Jul 27 13:05:51 i search for settings Jul 27 13:05:54 if your phone's connected it'll launch on tha Jul 27 13:05:55 and i get a whole shitload of things Jul 27 13:05:59 weird things people have written Jul 27 13:06:01 i just wana see the code Jul 27 13:06:05 cani get a direct link plz Jul 27 13:06:05 martin___, i don't have a phone Jul 27 13:06:15 wierd. Jul 27 13:06:17 ExxKA, does the logcat tab say anything? Jul 27 13:06:21 is the emulator still on the "ANDROID" screen? Jul 27 13:06:45 Queue29, I don't see an emulator window at all.. Jul 27 13:06:58 o.O that's not normal Jul 27 13:07:01 martin___, is logcat the output I just pasted? Jul 27 13:07:19 that would be the eclipse console output Jul 27 13:07:19 AndyArmstrong, did you try clicking the snapshot link like martin___ suggested? Jul 27 13:07:44 click on the Debug tab in eclipse, and look for the LogCat Jul 27 13:07:53 KNY there is about 15 snapshot links Jul 27 13:07:54 Okay.. Just a sec Jul 27 13:08:05 AndyArmstrong the top one is the latest Jul 27 13:08:08 AndyArmstrong, so click the one that you want, which is most likely the newest one. Jul 27 13:09:45 Queue29, where is it located in the debug view? Jul 27 13:10:08 should be at the top right, you may have to click on the little window with a plus sign to add it Jul 27 13:10:22 you can go to Window/show view/other/logcat and drag it to where you want, I have it in the standard java perspective Jul 27 13:10:55 and likely it's in the DDMS perspective by default, not debug? Jul 27 13:11:21 if there is a shortage of adp1s, maybe now is the time to ebay mine with a high reserve.. Jul 27 13:11:33 for me, it was in debug by default Jul 27 13:11:45 07-27 13:07:22.893: WARN/ActivityManager(568): Launch timeout has expired, giving up wake lock! Jul 27 13:11:45 07-27 13:07:24.523: INFO/ActivityManager(568): Displayed activity com.example.helloandroid/.HelloAndroid: 11781 ms Jul 27 13:12:02 do you have emulator.exe running? :s Jul 27 13:12:13 Yeah.. Jul 27 13:12:22 I would close it and retry? Jul 27 13:12:23 But it doesn't show up.. Jul 27 13:12:28 It's in my processes though Jul 27 13:12:30 i dunno, do you have dual monitors and one isn't plugged in? Jul 27 13:12:30 I've not heard of it not appearing before Jul 27 13:12:31 okay Jul 27 13:12:34 Thanks Jul 27 13:12:38 it would show up in the start bar Jul 27 13:12:44 Queue29, nope, just a simple laptop Jul 27 13:12:51 martin___, it doesn't Jul 27 13:12:58 I'll try and restart it Jul 27 13:13:01 Thanks guys Jul 27 13:13:02 did you see a black console box when you first started it? Jul 27 13:13:05 just open a command prompt and run `adb logcat` Jul 27 13:14:08 it seems like this line is the one i want KNY Jul 27 13:14:09 System.putInt(getContentResolver(), mSettingsSystemId[i], Jul 27 13:14:09 ((CheckBoxPreference)preference).isChecked()? 1 : 0); Jul 27 13:14:34 so i presume mSettingsSystemID[i] would be like, TEXT_AUTO_REPLACE Jul 27 13:14:46 look the method up at d.android.com Jul 27 13:15:02 also, look at the manifest file for that app, you will likely need permission to do so Jul 27 13:15:43 ill just crash it and then add it in cos its easier Jul 27 13:16:06 again, you should not be trying to change settings in the background. remember what happened to all those toggle apps that got broken? Jul 27 13:16:36 unless it's exposed, you shouldn't be changing it Jul 27 13:26:57 System.putInt(getContentResolver(), "auto_replace", 0); Jul 27 13:27:01 does not work Jul 27 13:27:03 doesnt do anything Jul 27 13:27:06 even with correct permission Jul 27 13:29:19 ... Jul 27 13:29:54 why are you surprised that an unsupported hacked-together usage of a private API isn't working? Jul 27 13:30:23 because it works in their code and not mine Jul 27 13:30:26 and i pretty much copied it Jul 27 13:30:33 * KNY 's head explodes Jul 27 13:30:36 System.putInt(getContentResolver(), System.TEXT_AUTO_REPLACE, 0); Jul 27 13:30:38 that should wor Jul 27 13:30:41 end of story Jul 27 13:30:46 i dont see why that wouldnt work Jul 27 13:30:47 lol Jul 27 13:30:54 I give up Jul 27 13:30:59 i have the right permissions! Jul 27 13:31:02 i have the right code Jul 27 13:31:05 why wouldnt it work Jul 27 13:31:41 do you have the right content providers? Jul 27 13:31:57 probably not i have no idea Jul 27 13:32:40 how do i check Jul 27 13:33:00 i mean Jul 27 13:33:02 this is their code Jul 27 13:33:02 http://pastebin.com/m2b208b28 Jul 27 13:33:06 and ive just adapated it from that Jul 27 13:35:17 i mean it even returns true Jul 27 13:35:21 saying it was a success Jul 27 13:35:27 but if i go into the settings panel Jul 27 13:35:29 and have alook Jul 27 13:35:31 its not been disabled Jul 27 13:38:40 ., Jul 27 13:39:47 I expect people would like to keep their current settings of whether or not to auto text replace Jul 27 13:40:05 yes i am just making it more conveniance to change them Jul 27 13:40:12 and its also curoiosity Jul 27 13:40:22 cos i want to be able to work out how to do it for me aswell Jul 27 13:40:24 not just for other people Jul 27 13:40:30 so paleez help me make this work Jul 27 13:40:33 cos it aint doing it atm Jul 27 13:40:43 I wouldn't know as I've never done it Jul 27 13:40:57 I could give you code to turn the phone's ringer on and off / vibrate only Jul 27 13:41:07 ok go for it Jul 27 13:41:12 maybe uve got like a commit line i dont have Jul 27 13:41:24 no, it's a system service Jul 27 13:41:48 i mean Jul 27 13:41:48 System.putInt(getContentResolver(), System.TEXT_AUTO_REPLACE, 0) Jul 27 13:41:50 is right Jul 27 13:41:52 no doubt about it Jul 27 13:41:56 its what they do in their source Jul 27 13:42:10 but it does nothing for me Jul 27 13:42:13 the box stays checked Jul 27 13:42:20 when i expect it to uncheck Jul 27 13:42:56 audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); audioManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE); , ringer_mode_normal or ringer_mode_silent Jul 27 13:43:07 hmm Jul 27 13:43:10 you can do this because it's a system service, it's publicly available Jul 27 13:43:10 nah thats different then Jul 27 13:44:58 so im stuck again Jul 27 13:45:08 im told to lookup the source by KNY Jul 27 13:45:10 i do it, i copy it Jul 27 13:45:12 it doesnt work Jul 27 13:45:15 his head explodes Jul 27 13:45:18 im left stuck again Jul 27 13:50:09 what the mutha chukca am i missing from this :@ Jul 27 13:54:36 is there a general java channel on this server? Jul 27 13:55:00 i can't seem to find one besides java.de Jul 27 13:58:20 haroo - can somebody explain to me why System.putInt(getContentResolver(), System.TEXT_AUTO_REPLACE, 0) does not turn off the auto replace text setting when it should Jul 27 14:01:56 hello Jul 27 14:02:07 mpardo, ##java? you have to be registered Jul 27 14:02:21 where do I register? Jul 27 14:02:27 nickserv Jul 27 14:02:49 i'm having some troubles with my first android application. trough logcat i see that the problem is it's unable to resolve my class's superclass which is MapActivity. i imported com.google.android.maps.* and put the uses-library android:name="com.google.android.maps" in the manifest Jul 27 14:03:17 tishammer i had that some problem Jul 27 14:03:22 r u making an appwidget Jul 27 14:03:33 i think i am Jul 27 14:03:37 tishammer, you're running on the emulator? have you selected google apis in the device in launch configuration? Jul 27 14:03:38 yeah Jul 27 14:03:41 i couldnt solve it Jul 27 14:03:59 oh Jul 27 14:04:07 giv up now tishammer it cannot be solved Jul 27 14:04:17 its a bug in android 1.5 and wont be solved until donut Jul 27 14:05:42 martin___: yes, i'm running on the emulator and yes i selected google apis Jul 27 14:05:56 AndyArmstrong: you must be kidding me... android 1.5 has google maps broken? can't believe that Jul 27 14:06:16 tishammer beluieve me , u cannot correct what ur trying to do, i tried for days Jul 27 14:06:29 tishammer what are you trying to do exactly? Jul 27 14:06:54 gauntface: nothing fancy, just trying to put myself on the googlemap through gps LocationListener Jul 27 14:07:27 just in an ordinary app, no widget? Jul 27 14:07:37 its a widget Jul 27 14:07:43 starting from trivialGPS code at http://code.google.com/p/trivial-gps/ Jul 27 14:07:57 how do i know if it's a widget Jul 27 14:08:06 i'm extending MapActivity Jul 27 14:08:16 i doubt it is, when did you register your api key tishammer? Jul 27 14:08:29 months ago i guess Jul 27 14:08:41 the api key can be a problem? Jul 27 14:08:45 sorry ignore that q, yeah I just realised it wouldnt cause your problem Jul 27 14:09:02 stop wasting ur time Jul 27 14:09:05 its a bug... Jul 27 14:09:11 why wont people listen Jul 27 14:09:12 well, the key might be broken too, but i guess it wouldn't give that kind of error Jul 27 14:09:17 AndyArmstrong: ahahaha Jul 27 14:09:21 AndyArmstrong: it sounds just too weird Jul 27 14:09:30 tishammer can you post your code? and an incorrect api key would just mean blank map tiles Jul 27 14:09:36 that google is releasing android with their own apps broken Jul 27 14:09:55 gauntface: ok, i'll paste Jul 27 14:10:03 i don't know any paste-sites Jul 27 14:10:09 can you gimme one? Jul 27 14:11:29 http://pastesite.com/9198 Jul 27 14:11:32 should work Jul 27 14:14:35 tishammer have you tried just getting a mapview to display and cuttening everything else out? Jul 27 14:14:49 it'll be something stupid I just can't for the life of me think what Jul 27 14:15:12 also are you using eclipse? Jul 27 14:15:25 i bet its yes and yes Jul 27 14:15:25 yes i am Jul 27 14:15:37 no, i haven't tried to cat everything else out Jul 27 14:15:48 cut :) Jul 27 14:16:05 i'll try now Jul 27 14:16:16 ok well in eclipse in the res > layout folder Jul 27 14:16:29 you should have some .xml file there yeah or nah? Jul 27 14:16:34 yes Jul 27 14:16:40 the AndroidManifest.xml? Jul 27 14:17:03 no no no thats in res folder, i mean the res > layout folder Jul 27 14:17:16 oh Jul 27 14:17:17 yes Jul 27 14:17:19 main.xml Jul 27 14:17:23 there you go Jul 27 14:17:49 ok ill post you some stuff give me a sex Jul 27 14:17:52 sec* lol Jul 27 14:17:54 ahahah Jul 27 14:18:00 can't help you on that :) Jul 27 14:18:33 lmao Jul 27 14:18:43 gauntface im pretty sure u tried to help me on this exact issue Jul 27 14:19:09 tishammer r u tryna launch an activity which extends MapActivity from a button or something similar on a widget Jul 27 14:20:41 AndyArmstrong: how would i know that? :) Jul 27 14:21:03 ... Jul 27 14:21:07 cos ur developing the app! Jul 27 14:21:33 i know i know, i sound lame Jul 27 14:22:05 tishammer stick this in main.xml http://pastesite.com/9201 Jul 27 14:22:10 i'm extending the activity, and in the manifest i defined the app in the category LAUNCHER Jul 27 14:22:35 kk Jul 27 14:22:41 and then change your Bancopaz as http://pastesite.com/9199 Jul 27 14:23:07 AndyArmstrong I've launched a MapActivity from another Activity before, (so basically a button press) Jul 27 14:23:53 yes me too, but not from an appwidget Jul 27 14:23:55 thats the bug Jul 27 14:24:48 ooo right with you, I've not tried with that, gotta play with widgets at some point Jul 27 14:25:02 same problem Jul 27 14:25:03 yeah - and hes making a widget Jul 27 14:25:06 which means hes fucked Jul 27 14:25:08 oh Jul 27 14:25:11 its never gona work tishammer Jul 27 14:25:13 wait, i haven't changed my class Jul 27 14:25:15 listen to me... Jul 27 14:25:24 :@ Jul 27 14:25:28 ignorance is bliss Jul 27 14:25:33 AndyArmstrong, source of hope and happiness :D Jul 27 14:25:37 ok ok Jul 27 14:25:50 AndyArmstrong: be constructive... how can i workaround this? Jul 27 14:26:21 you cannot Jul 27 14:26:28 i believe there is no way to get it to work Jul 27 14:26:29 cos ive tried Jul 27 14:26:30 and tried Jul 27 14:26:32 and tried Jul 27 14:26:42 and it will be fixed when android 2.0 is released i believe Jul 27 14:28:34 gauntface: same problem it seams Jul 27 14:29:45 gggrrrrr I know there is something silly, will you be online 2nite? Ill be away from work and more able to help lol Jul 27 14:30:10 its definately doable, just something sill is being forgotten Jul 27 14:31:04 gauntface: i will be at home Jul 27 14:31:04 gauntface lol Jul 27 14:31:10 ill be waiting for ur answer as well Jul 27 14:31:10 what is 2nite for you? Jul 27 14:31:11 pleae email me it Jul 27 14:31:17 armcompservices@yahoo.co.uk Jul 27 14:31:25 i cannot see to ask any questions on the google groups beginners Jul 27 14:31:31 AndyArmstrong: you're in my xxx-animal-porn spam list now Jul 27 14:31:32 i click post but the question doesnt appear Jul 27 14:31:36 haha Jul 27 14:31:44 AndyArmstrong, new posts are moderated Jul 27 14:31:49 oh i c Jul 27 14:31:56 it doesnt appear ever tho Jul 27 14:31:59 ive sent like 3 questions Jul 27 14:32:01 none of which appear Jul 27 14:32:05 i need a solution to my System.putInt(getContentResolver(), System.TEXT_AUTO_REPLACE, 0) Jul 27 14:32:07 problem Jul 27 14:32:08 I'll be online at about 7 - 7.30pm UK time Jul 27 14:32:16 AndyArmstrong: have you tried to post to google groups? Jul 27 14:32:19 gauntface ill be waitin Jul 27 14:32:21 yes Jul 27 14:32:23 gauntface: perfect Jul 27 14:32:24 thats what im trying Jul 27 14:32:29 lol k k ill see what I can do Jul 27 14:32:33 http://groups.google.com/group/android-beginners Jul 27 14:32:34 no promises mind Jul 27 14:32:44 lol , gauntface cos its impossible! Jul 27 14:32:55 i cannot seem to post to that group... Jul 27 14:49:19 there's something i don't understand about the api key Jul 27 14:49:25 when it asks me about the host Jul 27 14:49:28 http:// host Jul 27 14:49:38 what am i supposed to put, if i want to put it in android emulator? Jul 27 14:49:41 my ip? Jul 27 14:50:15 dunno, but the emulator should have full internet access, no? Jul 27 14:50:29 yes Jul 27 14:50:31 but still? Jul 27 14:50:35 what is the http? Jul 27 14:50:44 i'm not running a site Jul 27 14:51:00 oh right, don't know Jul 27 15:32:58 <_Roman> Does anyone know of an example layout.xml file showing the way to layout a widget as described in http://developer.android.com/guide/practices/ui_guidelines/widget_design.html Jul 27 15:51:25 * @hide This doesn't work as advertised Jul 27 15:51:27 awesome, haha Jul 27 15:51:46 where's that? Jul 27 15:51:57 the source code I suppose :) Jul 27 15:52:03 yeah, MediaController Jul 27 15:52:03 * romainguy slaps self Jul 27 15:52:13 hilarious, romainguy :P Jul 27 15:53:05 I'm extending MediaController to change the L&F and to hopefully fix a bug Jul 27 15:53:12 hey romainguy, only because im curious, what does the brick permission.. allow ? Jul 27 15:53:27 alex Jul 27 15:53:36 morrildl: wrong #android :) Jul 27 15:53:42 wmealing: no clue Jul 27 15:54:03 haha, secrets secrets (re: wrong #android) Jul 27 15:55:26 getContext().sendBroadcast(new Intent("SHES_A_BRICK_HOUSE")); (found in frameworks/base/tests/AndroidTests/src/com/android/unit_tests/BrickDeniedTest.java:30) Jul 27 15:55:26 haha Jul 27 15:56:53 wmealing, here's what BrickReceiver does: SystemService.start("brick"); Jul 27 15:57:16 useful. Jul 27 15:57:22 * wmealing looks for the brick service. Jul 27 16:01:35 romainguy perhaps u can explain to me why when i execute System.putInt(getContentResolver(), System.TEXT_AUTO_REPLACE, 0) it returns true suggesting it has flipping the setting however when i check it has not? Jul 27 16:06:08 Has anyone used the emulator's port redirection? I've setup a redirection. redir list returns "tcp:10102 => 49152" and lsof shows the emulator is listening on the correct port "TCP 127.0.0.1:10102 (LISTEN)", but it's listening only on the loopback interface. Is there a way to get the emulator to listen on *:10102 instead? Jul 27 16:14:29 perhaps anyone perhaps u can explain to me why when i execute System.putInt(getContentResolver(), System.TEXT_AUTO_REPLACE, 0) it returns true suggesting it has flipping the setting however when i check it has not? Jul 27 16:22:05 how do i create a small popup menu when i select somethin from a listview Jul 27 16:22:59 using protected void onListItemClick(ListView l, View v, int position, long id) { Jul 27 16:23:11 which you can override from ListView Jul 27 16:25:04 KNY are u from east coast? cause u r up so early Jul 27 16:26:40 Hey aunn .. i was asking you about getting shell on the lIve OS.. i found .. while running the live OS press Alt-F1 and you get the shell Jul 27 16:27:25 oh ok, so it's standard linux style then ? Jul 27 16:27:32 yes Jul 27 16:27:43 cool Jul 27 16:27:44 aunn, yes, I am Jul 27 16:27:53 thx for keeping us uptodate Jul 27 16:28:24 good to know even if i am not playing with the live OS thing Jul 27 16:28:47 i see Jul 27 16:28:52 ho hum Jul 27 16:29:11 yeah so does anybody know how I can create a little menu in the middle of the screen Jul 27 16:31:34 please explain it more in detail.. Jul 27 16:32:10 ok Jul 27 16:32:19 well i basically want a menu to popup when i click an item on the listview Jul 27 16:32:24 with 2 options Jul 27 16:32:27 delete or edit Jul 27 16:32:29 thats all Jul 27 16:32:38 so, i try to update my eclipse 3.4 through its software update thing (cause i have some problem because gnome mess it up in a freaking way), anyway, the update has given me new problem! Jul 27 16:32:43 An error has occurred. See error log for more details. Jul 27 16:32:43 org.eclipse.wst.sse.ui.StructuredTextEditor.isBlockSelectionModeEnabled()Z Jul 27 16:33:20 well, here is the answer tho An error has occurred. Jul 27 16:33:31 http://groups.google.com/group/android-developers/browse_thread/thread/f4ba97f99c3b470c/f4add52447b4a06f?show_docid=f4add52447b4a06f Jul 27 16:34:29 so, i am downloading 3.5 now instead of downgrading to WST 3.0.4 Jul 27 16:34:53 i've never seen gnome mess up eclipse. Jul 27 16:34:55 AndyArmstrong: Look at the "Creating an AlertDialog" section here http://developer.android.com/guide/topics/ui/dialogs.html Jul 27 16:38:49 aunn dont believe 3.5 is supported Jul 27 16:40:01 wmealing well, not in a direct way, the other day, i have cleaned up my hd by deleting a bunch of stuff and free up about 3GB but the next day my hd is full for no apparent reason, i couldn't save anything my opera crashes without being able to save the windows session, so is with eclipse and i have issue with eclipse after that. the reason my hd is full is somehow related to .gvfs thing and i got my 3gb space when i reboot Jul 27 16:40:08 so i blame gnome for that Jul 27 16:42:26 aunn: if you know what caused it, consider lodging a bug, i'm sure that they'd like to fix that kind of problem. Jul 27 16:42:47 aunn: i rarely run systems with near no disk space.. its an interesting problem. Jul 27 16:43:32 wmealing maybe next time, i am not much of nix geek tho Jul 27 16:50:27 * rzr_ cries for help about WindowManager$BadTokenException Jul 27 16:58:38 If I extend RelativeLayout and inflate from a resource whose root element is also a RL, would I wind up with nested layouts? Jul 27 17:24:39 Hi party people.. how do ya get androidmanifest constants from code? essentially I want to get the android:versionName string outta my manifest and put it in my About box... Jul 27 17:25:29 Hi! Jul 27 17:25:45 soreachilles: I was looking for the same thing and I found it ;) Jul 27 17:25:56 whatd you do? Jul 27 17:26:07 type faste!! Jul 27 17:26:08 :) Jul 27 17:26:20 soreachilles: But I have to warn you: Typing it in Eclipse will crash eclipse.... Jul 27 17:26:24 getContext().getPackageManager().getPackageInfo(getContext().getPackageName(), PackageManager.GET_ACTIVITIES).versionName Jul 27 17:26:38 Though you can actually get around it. Jul 27 17:26:46 how did that cause Eclipse to crash? Jul 27 17:26:46 KNY: There is easier. Jul 27 17:26:58 android.R.attr.versionName Jul 27 17:27:28 when I type android.R.att in Eclipse, it tries to complete into attr and freezes.... Jul 27 17:27:32 Have to kill it. Jul 27 17:27:40 beautiful, thx Jul 27 17:27:53 So I guess I first type R.attr.versionName and then add the android. in front :) Jul 27 17:27:54 ah, because R.attr is huge haha Jul 27 17:28:23 versionName is an int? odd Jul 27 17:28:34 KNY: That's no excuse! It should maybe have a thread busy, but not impede me from typing more Jul 27 17:28:35 soreachilles, no Jul 27 17:28:48 MikHel, have you filed a bug with eclipse? Jul 27 17:28:55 ya i see.. reading the docs on it now -- i mean it is an int, it's just shifted Jul 27 17:29:22 soreachilles, the entry in R.java is an int, yes. But you use that to retrieve the value Jul 27 17:29:33 KNY: No. I just discovered this 5 minutes ago! LOL Jul 27 17:29:52 MikHel, it just finished for me Jul 27 17:30:00 and I typed it as soon as you said it freezes Jul 27 17:30:01 haha Jul 27 17:30:19 KNY: Which version of Eclipse are you running? Jul 27 17:30:26 3.4 Jul 27 17:30:49 so it ran for about 2 minutes Jul 27 17:30:53 Build id: 20090621-0832 3.4 Jul 27 17:31:07 KNY: But it did not allow you to type for 2 minutes? Jul 27 17:31:11 MikHel, of course Jul 27 17:31:24 Well I don't think it should do that.... :( Jul 27 17:31:28 but it's not like you *have* to kill -9 it Jul 27 17:31:34 Anyway, now I know I am not patient enough :) Jul 27 17:31:49 KNY: I do alt-ctrl-esc .... Jul 27 17:31:56 MikHel, it maxed my CPU for that period, so if you have a weak CPU it might chug for a week haha Jul 27 17:32:45 Hi, I am trying to use a ProgressDialog with a thread coupled to it, but somehow the dialog doesn't show, although the thread is running, and the message are being sent. http://developer.android.com/guide/topics/ui/dialogs.html#ProgressDialog Jul 27 17:33:36 KNY: My CPU is not weak.... my brain is :D Jul 27 17:33:47 It just can't wait for 2 minutes... Jul 27 17:33:50 LOL Jul 27 17:38:28 when i have 2 programs from the same author (both are signed) they can work together without asking the user? Jul 27 17:41:54 SiO2, yes Jul 27 17:42:06 SiO2, as long as they're signed with the same key Jul 27 17:43:17 isn't it an securityproblem? 1 app has acces _only_ to the phonebook, the second one only to the internet. and together they can send all my contacts to the net Jul 27 17:45:44 However, when the layout changes, it does show up (the progressDialog) Jul 27 17:47:30 KNY: How do I retrieve the string for a resource in the android.R.attr ? Jul 27 17:47:58 MikHel, I thought you were the one that figured out the easier way ;-) Jul 27 17:48:16 Well I get the attribute numerical ID. Jul 27 17:48:33 haha Jul 27 17:48:34 And trying to resolve it to a string the usual way does not work :( Jul 27 17:48:39 of course not Jul 27 17:49:03 So what's the proper way? Jul 27 17:49:10 MikHel, no idea Jul 27 18:18:20 Hi all Jul 27 18:18:29 Hi all, any 1 here can tell me a nice website with examples of GUI's ? Jul 27 18:18:36 i want to try to make with a menu like the dock in apple Jul 27 18:19:27 MikeYV, don't cross-post your questions Jul 27 18:19:56 KNY: sorry, but after i posted my question, i found out this is the dev chan Jul 27 18:20:07 are you asking about Android GUIs? Jul 27 18:22:43 no, i want to create an app, with a menu like that :) Jul 27 18:22:48 not necessary Jul 27 18:24:16 if it's not Android related, why are you asking in the #android channels? Jul 27 18:25:16 thats is a circumstance that is inevitable on IRC Jul 27 18:25:45 KNY it will be an android app ;) Jul 27 18:26:28 MikeYV, what exactly are you looking for? how to create a dock? Jul 27 18:26:49 i want to build a menu like the apple dock Jul 27 18:27:07 if you drag over with your finger it will grow Jul 27 18:27:15 MikeYV, read through one of the Javascript implementations and then port it to Java Jul 27 18:27:25 MikeYV, or look at the Gallery widget Jul 27 18:27:31 hmmm that might be a good solution Jul 27 18:32:46 hey how do you get content out of a radio group Jul 27 18:32:51 can u get the selected item Jul 27 18:32:54 from a radio group? Jul 27 18:33:39 http://d.android.com/reference/android/widget/RadioGroup.html#getCheckedRadioButtonId() Jul 27 18:42:51 Hi guys. I have a main activity which downloads a xml and creates a List of objects representing that xml. Now, if a user clicks on a item i want to display a popup dialog (a new activity, the built-in alert won't cut it) with more info on the selected item. How can i tell the popup activity which item is clicked? i don't understand :) Jul 27 18:46:10 ok Jul 27 18:46:13 onItemClicked Jul 27 18:46:18 arg2 is the item which was clicked Jul 27 18:46:36 sorry onItemClick for the listview Jul 27 18:46:42 is called when something is clicked Jul 27 18:46:51 and the parameter arg2 is the list value clicked Jul 27 18:46:53 yes, that's fine. Jul 27 18:46:55 0,1, 2, 3, 4, 5, etc Jul 27 18:47:13 but i need to launch the other activity with an intent right? Jul 27 18:47:26 yes Jul 27 18:47:28 ud do Jul 27 18:47:44 Intent i = new Intent (Myclass.class,something here forgot); Jul 27 18:47:45 then Jul 27 18:47:52 ud use context.startIntent(i); Jul 27 18:47:55 something like that Jul 27 18:48:15 can someone tell me why this always throws a nullpointer? Jul 27 18:48:16 int gender = ((RadioGroup) findViewById(R.id.gender)).getCheckedRadioButtonId(); Jul 27 18:48:44 jasongornall dont do so much on one line Jul 27 18:48:45 break it up Jul 27 18:49:16 that isn't that much it just gets a RadioGroup casts and calls the method Jul 27 18:50:04 AndyArmstrong: ?? Jul 27 18:50:07 that line is fine :) Jul 27 18:50:33 Is there a way to make the sound of the user defined text message alert? Jul 27 18:50:40 jasongornall: anyway, it looks like it cannot find your gender RadioGroup Jul 27 18:51:06 do you have one with that ID in the correct layout xml file? Jul 27 18:55:04 which eclipse package should I be downloading? for JAVA EE Dev, for JAVA dev, or pulsar for mobile Java Developers, or another one I don't know about? Jul 27 18:57:10 simple question: does anyone know how to make the text in a button bigger (by xml means)? Jul 27 18:57:37 textSize? Jul 27 18:57:39 duno Jul 27 18:58:07 Yea lemme try it Jul 27 18:58:47 yes android:textSize Jul 27 18:59:10 Yea, but then how would u make the button larger by itself Jul 27 18:59:31 in the sp unit Jul 27 18:59:39 Height, width? Jul 27 19:00:09 well if you make the text bigger and the button's set to wrap_content it will grow itself Jul 27 19:00:25 Yea I know Jul 27 19:00:33 Not what I meant but I figured it out ^^ Jul 27 19:01:32 it has height and width attributes Jul 27 19:01:45 and the rest of these things : http://developer.android.com/reference/android/widget/TextView.html Jul 27 19:03:22 Well I was trying to alter the button's width by doing android:width="30sp" but it was kind of glitchy Jul 27 19:04:27 I think you should be using dip for ui measurements and sp for text sizes, but somebody else might be able to clarify that Jul 27 19:04:48 I just used sp for the button size and it worked Jul 27 19:05:05 I had to use larger units Jul 27 19:05:13 70 instead of 30 Jul 27 19:05:18 yeah but I think it will scale to the text size Jul 27 19:05:36 No its independent Jul 27 19:05:51 Is it a better practice to use dip for ui? Jul 27 19:06:35 They seem to do the same thing Jul 27 19:06:56 dp and dip are density independent, if you use that your UI will look the same on all screen resolutions Jul 27 19:07:21 ok Jul 27 19:09:17 Is it possible to set the colour of individual words in a textView? Jul 27 19:10:21 or to define certain things as clickable, I would like to be able to click names of people inside my textview Jul 27 19:11:41 I suppose you could breakdown each word into a string and set each strings color @_@ but thats the noob way Jul 27 19:12:32 is there a easy way to throw up a popup Jul 27 19:12:38 like a alert in javascript? Jul 27 19:12:56 yes a Dialog Jul 27 19:14:42 also, AlertDialog Jul 27 19:16:39 <_garry_> Hi Jul 27 19:25:36 romainguy_: how can I style a specific TextView with a style that extends Widget.TextView? I know I can set the global android:textViewStyle via my theme, but I want to only apply this style to a handful of TextViews Jul 27 19:26:27 I've tried android:theme and android:textViewStyle on my TextView and neither seems to be working Jul 27 19:26:40 did you try style="" ? Jul 27 19:26:50 yeah, xml error though Jul 27 19:26:53 no android:style Jul 27 19:27:00 it's not in the android namespace Jul 27 19:27:18 just 'style=""' Jul 27 19:27:32 ahhh....thanks KNY Jul 27 19:29:00 Question guys. I'm using the maps API, with some success, but I'm sharing work with other developer.s How do I setup the app signing in a way that all developers can access the MapView under the same API key? Jul 27 19:29:06 Do I just send around my debug keystore? Jul 27 19:29:13 kenleycapps: yep Jul 27 19:29:14 (since the app was signed on my machine) Jul 27 19:29:17 k Jul 27 19:29:21 just share the debug Jul 27 19:29:26 and get another key for debugging Jul 27 19:29:34 aren't the debug keys all the same? Jul 27 19:29:51 KNY, I thought they were. I'm a little new to the app-signing world. Jul 27 19:29:58 But I signed it in a standard fashion Jul 27 19:30:01 KNY: no Jul 27 19:30:09 I thought the one generated by android is the same Jul 27 19:30:09 ah Jul 27 19:30:38 <_garry_> are there any decent books on getting started with Android 1.5 development out yet? Jul 27 19:30:38 There's a private key incorporated that ties into something unique to your machine, I suppose Jul 27 19:31:02 kenleycapps, it's not unique to your machine AFAIK Jul 27 19:31:21 I believe keys are just randomly generated and you password-protect them Jul 27 19:31:24 hm Jul 27 19:31:26 yeah Jul 27 19:31:40 and so the key is retrieved out of the keystore, identified by the password? Jul 27 19:31:54 I back(ed) up my signing key on a server and flash drive Jul 27 19:32:06 well, the key is encrypted using your password(s) Jul 27 19:33:23 _garry_, look up mark murphy and ed burnette Jul 27 19:35:47 <_garry_> tnx Jul 27 19:37:14 is it possible to create composite keys in SQLite? Jul 27 19:45:19 martin___: I don't know SQL terms well enough, but I have done a lot with SQLite databases, what exactly do you mean by composite keys? Jul 27 19:45:47 a unique index created from two or more of the table's fields Jul 27 19:46:04 you can specify unique columns Jul 27 19:47:53 martin___: so in the groups table of the contacts database, here's what they do: http://pastebin.ca/1509237 Jul 27 19:49:53 the sqlite syntax for add constraint is the same as in sql? Jul 27 19:50:14 oh, you can't add constraint Jul 27 19:50:33 martin___: this is my favorite document for when I write sqlite commands: http://sqlite.org/lang.html Jul 27 19:52:04 funky diagrams, that's a good way of representing the commands Jul 27 19:52:42 and from the diagram it seems you may have composite keys, you just can't alter table and add them Jul 27 19:52:44 martin___: it's a state diagram Jul 27 19:55:56 where can i go look for the log for this channel? Jul 27 19:57:30 ah nvm, i have my own log Jul 27 19:58:39 aunn: I don't think anyone is allowed to have a bot to keep logs for this channel Jul 27 19:59:14 ok, thx. but pidgin log the stuff for me tho :) Jul 27 19:59:15 aunn: essentially, they don't want it posted online Jul 27 19:59:51 that's a good thing Jul 27 19:59:56 aunn: I'm just letting you know why it is hard to find logs :) Jul 27 20:02:29 i was looking for the conversation KNY suggesting on _Auron yesterday cause i have the same issue. Jul 27 20:02:46 but good thing, i find it in my log Jul 27 20:02:47 ? Jul 27 20:02:50 http://developer.android.com/guide/topics/manifest/activity-element.html#lmode Jul 27 20:03:00 ah yeah Jul 27 20:04:02 actually, i have two apps, their setups are about the same but one is behaving like _Auron_'s app Jul 27 20:04:23 don't know what triggers it Jul 27 20:37:19 weird, i saw that only one was misbehaving yesterday. now they both are misbehaving today, oh, well, that's better, there is no discrepancy between them then. thx KNY and _Auron_ for that conversation, otherwise, i dunno how long i will be struggling with it. i just need to use android:launchMode="singleTask" ;) i have read that section before but i only get it now :) Jul 27 20:37:35 haha Jul 27 20:37:39 glad to be of service Jul 27 21:01:02 * mr_lou goes to bed Jul 27 21:01:14 G'nite all Jul 27 21:09:13 Anyone know how to either make the regular buttons look better or how to create custom buttons? Jul 27 21:09:35 mosquito: yes, through