**** BEGIN LOGGING AT Sat Mar 17 02:59:59 2012 Mar 17 03:03:45 AlexRamallo: you can use ls, if you have root. Mar 17 03:04:01 /data/data/ Mar 17 03:04:47 readme: thanks, didn't know what the directory was Mar 17 03:10:17 why does Context.openFileOutput(String file) throw a FileNotFoundException if the description says that it will create the file if it doesn't exist? O.0 Mar 17 03:14:46 AlexRamallo: Maybe if the directory doesn't exist? Mar 17 03:15:18 AlexRamallo: What kind of path are you giving it? (It can't contain any slashes) Mar 17 03:15:49 no path. its the local storage. And I'm not getting an error, eclipse just bugged me about a missing catch clause and I got worried Mar 17 03:16:05 Ah Mar 17 03:16:20 found this though http://stackoverflow.com/questions/5034575/openfileoutput-filenotfoundexception answered my question Mar 17 03:26:31 if i have several instances of of a subclass of SQLiteOpenHelper, does that create multiple database connections? should I worry about it? Mar 17 03:28:49 Argh! I can't use a ListView (Or a GridView) in a fucking Widget.... I try to understand the samples of Google or their docs... But I can't do anything Mar 17 03:29:27 does your activity extend ListActivity instead of just Activity? I had trouble with that Mar 17 03:30:43 PlesantDilemma, did you say that for me? Mar 17 03:31:09 yes. was it bad advice? im a noob Mar 17 03:31:49 Yeah, because a Widget doesn't extend from a activity ;) Mar 17 03:31:58 oh right lol Mar 17 03:33:07 No problem Mar 17 04:02:55 is phonegap easy to implement on the android sdk? Mar 17 04:07:05 Is there a way to make a menu item always be in the overflow menu? Mar 17 04:07:46 like android:showAsAction="something" ? Mar 17 04:18:00 hey guys, quick q. Can i boot a regular android os with fastboot? Just provide stock kernel and ramdisk? Mar 17 04:28:35 therealGentleman, don't spam multiple channels Mar 17 04:50:36 sqlite column numbers, are they 0-indexed? Mar 17 04:50:56 is the first column 0 or 1? Mar 17 04:54:22 when using cursor.getString( int columnIndex ) Mar 17 05:56:18 sgs2 hercules Mar 17 06:40:01 explain this one to me Mar 17 06:40:15 i'm watching shark tank & this guy gets on their like "i made an ipad app" Mar 17 06:40:27 "we have 80 thousand downlaods for free, we're selling sheet music digitally" Mar 17 06:40:38 "we're worth 6 million dollars" Mar 17 06:40:50 and the sharks are like "umm how much in sales do you have" and he's all "40 thousand dollars" Mar 17 06:41:18 "but we have investors, i mean once google & justin timberlake signed up clearly we're now worth 6 million dollars...cuz we can make technology" Mar 17 06:41:32 as if nobody can make technology wtf Mar 17 07:07:45 Why would gallery performance be choppy and slow on ICS and the nexus but then on Gingerbread on my Droid x be clean and smooth. Mar 17 08:06:29 how do i space form widgets in the eclipse ADT Mar 17 08:08:37 hello? Mar 17 08:09:39 hello? Mar 17 08:09:48 hey Mar 17 10:05:24 any one can tell me, how can i download the android kernel? Mar 17 10:06:26 haobug: source.android.com? Mar 17 10:07:07 i have followed the instruction, but i got nothing but .git folder. Mar 17 10:08:05 even after repo sync? Mar 17 10:08:34 I don't know how to use the repo to download the kernel code. Mar 17 10:11:49 I use this command to download the code Mar 17 10:11:50 git clone https://android.googlesource.com/kernel/common.git android-common Mar 17 10:11:50 after the command successfully executed, I found only a .git folder in android-common. Mar 17 10:12:10 ... use repo Mar 17 10:12:21 and you need to switch to a correct branch Mar 17 10:12:32 how ? Mar 17 10:12:50 source.android.com has the answers, I believe Mar 17 10:14:44 @p_l I didn't find any. Mar 17 10:15:04 you can check it out yourself http://source.android.com/source/building-kernels.html Mar 17 10:18:52 http://source.android.com/source/downloading.html then http://source.android.com/source/version-control.html Mar 17 10:18:56 sure is empty Mar 17 10:19:18 oh, how great it would be if one had a direct way to specy widths and heights in fractions of the screen width and height Mar 17 10:19:26 and the same for fonts.. Mar 17 10:22:17 tapas: you can with LinearLayout's weight Mar 17 10:22:41 romainguy__: yeah, that's quite a bit of overhead though :D Mar 17 10:24:00 depends Mar 17 10:29:16 @p_l i this this is command repo init -u https://android.googlesource.com/platform/manifest initialized the platform code, I have checked the the .repo/manifest.xml , there is no kernel folder in it. i want the kernel code. Mar 17 10:33:05 haobug: after the command successfully executed, I found only a .git folder in android-common. << did you do a git checkout? Mar 17 10:33:41 @romainguy__ Mar 17 10:34:22 no i didn't. Mar 17 10:38:37 anyone know what the best way of recording a video of a an android app is? Mar 17 10:40:11 @romainguy__, I am downloading it again, i have deleted it before. Mar 17 10:40:12 How can i checkout the android kernel 2.6.27, because have a packaged 2.6.27 modified by someone else, I want a clean official source code of 2.6.27; Mar 17 10:40:35 Could someone please tell me what eclipse means when it asks if I want to create a test project, in the android project creation wizard? Mar 17 10:41:08 Hiraghm: i guess it's a project for your test code Mar 17 10:41:12 unit tests, etc.. Mar 17 10:41:42 so if I select "create test project", it creates two projects in the same workspace? Mar 17 10:41:55 one to test with, and one to release? Mar 17 10:42:03 * Hiraghm is confused Mar 17 10:53:31 It's done. I have tried Mar 17 10:53:32 git checkout Mar 17 10:53:32 nothing happen Mar 17 11:04:08 use git branch -r found there is android-2.6.39 android-3.0 android-3.3 Mar 17 11:04:09 tried git checkout android-2.6.39 got some directories and files, Mar 17 11:04:09 now how can i check out 2.6.27? Mar 17 11:04:54 there isn't 2.6.27, apparently Mar 17 11:05:09 or at least, it's not kept in the repo Mar 17 11:06:19 @p_l how can official site don't have 2.6.27 version? Mar 17 11:08:22 dunno, not yet a googler Mar 17 11:28:00 MenuInflater inflater = getMenuInflater(); gives me "Type mismatch: cannot convert from android.view.MenuInflater to com.actionbarsherlock.view.MenuInflater" Mar 17 11:28:10 how can I make it use the actionbarsherlock version? Mar 17 11:36:54 hello Mar 17 11:40:46 in a function, when I use: try {...} catch (MalformedURLException e) {} catch (IOException e) {}, I need to put at least a return; in the catch to prevent a crash, right ? Mar 17 11:41:05 I'm looking for the core git repositories... any advice please? Mar 17 11:41:25 bit0: source.android.com Mar 17 11:41:40 bit0: http://source.android.com/source/downloading.html then http://source.android.com/source/version-control.html Mar 17 11:42:11 another :D Mar 17 11:43:11 p_l, thanks.. but, is there only one git?, should I download all that repositories? Mar 17 11:43:32 bit0: no, repo is there to manage a list of git repositories Mar 17 11:43:44 and it can sync only specific projects Mar 17 11:44:32 p_l, there is no "core" git repository, isn't it? Mar 17 11:44:47 bit0: not "one" Mar 17 11:45:10 there is a forest of git repositories maintained with a repo manifest into coherent group Mar 17 11:45:12 p_l, We are trying to analyze android commits evolution Mar 17 11:45:27 p_l, we know :) Mar 17 11:45:38 bit0: then you probably need to sync everything and do cross-checking :) Mar 17 11:46:25 eventually ask google if you can get data from the internal SCM tools (they have some extras for their infrastructure, iirc - don't know how much of that is used for Android) Mar 17 11:46:38 p_l, Analyzing 250 git repositories is a really long history .. :) Mar 17 11:47:23 anyone know what the best way of recording a video of a an android app is? Mar 17 11:47:40 p_l, thanks, I'll try to contact google guys Mar 17 11:47:41 unfortunately Oracle didn't continue Sun's "get a datacenter for a testdrive" program, so I can't recommend that to you Mar 17 11:49:31 they had this awesome program where you could get, free of charge for 30 days, a complete datacenter-in-container Mar 17 12:10:05 I want to be able to have the user move specific views around Mar 17 12:10:32 which basically means registering a touch event on them, possibly changing their z-stack level and positioning them absolutely Mar 17 12:10:47 I can only think of using the deprecated absolutelayout for this Mar 17 12:13:03 or doing everything with bitmaps on a canvas but then I have to do all the touch/z-axis magix myself Mar 17 12:13:19 (basically, it's about moving jjigsaw puzzle pieces around) Mar 17 12:20:45 Check for new data? Im fetching some data from the Internet and saving the data to my device. when the app is starting it shows the data i saved on the the device and starts a asynctask to fetch fresh data from the Internet. how do i check if the data just fetch from the Internet is newer than the data i have loaded from the device? any ideas how to do that? Mar 17 12:22:24 I'm not sure which opensource license I should use... any recommendations? Mar 17 12:23:23 it should be one that has a large army of freely available lawyers ready to enforce Mar 17 12:23:27 * pragma_ nods. Mar 17 12:23:50 not that I really care since I'm leaning mostly towards public domain Mar 17 12:24:19 so be it, public domain 1.0 Mar 17 12:24:27 thanks for the help, guys Mar 17 12:32:29 I know this can be a very subjective question, but I'd just like to see how others do this. It's a coding convention question. Mar 17 12:32:58 How do you place your code when it comes to getters/setters, @Override functions and your own custom made functions? Mar 17 12:33:14 Getters/setters last, @Override functions first, etc? Mar 17 12:33:58 I notice I can't really decide when I'm developing... Mar 17 12:34:06 lol, accessors Mar 17 12:34:12 just make everything public and static. Mar 17 12:34:16 its the android way Mar 17 12:34:36 :| Mar 17 12:34:41 this is a cellphone, not a server Mar 17 12:36:07 I guess there are bad programers everywhere Mar 17 12:36:53 yes, like me :D Mar 17 12:37:00 bif_1964 save a timestamp along with your data, and make your online feed provide a last update time Mar 17 12:37:11 you can even use HTTP headers for this (modified since, etc) Mar 17 12:37:44 what is the best android game engine? :> Mar 17 12:38:00 java's getter/setter stuff is crap, but python has probably just spoiled me Mar 17 12:40:06 iivvoo: How do you save a timestamp, and how do you compare timestamps? Mar 17 12:40:59 http://developer.android.com/guide/topics/data/data-storage.html Mar 17 12:41:09 bif_1964 using '<' ? :) Mar 17 12:47:56 iivvoo: http://developer.android.com/guide/topics/data/data-storage.html its about files not timestamps :( Mar 17 12:54:05 guys is there easy way(using api) to work with related data in adroid in databsae? I have two tables in 1:m relationship and I am courios if I have to write all of my selects by my self. Mar 17 13:05:44 Hey Mar 17 13:06:07 does anyone know why textview.setTextColor(R.color.white); would make the text view black? Mar 17 13:07:06 NutterzUK: you would need to provide your code and more descrption Mar 17 13:07:09 I have this in my strings.xml: #FFFFFF Mar 17 13:08:21 I have a method which uses this line of code: coinsTextViews[coinsToSetTo - 1].setTextColor(R.color.white); Mar 17 13:08:21 It does colour the correct textView, but makes it black :s Mar 17 13:08:31 NutterzUK: it would use the ID as the color that is not what you want Mar 17 13:08:50 apoc: thanks! Mar 17 13:08:52 you need the load a Color object from the resource Mar 17 13:08:56 *to Mar 17 13:09:57 something like textview.setTextColor(context.getResources().getColor(R.color.white))); Mar 17 13:10:11 NutterzUK: no problem, i ran into the same problem lately Mar 17 13:10:53 It makes sense :), of course it's just an int ID rather than colour. I'll be able to fix it now. Huge kudos, thanks :) Mar 17 13:10:55 Saved me a headache Mar 17 13:11:52 yw ;) Mar 17 13:15:40 guys is there easy way(using api) to work with related data in adroid in databsae? I have two tables in 1:m relationship and I am courios if I have to write all of my selects by my self. Mar 17 13:18:58 I am thinking about something in lines of Ruby On Rails solutions.. Mar 17 13:19:02 solution. Mar 17 14:22:06 hi, whats the easiest way to get a contentresolver within a fragment? or is it better to populate a ListFragment from the resolver in whatever is using the fragment? Mar 17 14:26:38 mathstuf: fragments can access their activity instance with getActivity() Mar 17 14:26:51 ah Mar 17 14:46:16 Hey there. Mar 17 14:49:20 Ankhwatcher: hello neighbor Mar 17 14:49:21 isn't it a beautiful day to be coding? Mar 17 14:50:14 Hey Mar 17 14:50:37 hello Mar 17 14:50:55 What size in pixels is a cell on the Android homescreen? Mar 17 14:51:13 I need to size my image for widget so it fills the cell Mar 17 14:54:43 https://developer.android.com/guide/practices/ui_guidelines/widget_design.html Mar 17 14:56:00 hi all Mar 17 14:56:35 mmm .. I have to program an operation in 1 sec in the future in and HandlerThread Mar 17 14:56:40 how to do it ? Mar 17 14:57:03 Is send a Message to itself the right way ? Mar 17 14:57:21 Mikellip: it dertainly is Mar 17 14:57:38 mikedg: damn you autocomplete! Mar 17 14:57:48 Ankhwatcher: someone said you sound like an owl Mar 17 14:58:09 pragma_: who who? Mar 17 15:00:16 pragma_: how many people have fallen for that one? Mar 17 15:00:21 1 Mar 17 15:01:17 kakazza: i see the 9patch background, but what about just plain images? Mar 17 15:03:30 aLeSD: http://developer.android.com/reference/android/os/Handler.html#postDelayed(java.lang.Runnable, long) Mar 17 15:04:01 when downloading a file with HTTPUrlConnection how can i check to see if the server supports resume before (attempting to resume a file download) Mar 17 15:04:22 I hate that 15 minute return window too: http://j.mp/vZEdUd Mar 17 15:04:37 You can't really tell in physical pixels. Add your image in different sizes (ldpi, mdpi, hdpi, xdpi, with hdpi being 80% of the devices iirc) and hope that it scales well. Mar 17 15:06:36 anyone else using IRSSI? Mar 17 15:07:23 Ankhwatcher: so if i can get it to fit on my mdpi perfectly, i scale it 3:4:6:8 and it should fit good? Mar 17 15:07:41 NightmareApps: I think you meant that for kakazza Mar 17 15:08:05 anyone know why adb devices would suddenly stop listing devices on ubuntu 10.04? Mar 17 15:08:16 Ankhwatcher: sorry :P Mar 17 15:08:24 kakazza: so if i can get it to fit on my mdpi perfectly, i scale it 3:4:6:8 and it should fit good? Mar 17 15:08:33 NightmareApps: no problem, I just don't want to be the reason your question doesn't get answered. Mar 17 15:08:39 :P Mar 17 15:09:29 jeppy: it was working before? Mar 17 15:11:35 yes Mar 17 15:11:56 now the list is always empty Mar 17 15:12:25 so you manually listed all of the device types already? Mar 17 15:12:43 I used the list from source.android.com Mar 17 15:12:48 or manufacturer uuids Mar 17 15:13:03 but it was working for the two devices I have Mar 17 15:13:51 have you checked to make sure the list is still okay? Mar 17 15:16:40 yes Mar 17 15:17:09 I'm trying something I found online. brb reboot Mar 17 15:17:19 jeppy: good luck Mar 17 15:20:28 readme, big issue here Mar 17 15:20:40 ? Mar 17 15:21:17 I have an HandlerThread and I want to start a Handler postDealyed loop Mar 17 15:21:31 is it possible from inside the HandlerThread class ? Mar 17 15:21:38 I think no Mar 17 15:21:47 I have to start it from outside Mar 17 15:22:10 If I add a path to a map, is there a way to remove it again, or do I have to remove all the paths and recreate them without it? Mar 17 15:23:37 aLeSD: it would be possible if you extended it, but I don't even want to comment because what you're doing sounds like a mess Mar 17 15:25:22 Ankhwatcher, it was apparently my usb hub malfunctioning Mar 17 15:25:42 jeppy: they do that Mar 17 15:25:52 jeppy: externally powered? Mar 17 15:25:55 yep Mar 17 15:25:59 why? Mar 17 15:26:14 my phone is 252 ppi pixel density, is that the same as 252 dpi? Mar 17 15:26:19 aka: hdpi? Mar 17 15:26:31 NightmareApps, yes Mar 17 15:26:43 jeppy: well the externally powered ones screw up when the power is irregular, and the non-externally powered ones just screw up all the time. Mar 17 15:26:47 NightmareApps: yeah, ppi is simply a more accurate name for dpi in this context Mar 17 15:26:57 NightmareApps: since we're working with pixels, not dots Mar 17 15:26:57 thanks Mar 17 15:27:47 jeppy: my laptop has two usb ports, I have a love hate relationship with hubs Mar 17 15:28:33 <`z> Ankhwatcher, fail Mar 17 15:28:35 <`z> what laptop? Mar 17 15:28:53 well how do you make it work again? Mar 17 15:29:03 this is frustrating Mar 17 15:29:27 unplug it for a while? Mar 17 15:29:37 jeppy: only use one device on it, make sure the power supply is plugged in well Mar 17 15:30:05 jeppy: try a different host port on the machine, go slow let the computer catch up. Mar 17 15:30:41 `z: Dell StudioXPS 1340, lots of ports I never use and not enough USB Mar 17 15:30:46 readme I will code a test case Mar 17 15:31:07 <`z> lol Mar 17 15:31:14 <`z> Ankhwatcher, 3yo dell inspiron 1525 Mar 17 15:31:16 <`z> 4 usb ports Mar 17 15:31:20 when eclipse is on the fritz (its not creating editors; using vim in the meantime), how do i trigger builds? Mar 17 15:31:23 <`z> usually i only use one for my mouse Mar 17 15:31:28 `z: I have display port, mini firewire, hdmi and esata Mar 17 15:31:34 hooray! good stuff Ankhwatcher Mar 17 15:31:38 <`z> wuuut Mar 17 15:31:39 <`z> k Mar 17 15:31:41 <`z> hmm Mar 17 15:31:48 mathstuf: by reading the docs 11:31 < `z> 4 usb ports Mar 17 15:31:50 <`z> i've got... Mar 17 15:31:52 http://developer.android.com/guide/developing/projects/projects-cmdline.html Mar 17 15:31:54 <`z> * deep breath* Mar 17 15:32:02 damn paste Mar 17 15:32:06 jeppy: got it going again? Mar 17 15:32:29 `z: I hate those big ugly inspirons Mar 17 15:32:30 yes, but plugging in only one thing was not an option :) Mar 17 15:32:32 http://developer.android.com/guide/developing/building/index.html Mar 17 15:32:47 <`z> on the left side: 1 power port, two usb ports, 1 vga port, 1 ethernet, 1 telephone port (dialup), hdmi, 1394 Mar 17 15:32:51 jeppy: that was just ot get started Mar 17 15:33:05 <`z> right side: two usb, s-video, expresscard Mar 17 15:33:14 <`z> the expresscard slot stores the remote for my laptop Mar 17 15:33:19 readme: there isnt a build.xml file Mar 17 15:33:21 `z: wow I bet you get a lot of use out of that s-video, lol Mar 17 15:33:23 <`z> the front: 2 headphone, 1 mic Mar 17 15:33:29 <`z> Ankhwatcher, nope :( Mar 17 15:33:33 <`z> only used the hdmi Mar 17 15:33:46 `z: I tried to use one once, it wouldn't work. Mar 17 15:33:48 <`z> Ankhwatcher, it's either s-video or mouse/keyboard Mar 17 15:33:50 <`z> should be svideo Mar 17 15:33:53 <`z> Ankhwatcher, k Mar 17 15:34:01 readme: i generated the project with eclipse Mar 17 15:35:20 okay, that's enough goofing around, time to get on with some android development Mar 17 15:35:40 ^ I know that feeling :P Mar 17 15:36:40 readme I already extended HandlerThread ... tell me about your idea . Mar 17 15:37:35 NutterzUK: I've pushed you guys out to my tablet using ScreenSlider, so now I can keep an eye on chat and get on with some work. Mar 17 15:42:04 aLeSD: extending HandlerThread was my idea :) Mar 17 15:42:13 just don't credit me Mar 17 15:42:35 i don't know enough about your project to suggest any other architecutral solution Mar 17 15:43:41 lol Mar 17 15:43:56 I can't start Handler por loop inside the class Mar 17 15:44:00 I can't see it Mar 17 15:47:34 feel like I'm missing something obvious -- any way to make a "thin" button (i.e. short height)? Simply reducing the height is no good because it seems to do something funny with the embedded TextView and so it ends up getting cropped barely 1dp below wrap_content Mar 17 15:48:49 PeteS: is this ICS? Mar 17 15:49:09 sorry, 2.3.3 Mar 17 15:49:15 er 2.3 Mar 17 15:49:20 hmm, do you have a screenshot? Mar 17 15:49:40 petes what if you make the button wrap_content and set a smaller textSize ? Mar 17 15:51:08 d'oh. well my question was going to be for a custom button style that I'm using, but actually it seems that my problem is only with the stock buttons. which I'm not using anyway. it's probably something with the standard button drawable. n/m :-) Mar 17 15:51:20 yeah, was just about to say Mar 17 15:51:26 please don't make buttons smaller than the average human fingertip :( Mar 17 15:51:39 it's horribly unusable Mar 17 15:51:51 haha, I'll try. I actually more just want to have bigger text without having to make the buttons bigger Mar 17 15:52:47 if you do go for a smaller than 48dp button, be aware that on ICS, the buttons will stretch to minHeight of 48dp regardless, unless you set the minHeight to 0 or whatever value you want Mar 17 15:53:16 which is something i found out through my own eyes :) Mar 17 15:54:22 good to know, thx Mar 17 15:55:03 can anyone point me to a good guide to making sqlite calls? Mar 17 15:56:00 Guys I have subActivity and i fnish it using setResult(RESULT_OK); finish(); so my last activity start Mar 17 15:56:14 problem is that that way I get null for intent and I need to send some data Mar 17 16:03:50 Trudko: have you looked at the docs? Mar 17 16:04:54 yes I know you can put intent inside of setResult but it does not make sense in my case to me http://pastebin.com/Wt8kiMLd Mar 17 16:07:59 Trudko: I don't see the relevance of that code? If you want to return an Intent to the calling Activity, use setResult(result, intent); onSaveInstanceState() is used to pass the Activity's current state back to it when it is paused/resumed. Mar 17 16:08:20 stopped/started* Mar 17 16:09:42 doc_savage: should I set intent to result object also in case that I dont start activity by startActivityForResult method? Mar 17 16:10:36 Trudko: what do you want to pass back to the calling Activity? Mar 17 16:10:45 task object Mar 17 16:11:19 and I set in to Bundle object in onSaveInstanceState which is called when I push confirbutton Mar 17 16:13:11 Trudko: don't use onSaveInstanceState() for that, that's not its purpose. Mar 17 16:13:12 http://developer.android.com/reference/android/app/Activity.html#StartingActivities Mar 17 16:13:17 read that carefully Mar 17 16:13:31 should I use startActivityForResult? Mar 17 16:13:39 yes, from the calling activity Mar 17 16:14:05 I mean I have Main Activity with buttion -> add Task and I want to return this newly created task to activity before Mar 17 16:14:34 so using startAct. seemse like bad idea because main activity is in background and it is last in activity stack Mar 17 16:14:39 so the main activity will startActivityForResult() the activity where the user creates the new task Mar 17 16:15:01 yes Mar 17 16:15:07 I would then have the new activity create and store the task, returning a response to the main activity stating whether it was created or not Mar 17 16:16:01 what do you mean? to better express my self main activity is also createing main object - Goal and goals can have task and I want to save Goals and its tasks on Goal Activity Mar 17 16:16:15 so on task Activity i created only Task object which is stored by Goal activity. Mar 17 16:16:27 and I need to return this task object back to Goal activity for that Mar 17 16:18:51 is a "task" made up of just a title and a note? Mar 17 16:20:07 doc_savage: right now yes Mar 17 16:22:16 Trudko: is there any reason you can't save the task in the task activity? Mar 17 16:22:40 doc_savage yes because task is dependend on Goal so I can save task object before Goal object Mar 17 16:22:52 I need to save goal to get it's id Mar 17 16:23:20 so you're creating a goal (not saving it), then adding a task (in memory) until goal is saved, then saving all tasks with it? Mar 17 16:23:27 yes Mar 17 16:24:07 might I suggest, save goal as the user creates it, have the task activity save the task to the goal, you would pass the goal ID to the task activity when calling startActivity as an intent extra Mar 17 16:24:32 then the task activity would return a RESULT_OK or RESULT_CANCEL to goal to tell it whether it needs to update it's task list Mar 17 16:24:59 this way both goal and the task activities can work independently of each other and the task activity can be called from activities other than goal Mar 17 16:25:29 doc_savage: yes this would work but I would do extra update statemenet on database for no reason... Mar 17 16:25:58 does abs 4.0 require the use of the official support library or a modified version? Mar 17 16:27:16 wait never mind, it includes the modified one Mar 17 16:28:33 Trudko: if you want to stick to saving the task in goal, then I would just return the title and note as string extras in setResult() Mar 17 16:32:14 doc_savage: by creating intent? can I do that and not use startActivity etc? Mar 17 16:33:34 Trudko: you can't start a new activity without calling startActivity() or startActivityForResult() Mar 17 16:34:00 I'm trying to write to a sysfs file that is chmod 666 and chown'd to system.system from a framework service that's installed in /system.... I keep getting permission denied errors. Is there a way to find out why permission was denied? Mar 17 16:34:59 safemode: what's the full path to the file Mar 17 16:36:06 doc_savage: but that way I need to reimplelent confirm button onclick listener and I see starting new activity as uncessary, I mean goal activity will be always last in activity stack Mar 17 16:38:09 Trudko: aren't you already starting the task activity? Mar 17 16:42:47 doc_savage: yes but Goal activity is already start so I just use finish() method to get back to it Mar 17 16:43:18 and I am sending data from task activity to goal activity and yes I can start it again eventhough its already in background ? Seems pointless(I am talking about Goal activity).. Mar 17 16:43:40 Trudko: why would you start goal again? Mar 17 16:43:42 .I will try to look for another way how to share data between task and goal activity and if it wont work I will just use startactivity.. Mar 17 16:43:59 doc_savage: you said I should use startactivity to sent title and descrption Mar 17 16:44:14 you startActivityForResult() the task activity from goal, and return the response to goal with setResult(result, intent) Mar 17 16:44:16 I just need to figure out where MANAGE_USB permission is described...like how does android know what to block read/write access to when that permission is granted because framework services should have that permission Mar 17 16:44:51 doc_savage: ok and then I asked if I can create intent in task activity and simply push it into setresult activity... Mar 17 16:44:58 ok i can try that I missunderstodd you sorry Mar 17 16:45:24 Trudko: yes, you would create the Intent in your onClickListener and pass it back with setResult Mar 17 16:45:50 Hi, I would need help to put a GridView (ListView) in a Widget, I loose two day on it (Read a lot of samples and docs), but I can't do anything. I know the Gridview is there because I put a background color on it, but it's empty Mar 17 16:53:10 does cursor.moveToNext move to the next row or the next column (unless at the end)? Mar 17 16:56:29 row Mar 17 16:56:34 ah Mar 17 16:56:42 that makes so much more sense Mar 17 16:57:00 Assume multiple activities need GPS. Is it a bad design to create a, say, LocationAwareActivity base class for these activities? This class would handle sensor init/start/stop and keeping track of the most current location Mar 17 16:57:01 boy sql is confusing Mar 17 16:58:19 Doing it can make using GMaps a bit of a pain i guess, as the activity using GMaps must be derived from MapActivity.... Mar 17 17:08:33 help me make simple game project :( Mar 17 17:09:27 Is it possible/advisable to update maps with a thread? Mar 17 17:11:27 hey SimonVT Mar 17 17:11:29 BugSense Support Stuff, Mar 17 16:55 (EET): Mar 17 17:11:29 You're right. We should also use the version code. Mar 17 17:14:02 <`z> canadiancow, you're that zynga guy right? Mar 17 17:14:12 when you word it like that, i want to say no Mar 17 17:14:17 <`z> hmm... Mar 17 17:14:25 canadiancow: yeah, I would too Mar 17 17:14:28 <`z> you're the person who coded the Scramble app? Mar 17 17:14:40 <`z> or... damn Mar 17 17:14:51 <`z> i'm just wondering Mar 17 17:14:58 <`z> why would it need to start at system bootup Mar 17 17:15:01 <`z> :X Mar 17 17:15:13 i didnt write the whole thing Mar 17 17:15:16 i worked on it Mar 17 17:15:33 canadiancow just catches the kittens, he doesn't know what happens after that Mar 17 17:15:45 <`z> you worked on it, k Mar 17 17:15:47 <`z> hrm Mar 17 17:15:48 and actually, that is to setup some timers to poll the server for updates Mar 17 17:15:54 <`z> ah, okay Mar 17 17:15:55 <`z> mmm Mar 17 17:15:59 What is stacktrace?? Mar 17 17:15:59 <`z> now that makes sense Mar 17 17:16:41 Oh woops, I just left my phone filling a database for half an hour Mar 17 17:16:50 whoops? Mar 17 17:17:09 what is " filling a database " in phone ? Mar 17 17:17:44 <`z> what is " what is " filling a database " in phone ? " in chat ? Mar 17 17:17:46 jopew0-o: my app is for capturing gps coordinates, I just captured a few hundred fixes for this room. Mar 17 17:17:55 u left it for half hour while it was filling some db ? Mar 17 17:18:07 <`z> read contact data Mar 17 17:18:08 <`z> ^_^ Mar 17 17:18:09 all the fixes went into the database... Mar 17 17:18:21 room . Mar 17 17:18:26 gps is not for room Mar 17 17:18:33 :D Mar 17 17:18:39 it approximate to few meters Mar 17 17:18:41 `z, when you click "start new game", one of the options is "with a contact" Mar 17 17:18:50 <`z> canadiancow, yeah Mar 17 17:19:00 <`z> i wished android could have some permissions system Mar 17 17:19:08 u need 1 SqMile room atleast for correctresults Mar 17 17:19:11 <`z> sometimes. Mar 17 17:19:16 <`z> jopew0-o, no Mar 17 17:19:24 <`z> you need a clear view to the sky Mar 17 17:19:36 jopew0-o: yes, but if I was outside and holding still it would have stopped once it was happy with it's accuracy, but indoors it keeps jumping around trying to guess where I am. Mar 17 17:19:36 <`z> so that it can get a fix on gps satellites Mar 17 17:19:38 yea im not sure what you mean there jopew0-o Mar 17 17:20:42 A question, on a platform using an ARM processor, does Dalvik use Jazelle or not? Mar 17 17:21:27 Is there any ide's for android? Can I code, for example, in Visual Studio, and run the code on my phone? :) Mar 17 17:21:37 eclipse... Mar 17 17:21:40 Eclipse does a pretty good job Mar 17 17:21:42 it has never gone below "your location approximate to 200 meters" Mar 17 17:21:52 outside Mar 17 17:22:04 eclipse? Hmmm.. btw, u have to code in java, right? Mar 17 17:22:06 Though I guess you could use Netbeans or any java editor given you call the right parts of the toolchain yourself. Mar 17 17:22:25 You can write parts in C/C++ I think. Mar 17 17:22:42 http://developer.android.com/sdk/ndk/index.html Mar 17 17:22:43 why is android virus resistant ? Mar 17 17:23:05 Hausas: if you're willing to pay money, there is an SDK that allows you to develop android apps in C# Mar 17 17:23:05 Someone could help me with the Widgets, how to use a RemoteViewFactory and Service for a GridView/ListView, I try with some samples but it didn't work... Mar 17 17:23:14 my phone s always online but no virus malwares yet Mar 17 17:23:22 no firewall antivirus Mar 17 17:23:53 Most firewalls are useless anyway jopew0-o Mar 17 17:23:55 readme, what's that? Mar 17 17:24:10 http://android.xamarin.com Mar 17 17:24:12 pointless expense though, since C# and java are not a hell of a lot different Mar 17 17:24:12 Most of the time a virus gets into the computer due to users doing stupid things. Mar 17 17:24:18 Hausas: click it and find out? Mar 17 17:24:22 its SFW ;) Mar 17 17:25:06 Hi everybody: I am developing a app and I am working with three devices. On all of them happens that at first, when I press "menu" (first == after install, then it does not happen again) the system does not detect the key-press and does not log anything via logcat. Someone has an hint how to debug this issue? Mar 17 17:25:12 emulator only is free Mar 17 17:25:13 ! Mar 17 17:25:27 jopew0-o: turn your wifi on next time Mar 17 17:26:44 My SGS2 battery doesn't die in a day or two now. It survives 3 days easily. Even when I'm playing games. ;] Mar 17 17:28:16 [2012-03-17 17:27:53.928] [Info] No software needs to be installed. Mar 17 17:28:16 [2012-03-17 17:27:53.928] [Info] Status: successful Mar 17 17:28:18 ?? Mar 17 17:28:51 jopew0-o: are you an app developer? Mar 17 17:31:16 I'm fairly new to android animation, and googling seems to show some things that are almost helpful but i'm having issues with... is there an easy way to make a ImageButton bounce around the screen? Mar 17 17:40:22 does a fragment have to create a view? Mar 17 17:40:40 I'm getting an error inflating a blank fragment Mar 17 17:41:00 why would you want a fragment to have no view? Mar 17 17:41:34 i was trying to make it as simple as possible to get rid of the error Mar 17 17:42:02 Is it better to install ANT from eclipse or just download it from apache? Mar 17 18:06:18 Is there a good way to deal with google map keys? Mar 17 18:07:01 you need diffrent keys for release and debug Mar 17 18:07:39 Hi everyone, I have a question here, if you have time could you have a look at it? http://stackoverflow.com/questions/9711439/activity-starts-first-activity-when-finish-is-called-instead-of-returning-to-p Mar 17 18:07:44 Thanks in advance :) Mar 17 18:09:21 I'm extending android.support.v4.app.FragmentActivity and using android:theme="@style/Theme.Sherlock" but no action bar :( Mar 17 18:09:57 and my project uses the support jar from the abs 4.0 source Mar 17 18:10:57 im pretty sure thats all i had to do before Mar 17 18:15:13 Hi. Would it be easy to make a little app that can read a barcode and then give me the isbn from it? Mar 17 18:16:15 yes mads- Mar 17 18:16:27 ideally, you would just fire off an intent to something like barcode scanner or google goggles Mar 17 18:16:35 and it would do the scan and return you the result Mar 17 18:16:52 hi Mar 17 18:16:56 http://code.google.com/p/zxing/wiki/ScanningViaIntent Mar 17 18:17:01 what means #4 here: FATAL EXCEPTION: AsyncTask #4 ? Mar 17 18:17:53 canadiancow: thanks Mar 17 18:26:01 Hi, I want to know which method call in a Widget to update (With a Btn) the remoteViewFactory/Service Mar 17 18:27:00 why is samsung so set on having an apple-button on their devices Mar 17 18:43:59 How work notifyAppWidgetViewDataChanged? Mar 17 18:54:02 http://code.google.com/p/android/issues/detail?id=20065 Mar 17 18:54:13 for fuck's sake Mar 17 19:09:25 Arf, if a widget crash each time I rotate the screen, where would be the error? Mar 17 19:13:18 in the app.... Mar 17 19:19:39 Thanks..... Mar 17 19:24:17 I'm trying to move my app from supporting apilevel 9 to apilevel 8 ( :( ). For some reason I can't use java.net.CookieManager anymore. Is there a good alternative? Mar 17 19:36:05 Hello. I'm trying to do something along these (http://pastebin.com/8Ua6PsCX) lines. However, I keep getting a NullPointerException. Anyone know how to pass a context to another class? I've already tried searching for the answer. :-/ Mar 17 19:55:55 Hello. I'm trying to do something along these (http://pastebin.com/8Ua6PsCX) lines. However, I keep getting a NullPointerException. Anyone know how to pass a context to another class? I've already tried searching for the answer. :-/ Mar 17 19:56:52 hi Mar 17 19:59:34 fully_human: the code sample you show, if compiled, wouldn't throw an NPE, because nothing in the constructor for B touches its parameter 'c' Mar 17 19:59:39 paste your actual code Mar 17 20:00:03 or at least run the code you paste, before showing us. Mar 17 20:00:40 I cant get the application to load my icon, it is 48x48 png in res/drawable, android:icon="@drawable/icon" in manifest... anyone? Mar 17 20:00:45 but yeah, use getApplicationContext() if and only if the context will be kept longer than the life of the class that passed the context in. Otherwise, it is fine to just pass 'this', since service and activity both extend Context. Mar 17 20:02:25 also you should use @Override annotation Mar 17 20:02:57 also, extending thread is not encouraged Mar 17 20:03:10 better to implement runnable, then pass the runnable to a thread instance. Mar 17 20:04:53 Aha, i should put the android:icon in the application tag :) Mar 17 20:05:01 readme: Ah, so then B should extend Service and implement runnable? Mar 17 20:06:32 Does anyone have an understanding of how AudioEffects work? Mar 17 20:06:44 is it possible to get the name (as a String) of the class of an instance? Mar 17 20:07:02 cconstantine_: There's no getClass()? Mar 17 20:07:22 there is! Mar 17 20:07:33 so... getClass().toString() ? Mar 17 20:07:35 So getClass().getName() Mar 17 20:07:43 ha Mar 17 20:07:45 awesome, thanks :) Mar 17 20:07:49 No problem. Mar 17 20:08:49 Alternative to knowing how AudioEffects works, does anyone have a decent doc on it? Mar 17 20:09:03 I've been reading through the AOSP Java and JNI, but I honestly can't seem to figure it out. Mar 17 20:09:11 Doesn't help that I'm very unfamiliar with C++ and JNI. Mar 17 20:09:52 But I find things like AudioEffect.setEnabled() just calls the native method, which seems to return the Java function setEnabled(). Mar 17 20:10:56 hi, i have problem with a simple camera preview, the image is streched and i need an any way to fix this Mar 17 20:11:27 spots: How are you displaying the image? Mar 17 20:11:29 ImageView? Mar 17 20:11:37 surfaceview Mar 17 20:12:44 and i have another problem with autofocus, i get a clicking noise after i release the camera Mar 17 20:13:27 In ImageViews there's some XML thing I forget what it is. Mar 17 20:13:44 Options are like center, Matrix, etc. Mar 17 20:13:46 For scaling. Mar 17 20:13:49 scaleType maybe? Mar 17 20:14:56 Haven't worked with SurfaceViews unfortunately. Mar 17 20:16:19 Maybe scaleX and scaleY set to 1 will help. Mar 17 20:16:41 You could also maybe make the image a ScaleDrawable: http://developer.android.com/reference/android/graphics/drawable/ScaleDrawable.html Mar 17 20:16:54 fully_human: I would just use a private static class to implement Runnable Mar 17 20:16:57 And use scaleGravity. Mar 17 20:17:44 i read scientology Mar 17 20:17:44 but do not store a static reference to it when you instantiate it. that should be an instance member. Mar 17 20:17:45 :) Mar 17 20:17:54 RMapZero: you know what a camera preview is, right? Mar 17 20:18:18 Oh, oh. Mar 17 20:18:22 I thought you meant like after the picture is taken. Mar 17 20:18:29 but if you don't make it static, that's good too. That way you don't need to pass in context, because you can access the outer scope in your service instance. Mar 17 20:18:34 But before the image is saved. Mar 17 20:19:26 Yeah, I dunno, maybe ScaleX and ScaleY. I usually only ask for further details in case it's something obvious. Mar 17 20:19:34 I don't have any experience with SurfaceViews. Mar 17 20:20:55 So question for anyone who knows how the JNI situation works. I'm trying to read the source of AudioEffect to figure out how they work. I'm trying to trace it to the point where it actually applies the effect. Mar 17 20:21:18 So I found setEnabled, which attaches the object to the audio session: C++ (JNI): http://pastebin.com/eyj8Aqjh Java: http://pastebin.com/KBNPvLSF Mar 17 20:21:24 But that seems cyclical to me. Mar 17 20:21:57 I don't really understand the JNI, seems like the Java is calling the C++ function natively, then based on the comments, the C++ is calling the Java function. Mar 17 20:22:39 Unless there's a third layer that I'm not aware of. Mar 17 20:23:15 I pulled that code from the GitHub repo: Java: https://github.com/android/platform_frameworks_base/blob/master/media/java/android/media/audiofx/AudioEffect.java C++: https://github.com/android/platform_frameworks_base/blob/master/media/jni/audioeffect/android_media_AudioEffect.cpp Mar 17 20:36:19 IHey, i'm going to have to spend some time looking into it, but was wondering as a rough guide how difficult or long it takes to get an app to post to facebook? Mar 17 20:36:53 It's a game which will have achievements, and wanted to be able to just post something like " earned in " Mar 17 20:37:26 In a Widget, it's the good way to change a TextView: rv.setTextViewText(R.id.widget4x2Titre, items[0]);, and after I put appWidgetManager.updateAppWidget(appWidgetIds[i], rv). It's in the onUpdate() Method, I have a Defeault text at the begin but after the method update is read at the installation it become blank Mar 17 20:37:30 I did have a brief look and it looked fairly difficult, but surely it can't be.. I think I was just looking at it wrong Mar 17 20:38:20 yo Mar 17 20:38:59 hey TriGuN Mar 17 20:39:06 i have a question Mar 17 20:39:19 is the position of the lockscreen in the framework.apk or jar Mar 17 20:39:22 and if so where Mar 17 21:07:36 where can i browse the built in icons in android? Mar 17 21:18:22 is there a file that outlines what specific files in /sys belong to a given permission setting? Mar 17 21:19:17 because even chown and chmod dont seem to want to allow system access to write to a certain sysfs file ...but if i su to root, then i can. and it makes no sense unless some android security setting is blocking the write somehow Mar 17 21:19:45 system being the user "system" that the framework runs on Mar 17 21:39:15 Hey - getting started with sqlite and have made a simple dbhelper class. I now need to work with ~25 variables ... Is there something I can use to generate a larger dbhelper class or am I going about this the wrong way? Mar 17 21:58:29 when something on tv says "BUT WAIT...ORDER NOW AND WE'LL GIVE YOU SIX FOR THE PRICE OF ONE" *just pay separate processing and shipping* Mar 17 21:58:34 how much is the processing and shipping Mar 17 21:59:08 Probably more than cost of item Mar 17 22:04:10 anyone try this ? https://github.com/ChristopheVersieux/HoloEverywhere Mar 17 22:04:43 looks like they forgot to ignore .DS_Store ;) Mar 17 22:05:57 g00s: they don't see it so... ;) Mar 17 22:06:16 * p_l meanwhile prepares a test boot usb disk for ChromeOS Mar 17 22:08:08 i like the idea of this HoloEverywhere - again, something google should have done and dropped the ball Mar 17 22:08:20 but i wonder how well it works on various skins Mar 17 22:08:36 which i really can not test (blur, sense, wiz) Mar 17 22:17:21 g00s: I'm going to have access to TouchWiz 5 (I think) in a week Mar 17 22:17:34 p_l: lucky you Mar 17 22:17:47 g00s: assuming the update comes in Mar 17 22:24:20 Sorry to repeat the question (Still stuck on google) - getting started with sqlite and have made a simple dbhelper class. I now need to work with a lot more fields ... Is there something I can use to generate a larger dbhelper class without typing it all out or am I going about this the wrong way? Mar 17 22:33:44 Better start typing Mar 17 22:43:37 has anyone use mDNS discovery? Mar 17 22:43:51 Hi, how launch an Activity in a Widget Provider? (startActivity doens't work) Mar 17 23:00:36 yo i need help with apktool anyone Mar 17 23:05:51 hm, dumb question, how can i have more active installs than total installs Mar 17 23:09:55 reading internet forums about google market issues is very depressing, you basically realize the market is a pile of crap and you are pretty much on your own with issues Mar 17 23:11:19 g00s: i think that total installs means like the number of people that have purchased/downloaded Mar 17 23:11:26 and since people can have it installed on many devices active installs can be higher Mar 17 23:12:03 anyone have an apktool that works with ics jard Mar 17 23:12:05 jars Mar 17 23:15:46 g00s: The good news is the guy in charge of that shitbox stepped down, and they're changing directions with it somewhat. Hopefully that means they'll improve it. Mar 17 23:15:59 No way to be sure, but it's a chance. Mar 17 23:16:11 Ohai, this is what I've been looking for. Mar 17 23:16:25 Camedo: we can only hope; but Rubin's primary metric for success is activations / time, not developer satisfaction ;) Mar 17 23:16:35 Is there anyone around that can help me with some app development stuff Mar 17 23:16:43 Relating to google api map Mar 17 23:19:18 No one? :( Mar 17 23:19:59 just ask and somebody might answer Mar 17 23:22:33 Ooh Mar 17 23:22:35 Thanks veeti Mar 17 23:24:12 Well, currently I'm creating an app that consists of a tablayout. There's 3 things that I need to kinda sort out. 1 - Removing the focus off the tab after it's been clicked. 2 - With my Google Map API as part of the contents of 1 tab, how can I create a button to filter places while maintaining the tab layout. 3 - How on earth can I cluster my pins! :( Mar 17 23:25:58 Yo, how launch an intent in a Widget... I use a remoteView.setOnClickPendingIntent() when I click on a Button, after I receive it on the method onReceive and I create a Intent and I put Extras on it, but now I just want to lauch it :O Mar 17 23:30:57 Nic007: Mar 17 23:31:00 This may help Mar 17 23:31:00 http://stackoverflow.com/questions/1937236/launching-activity-from-widget Mar 17 23:36:15 Fizzz, my problem is that I have a data who will change after the initiation of this pending intent. So I put a pending intent to go on Onreceive() and on it I created the intent. I found how lauch it (context.startActivity(intent)). But now my problem is that the data I want has been set to 0... Mar 17 23:36:54 Meaning that, theres no data to begin with Mar 17 23:36:55 :o Mar 17 23:38:11 Na, if you put something like private int test; and you give him a value of 5 in onUpdate() method, it will be set back to 0 in onReceive after.... Mar 17 23:38:32 it will have the value of 0* Mar 17 23:41:39 oh Mar 17 23:41:56 it's annoying.... Mar 17 23:45:35 Wel Mar 17 23:45:43 Well* I'd help, but I'm new to android. Mar 17 23:45:49 And I have 3 problems of my own Mar 17 23:45:50 :P Mar 17 23:48:29 ahah no problem Mar 17 23:49:50 So unless you know how to filter places via checkboxes within a tablayout, and clustering Mar 17 23:49:56 xD Mar 18 00:04:55 hey y'all. if i'm using MediaPlayer to play a sound in my app, how do i go about have the sound continue to play on orientation change? right now the currently playing sound gets stopped on rotation... Mar 18 00:12:39 explosivo, put it in a service Mar 18 00:46:46 I have one easy question, what is the easiest way to put a message ONLY at the first lauch of your app? Mar 18 00:47:40 Nic007, save a flag after showing it Mar 18 00:48:38 How can I add delta time to an Android game? Mar 18 00:48:44 hmmmm, what is a flag :O Mar 18 00:49:16 Nic007: ... whatever you want it to be. Usually a SharedPreference Mar 18 00:50:42 Thanks, I'll read on this! Mar 18 00:51:59 How do I make frame independent movement? Mar 18 01:08:17 me again, can anyone tell me how to download android-kernel 2.6.27. Mar 18 01:49:10 hello all Mar 18 02:13:15 Is there any way to change action bar border colors? **** ENDING LOGGING AT Sun Mar 18 02:59:59 2012