**** BEGIN LOGGING AT Mon Feb 16 02:59:58 2009 Feb 16 03:00:24 KNY: thx, re-trying now. Feb 16 03:00:53 KNY: I've always been a C/asm coder. Once the app printed "Success", I figured I was done, so sometimes UI work is a bit slow for me ;) Feb 16 03:01:07 haha Feb 16 03:01:11 no worries Feb 16 03:02:54 KNY: hmm, now my button is rather large, as in, the entire screen. lemme check a few things Feb 16 03:05:30 KNY: In main.xml, I have How does the name "list" relate to my ListActivity class? Feb 16 03:05:52 oh, your class should extend from Activity, not ListActivity Feb 16 03:06:28 KNY: I have a "main" class for my app, but I added a new class for my List (per some example I found) Feb 16 03:06:59 maybe this is one of my issues Feb 16 03:07:08 mfisch_home, you only extend from ListActivity if your entire Activity is just a big list Feb 16 03:07:18 since you have buttons and such, you have to extend from Activity Feb 16 03:07:21 KNY: ah... Feb 16 03:07:30 KNY: so my list should be implemented in my Activity class Feb 16 03:07:34 and I can nuke this extra one Feb 16 03:08:21 mfisch_home, http://svn.evancharlton.com/wsvn/Mileage/trunk/src/com/evancharlton/mileage/HistoryView.java <-- class that goes with the XML I posted earlier Feb 16 03:17:56 KNY: the link helped, and big improvement now.... it segfaults or the android equiv ;) Feb 16 03:18:05 haha Feb 16 03:18:09 what's the exception? Feb 16 03:19:04 KNY: reloading the sim. do I have to restart the sim each time? Feb 16 03:19:19 no Feb 16 03:19:37 KNY: I need to read up on how to get the exception info back, hold on Feb 16 03:19:59 adb logcat Feb 16 03:20:06 looks like running debug mode helps some ;) Feb 16 03:20:35 yeah, but it usually breaks too far down so you have to do work to get to the root cause Feb 16 03:21:10 KNY: working okay now. adb is old enough tech that I understand it ;) Feb 16 03:21:21 haha Feb 16 03:22:23 KNY: hold on I need to tell my wife about this exception first Feb 16 03:22:29 KNY: it's a problem with my Zygotes Feb 16 03:22:34 haha Feb 16 03:23:32 hmm, I guess Java has pointers now, I thought all that was hidden from programmers b/c pointers were hard Feb 16 03:23:43 KNY: null pointer exception, its not getting the list back from the xml, fixing Feb 16 03:23:52 yeah, that's what the ID is for Feb 16 03:24:01 the android:id="@+id/list" Feb 16 03:24:59 if it's a list activity use android:id="@android:id/list" Feb 16 03:25:17 I was just noticing that difference between my code and KNY's Feb 16 03:25:26 romainguy, it's not Feb 16 03:25:27 @android:id/list versus @+id/list Feb 16 03:26:17 KNY: your code uses what romainguy said Feb 16 03:26:35 @android:id/list is for when your activity derives from listActivity. Feb 16 03:26:36 hooray, I have a list Feb 16 03:26:41 woot! Feb 16 03:26:48 rsteckler: you can also use it in Activity if you wish :) Feb 16 03:26:50 my button is being hidden, but I can fix that Feb 16 03:27:00 mfisch_home, oh, whoops. heh Feb 16 03:27:46 KNY: thx Feb 16 03:27:53 mfisch_home, no problem Feb 16 03:29:03 * mfisch_home declares mission accomplished Feb 16 03:29:18 did I ever tell you guys my app? Feb 16 03:29:55 romainguy: I just published my app ~2 hours ago to market. Thank you so much for all of your help in this chan over the last couple weeks. Feb 16 03:30:01 You are the f'in man. Feb 16 03:30:35 rsteckler: anytime :) Feb 16 03:30:35 3d Realms hired me to port Duke Nukem Forever to Android and my questions explain the development pace Feb 16 03:30:55 mfisch_home: wah? Seriously? Feb 16 03:31:02 rsteckler: haha no Feb 16 03:31:08 it was a joke Feb 16 03:31:20 oh - sorry. DNF. Got it. Feb 16 03:31:27 My brain is slow today. Feb 16 03:31:54 I figured my questions were basic enough to explain why DNF is taking so long ;) Feb 16 06:33:50 how do i build a URL that will send the browser to the android market app, and open the page for a particular app? Feb 16 06:39:04 donpdonp: hold on a sec Feb 16 06:41:29 donpdonp: market://details?id=yourexactmarketid Feb 16 06:41:40 or market://search?q=searchterms Feb 16 06:41:50 jsharkey: awesome! thanks Feb 16 06:42:19 not sure if youre looking for an update script, but heres one thats opensource Feb 16 06:42:25 http://code.google.com/p/connectbot/source/browse/trunk/connectbot/src/org/connectbot/util/UpdateHelper.java Feb 16 06:42:37 that one is dirt simple Feb 16 06:42:51 and there is a link to an advanced one too that tom gibara wrote Feb 16 06:43:03 ive got update covered. back when it was just an open source project. Feb 16 06:43:14 im curious as to how updated versions are handled with for-pay market apps Feb 16 06:43:36 hmm so the new market detects updates Feb 16 06:43:57 and im pretty sure its linked to the buyers gmail account Feb 16 06:43:57 yeah but does it make the user pay again? Feb 16 06:44:12 no, as long as you dont delete and recreate the app Feb 16 06:44:18 *it shouldnt at least Feb 16 06:44:23 im not sure tho Feb 16 06:44:27 pay once and updates are free forever? Feb 16 06:44:33 yeah it could go either way Feb 16 06:44:37 with updates i think it keeps the same market id tho Feb 16 07:44:37 hey, when you call contentResolver.notifyChange(uri, null, true), can the object that synchronizes the data be a non-running process? Feb 16 07:44:58 is there a way to register it via the manifest? Feb 16 07:45:03 er what? Feb 16 07:45:09 what do you mean a non-running process? Feb 16 07:45:59 if the provider is in a process that's currently not running, its process will start Feb 16 07:46:05 so, notifyChange(Uri uri, ContentObserver contentObserver, boolean syncToNetwork), is that only for system processes? Feb 16 07:47:04 basically, if there's a synchronization service I implemented, how do I get syncToNetwork to notify my service (which may not be running)? Feb 16 07:47:19 or do I explicitly have to call my service Feb 16 07:47:53 when I saw syncToNetwork, I thought there must be another way other than explicitly calling my service Feb 16 07:48:20 basically, can I specify a ContentObserver via the AndroidManifest? Feb 16 07:49:08 or do I not completely understand what syncToNetwork is for? Feb 16 07:49:50 romainguy: am I making sense? Feb 16 07:50:57 romainguy: I implemented my own provider, and I was wondering when I call notifyChange if I could get it to notify my currently non-running service Feb 16 07:51:04 without explicitly calling the service Feb 16 07:51:09 since I want to keep it abstract Feb 16 07:51:17 this has nothing to do with syncToNetwork Feb 16 07:51:43 you service will have to have a content observer registered Feb 16 07:51:53 I don't know how this affects non-running services Feb 16 07:52:45 syncToNetwork If true, attempt to sync the change to the network. Feb 16 07:52:59 what network does it say to try and sync to? Feb 16 07:53:04 or is there a way for me to specify? Feb 16 07:53:17 forget about syncToNetwork Feb 16 07:53:22 ok Feb 16 07:53:27 that was my question then Feb 16 07:53:42 forget it and explicitly call my syncing service Feb 16 07:54:00 or via a broadcast Feb 16 07:54:45 romainguy: ok, so how do I register a content observer if the process isn't running Feb 16 07:55:27 the only times I've seen content observers registered is programatically, not via the AndroidManifest Feb 16 07:55:42 so if the service isn't running, how does it get registered? Feb 16 07:59:05 screw it, I'm going to bed Feb 16 08:10:35 thanks for the help though romainguy Feb 16 08:11:34 anyone know how to use state for a drawable on a map overlay? Feb 16 08:12:01 state for an overlayitem even Feb 16 08:13:20 or should i just remove it from the loaded overlayitems, invalidate and draw again? Feb 16 08:15:07 morning bergelin Feb 16 08:17:06 goodnight everyone Feb 16 08:17:12 good night Feb 16 08:17:40 and one day I'll send you a present for all the headaches I've put you through romainguy :) If of course, they allow that Feb 16 08:17:55 and yet he doesn't take your address Feb 16 08:18:05 morning grantmidwinter :) Feb 16 08:18:09 :D Feb 16 08:18:31 herriojr: just publish some cool apps on Market, that's all I need :) Feb 16 08:19:21 i've published some apps, i don't know if they're cool Feb 16 08:19:34 one's definitely not Feb 16 08:19:52 my new app might be... once i sort out the sqlite datbase Feb 16 08:20:26 does sqlite still have no TOP or LIMIT? Feb 16 10:30:16 hi guys. i am really wondering why there is no easy-to-use, free pdf reader?! shouldn't it be pretty easy to port the functionality from xpdf or another gpl pdf reader? Feb 16 14:09:28 metachris: well Feb 16 14:09:37 metachris: xpdf is pretty complex and native code Feb 16 14:09:42 native code isn't well supported currently Feb 16 14:09:46 this question comes up a lot though Feb 16 14:28:47 Is there a way to distribute multiple packages? I was thinking of writing a content provider, and a separate application that used it. Would I have to distribute the application and then force users to download the provider as well? Feb 16 14:29:07 The end goal would be to have a content provider serving multiple applications Feb 16 14:29:53 Anybody knowledgeable about Android.mk and autotools based libraries ? Feb 16 14:33:33 marklar: have you checked out OpenIntents? Feb 16 14:33:44 they have stuff along that line Feb 16 14:39:03 no I haven't, do they provide a solution, or they've just done stuff like that before? Feb 16 14:48:10 digitalspaghetti: I took a look at their site and couldn't see what you were talking about, if you could elaborate that would be great :) Feb 16 14:55:58 marklar: why not just distribute the provider with the app? Feb 16 14:56:07 i don't think there's a good way to automatically handle dependencies today Feb 16 14:56:14 so if you have two apps .... one app would have to depend on the other Feb 16 14:56:35 anyone have an in date sqlite example? Feb 16 14:57:34 TD: yeah, thats looking like the best option right now, I would like to separate them if possible though Feb 16 14:58:18 grantmidwinter: what do you mean by 'in date'? Feb 16 14:58:34 as in one that's based on the 1.1 sdk Feb 16 14:59:07 ah, were there changes in the sql API from 1.0 to 1.1? I didn't think so... Feb 16 14:59:30 do you know of one of the 1.0 sdk? Feb 16 14:59:47 I used one, let me look for it Feb 16 14:59:52 cheers Feb 16 15:05:05 I can't find the one I used, sorry Feb 16 15:05:19 arg :/ Feb 16 15:05:25 I'd suggest looking at the notepad example in the SDK, it does a lot with SQL Feb 16 15:06:34 yeh i've been looking at it Feb 16 15:06:44 i think i may have found the right version Feb 16 15:06:53 the google developer site is a spaghetti maze Feb 16 15:07:11 links are screwy Feb 16 15:07:13 What I've done is create a class that has a SQLiteDatabase member, and has an internal class that derives from SQLiteOpenHelper. The SqliteOpenHelper takes care of creating and updating the database for you. Feb 16 15:07:25 yeah, so much info there :) Feb 16 15:07:59 the code in the second post here http://www.androidmobileforum.com/forums/showthread.php?p=7135 is a pretty good outline of what I've done Feb 16 15:08:09 so ... databasehelper extends sqlopenlitehelper Feb 16 15:08:10 not sure if its the exact notepad example or not Feb 16 15:08:43 grantmidwinter: the sqliteopenhelper is crucial, takes care of a lot for you Feb 16 15:09:01 what was wrong with the try/catch method? Feb 16 15:09:16 you mean for creating the DB? Feb 16 15:09:24 yeh Feb 16 15:09:30 as far as I can see, that's the main thing that's changed Feb 16 15:09:34 well, it works thats for sure Feb 16 15:09:48 but the open helper does other things for you, such as updating the database Feb 16 15:10:02 yesss i'm seeing lots of things about 'upgrades' Feb 16 15:10:18 as in you release a new version of your app, with updated table columns Feb 16 15:10:26 it automagically fixes them? Feb 16 15:10:28 I think I still use a try/catch in the onCreate() function so that I can roll back the transaction that fails Feb 16 15:10:37 well, you need to write the code to do it, but yes Feb 16 15:11:09 that could be tricky if you want to keep the data, otherwise its as simple as calling DROP and onCreate() Feb 16 15:11:48 i think i'll keep the db as simple as possible for now :) Feb 16 15:11:54 and plan to never upgrade it Feb 16 15:11:57 yeah, thats the way I went too lol Feb 16 15:12:01 sqlite is a pain in the arse :) Feb 16 15:12:21 true, but its awesome having a database on the phone Feb 16 15:12:40 even winmo has that Feb 16 15:12:51 but sqlite is pretty much the only option if you want open source Feb 16 15:12:54 so I can see why Feb 16 15:13:08 it's just a little backwards still Feb 16 15:13:09 what does winmo use? Feb 16 15:13:24 there's an embedded version of mssql Feb 16 15:13:30 they keep changing its name Feb 16 15:13:39 ah, cool Feb 16 15:14:06 this might give you a more thorough walkthrough, I didnt actually read it though Feb 16 15:14:06 http://www.devx.com/wireless/Article/40842 Feb 16 15:14:56 read that one Feb 16 15:15:02 k Feb 16 15:15:39 so a cursor is returned rather than a row array Feb 16 15:15:42 great Feb 16 15:15:47 what's a cursor in this context? Feb 16 15:15:56 sqlitecursor? Feb 16 15:16:10 I think http://code.google.com/android/reference/android/database/sqlite/SQLiteCursor.html Feb 16 15:17:07 this one actually android.database.Cursor Feb 16 15:17:09 that's odd Feb 16 15:17:18 are there two? Feb 16 15:17:28 are guys not using developer.android.com yet? Feb 16 15:17:39 google.com isn't using it yet :) Feb 16 15:17:44 well, if you get the link on one Feb 16 15:17:54 the link at the top on code just goes to the main site Feb 16 15:17:54 yeah, to lazy :) Feb 16 15:17:56 and you lose your place Feb 16 15:17:58 it's a pain Feb 16 15:18:09 ah didn't realize that Feb 16 15:18:35 some of the example code seems to link back to code as well Feb 16 15:18:46 it's hurting my brain Feb 16 15:18:52 haha Feb 16 15:19:11 so Feb 16 15:19:17 this cursor object returned Feb 16 15:19:22 is it iterable? Feb 16 15:19:25 I don't think it matters much what type of cursor you are getting, the API for accessing the data is the same afaik Feb 16 15:19:33 sorta Feb 16 15:19:39 MoveToNext() Feb 16 15:19:40 i do a count and movetonext? Feb 16 15:19:44 ok Feb 16 15:19:57 I generally do some sort of do {} while(movetonext()) Feb 16 15:20:16 and it'll return false when you hit the end i guess Feb 16 15:20:20 yup Feb 16 15:20:24 ok, i should be able to brick my phone now Feb 16 15:20:25 You can also movetoposition I think Feb 16 15:20:26 bbiab Feb 16 15:20:27 cheers Feb 16 15:20:30 haha glad I could help :) Feb 16 15:24:26 well, good morning everyone Feb 16 15:25:14 morning Feb 16 15:26:40 does the resource explorer in eclipse show databases i've created? Feb 16 15:31:25 belay my last Feb 16 15:31:30 it's only fricking working Feb 16 15:31:45 it's all sql from here on out ! Feb 16 15:42:13 by the way, has anyone noticed the layout editor in eclipse leaking memory? Feb 16 15:42:41 yes. Feb 16 15:43:07 ok, was just making sure it was reported Feb 16 15:44:22 marklar, how do i trigger a database upgrade in the helper? Feb 16 15:44:41 changing the version Feb 16 15:44:53 tried that Feb 16 15:44:57 works for me Feb 16 15:45:46 public DatabaseHelper(Context context) { super(context, DATABASE, null, DATABASE_VERSION); } Feb 16 15:45:51 I just change DATABASE_VERSION Feb 16 15:46:12 and onUpgrade gets called Feb 16 15:46:18 exactly what i went for Feb 16 15:46:24 let me see if it's being called Feb 16 15:47:18 it will get called on the first use of your database helper Feb 16 15:47:30 when you open a database from your database helper Feb 16 15:47:49 it's upgrading - something else is wrong Feb 16 15:48:01 it's probably your SQL Feb 16 15:48:11 if you have bad SQL, it will not work properly Feb 16 15:48:15 yeh, i don't see how though Feb 16 15:48:21 i just added two new text columns Feb 16 15:48:28 did you forget the comma? Feb 16 15:48:39 to separate columns Feb 16 15:48:42 that's what I do sometimes Feb 16 15:48:43 no the upgrade part completes Feb 16 15:48:51 it's when i try a query using the new columns Feb 16 15:48:58 it's throwing a useless error at me Feb 16 15:49:03 grantmidwinter: are you dropping the old table? Feb 16 15:49:03 what's the error? Feb 16 15:49:22 error inserting... Feb 16 15:49:36 no, the full stack dump, if you can provide it Feb 16 15:49:50 and you don't mind me seeing your database that is Feb 16 15:50:35 http://pastebin.com/d6cf6d87e Feb 16 15:50:58 the part it fails on Feb 16 15:51:01 is a text field Feb 16 15:51:39 grantmidwinter: What exactly are you doing in the Upgrade()? Feb 16 15:51:48 the upgrade completes Feb 16 15:51:54 this is a query after the upgrade Feb 16 15:52:08 , lat text not null, lon text not null Feb 16 15:52:13 are the extra columns Feb 16 15:52:25 are you dropping the old table and creating a new one with those columns included? Feb 16 15:52:37 yep Feb 16 15:52:56 hmm, is this on a device or emulator? Feb 16 15:53:01 device Feb 16 15:53:03 http://groups.google.com/group/android-developers/browse_thread/thread/389a6bada27498b/a9d3e7334ca5e744?lnk=gst&q=Mark+Murphy Feb 16 15:53:09 g1 commerical rc8 uk Feb 16 15:53:27 so it looks like body needs a value Feb 16 15:53:39 that's just one time Feb 16 15:53:41 i've tried that Feb 16 15:53:58 I'd recommend doing the sqlite work on the emulator because you can then actually interact with the db from the command line Feb 16 15:54:02 if any of them are strings, you need to make sure they're wrapped in quotes Feb 16 15:54:11 they're all strings Feb 16 15:54:28 initialValues.put(KEY_BODY, body); Feb 16 15:54:36 kk Feb 16 15:54:37 i wouldn't need to wrap them then would i? Feb 16 15:54:46 no, I was thinking about on WHERE clauses, etc. Feb 16 15:54:48 maybe i do? i don't really get it Feb 16 15:54:52 I don't think you need to wrap them for inserts Feb 16 15:54:54 and the number that's passed in to lat Feb 16 15:55:04 do you use a linux or mac box? Feb 16 15:55:07 is a string... String.valueOf(p.getLongitudeE6()) Feb 16 15:55:15 i'm on windows right now Feb 16 15:55:21 i can move if it helps? Feb 16 15:55:27 dont judge! Feb 16 15:55:39 no, I have to use windows too....I also do BREW development Feb 16 15:55:45 I have a VM for linux Feb 16 15:55:57 anyways, get sqlite and try testing it on your own machine Feb 16 15:56:05 i actually have sqlite Feb 16 15:56:06 :/ Feb 16 15:56:09 ok Feb 16 15:56:26 yeah, I test it on my own machine before I put my schema into my android code Feb 16 15:58:38 you have a latitude, do you need a longitude? Feb 16 15:58:45 yes Feb 16 15:59:14 maybe it is because the longitude cannot be null and you're not inserting it? Feb 16 15:59:29 you're only trying to insert title, body, and lat Feb 16 15:59:33 no longitude Feb 16 15:59:46 is that the issue? Feb 16 16:00:02 i'm extremely confused right now Feb 16 16:00:16 i just tried hardcoding the values of lat and lon to 'lat' and 'lon' Feb 16 16:00:28 02-16 15:59:46.709: ERROR/Database(23957): Error inserting title=note body=thyujki lat=lon Feb 16 16:00:32 lat=lon? Feb 16 16:00:35 well done. Feb 16 16:01:33 lat and lon are columns Feb 16 16:01:49 i know that, i wrote that bit :P Feb 16 16:01:51 initialValues.put(KEY_LAT, "lat"); Feb 16 16:01:51 initialValues.put(KEY_LAT, "lon"); Feb 16 16:01:54 kk Feb 16 16:01:56 can anyone see what i did wrong? Feb 16 16:01:57 lol Feb 16 16:01:59 it's dumb Feb 16 16:02:11 is it the same error this time? Feb 16 16:02:12 ^^ Feb 16 16:02:18 i've fixed it Feb 16 16:02:23 what was it? Feb 16 16:02:24 it was one of the ridiculous things Feb 16 16:02:35 same key? :p Feb 16 16:02:38 yeh :( Feb 16 16:02:41 eldenz wins Feb 16 16:02:47 * eldenz grabs the cookie Feb 16 16:02:48 my shame Feb 16 16:02:51 lol Feb 16 16:03:01 are you making a contentprovider? Feb 16 16:03:31 yeh Feb 16 16:03:51 if so, you want to have a _id column integer primary key autoincremented Feb 16 16:04:01 if you want it to work with a CursorAdapter Feb 16 16:04:06 _id integer primary key autoincrement Feb 16 16:04:15 already done :) Feb 16 16:05:00 oh, I see what you were talking about with the KEY thing Feb 16 16:05:06 I thought you meant your primary key Feb 16 16:05:07 lol Feb 16 16:05:12 lol Feb 16 16:05:15 see it's not that obvious a mistake! Feb 16 16:05:28 i didnt figure it out until i saw the log spit out lon=lat Feb 16 16:05:34 it's actually a known psychology perception problem Feb 16 16:05:41 oh really? Feb 16 16:05:44 yes Feb 16 16:06:02 I find it gets easier the longer you spend with a language Feb 16 16:06:13 when people read, they don't actually read the full word, they fill in the blanks Feb 16 16:06:15 in PHP it was always sodding commas or quotation marks Feb 16 16:06:35 so if you have 2 things that are similar, you fill in what you expect it to be Feb 16 16:06:37 other languages you have to look at the blank space Feb 16 16:06:50 ah of course Feb 16 16:07:16 so, you can blame it on the makeup of the human brain ;) Feb 16 16:07:24 displacing blame is always great :) Feb 16 16:53:15 when using an ActivityGroup, is there a way to force the focus on the child activity even if there is nothing in the child to focus on? Essentially, I'm trying to force the child activity's menu options to display Feb 16 17:16:30 does anyone have an example of how to use the native filtering of ListView? Feb 16 17:48:34 KNY: what exactly do you mean? Feb 16 17:49:12 oh, I know what you're talking about Feb 16 17:49:12 herrioj1, I think I'm making progress, but I was asking about the filter ability that ListView has Feb 16 17:49:19 ListView.setTextFilterEnabled Feb 16 17:52:45 I've not used it, did you try it out Feb 16 17:52:52 there's lots of functions to clear, etc. Feb 16 17:53:33 yeah, I was looking how we go about implementing our own filtering routine Feb 16 17:53:38 but I found it Feb 16 17:54:38 kk Feb 16 18:59:36 are there plans to make FastScrollView a supported widget? Feb 16 19:29:47 anyone know how to center a time picker? Feb 16 20:02:10 KNY: hola Feb 16 20:05:05 mfisch, hey Feb 16 20:06:42 KNY: conceptual question: my app will be pulling its data from sqlite db Feb 16 20:07:34 that's not much of a question, but, um... true? Feb 16 20:07:35 ;) Feb 16 20:07:45 KNY: I dont quite get how to store that data to begin with, it could be xml that i parse and make the db at runtime or compile time... Feb 16 20:08:14 mfisch, you mean you don't know how to go about setting up the database? Feb 16 20:08:30 look through the Notepad tutorial (particularly at the ContentProvider parts) Feb 16 20:08:50 KNY: compare a db to a list of strings, list of strings is just a prviate var, hardcoded in the file Feb 16 20:09:14 KNY: db will be rebuilt on each run if I store data in XML and that might be slow Feb 16 20:10:04 wait, what are you trying to accomplish? Feb 16 20:10:18 will look at notepad source, hold on, holding the baby hard to type Feb 16 20:10:57 mfisch, put it down! priorities, man! Feb 16 20:11:34 KNY: imagine a recipe app that ships with 100 recipes, lets you search by ingredient, etc Feb 16 20:11:47 okay Feb 16 20:11:50 KNY: at build time, I have the recipes already Feb 16 20:12:15 KNY: and having them in sql makes search, add, etc, very easy Feb 16 20:12:31 put that in the onCreate(SQLiteDatabase) method of the DatabaseHelper Feb 16 20:12:47 KNY: so the app rebuilds the db each time it loads? Feb 16 20:12:49 and if you add more later, put the newer ones in the onUpgrade() Feb 16 20:12:56 mfisch, no, only at install time Feb 16 20:13:05 (well, maybe first run; I'm not sure) Feb 16 20:13:09 KNY: ah, ok, thats better Feb 16 20:13:35 KNY: is the sql stuff a real db on the box? Feb 16 20:14:26 yeah, in /data/data/com.your.app/databases/foo.db Feb 16 20:14:57 KNY: ah, i thought it was maybe just a fake db in app memory Feb 16 20:15:01 KNY: thx Feb 16 20:16:15 KNY: I didnt quite get the idea of a DB embedded in an app, hence the dumb questions. Feb 16 20:16:49 yeah, sqlite is different than most database systems, since it's just a file (no server or anything) Feb 16 20:17:12 KNY: I stopped reading that word at "SQL" ;) Feb 16 20:17:52 KNY: so my code will still need to parse the recipes from a text file or some other source when I do the build or the first run Feb 16 20:18:13 KNY: or can I pre-parse the data into a SQLite format? Feb 16 20:18:29 yeah, though you could put the default ones right in the source Feb 16 20:19:18 KNY: makes sense, just a bunch of inserts iterated over my list of recipes Feb 16 20:19:33 yeah Feb 16 20:34:04 can anyone verify this: java.io.FileNotFoundException: http://www.google.com/ig/api?weather=,,,50741667,7078355 Feb 16 20:34:17 it worked since day1 in the emulator and on the G1 Feb 16 20:34:31 but from yesterday calling it from android returns this exception :( Feb 16 20:34:41 whereas it works from an desktop app/browser : Feb 16 20:34:44 o_O Feb 16 20:35:25 just go to the url with the phone? Feb 16 20:35:31 empty page Feb 16 20:35:44 I get xml when I navigate with my pc's browser Feb 16 20:36:08 me too, but it seems like it is blocked or so from T-Mobile or Google... o_O Feb 16 20:36:53 checking on the phone Feb 16 20:38:09 yeah, blank page here Feb 16 20:38:32 if it isn't proper html, the browser may not display it Feb 16 20:38:35 thx Feb 16 20:38:46 but yeah, it shows up blank via their browser Feb 16 20:39:52 some browsers do that Feb 16 20:40:02 did you check it via http in your own app? Feb 16 20:43:34 thats what causes the java.io.FileNotFoundException Feb 16 20:43:49 yeah, sorry, didn't read that when I wrote that question Feb 16 20:44:20 the browser identifies it, otherwise it would give a Page Not Found error Feb 16 20:44:47 xmlreader.parse(new InputSource(url.openStream())); Feb 16 20:45:01 but why would it suddenly stop working... Feb 16 20:45:35 honestly, I don't know Feb 16 20:46:42 cached? Feb 16 20:46:54 what http code do you get? Feb 16 20:47:12 he doesn't get anything returned, he get the FileNotFoundException Feb 16 20:47:19 so it sounds like the URL has to be screwed up Feb 16 20:47:20 well, that's a paijn Feb 16 20:47:30 paijn? Feb 16 20:47:34 pain Feb 16 20:47:38 ah :) Feb 16 20:48:07 can you change escape characters for sqlite? Feb 16 20:48:12 i don't have many ideas here Feb 16 20:48:29 what am i thinking baout Feb 16 20:48:33 kkdfhsdkljfh Feb 16 21:00:58 grantmidwinter: I'm going to have to disagree with you about "kkdfhsdkljfh" Feb 16 21:42:22 when using the intent ACTION_DIAL, you can pass in a URI like content://contacts/1 -- is it possible to do this for ACTION_SENDTO (for sending SMS)? Feb 16 21:42:27 I'm getting ActivityNotFoundException Feb 16 21:46:21 http://developer.android.com/guide/topics/media/index.html Feb 16 21:46:27 MediaPlayer mp = new MediaPlayer(); Feb 16 21:46:34 Note: It is possible that mp could be null, so good code should null check after the new. Feb 16 21:46:37 .... seriously? Feb 16 21:46:47 hahah Feb 16 21:47:12 Please tell me that this is just a stupid, stupid mistake on someone's part. Feb 16 21:52:20 anyone any ideas why, when I pass a custom list adapter view to an alert dialog, when i scroll down, then back up i get this: http://img.waffleimages.com/38d235090c54b0016fca84693386d28857a7a46b/device.png Feb 16 21:53:49 it's like the list collapses Feb 16 21:54:14 the same was happening with the simple_list_view_1 Feb 16 21:54:53 digitalspaghetti: I'll tell you the answer, but you have to stand by the stairs in your house. Feb 16 21:55:25 i am protected Feb 16 21:55:48 :hf: Feb 16 21:56:00 n/m, injoke :) Feb 16 21:56:20 .google pusherbot :) Feb 16 21:56:25 :gonk: Feb 16 21:56:58 so is it a bug that i can't fix? Feb 16 21:58:30 I have no idea. Feb 16 21:58:38 the whole scroll seems to collapse in on itself :( **** ENDING LOGGING AT Mon Feb 16 23:03:53 2009 **** BEGIN LOGGING AT Mon Feb 16 23:04:14 2009 **** ENDING LOGGING AT Mon Feb 16 23:05:49 2009 **** BEGIN LOGGING AT Mon Feb 16 23:06:11 2009 Feb 16 23:41:41 nobody? Feb 16 23:45:42 ? Feb 16 23:46:37 any experience with custom list view adapters and alert dialogs? Feb 16 23:47:34 nah sorry, i'm quite new to android development Feb 17 00:27:50 hi Feb 17 00:30:46 insmod is broke on my G1.. keeps returning no such file when its definately existant.. Feb 17 00:30:55 any ideas? Feb 17 00:32:52 I'm new, so this could be irrelevant; did you check dmesg output? Feb 17 00:33:11 the no such file could be a sub-module Feb 17 00:38:30 dmesg? Feb 17 00:43:38 I don't yet have a G1, much less and unlocked one, so I don't know what is available, but dmesg is a pretty basic Linux utility Feb 17 00:43:58 by insmod I assume you mean the program to install a Linux module Feb 17 00:44:06 kernel module Feb 17 00:45:19 googling for 'insmod android' turns up some stuff that may be useful, I guess this is busybox which limits you somewhat Feb 17 00:45:37 * kencausey last used busybox about 6 or 7 years ago Feb 17 00:46:06 yeah Feb 17 00:46:26 noone got a .apk for bash? Feb 17 00:46:52 sounds like another good use for google search to me Feb 17 00:47:03 yeah Feb 17 00:47:23 and this phone even has google writ on it Feb 17 00:47:29 cheers Feb 17 00:48:58 actually, I had assumed that .apk was for Android (java) apps only, but what do I know. Feb 17 00:51:50 true Feb 17 00:52:32 I suspect your right Feb 17 01:00:56 is the GoogleLogin service available for developers to use? Feb 17 01:02:08 I'm trying to get a unique id for the user, either their account name, or a consistent and unique ID. something that will remain the same for that user, for as long as that user has the same google account. regardless of phone. Feb 17 01:03:12 I see the GET_ACCOUNT permission, but no SystemService or whatnot to pull accounts from. :-( Feb 17 01:07:37 http://code.google.com/p/android/issues/detail?id=1073&can=1&q=login&colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary Feb 17 01:08:00 just found that a second ago. heh. Feb 17 01:08:10 no answer from google. hmm. Feb 17 01:18:20 joakime: that's been a question i've wanted, as well as some other people chattingin #android. perhaps you could bring it up on the mailing list? Feb 17 01:18:24 i would add my "me too" Feb 17 01:18:43 heh. i'm on like 9 different android mailing lists. ;-) Feb 17 01:20:18 i think the google mailing list overlords would find it acceptable if you posted it on android-developers Feb 17 01:20:56 if not, i'm sure they'll point you to the android-google-login-full-moon-on-thursdays list Feb 17 01:22:29 hehe Feb 17 01:40:35 shenki, message is submitted, now to see if it gets accepted. :-/ Feb 17 01:42:29 joakime: accepted? the list is moderated? Feb 17 01:58:21 shenki, not yet. Feb 17 02:00:42 hi ravv Feb 17 02:00:44 hi aakash Feb 17 02:01:16 hi Feb 17 02:01:23 nice to meet you Feb 17 02:01:34 lol Feb 17 02:02:44 same to you? lol Feb 17 02:25:57 hello **** ENDING LOGGING AT Tue Feb 17 02:59:58 2009