**** BEGIN LOGGING AT Thu Jul 02 10:34:15 2009 Jul 02 10:52:36 anyone know if theres a way to prevent an app from leaking data/services acquired using a security permission? or is it the case that once an apps given a permission, its up to the programmer to keep that data secure? Jul 02 11:27:12 hi all, can anyone help to why i am getting null error on the button listener ? - http://pastebin.com/m401c3ea0 Jul 02 11:40:36 Anyone who has managed to debug native JNI code ? Jul 02 11:50:14 Anyone who has managed to debug native JNI code ? Jul 02 11:55:19 Hi, how can i close my appliction? activity.finish() close only the activity Jul 02 12:09:02 hi ! Jul 02 12:19:19 hi Jul 02 12:19:37 can anyone help me to understand what a context is Jul 02 12:25:25 johnnyzen: seen that ? http://developer.android.com/reference/android/content/Context.html Jul 02 12:26:27 hi didou, yes read it: "Interface to global information about an application environment." - find it heard to understand. need more laymans terms. Jul 02 12:30:22 it provides information about the envirment the application is running in Jul 02 12:31:42 application evironment ? Jul 02 12:32:14 the activity ? Jul 02 12:32:40 the application Jul 02 12:32:51 getApplicationContext() for instance will return a Context Jul 02 12:32:57 "this" may also be a context Jul 02 12:35:26 think my mind isnt very capable. i mastered what "this" means, then I forget. (too many drugs ??) Jul 02 12:35:43 or too few? :S Jul 02 12:37:20 johnnyzen: a "context" is Androids name for what is basically a dumping ground of useful stuff to interact with the operating system Jul 02 12:37:36 johnnyzen: if you have a context object, it means you can do stuff like show a dialog box, or talk to some service (like the location tracker) Jul 02 12:37:44 if you don't have a context, you can't do those things Jul 02 12:38:17 johnnyzen: as it happens, Activity inherits from Context. So if you're writing an activity, you have access to those features via that Activity object. Jul 02 12:38:20 ditto for Service Jul 02 12:38:54 if you're writing, say, a drop in java library for a physics engine or something, then it's just a bunch of regular java classes so that code won't have access to a context unless you deliberately give it one Jul 02 12:39:03 clear? Jul 02 12:40:38 How can i close my application with java? Jul 02 12:41:40 TD: hmmm no not really, sorry Jul 02 12:42:32 hm, do you understand classes, objects and inheritance? there are some good tutorials on java.sun.com if you need a refresher Jul 02 12:43:38 TD: Yes I just about understand those. Jul 02 12:44:35 context is just a class Jul 02 12:44:54 look at the docs, http://developer.android.com/reference/android/content/Context.html Jul 02 12:44:59 ignore the name and description. just look at what it provides you. Jul 02 12:45:29 you can connect to other parts of the OS through it. you can get the wallpaper. Jul 02 12:45:39 you can load user preferences, etc. a real grab-bag of stuff. Jul 02 12:46:49 if you have something which inherits from Context, you can do those things. Jul 02 12:47:15 I can't close the application with System.exit(0); . how can i close it? Jul 02 12:47:48 so if I started with example - if I used "this" within a class "ExampleClass" -"this" would equal "ExampleClass" - if I did Context = "this", the context would equal "ExampleClass" ? Jul 02 12:47:52 kr1s: android doesn't have the same concept of closed or opened apps. they're always "open" from the users perspective. Jul 02 12:48:01 kr1s: read the docs in the activity class. it explains how the android app lifecycle works. Jul 02 12:48:12 kr1s: if you want to hide it, use finish() Jul 02 12:48:24 johnnyzen: well, "this" can be ExampleClass, and Context and anything else it inherits from Jul 02 12:48:34 i want to destroy the application Jul 02 12:48:40 johnnyzen: like, you can just write "Drawable d = this.peekWallpaper();" and it'll work Jul 02 12:48:45 kr1s: no you don't; that's not how Android works Jul 02 12:48:52 kr1s: finish() will close the activity Jul 02 12:50:15 TD: Thanks, I will use logcat to examine some contexts and this to see if it becomes clearer :) Jul 02 12:50:35 zinx: if all activities are "finished", the application still apears in the "Recent Application" view Jul 02 12:50:52 kr1s: yes, because you used it recently Jul 02 12:50:58 it's not a list of running apps Jul 02 12:51:28 ^^ Jul 02 12:51:47 plus, you're not supposed to care when your app actually exits :/ Jul 02 12:51:52 Android manages that Jul 02 12:53:05 with ps on the shell the application is also open Jul 02 12:54:22 it's probably empty, unless you're pinning it with a service or something Jul 02 12:54:29 that means it's being kept around as an optimization by the system Jul 02 12:54:35 eventually it'll quit by itself Jul 02 12:54:53 kr1s: again, it does not matter, that's how android works Jul 02 12:55:23 kr1s: you can't exit, just make sure all your threads are gone/etc and live w/ it :/ Jul 02 13:02:05 hiya Jul 02 13:02:37 i am trying to change the colour of specific entries in a listview Jul 02 13:02:42 how would i go about doing that Jul 02 13:04:12 :@( Jul 02 13:08:26 hey anyone? Jul 02 13:08:54 I don't think "anyone" is here, but hey nevertheless Jul 02 13:08:58 :P Jul 02 13:16:36 hiya sammy Jul 02 13:16:49 mabe u can help me, i am tryng to change the colour of specific entries in a listview Jul 02 13:19:30 ArmyAndy: sigh. i'd love to, but that's not really my field I'm afraid. I'm writing games so I don't use much of the standard API Jul 02 13:20:08 :'( Jul 02 13:20:17 nobody knows the answer to my question Jul 02 13:21:38 how are you drawing the listview? Jul 02 13:25:21 hi Jul 02 13:26:48 Hey guys, I'm working on a theme and trying to change the time on the top right to white (default is black), any hints/links on the location of it? Jul 02 13:30:02 sammyF perhaps you would be more knowledgeable on keyeventlisteners Jul 02 13:30:09 i am trying to catch the return key on a webview Jul 02 13:30:22 when they hit return i wana set the view's visibility to gone Jul 02 13:30:43 http://pastebin.com/m3b710b2c Jul 02 13:30:48 however. that isnt doing it! Jul 02 13:32:00 ArmyAndy: KeyListeners are pretty easy to implement Jul 02 13:32:12 the code i have aint working though Jul 02 13:32:18 it simply exits theapp when i hit return! Jul 02 13:33:01 ArmyAndy: you're overriding onKeyDown? Jul 02 13:33:20 sorry ... missed the pastebin Jul 02 13:33:22 one sec Jul 02 13:33:23 the class thats in implements onKeyListener - and i set the keylistener to that class Jul 02 13:34:48 ArmyAndy: did you try to trace which line kills your application? Jul 02 13:35:37 well it doesnt crash.... Jul 02 13:35:42 it just exits the app Jul 02 13:36:49 it doesnt even enter my keylistener Jul 02 13:37:19 On a completely different note : anybody ever heard of NetDragon Websoft? Just received an email from them about localizing two of my games to chinese to release it on their market oO Jul 02 13:37:30 ArmyAndy: that's weird Jul 02 13:37:44 no i havent Jul 02 13:38:33 ArmyAndy: nothing in logcat I presume? Jul 02 13:38:47 nout Jul 02 13:39:09 so i setOnKeyListener Jul 02 13:39:17 to that class and method Jul 02 13:39:24 the class obv iplements the interface Jul 02 13:39:28 but it doesnt get calle Jul 02 13:39:36 this is for a webview - wuld that make any different Jul 02 13:39:40 **difference Jul 02 13:39:52 ArmyAndy: a complete shot in the dark, but do you request focus? Jul 02 13:40:22 no, but i dont think thats the issue Jul 02 13:40:26 ill try Jul 02 13:40:26 one sec Jul 02 13:41:44 so what games r they wanting u to convert sammy Jul 02 13:41:46 aint seen any of ur apps Jul 02 13:42:13 haha u legend! thats fixed itr Jul 02 13:51:49 anyone know if there is a custom NumberPicker example floating around ? Jul 02 13:52:39 you mean like, a number randomizer? Jul 02 13:52:50 bah, i wouldnt know either way.. sorry :P Jul 02 13:53:14 well custom widget.NumberPicker Jul 02 13:53:25 (in the alarm clock) Jul 02 13:57:16 <_Roman> I am just starting out with android and could do with a few tips with layout. I have a linearlayout which has multiple linearlist items (with child objects inside). The second linearlayout contains are like my list items. I would really like to have the list item definition in it own xml file and be able to populate the outer linearlayout with my list items dynamically from code. Can anyone tell me how to do this? Is this the correct methodology? Jul 02 13:57:56 <_Roman> s/multiple linearlist/multiple linearlayout/ Jul 02 13:59:15 bleh .. Sorry. xChat never realized I had lost my connection Jul 02 14:02:45 irssi over screen rulez Jul 02 14:09:37 quassel rules them all Jul 02 14:09:45 just wish there was an android client :( Jul 02 14:10:00 so true Jul 02 14:10:16 creating an android client would be no easy task Jul 02 14:10:32 nah.. it's all built on qt Jul 02 14:10:49 exactly, the network communication basically uses serialized Qt objects Jul 02 14:11:13 yeah.. would be lovely.. but not gonna happen in my lifetime Jul 02 14:11:21 supporting that on android (in java) would be an awful hack hah Jul 02 14:12:01 they just need a web ui for the core Jul 02 14:12:25 when the plugin support is added (and works) then maybe Jul 02 14:19:21 what's the easiest way for my activity to get a reference to the String[] I've created in res/values/strings.xml? Jul 02 14:20:39 it's possible I'm just failing Java101 here too. This is what I'm trying to do "this.outcomes = Context.getResources().getStringArray(R.array.outcomes);" Jul 02 14:29:05 nevermind, I didn't realize getResources came for free in my Activity. Jul 02 14:34:11 guys, any (working) examples on how to draw a bitmap on another ? Jul 02 14:34:19 like adding a play icon for a video thumbnail Jul 02 14:38:18 download anycut Jul 02 14:38:24 the source code is available on google code Jul 02 14:38:29 it does thata Jul 02 14:38:36 # Jul 02 14:41:04 thanks Jul 02 14:49:28 got it working, I was missing a call ... Jul 02 14:49:31 6 days Jul 02 15:06:01 hello all Jul 02 15:06:17 anybody here with experience building web apps on WebView? Jul 02 15:14:28 well anyway, I seem to have a runaway thread in webview Jul 02 15:14:30 any takers? Jul 02 15:18:59 alternatively, it appears that i can run two separate processes of the same app at the same time Jul 02 15:19:11 although ddms does not show it Jul 02 16:02:56 is there a way to disable autocomplete (t9 like thingie) in the ime? Jul 02 16:14:00 is it possible it modify the PYTHONPATH on the device when using ASE? Jul 02 16:14:43 I can specify android:inputType="textAutoComplete" and this disabled the autocorrect (or how is it called?) thingie but this seems like an hack to do it Jul 02 16:15:14 there's a flag "textAutoCorrect" but no flag for "textAutoCorrectOff" or something like that :) Jul 02 16:15:32 or.. I just don't see it? Jul 02 18:06:24 does anyone know how to ping a server from android? Jul 02 18:07:19 I want something that will be able to easily tell if the app's server is down, or if we have no receptioin, so that I can notify the user that my app can't connect Jul 02 18:08:13 meanburrito920_: just try to open a socket to it Jul 02 18:08:44 cjb, ah, good point. thats in android.http, correct? or is it in org.apache.http? Jul 02 18:09:19 dunno, new at this :) Jul 02 18:10:34 ah, nevermind. its java.net.Socket Jul 02 18:11:19 Hi, what is the difference between (1) adding a first view using setContentView() and put a second upon this using addContentView(), and (2) using a FrameLayout to stack two views over another? Jul 02 18:11:32 <_annex_> is there a handy way to restart the current activity? aside from creating a new Intent and calling startActivity() Jul 02 18:12:24 how can I use onOptionsItemSelected(MenuItem item) to menu items pulled from xml? Jul 02 18:12:36 using inflater Jul 02 18:12:58 just compare the ID Jul 02 18:14:55 how? Jul 02 18:15:30 inflater.inflate(R.menu.options_menu, menu); Jul 02 18:15:56 if (item.getId() == R.id.my_menu_item) {do something} Jul 02 18:19:12 beautiful, thank you Jul 02 18:19:26 :) Jul 02 18:38:22 does anyone know how to have a View appear only if there is no other views present in a list view? Jul 02 18:38:27 sorta like a default view? Jul 02 18:38:45 it's called the empty view Jul 02 18:38:50 there are several examples out there Jul 02 18:38:53 and you can check out the javadocs Jul 02 18:39:51 romainguy__ k, thanks Jul 02 18:40:09 I knew there was something, I just didnt know how to phrase my search Jul 02 18:41:25 hey, the developer.android.com website is down. Jul 02 18:41:32 anyone know how long it will be down? Jul 02 18:41:37 it doesnt look intentional Jul 02 18:41:49 but anyone in here that works at google might want to look into it Jul 02 18:42:18 oh yeah Jul 02 18:42:19 hmm Jul 02 18:43:21 ah well. cached pages work well enough for me. unfortunately, google doesnt fix the internal links, so I you cant really navigate :( Jul 02 18:43:38 we're aware of the issue Jul 02 18:43:52 note that d.android.com is also in the SDK Jul 02 18:44:51 romainguy__ oh right. thanks :) any idea how long it should be down? Jul 02 18:45:10 no clue Jul 02 18:48:02 awesome. looks to be back up Jul 02 18:48:06 a bit slow though... Jul 02 18:48:18 I mean, on the page loading, not on the getting it back up Jul 02 19:12:19 meanburrito920_: http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/f7596d1d0bd0f0f9 Jul 02 19:14:17 morrildl, developer.android.com is on the app engine? Jul 02 19:16:35 meanburrito920_: yup Jul 02 19:24:54 i have a set of 10 images in drawable. how do i bring the next image into view on image click? Jul 02 19:25:34 Gallery Jul 02 19:25:45 k,ty Jul 02 19:26:08 is it possible to have my white board on top of the image? Jul 02 19:26:50 anything is possible Jul 02 19:27:15 wait, with gallery i dont want the next image to be shown. i want the image full screen when clicked the next is brought to front Jul 02 19:27:25 is that still gallery impl? Jul 02 19:27:41 not really Jul 02 19:27:55 can u explain Jul 02 19:28:04 just put on OnClickListener on the ImageView and change the resource when clicked Jul 02 19:29:10 ok, i see how i can do it now ty! Jul 02 19:30:05 ill se the onclick for the image which will take it to the next R. then set the onclick for that img with the next R. perfect, ty again Jul 02 19:30:44 <_Auron_> uh. Jul 02 19:31:07 <_Auron_> does anyone know how often onDrawFrame is called in GLSurfaceView? Jul 02 19:49:45 Hello all. I have some trouble contacting the eclipse plugin update site. Does anyone know of an official mirror, or an ETA for the service restoration? Jul 02 19:51:10 <_Auron|G1_> laocoon what are you trying to do? Jul 02 19:51:38 Auron: Just updating the plugin I installed with the archived site. Jul 02 19:51:54 The url (https://dl-ssl.google.com/android/eclipse/) gives a "Not found" error for the moment... Jul 02 19:51:56 Laocoon: I think there's app engine downtime right now, being worked on. Jul 02 19:52:07 <_Auron|G1_> take out s in https Jul 02 19:52:35 <_Auron|G1_> should work then Jul 02 19:52:49 Auron: same for http://dl.google.com/android/eclipse/ and http://dl-ssl.google.com/android/eclipse/ Jul 02 19:53:00 <_Auron|G1_> oh, weird Jul 02 19:53:30 <_Auron|G1_> I know I had a problem getting it to work when I started coding for android Jul 02 19:55:07 Bah, I'll wait then, I'll start working with the archived one for the moment, hoping there's not important update. Jul 02 19:55:10 Thanks Auron! :) Jul 02 19:55:36 <_Auron|G1_> np, hope it works for you soon Jul 02 20:02:41 Hope so! :) Jul 02 20:02:51 Have a good day/evening/night! Jul 02 20:13:41 for java projects why does eclipse insist that "projects located in the workspace folder must be direct sub folders of the workspace folder"...annoying requirement Jul 02 20:15:18 zhobbs: just use a symlink and tell eclipse to f off Jul 02 20:15:37 guess so... Jul 02 20:23:17 symlinks in eclipse are lame ;\ Jul 02 20:32:18 is there a way to broadcast an intent from the shell? Jul 02 20:32:47 try with adb shell am Jul 02 20:33:14 k, thanks Jul 02 21:21:05 Hi all Jul 02 21:40:07 hey everyone! Jul 02 21:40:09 its happy andy! Jul 02 21:40:18 armed with my same old question! Jul 02 21:40:34 how the whipping heck do you change the background colour of a specific entry in a listview! Jul 02 21:40:57 andy: i don't mean to be jerk, but if after 2 days you haven't figured that out you're in the wrong profession Jul 02 21:41:27 hehe Jul 02 21:41:28 jasonlee: he didn't say he was a professional :) Jul 02 21:51:25 jasonlee: that's jasta's line! Jul 02 21:51:56 thanks cjb Jul 02 21:52:01 jasonlee fuck off! Jul 02 21:52:11 i have lots of things i do and solve Jul 02 21:52:14 and this i cannot work out Jul 02 21:52:22 how about you show me ur professional side and tell me how! Jul 02 21:52:29 AndyArmstrong: look at ApiDemos. Jul 02 21:52:33 they do this Jul 02 21:52:34 AndyArmstrong: do you know how to make a list adapter? Jul 02 21:52:41 yes Jul 02 21:52:44 i am using an arrayadapter Jul 02 21:52:45 andy: i've seen others try and fail, i have real work to do, so i'd rather not waste my time Jul 02 21:52:47 to populate the list Jul 02 21:52:58 AndyArmstrong: not *use* a list adapter, but make one Jul 02 21:53:23 gah, english descriptions and pernickety grammer Jul 02 21:53:24 yes Jul 02 21:54:04 ok, so... Jul 02 21:54:14 so, for the row that is a different color just set the background color in the getView() method Jul 02 21:54:14 I'm trying to link some text to a terms and conditions page. I was planning on using Linkify, but I need to find a way to force Linkify to not append the linked word onto the end of my url, because that wouldnt make for a valid url Jul 02 21:55:11 so, adapter.getRow(val).getView().setBackground? Jul 02 21:55:52 AndyArmstrong: what is getRow()? I mean in your custom adapter, in your implementation of getView or bindView() depending on what class you extend Jul 02 21:56:18 im so confused, i have an instance of arrayadapter Jul 02 21:56:25 which populates my ListView class Jul 02 21:56:30 i dont extend or implement anything Jul 02 21:56:49 that's your problem Jul 02 21:56:58 ... Jul 02 21:57:00 surely, adapter2.getView(position, convertView, parent) Jul 02 21:57:08 somethign like that would work the same though Jul 02 21:57:15 adapter2 being my arrayadapter Jul 02 21:57:21 AndyArmstrong: see how to make a list adapter in ApiDemos Jul 02 21:57:25 and then use the returned view and change it Jul 02 21:57:29 no Jul 02 21:57:37 you should never call an adapter's getView Jul 02 21:57:39 what, why Jul 02 21:57:53 why is it even a function which can be called then Jul 02 21:58:00 because ListView calls it Jul 02 21:58:06 oh right i see Jul 02 21:58:26 im assuming it would work though Jul 02 21:58:28 ApiDemos has many list examples... Jul 02 21:58:31 yea Jul 02 21:58:40 but nothing which changes specific entries background colours Jul 02 21:58:45 nobody anywhere seems to have done it Jul 02 21:58:48 or be able to say how Jul 02 21:58:54 they change specific entires text or icons, what would be different? Jul 02 21:58:54 listadapter i have trid and failed Jul 02 21:59:32 no idea, they always do it in an xml based layout Jul 02 21:59:32 which is not what i want Jul 02 21:59:49 i dont want to change the design , i dont want to use a list adapter, they are hugely overcomplicated and not enough decent documentation on them Jul 02 21:59:58 what i have works Jul 02 22:00:11 and im sure, there is a way to do what i want using an arrayadapter popuulated the list Jul 02 22:00:25 it makes no sense to *have* to use a listadapter simply to change a list's background colour Jul 02 22:00:54 list adapters are simple Jul 02 22:01:16 you will not get far in android without being able to whip up list adapters Jul 02 22:02:28 well you could if you never use lists ;P Jul 02 22:02:39 ha, ok true Jul 02 22:04:05 no im determined that its simply not true that i must use a listadapter Jul 02 22:04:17 when ive coded it perfectly using an arrayadpater somebody from this very channel told me to do Jul 02 22:04:27 so im going to use the getView method which i *shouldnt* use and try it that way Jul 02 22:04:38 lol, enjoy Jul 02 22:04:40 cos i presume that will return me a textview, which is what i want Jul 02 22:04:48 cos then i can change its bg Jul 02 22:05:20 hi all, does anyone know how to concatenate integers ? so 56,45 becomes 5645 ? Jul 02 22:05:53 String.valueOf(int) Jul 02 22:06:04 yes Jul 02 22:06:09 turn them into strings Jul 02 22:06:19 silly billy Jul 02 22:06:26 hmm but I also need the final result to be a integer Jul 02 22:06:45 ho hummmm, i dont knwo how im gonna use adapter2.getView(position, convertView, parent) because i dont know what convertView and parent should be, or what id pass to them Jul 02 22:06:47 :'( Jul 02 22:08:03 johnnyzen: Integer.parseInt( String.valueOf(blah) + ..) Jul 02 22:08:11 johnnyzen: there may be a better way to do it though Jul 02 22:08:55 using math instead of strings Jul 02 22:09:25 thanks guys :) Jul 02 22:11:26 ok, zhobbs so id use a list adapter because i programatically specify a new textview for instance giving me the direct ability to modify details about the textview? Jul 02 22:11:58 iperfect zhobbs :) Jul 02 22:12:07 yes, you would create the View for the row, and modify it based on the position in the list Jul 02 22:12:39 hmmmm Jul 02 22:12:59 so i create a listadapter in my code where i am currently creating the arrayadapter Jul 02 22:13:18 or at least modify the listadapter which has been created i.e pass it my 3 arrays for its contents Jul 02 22:13:32 again, just spend some time studying all the lists in APIDemo instead of wanting instant results Jul 02 22:14:02 i cannot ever find said demos Jul 02 22:14:12 they're included with the SDK Jul 02 22:14:38 android-sdk/platforms/android-1.5/samples Jul 02 22:15:06 this? http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/view/List8.html Jul 02 22:15:29 build and run ApiDemos from eclipse, try out all the different ListViews and look at the code behind them Jul 02 22:17:49 hmm I better try here Jul 02 22:17:52 I have created a db on my emulator Jul 02 22:17:56 how do I find where that is on my fs? Jul 02 22:18:00 as in, not through the emulator, just through bash Jul 02 22:18:37 adb shell Jul 02 22:18:50 then it's in /data/data//databases Jul 02 22:20:31 hmm Jul 02 22:20:38 I cannot find my db :( Jul 02 22:20:46 I may not have created it afterall Jul 02 22:29:11 oh wow Jul 02 22:29:21 look at all these amazing api demos, only just released how to run em => Jul 02 22:29:30 ignorant bliss Jul 02 22:39:34 ahh my app is badly designed Jul 02 22:39:39 i ony have one activity for the whole thing Jul 02 22:39:53 am quite confused with how i instantiate a new activity Jul 02 22:40:01 something to do with intents Jul 02 22:40:56 mm so i understand the best way to create databases for an application is to include it in the code? Jul 02 22:43:01 yes!? Jul 02 22:43:04 how else would u do it? Jul 02 22:43:38 so Jul 02 22:43:42 everytime my application runs Jul 02 22:43:56 it needs to check if the database and all the tables already exist? Jul 02 22:45:05 or is their some type of installation process that will do that once? Jul 02 22:47:58 you could set a preference variable Jul 02 22:48:07 so first run you try detect if its variable has bene set to true Jul 02 22:48:13 if you get null then you install Jul 02 22:48:16 and set to true Jul 02 22:48:26 then next time, it will return true - so you know its been done Jul 02 22:48:32 titefuzz: check out android.database.sqlite.SQLiteOpenHelper Jul 02 22:51:25 I understand that Jul 02 22:51:45 but it hought there would be a better way than running it everytime my application starts Jul 02 22:51:50 i like AndyArmstrongs idea Jul 02 22:58:33 titefuzz theres probs lots of ways of doing it, i dont even use the db cos i found it confusing and i didnt really need it Jul 02 22:58:40 thats how *ID* do it if i needed to Jul 02 23:00:32 titefuzz: you don't have to run it everytime, whenever you need to open your database, you'd call getWriteableDatabase, and if didn't exist, it would then call onCreate, which would init/create your db if you implement it properly Jul 02 23:01:05 no, I mean i would have to at least check everytime Jul 02 23:01:08 that it exists Jul 02 23:01:17 this class handles it for you Jul 02 23:01:22 how else would you do it? Jul 02 23:02:45 it would save performance if it did it once on install Jul 02 23:02:49 not everytime the program runs Jul 02 23:03:10 how would I override the way EditText gets user input, aka I want the user to only be able to enter so many characters Jul 02 23:03:13 it doesn't do it everytime the program runs, it does the check everytime you try to open the db Jul 02 23:03:56 yeah, jasonlee so thats everytime the program runs Jul 02 23:04:04 hes saying he wnts a lighter weight check Jul 02 23:04:08 a boolean preferance value Jul 02 23:04:49 andy: that's silly, there's no law that says you have to create a db connection every time your app starts Jul 02 23:05:01 yes of course Jul 02 23:05:05 but if your app has a db Jul 02 23:05:14 then it your app will need to access it when it runs at some point Jul 02 23:05:19 regardless of when it happens Jul 02 23:05:30 silly argument Jul 02 23:05:43 right Jul 02 23:14:05 it doesn't do it everytime the program runs, it does the check everytime you try to open the db Jul 02 23:14:23 which would be everytime the program runs :) Jul 02 23:18:26 is it a bad idea to bind another service withing a service? Jul 02 23:23:59 so look, it's pretty straightforward, when you ask it to open the db, it's going to try, and if it fails because the db isn't there yet, then it's going to call onCreate, if you try to create some persistent variable via preferences, i think you're going to create more far more overhead than just letting the system work the way it was designed.. Jul 02 23:34:37 god dam its host in here Jul 02 23:44:04 guys - i have a listviewadapter extending baseadapter, how do i implement the thing which updates the listadapter's view of the data Jul 02 23:44:12 like setNotifyOnChange Jul 02 23:44:31 baseadapters does everything already Jul 02 23:44:44 its not implemented for me tho Jul 02 23:45:27 pardon me Jul 02 23:45:29 it is Jul 02 23:45:39 sorry Jul 02 23:45:48 i thought it was setNotify its just notify Jul 02 23:49:56 does anybody know if the msnbc logo has ever been put on a black background instead of white Jul 02 23:49:59 it always seems to be black Jul 02 23:50:01 **sorry white Jul 03 00:08:23 guys Jul 03 00:08:30 if i have a onclicklistener on a listview Jul 03 00:08:59 and behind the view i have a custom listview which has a icon and some text, how would i retrive the text member of the item which was clicked from the arg0 arguent Jul 03 00:27:43 i wish there we some examples on this stuff Jul 03 00:32:55 ((TextView) arg0.findViewById(R.id.oftextview)).getText() Jul 03 00:54:16 when your program is uninstalled, does that uninstall any databases created by your application? Jul 03 00:59:46 titefuzz: yes. Jul 03 00:59:59 except when you reinstall Jul 03 01:00:11 i mean, if the uninstall event is triggered from a reinstall, then the data is kept. Jul 03 01:00:21 otherwise, /data/data/{app} gets nukes Jul 03 01:00:23 nuked* Jul 03 01:00:38 nice Jul 03 01:23:33 http://pastebin.com/m3f2574d0 Jul 03 01:23:36 how much have things changed since that code was written? Jul 03 01:23:38 nasty **** ENDING LOGGING AT Fri Jul 03 02:59:57 2009