**** BEGIN LOGGING AT Fri Oct 05 02:59:58 2012 Oct 05 03:35:41 I have a project I am targetting 14 with min 7 (or 8, can't remember offhand, anyways 2.2). My question is I have a minimal custom action bar (I want to keep the back/overflow as standard to follow the design pattern). My question is what's the best way to determine if there is a physical menu key so I can hide my overflow action "button" if there is such a physical menu key? View.configuration's doesn't work since it'll crash Oct 05 03:37:05 Or does anyone know where in the source the actionbar is able to determine whether to hide the overflow? Oct 05 03:41:15 you don't control that Oct 05 03:41:17 the system does Oct 05 03:41:44 don't worry about, use showAsAction="ifRoom", and let the system do what's right Oct 05 03:41:55 *I am not using any actionbar, but a totally custom implementation that mimics the back functionality and the overflow functionality Oct 05 03:42:04 ... Oct 05 03:42:09 so... use the actionbar? Oct 05 03:42:30 I had to give the actionbar up since inflating a customview into an actionbar is not considered part of the measured width when determing the split the bar Oct 05 03:42:43 I'm out Oct 05 03:43:23 *determining to split the action bar, ie i had some textview in the action bar that would get overlapped by menu actions Oct 05 03:43:38 instead of it splitting, as I'd hope it would Oct 05 03:49:35 how do I use a minimalist number picker? doesn't have to be a slider.. although a slider with half a digit above and below might be nice too.. Oct 05 03:49:42 at this point I can just use a + - picker too Oct 05 03:51:25 jaggz I saw at least two code projects online for that, some time ago Oct 05 03:53:12 ron_frown: you there ? Oct 05 03:54:57 always Oct 05 03:55:30 ron_frown: heh, quick q since you used to have the truck i have, and you still have a dodge - is there a replacement schedule for the timing chain ? Oct 05 03:55:38 HAHAH Oct 05 03:55:46 :) Oct 05 03:55:49 on the the 3.9 I did mine at like 50k Oct 05 03:55:58 teh timing chains in there stretch Oct 05 03:55:59 FAST Oct 05 03:56:10 I replaced it with a diff style tensioner Oct 05 03:56:27 wow. i mean, i have not seen any literature or anything. i guess you just have to check up on it Oct 05 03:56:39 is it pinging bad Oct 05 03:56:50 pinging - yeah, it always had though Oct 05 03:57:19 i thought that timing would be adjusted by reprogramming the computer though Oct 05 03:57:23 no no Oct 05 03:57:25 (not something i can do) Oct 05 03:57:43 it retards/advances for ignition timing Oct 05 03:58:02 if its pinging it should be retarded, right ? Oct 05 03:58:24 but chain gets loose enough it can actually jump a tooth, then things get progressively worse =) Oct 05 03:58:37 yuck :( Oct 05 03:58:47 how many miles Oct 05 03:58:51 160k Oct 05 03:59:00 oh shits yeah its due Oct 05 03:59:12 I think they recommend 90-100k Oct 05 03:59:26 thats what i could not find … where is the schedule ? Oct 05 03:59:27 when I did mine, it magically started running a LOT better Oct 05 03:59:34 ok, cool Oct 05 03:59:36 what year Oct 05 03:59:40 1997 :) Oct 05 03:59:59 i can't believe the damn thing still runs XD Oct 05 04:01:17 it would be really cool if there was a bluetooth dongle thing that transmitted OBD II codes to my android phone :D Oct 05 04:01:20 find a pdf of it Oct 05 04:01:24 owners manual Oct 05 04:01:27 it should have that shit in thee Oct 05 04:01:37 I've never seen a car that had longer than 90k for timing anything Oct 05 04:01:45 belts were usually 60-80k Oct 05 04:01:56 chains are USUALLY longer but the dakota was especially bad with them Oct 05 04:04:08 http://www.youtube.com/watch?v=HgO2g8JB1us Oct 05 04:04:11 there yo go g00s Oct 05 04:04:36 Bear10- sorry I havent got back to you i've been pulling long days Oct 05 04:05:10 ron_frown: cool , thanks. tere is no mention of it in my manual's schedule, which stops at 120k anyhow :) i guess dodge doesn't expect their trucks to last past that Oct 05 04:05:27 should have got a diesel Oct 05 04:06:10 I remember about some dude who was complainging about how he developed weird symptom on thw fwy, shaking... so the guys on the forum ask mileage and year of truck etc Oct 05 04:06:18 he goes on to say he was at 575k mi Oct 05 04:06:30 haha Oct 05 04:06:57 a dodge at 575k? Oct 05 04:07:09 * g00s is skeptical Oct 05 04:07:12 dodge cummins Oct 05 04:07:18 ok Oct 05 04:07:23 the truck was falling apart aroudn it Oct 05 04:07:30 but the engines are solid Oct 05 04:14:06 Anyone know if it's possible to use SimpleOnGestureDetector with multitouch? I have one giant linear layout covering the screen, and it only seems to be picking up one finger at a time Oct 05 04:23:22 hi, I'm using the tabs of SherlockActionBar and I'm having problems when trying to find a view by id. I have this piece of code: TextView textView_nombre = (TextView)(perfilFragment.getView().findViewById(R.id.textView_nombre)); Oct 05 04:23:34 and the app crushes Oct 05 04:23:40 im using sherlockfragments Oct 05 04:24:13 doppio: Not SimpleOnGuestureListener, no. It only supports the events it has methods for. ScaleGuestureDetector has support for scaling. Since scaling's the only two-finger standard guesture, anything else and you'll have to implement TouchListener. Oct 05 04:24:31 kulas: you are trying to get the TextView of a fragment? Oct 05 04:24:37 kulas: from the Activity? Oct 05 04:24:56 kulas: if yes, that is the problem. you just don't do that. (you could get it to work though) Oct 05 04:25:12 kulas: but i think what is making you problems is the activity/fragment lifecycle Oct 05 04:25:32 freeone3000, Actually, what I mean is I'd like to be able to detect multiple gestures at once. SimpleOnGestureListener does support detection of scrolling at tapping, and what I'd like to do is detect when a user taps while already scrolling Oct 05 04:25:53 Currently both work fine independently, but a tap is not registered if a scroll is already in progress Oct 05 04:26:29 howdy Oct 05 04:26:38 pboos: mmm but what should I do? Oct 05 04:26:51 pboos: its the first time I work with fragments Oct 05 04:27:20 kulas: question is, what do you want to do? Oct 05 04:28:42 pboos: I need to change the text of the TextView that has the id R.id.textView_nombre Oct 05 04:30:03 when do you want to do that? when the fragment is loaded? Oct 05 04:33:23 kulas: is it just the first time you want to change it? or if something happens? Oct 05 04:33:46 kulas: most likely you want to do it in the fragment in onCreateView or onStart Oct 05 04:34:10 pboos: I have an activity where the user enters some information. After the user enters the information, another activity appears, this activity has 3 tabs in it so I used Sherlock Action Bar with SherlockFragments to implement the tabs. In one tab I must show in a textview the info that the users enter on the other activity Oct 05 04:34:48 kulas: okay.. so you will have to give arguments to the fragment, that will be considered in the onCreateView Oct 05 04:35:15 kulas: an example for that is here: http://developer.android.com/guide/components/fragments.html Oct 05 04:35:37 kulas: search for DetailsFragment where they show how to do it Oct 05 04:35:58 pboos: ahhhhhhhhhhhhhhh I think I got it! thanks pboos! Oct 05 04:49:12 pboos: it worked! Thanks again :) Oct 05 04:49:47 So, any thoughts on how I might detect simultaneous gestures, preferably using SimpleOnGestureListener? I'm quite lost here, not sure why it's not working as-is Oct 05 05:07:59 i got a nexus one to test my app I made using the emulator. my app doesn't write to the /mnt/sdcard. I set android.permission.WRITE_EXTERNAL_STORAGE. I can't even seem to access the sdcard via the adb shell. I get cd: can't cd to sdcard. I am stumped as to why this is occurring. I read that I may need to root my device but I can't expect all users need to root their devices so I am just stumped. An Oct 05 05:08:00 tips? Oct 05 05:09:15 hey, if I want to measure the space my surfaceView has to expand (so I can select the size of the content to put into it), how do I do that? I don't think it's right to get the screen dimensions because the screen is not completly visible... Oct 05 05:15:30 edman007: there are a couple of ways Oct 05 05:15:53 you can force the view to be measured Oct 05 05:15:58 or maybe this will work http://stackoverflow.com/questions/4393612/when-can-i-first-measure-a-view Oct 05 05:16:40 onMeasure is probably the right place to do it, actually Oct 05 05:17:01 alright, thanks, i'll try that Oct 05 05:22:54 Anyone know the answer to this problem? I have a tablet, got the drivers installed etc etc, when i look at my device manager it shows up correctly, but in eclipse no luck Oct 05 05:27:28 it doesn't make sense that i need to root a phone to debug a simple app and write to a sdcard. oh well i will drink Oct 05 05:27:30 Bear10, what OS? Oct 05 05:28:22 ecret: you *are* using the external storage directory returned from the API, not a hard-coded path... right? Oct 05 05:29:09 Leeds, yep . Environment.getExternalStorageDirectory().getPath(); Oct 05 05:29:23 but it doesn't write? Oct 05 05:29:30 pastebin test code please... Oct 05 05:30:39 http://pastebin.com/9HwruiHy Oct 05 05:31:15 I can't even adb shell to see the /mnt/sdcard path, i get cd: can't cd to sdcard Oct 05 05:31:32 so no writing to it is possible, and no reading since i just try to access files i wrote Oct 05 05:31:38 then it's not mounted there Oct 05 05:31:44 ello Oct 05 05:32:50 Environment.getExternalStorageDirectory().getPath(); gives that path. i pretty much can't write files to the device when using an actual phone(testing with nexus one 2.3.6). It works fine in the emulator Oct 05 05:32:59 edman007, windows 7 Oct 05 05:32:59 sorry Oct 05 05:34:18 ecret: yeah... you can, so something is weird Oct 05 05:34:37 should i wipe the phone or something? Oct 05 05:34:44 no, of course not Oct 05 05:34:54 if you ls in /mnt/ what do you see? Oct 05 05:34:59 ecret: have you tried ddms, or some mtp client if on mac or something ? Oct 05 05:35:26 http://pastebin.com/gZ4P73h6 is ls /mnt Oct 05 05:35:44 g00s: i tried ddms, with file explorer i can't expand sdcard folder Oct 05 05:35:51 and cd sdcard gives a perm. error? Oct 05 05:36:06 weird. is there a developer setting you don't have applied on the phone maybe ? Oct 05 05:36:15 i set it Oct 05 05:36:21 >.> Oct 05 05:36:24 lrwxrwxrwx root root 2012-10-04 18:54 sdcard -> /mnt/sdcard Oct 05 05:36:32 * Bear10 still can't get his tablet working in eclipse Oct 05 05:36:34 :( Oct 05 05:36:45 cd sdcard gives cd: can't cd to sdcard Oct 05 05:36:51 wait, /mnt/sdcard is a link to /mnt/sdcard? Oct 05 05:37:19 have you tried..physically removing/reattaching the card? Oct 05 05:37:26 sorry i did the ls -l in the /. Actually in /mnt i ls -l sdcard gives d--------- system system 2012-10-04 18:54 sdcard Oct 05 05:37:48 right, that's wrong Oct 05 05:37:59 run mount and pastebin, please Oct 05 05:38:00 ugh syntax errors.. why.. Oct 05 05:39:13 Streusel: maybe because... your syntax is wrong Oct 05 05:39:18 nope Oct 05 05:39:35 had some weird statement in it that it didn't like Oct 05 05:39:42 not sure where it appeared out of though.. Oct 05 05:39:44 wasn't there before Oct 05 05:41:42 ecret: ? Oct 05 05:43:24 Leeds: still trying , i need root it seems Oct 05 05:43:34 you don't need root to run mount Oct 05 05:44:05 Hi everyone, is there a way to register some sort of callback when soft-keyboard is about to shown? Maybe, something like Activity.onPreKeyboardVisible()? Oct 05 05:44:36 Leeds: which parameters with mount do you recommend? Oct 05 05:44:54 no parameters - if I wanted parameters I'd have added parameters... just "mount" Oct 05 05:45:58 hey- is it considered "okay" to have a background service running on my app continuously waiting for a connection in order to sync up any unsynced changes to my server? After it completes the sync, the service terminates. Thanks Oct 05 05:46:10 Leeds : http://pastebin.com/y23hFask Oct 05 05:46:34 ecret: so, um... your SD card isn't mounted Oct 05 05:47:20 which *probably* explains why you can't write to it Oct 05 05:47:22 Leeds: that would explain why its not working, that i have no sdcard mounted. Oct 05 05:47:45 yeah…i thought it was a permission issue Oct 05 05:48:17 no, it's a trying-to-write-to-something-which-isn't-there issue Oct 05 05:49:20 maybe reboot the phone Oct 05 05:49:50 Leeds: is there another path to write to? temp path? It is a new phone, maybe it has no sdcard? I am new to physical devices that are not emulators Oct 05 05:49:52 @shad0w1e I don't thing that would cause problem. Just do't do loop forever. Maybe, after several try failed, you terminate the service and try to do it again, when the app can connect to server. Oct 05 05:50:44 can the app receive an intent when the internet connection came back? Oct 05 05:50:45 i assumed the 512 megs of memory that came with the phone was the /sdcard Oct 05 05:52:09 um... no - the SD card is the SD card Oct 05 05:52:16 it's a little card you plug into the phone Oct 05 05:52:27 micro sd card~ Oct 05 05:53:04 shad0w1e: check ConnectivityManager Oct 05 05:53:41 * Leeds -> lunch, curry time! Oct 05 05:53:43 Leeds: i got it. Really poor mistake on my part. Thanks for your help Oct 05 05:53:52 sweet. And I can register this receiver specifically when I know I need it and unregister it after? Oct 05 05:53:58 ugh failing D: Oct 05 05:54:16 ecret: apology accepted :) Oct 05 05:54:22 as a generic question, do people write to sdcard's? it seems a risky thing Oct 05 05:54:49 Why risky? Test if one is mounted, if mounted - use. Oct 05 05:54:53 I want my spinner to when clicked start a new window.. one that uses the onListItemClick.. Oct 05 05:55:39 current issue is that I got a 'Class' that's underlined yellow and won't go away.. Oct 05 05:55:39 true true. If its not mounted, is there another alternative i can google for? Oct 05 05:56:01 after i leave this channel i am making a new irc name after such a poor mistake! Oct 05 05:56:01 The internal storage Oct 05 05:56:12 ok thanks gents Oct 05 05:58:13 leeds, how can I port my 'String paste_time = classes[position];' from onListItemClick over to.. onTouch? Oct 05 05:58:16 or something similar Oct 05 05:59:10 Because currently I'm erroring because my paste_time is an unknown variable as it's defined in onListItemClick however it won't port it over to onTouch Oct 05 06:04:58 bahaha Oct 05 06:05:05 been looknig at some commercial property listings.... Oct 05 06:05:08 AS-IS; property has mold. Priced to sale. Need repairs. Great for a learning academy or day care Oct 05 06:07:30 hmm app starts now but no diff.. Oct 05 06:07:31 ugh Oct 05 06:12:30 ...learn about scope Oct 05 06:15:14 Anyone know how fortumo (in-app payment sdk) managed to put resources in a jar and use them? Oct 05 06:15:17 enough for today ._. Oct 05 06:35:15 hi, I made an activity that sets a wallpaper. all the images have the same resolution 480x800. some of them get stretched, and some others don't. so what should I do to make the wallpaper fit to one and only one screen? Oct 05 06:58:28 hey, I have a textview and I want to choose an image from the gallery and put it into the textview. The problem is that the image is too big and doesnt scale to the textview size Oct 05 06:58:37 the textview expands with the image Oct 05 06:58:41 how can I prevent that? Oct 05 07:03:59 should i be calling close() on the SQLiteDatabse i get from SQLOpenHelper in my service whenever i stop using it? i.e. essentially for every "operation" ? Oct 05 07:04:35 does the android emulator run network services? I created an WebView app but it detects Inactive Network Notification Oct 05 07:04:46 but loading a page in the browser worked.. Oct 05 07:07:22 well adding the permissions in manifest helps.. d'oh Oct 05 07:09:25 hi, I made an activity that sets a wallpaper. all the images have the same resolution 480x800. some of them get stretched, and some others don't. so what should I do to make the wallpaper fit to one and only one screen? Oct 05 08:07:13 ohai people Oct 05 08:41:12 I have array/list with row ids, how can I delete rows which are not in this array from database? Can I do it with just sqlite? Oct 05 08:42:25 Pitel_IPEX, I assume you'll have to iterate through the elements of the db and check them against each element in the array/list Oct 05 08:42:47 I don't know how exactly you do that since I haven't used sqlite Oct 05 08:44:51 Hello I have a project with 4 fragments: home->browse->browse detail->content... On orientation change the previous current fragment is reloaded as the current fragment; however, because it's being reloaded by the activity life cycle the fragments are not being initialized and hence are null causing NPE... What am I doing wrong? Or do I have to save current fragment in onsaveinstancestate Oct 05 08:44:51 and reinitialize/add to the back stack up until the previous current fragment? Oct 05 08:44:53 ok, maybe #sqlite will be better channel to ask :) Oct 05 08:45:17 Pitel_IPEX can you be more specific? Oct 05 08:45:30 ugh, after spending a whole day on getting P2P to work, here I am again Oct 05 08:45:38 The array contains id's, i'm assuming this is the primary id of the table ie the column _id? Oct 05 08:46:26 TomP2P, while it looked potent, wouldn't even run once without throwing odd exceptions Oct 05 08:46:43 lasserix: unfortunately not, the array actyualy contains unique key, not exactly _id. Oct 05 08:46:49 any other ideas/projects that implement P2P in Android? Oct 05 08:46:54 (for a game) Oct 05 08:47:20 Then you need to do a query for the unique that corrosponds to the field in your table, and remove them as needed Oct 05 08:48:01 lasserix: so the sql migth be something like: delete from my_table where my_column_is_not_in_list. the where part is what I'm looking for. Oct 05 08:50:51 You can either do a two pass query, grab all the pids of existing, and then do a delete on all not equal Oct 05 08:52:18 Sorry don't know more, someone in sqlite will probably have a concise statement for you Oct 05 08:52:33 lasserix: sqlite guys says "WHERE x NOT IN (1,2,3)" will do it :) Oct 05 08:52:40 ahh cool Oct 05 08:55:52 If I have a stack of fragments that I need to be initialized to pass an object too, what's the best way to handle orientation changes? Ie the activity will correctly replace the fragment, but since it wasn't initialized it'll be null and give me a NPE Oct 05 09:25:01 When an orientation change happens, and a fragment is re-attached, how can I get a reference to the fragment? Oct 05 09:26:44 is there a way to replace the main layout with my own custom layout? i can't delete the default one from the editor Oct 05 09:27:06 ultra- using eclipse? Oct 05 09:27:20 yep…just realized i can probably remove via xml Oct 05 09:27:47 You define your custom layout in .xml then change the setContentView() call in onCreate in your activity to point to the new custom layout Oct 05 09:28:05 ok,thanks Oct 05 09:28:16 or i could do it via code and call setContentView() Oct 05 09:28:53 android.database.sqlite.SQLiteException: near "?": syntax error (code 1): , while compiling: DELETE FROM locations WHERE location NOT IN ? Oct 05 09:29:03 db.delete("locations", "location NOT IN ?", new String[] {where.toString()}); Oct 05 09:29:06 wtf? Oct 05 09:29:36 where.toString() == "(\"asdf\",\"qwer\")" Oct 05 09:32:51 when I put chnage just ? to (?) in second parameter, and removes parenthesis in the where.toString(), it compiles, but does not work. Oct 05 09:36:22 Pitel_IPEX: http://stackoverflow.com/questions/7418849/android-sqlite-in-clause-and-placeholders Oct 05 09:37:06 You have to use as many ? as args your passing it looks like Oct 05 10:01:27 dont you just love when there is a new support package available Oct 05 10:01:36 not that there is one now, but... Oct 05 10:01:49 maybe soon Oct 05 10:03:33 i'm trying to debug my NDK application. I have debuggable=true in the manifest but when I start ndk-gdb this is the output: http://pastebin.com/DdaYEJcy Oct 05 10:03:49 looks like there are no debug symbols to be found or something Oct 05 10:04:01 when a crash occurs in my NDK code, there is no useful information there Oct 05 10:04:58 erikwt: you should get a debug prompt. for me, it looks like gdb is only attached right after onCreate of the Activity was calles Oct 05 10:05:01 called* Oct 05 10:08:14 Anyone know of a way to detect if there is a physical menu button present? Oct 05 10:08:46 heller, I actually do get a debug prompt Oct 05 10:08:58 and I hit 'c' for continue, that works Oct 05 10:09:02 good Oct 05 10:09:07 but when a crash occurs, I dont get any useful info Oct 05 10:09:09 like this: Oct 05 10:09:25 erikwt: do you have APP_OPTIM:=debug in your Application.mk? Oct 05 10:09:47 http://pastebin.com/vS9wWsEV Oct 05 10:10:53 erikwt: what does bt tell you? Oct 05 10:11:03 erikwt: are you familiar with gdb itself? Oct 05 10:19:14 heller, I'm not too familiar with gdb, but I would expect some more information after the SIGSEGV Oct 05 10:19:38 erikwt: after a segfault, gdb presents you with yet another prompt Oct 05 10:19:51 erikwt: which allows you to perform all kinds of stuff Oct 05 10:20:13 should be simple but i'm not sure what to do with this… my app is a grid, which will change slightly in size… how can i add a blank "spacer" around the edges? Oct 05 10:20:14 erikwt: for example to display a backtrace (type bt) Oct 05 10:20:50 spacer will adjust its size to block out grid items that are off-screen Oct 05 10:21:24 erikwt: after that the last function call stack will be presented, if you compiled with debug information, you get line numbers etc. you can navigate the call stack. type in "up" to get one frame up etc. you can then introspect the variables inside that stack frame Oct 05 10:21:47 erikwt: search for a gdb howto for more information Oct 05 10:22:07 nm i think i got it Oct 05 10:33:32 heller, thanks for your help. I'll read up on gdb Oct 05 10:54:48 hi, I made an activity that sets a wallpaper. all the images have the same resolution 480x800. some of them get stretched, and some others don't. so what should I do to make the wallpaper fit to one and only one screen? Oct 05 10:55:35 like a home screen wallpaper? Oct 05 10:55:46 you have no control over that really Oct 05 11:11:05 mikedg_, but had one which is locked to one screen Oct 05 11:11:23 and is also fitting one and only one screen Oct 05 11:11:35 it does not rotate Oct 05 11:21:13 i will have to repeat my question.. cos this is made my boss mad Oct 05 11:21:17 hi, I made an activity that sets a wallpaper. all the images have the same resolution 480x800. some of them get stretched, and some others don't. so what should I do to make the wallpaper fit to one and only one screen? Oct 05 11:21:36 he just could not believe it! Oct 05 11:24:23 You're making an app that sets a wallpaper, and apparently this is important enough to warrent a mangement structure? THAT's the bit I can't believe. Oct 05 11:24:46 First thing to note is the dimensions. Is it really 480x800, or are some 800x480? Oct 05 11:25:02 Second thing to note is that your phone's device resolution is probably way larger than 480. Oct 05 11:25:28 And finally, resize artifacts show up un-equally because of how we percieve things. Oct 05 11:29:37 how can you start a new activity from another activity that's residing in a tabhost without losing the tabhost, help would be appreciated. Oct 05 12:05:00 Hi all. I have a tablet that I'm using for USB debugging under eclipse in linux, and I configured udev with the proper vendor id but it shows up on device selection as "??????" Oct 05 12:05:13 but it does show up as a device, though Oct 05 12:05:15 is it a crappy-tablet? Oct 05 12:05:20 just that I can't start usb debugging Oct 05 12:05:56 it's a nexus tablet Oct 05 12:06:18 asus Oct 05 12:06:31 then your permissions are wrong Oct 05 12:13:32 I did chmod a+r on the udev rules file Oct 05 12:13:38 still, no joy Oct 05 12:14:29 not the permissions on the udev file :) Oct 05 12:20:10 oh, where, then? Oct 05 12:22:31 for an experiment, run "adb kill-server ; sudo adb devices" and see if it works Oct 05 12:24:26 foo303: permission setting somehow never helped for any of my device, I always need to change owner to my user Oct 05 12:24:58 don't ask me why, but i have recognized that now with 4 different devices, that chmod a+x doesnt help, even though the rule is applied correctly Oct 05 12:25:58 but only at my desktop, for my laptop the suggestes udev rules in the android docu work perfectly, so no idea how it is, but you could also try appending a OWNER="username" to your rules Oct 05 12:26:07 wow, it works, Leeds Oct 05 12:26:21 I'm not sure how or why, since I restarted after my first frustration with this Oct 05 12:27:19 running as root bypasses the permissions Oct 05 12:27:38 I just set the group owner to be users Oct 05 12:27:50 and have been using it for a long while like that, on a phone Oct 05 12:27:53 so you can be lazy and just keep running as root - or figure out stuff to get it working as a user Oct 05 12:28:04 but with the tablet, yeah, I'll remember to kill the server when things like that happen Oct 05 12:29:31 Hey folks, is there anyone using Scala for Android development? When googleing, I get the impression it's a "It can be done in a way but you don't want to if you want to get your job done" thing… Oct 05 12:34:50 hi, how can i hide activity menu on android 4.0.4, i would like to have web view in total fullscreen Oct 05 12:38:45 Is there a way to pop the topmost fragment without ui change? Oct 05 12:43:37 hello guys Oct 05 12:43:51 i need a little help Oct 05 12:44:08 EvilDin: this.requestWindowFeature(Window.FEATURE_NO_TITLE); should do the job. Oct 05 12:44:13 have to make clickable areas on one picture Oct 05 12:44:19 how i can do that? Oct 05 12:44:28 with surface? Oct 05 12:44:38 or with rectagles areas Oct 05 12:45:25 Hey people. Oct 05 12:45:43 demonoid_com: will if you just want clickable rectangles you could layer invisible views over your image in FrameLayout Oct 05 12:46:12 The support library v4 contains a bug that breaks notifications on Android 3.2. Somebody released a patch where he changed one byte in a .class in the JAR, but I'm scared of using this since he might have added a trojan horse. Any ideas what I could do? Oct 05 12:46:17 I'd like to ask what is the android support library used for ? will it able me to write applications that run on 2.2 but using the 4.0 API ? Oct 05 12:46:38 I heard compiling the support libraries myself might be tricky since Google uses some proprietary Android build system (Android.mk files)? Oct 05 12:46:58 How did you deal with the problem that compatibility notifications don't work on 3.2? Oct 05 12:47:08 R4md4c: to some extent, yes Oct 05 12:47:48 Leeds: Could you explain more ? please Oct 05 12:48:21 Ankhwatcher:mmm but also need areas that are not rectangles Oct 05 12:48:35 R4md4c: more than http://developer.android.com/tools/extras/support-library.html does? not really Oct 05 12:49:03 I use the support library to get something that looks like Android 4 on all devices since Android 2.1 Oct 05 12:50:56 is it possible to start a new instance of the same activity via intent? Oct 05 12:51:40 sure Oct 05 12:51:50 :s Oct 05 12:55:23 But that would make the back button behave a bit strangely. Oct 05 12:55:37 You can have the new activity replace the old one by using the single top flag. Oct 05 12:56:03 ...or would that just resume the existing one? hm... Oct 05 13:03:13 Ankhwatcher: where should i put this code: this.requestWindowFeature(Window.FEATURE_NO_TITLE) ? Oct 05 13:04:15 EvilDin: you should probably google that code to find out more about it. But it worked for me at the start of the onCreate statement of my activity. Oct 05 13:04:35 Hello I was wondering I have three (technically more) fragments, browse-> which goes into either a content_list fragment (listview) or a content_page fragment (pager adapter). Both content fragments have a button to switch viewing mode, swapping out one and replacing it with the other which are done by methods in my activity that add them to the backstack (since sometimes they will be Oct 05 13:04:35 loaded from other fragments). Thing is since I want to treat them essential as one layer on the stack, I use manager.popimmediate whenever it's being called from either content fragment (loading the other one) and then load them as described above: there is a brief moment when you can see the underlaying browse fragment during this pop/swap... I am just wondering if there is another way Oct 05 13:04:36 to achieve the same thing. Oct 05 13:06:50 *So that there is not that all too brief interlude of seeing the browse fragment Oct 05 13:07:00 Phew that was winded Oct 05 13:10:23 good day sirs and madammes; i have googled for a while now, but i get no proper info or answers to that problem Oct 05 13:10:34 i have a simple activiy with a xml layout... it contains a progressbar, which is accessed with progressBar = (ProgressBar) findViewById(R.id.progressBar); in the onCreate()-method. strangely that progressbar is displayed, but accessing it leads to a nullpointer exception, as findViewById() returns null... WHY ???? Oct 05 13:11:12 That reminds me... my holo everywhere progress bar uses the dark theme, even though the whole activity is set to light theme. Why? Oct 05 13:11:45 keex, did you inflate the layout BEFORE you tried findViewById? Oct 05 13:12:21 UnbertKant: no... why? accessing textfields also works without inflating Oct 05 13:12:35 0,1 #fibonnacifriday Oct 05 13:12:51 How can that work without inflating? Magic? Oct 05 13:13:05 :D Oct 05 13:13:08 Is there a reason why you would want to access it before you inflated it? Oct 05 13:13:34 UnbertKant: i didn't even know one needs to inflate anything at all Oct 05 13:13:43 I get a deprecated warning for : downloadThread = (Thread) getLastNonConfigurationInstance(); Oct 05 13:13:50 My understanding is that the views aren't there if you didn't inflate the xml, so I'm surprised that you can access text fields. Oct 05 13:14:08 but the new version points to Fragment API, with setRetainInstance(boolean) Oct 05 13:14:18 UnbertKant: could you point me to a direction, something to read about inflation ? Oct 05 13:14:23 so how would that work with my Thread? Oct 05 13:15:08 First you do setContentView(R.layout.blablabla), then you do findViewById Oct 05 13:15:54 setContentView handles the layoutinflation for you, you usually don't need to deal with the explicit layout inflaters. Oct 05 13:15:56 hi Oct 05 13:16:01 hi! Oct 05 13:16:10 UnbertKant: ok, that IS the case Oct 05 13:16:31 Maybe you used the ID more than once? Oct 05 13:16:41 Maybe you defined the id with @id instead of @+id? Oct 05 13:16:57 Maybe you included the wrong R-file? Check your imports. Oct 05 13:17:39 "progressBar" is a funny id, you might want to change it to "torrentDownloadProgressBar" or something more specific. Oct 05 13:18:28 That way you notice a wrong R-file import, since android.R might contain "progressBar", but not "torrentDownloadProgressBar" (or whatever is meaningful in your case) Oct 05 13:19:05 UnbertKant: http://pastebin.com/U1ifuQur Oct 05 13:20:41 What? You don't import any R-file at all! How can that work? Oct 05 13:22:06 uberkunt, your name is offensive Oct 05 13:23:42 UnbertKant: when i try importing it, it immediately disappears . i use intellij Oct 05 13:24:27 I don't know about intellij Oct 05 13:25:40 UnbertKant: all R-ids are resolved... Oct 05 13:25:45 09:20:47 < UnbertKant> What? You don't import any R-file at all! How can that work? Oct 05 13:25:48 uh Oct 05 13:25:53 if his activity package is the same as his app package Oct 05 13:25:59 then the autogenerated R file will be in the same package Oct 05 13:26:03 thus importing is totally pointless Oct 05 13:26:14 tmyk! :> Oct 05 13:26:34 UnbertKant: all other widgets work... except for the progressbar Oct 05 13:27:20 Hm, never thought about putting the R file someplace else, it just sits in gen for me. Oct 05 13:27:27 I have two avds in with api level 10 and 15. I choose 10 when creating eclipse project using maven and it shows platform.version 2.3.3. I am getting outofmemory error on using httpurlconnection and so wanted to check by using higher platfrom.version for api level 15. how do I do that ? I tried changing it in pom.xml to 4.1.1.4 but it sill uses level 10 when it launches emulator Oct 05 13:27:34 Wild guess: change the id. Oct 05 13:28:04 how get to work scrolling in ListView inside ScrollView? Oct 05 13:29:16 ..or disable fully disable Scrolling in ListView Oct 05 13:29:28 you don't put listview inside scrollview, ever. Oct 05 13:29:47 ListView is basically a scrolling linear layout. So what exactly do you want to do? Oct 05 13:29:55 recommend some AdapterView without scrolling? Oct 05 13:30:05 That makes no sense. Oct 05 13:30:10 What do you want to do? Oct 05 13:30:46 many elemnts(and ListView) in LinearLayout inside ScrollView Oct 05 13:30:54 hi room Oct 05 13:31:04 UnbertKant: i did that. renaming the ID did not help Oct 05 13:31:10 UnbertKant: it's SUPPOSED to sit in gen. Oct 05 13:31:16 UnbertKant: gen is used as a source directory. Oct 05 13:31:21 I get outofmemoryerror when I tried reading using httpurlconnection class Oct 05 13:31:55 mms_: it doesn't really matter what your target is. You can just open an API 15 emulator and install your apk./ Oct 05 13:32:02 Not possible, either you use only a linear layout in a scroll view and fill it by code, or you use just a list view and put everything in there. Oct 05 13:32:05 mms_: I don't have experience with whatever build system running off of maven that you're using. Oct 05 13:32:06 i have a class ViewHolder {ImageView imagview; CheckBox checkbox; int id;} and want to set the checkbox to checked, when clicked on the ImageView Oct 05 13:32:19 lov: I run using eclipse Oct 05 13:32:44 mms_: create an AVD for api level 15. Oct 05 13:32:57 mms_: I strongly doubt that your OOM error relates to HttpURLConnection itself, however. Oct 05 13:33:00 or to API level 10 Oct 05 13:33:04 I strongly suspect that you are just running out of memory. Oct 05 13:33:17 use the memory analysis tools to look for leaks or excessive usage Oct 05 13:33:23 hello Oct 05 13:33:32 UnbertKant :( Oct 05 13:33:52 bingels: don't put a listview inside of a scrollview. Trust me, just don't do this. Oct 05 13:34:17 is one of the intractable problems which I do not like in Android Oct 05 13:35:25 How many items in a simple text-row listview is the cut for enabling fast scroll? Oct 05 13:36:23 collection of all the problems shows that it is not quite completed yet all Android Oct 05 13:38:42 bingels: we don't really care what you think. Oct 05 13:39:12 bingels: http://stackoverflow.com/questions/6210895/listview-inside-scrollview-is-not-scrolling-on-android Oct 05 13:39:27 helllo Oct 05 13:39:44 Is there anyway to swap two fragments both being added to backstack but at the same level in the backstack? Oct 05 13:40:22 http://stackoverflow.com/questions/3495890/how-can-i-put-a-listview-into-a-scrollview-without-it-collapsing Oct 05 13:42:01 Do you have tutorials about Twitter oauth on Android ? I not found a recent one. With signpost and not Twitter4J if possible. Oct 05 13:42:13 what's name of some AdapterView without scrolling? Oct 05 13:42:18 those who ignore romainguy's advice do it at their own cost Oct 05 13:42:22 ^^ Oct 05 13:45:05 * bingels sighs Oct 05 13:46:07 bingels: the most complicated parts of the listview are its ability to scroll, and its handling of recycling views. If you're willing to just inflate all the views and leave them, you can create your own version in about 30 minutes. Oct 05 13:46:19 or, you can just endlessly bitch about it. Oct 05 13:47:58 hello Oct 05 13:48:08 hi world Oct 05 13:49:14 I am using cxf to return json object and seems that inputstream keep reading past end of data Oct 05 13:49:50 hello selvodka Oct 05 13:49:54 mms_: what does statement such as that even mean? Oct 05 13:49:55 The value read past data has int value of 65535 Oct 05 13:50:15 nah I bet it's actualy -1, you probably have cast it to char or something. Oct 05 13:50:19 alankila: sorry context is that I am using android read restful service and am using json Oct 05 13:51:14 also that implies someone is using the read() method which returns it one byte at a time. That is probably excessively slow, unless you are just debugging it that way. Oct 05 13:51:17 when I read the data from inputstream it never ends reading Oct 05 13:51:21 does anybody want a apk file Oct 05 13:51:23 ?? Oct 05 13:51:34 mms_: the key is, quit the read loop when you read -1 Oct 05 13:51:35 alankila: yes I am reading byte at time Oct 05 13:51:51 ??? Oct 05 13:52:04 mms_: if you read the javadocs to read you see how it works Oct 05 13:52:05 alankila: I am doing that as I said it never ends....past data read I returned from service its reading some char whose value is 65535 Oct 05 13:52:23 alankila: while((c = (char) data.read()) != -1) { Oct 05 13:52:53 anyone having keyboard input problems after updating eclipse? i can no longer use my keyboard for typing and i have to click every letter on screen :( Oct 05 13:52:53 it seems some bug in cxf json product Oct 05 13:52:54 the problem is you cast it to char Oct 05 13:52:56 it seems some bug in cxf json produce Oct 05 13:53:00 char can not represent the negative value -1 Oct 05 13:53:11 char is unsigned 16-bit integer Oct 05 13:53:19 alankila: let me try then Oct 05 13:53:31 Is there a way to enable the end blue highlight at either end of a view pager when there's only one page? Oct 05 13:53:35 mms_: also semantically your code is assuming that the inputstream is in ISO-8859-1 encoding Oct 05 13:53:39 if it is not, that's another bug Oct 05 13:53:55 yes Oct 05 13:54:15 because only in iso-8859-1 it is valid to do char c = (char) bytevalue Oct 05 13:54:31 or well, (char) (bytevalue & 0xff) to be very precise Oct 05 13:55:08 don't get confused about that though. If you use read(), the api returns int, and int doesn't have signed expansion issue that byte has. Oct 05 13:55:52 alankila: you absolutely righ Oct 05 13:55:59 mms_: but for heavens sake, do not do 1-byte-at-a-time read loops. It's probably like 100 times less efficient than some byte[] based read loop. Oct 05 13:55:59 now code is not looping Oct 05 13:56:35 byte[] size 100 ? Oct 05 13:56:41 Bear10: in the AVD you mean? Oct 05 13:56:46 yeah i got it Oct 05 13:56:47 well I recommend some chunk like 10k for byte[] Oct 05 13:56:49 Bear10: if the AVD isn't specified as having a hardware keyboard Oct 05 13:56:49 have to specify keyboard in it Oct 05 13:56:49 ok Oct 05 13:56:51 yeah Oct 05 13:56:54 ok Oct 05 13:56:56 thanks :) Oct 05 13:57:29 mms_: I have no idea what's most efficient but using byte[4096] is about 4000 times as efficient as reading one byte at a time. Oct 05 13:57:34 mms_: you need to be very careful about it though. Every such read loop looks basically like this: int len; while (0 < (len = stream.read(buffer))) { handle(buffer, 0, len); } Oct 05 13:57:37 these numbers are totally arbitrary. Oct 05 13:57:53 and yeah, just because you request 4096 bytes doesn't mean you'll get them. Oct 05 13:58:04 If you're reading from HTTP, you really need to look at the content length. Oct 05 13:58:17 * alankila is not sure if stream.read(buffer) == 0 should lead to aborted read loop. Oct 05 13:58:18 it's possible that you're using HTTP 1.1 where the connection stays alive even after you finish getting the content Oct 05 13:58:28 the assumption is that you'll make another request, and the TCP handshake is expensive. Oct 05 13:58:35 I use the 0 < to treat both -1 and 0 the same, personally. Oct 05 13:59:05 * lov glares at alankila Oct 05 13:59:10 you really ought not to. Oct 05 13:59:18 iirc the contract is that -1 implies end of stream, not 0 Oct 05 13:59:31 lov: well depending on the inputstream source, it might keep on returning 0 on repeated read attempts Oct 05 13:59:34 using byte[] I am checking for -1 now Oct 05 13:59:35 exactly. Oct 05 13:59:39 read bytes Oct 05 13:59:41 it might be some API goof Oct 05 13:59:44 hmm Oct 05 13:59:59 obviously if you know the length ahead of time that's simpler. Oct 05 14:00:29 hmm i'm trying to elipsize a textview, i have maxlines = 1, weight = 1, layout_width= 0dp, but it still doesnt elipsize at the end any thoughts? Oct 05 14:00:35 for instance on unix it's fairly customary to treat 0-byte read as an intent to interrupt the read. Typically the program recived a signal. Might not apply to java. Oct 05 14:01:00 alankila: yeah, doesn't apply to java. There's no such thing as interrupts in javaland Oct 05 14:01:04 ignoring thread.interrupt, etc. Oct 05 14:01:10 but those are things you need to actually check for and expect. Oct 05 14:01:12 but I'm hazy on this. I'll check this out next time I'm working with read(byte[]) Oct 05 14:01:17 please do Oct 05 14:01:26 if you've got some api that's returning 0 for EOF that's a pretty severe bug Oct 05 14:01:37 What's the best way to swap two fragments on the backstack without forcing whatever fragment is underneath? Oct 05 14:01:49 well that's the thing. The 0 might indicate "no more data for now", but not exactly EOF, which might imply that you can close the socket. :-/ Oct 05 14:01:53 lasserix: you must ask gently. Oct 05 14:02:30 alankila: you have to know about that ahead of time, however. I'm totally fine with 0 meaning "no more data for now" as long as you, the developer, know that it could happen and might choose to poll for it. Oct 05 14:02:40 lov: one of these times I'll phrase the question concisely Oct 05 14:02:46 lasserix: :) Oct 05 14:03:06 lov: but if you read the stream.read() apidoc, it indicates that 0 will never be returned unless the passed-in buffer itself is 0 bytes long. Otherwise the read will block until at least 1 byte can be returned. Oct 05 14:03:17 So there should not be an issue of correctness despite the 0 < hack Oct 05 14:03:55 hmm Oct 05 14:03:55 the problem is I'm checking to see which fragment is requesting and which is loading, if both are either of those two fragments I want to swap, I popoffimediate and then add the other one. Except this loads the fragment that was before either, and I only want to swap them without invoking that fragment Oct 05 14:05:07 anyway, I'll revisit this issue. I last hit it when working with some httpclient implementation, and did not stop to debug. It may be that I simply screwed up something. Oct 05 14:06:16 well, it's possible that the http client is screwy :P Oct 05 14:06:37 activity in emulator is opening httpconnection to host using ip 10.0.2.2 ....how can I use hostname instead ? Oct 05 14:06:40 but there's keepalive there, so most likely the implementation is not exactly a raw socket anymore but some kind of cooked representation that abstracts the protocol way. Oct 05 14:06:52 just for the record: the reason why after inflating the view the id of the progressbar could not accessed is that the id-attribute did not have an android:-prefix Oct 05 14:07:23 as in: android:id="@+id/someId" Oct 05 14:07:53 one of those beautiful things you only have to learn once ;p Oct 05 14:07:59 why is tabhost giving me a deprecated warning in eclipse? is there a newer substitute for it? Oct 05 14:08:07 android sure has a lot of things you only have to learn once. Oct 05 14:08:18 balls2thewall: check out ViewPager from the support library Oct 05 14:08:22 R cannot be resolved to a variable" Oct 05 14:08:45 ° Oct 05 14:08:57 what is that? I have not developed android app for a long time.. Oct 05 14:09:02 the viewpager is nice and all but its not tabhost Oct 05 14:09:23 balls2thewall: no, but it can be combined with an actionbar... Oct 05 14:09:36 currently I am running my app in emulator so to connect to localhost I am able to use 10.0.2.2 but when I actually run it on device and use wifi I hope it can use hostnames ? But how in emulator I can use hostname for open httpurlconnection ? Oct 05 14:10:10 I just imported an existing project, and it got those errors. it supposed to be no errors Oct 05 14:10:15 mms_: your question is sort of garbled. TCP connections don't really work by hostnames, they are turned into IPs just the same, just different IPs. Oct 05 14:10:54 alankila: I know I can use IP...but to make emulator use hostname what can we do ? Oct 05 14:11:03 any hint? Oct 05 14:11:20 the question still doesn't really mean anything to me. Are you asking if you can do name resolving during the connection establishing time? Oct 05 14:11:23 alankila: for pc I know there is dns and hosts file...for emulator i thought it should use it Oct 05 14:11:34 alankila: yes Oct 05 14:12:34 mms_: I imagine you do 'new Socket(InetAddress.getByName(hostname))' ? Oct 05 14:13:12 alankila: httpurlconnection takes hostname in http:// url string Oct 05 14:13:15 well there's actually possibility to just giving a String hostname there. I guess it resolves it for you. Oct 05 14:13:36 alankila: the url class should resolve it Oct 05 14:13:42 mms_: well URLs handlers typically handle hostname resolving for you. Oct 05 14:13:59 "R cannot be resolved to a variable" Oct 05 14:14:09 alankila: exactly ..I am using httpurlconnection class and passing it url as http://hostname/.... Oct 05 14:14:24 I still have no idea why you are even asking this question. Perhaps you are confused by the fact that the NAT in the emulator prevents certain addresses from working that target the machine the NAT runs on (as it seems to be) Oct 05 14:14:36 alankila: its not resolving names...I had to pass in 10.0.2.2 to get it to work Oct 05 14:14:46 android emulator should really offer bridged networking somewhere Oct 05 14:15:13 are you sure that diagnosis is correct? what if it is resolving names just fine, only that the IP it resolved to can't be reached from the emulator? Oct 05 14:15:17 ppp: errors in your layouts someplace? Oct 05 14:15:45 hey everyone. i create a webview programmatically, which is invisible. a JS interface was defined so that when the webpage has been loaded it fires a function on JS interface. But that function is not getting called. How do I debug this problem? Oct 05 14:15:47 Is there anyway to detect if the device has a physical menu button key? Oct 05 14:15:48 Please help Oct 05 14:16:05 My opinion in general is that all other networking strategies except bridged networking equal fail with virtual machines. Oct 05 14:16:50 alankila: I've found it particularly eerie how well it works to make the VM basically appear as a separate host as far as the router cares. Oct 05 14:17:03 alankila: if I use hostname then it should work when i use wifi (connectify) connection ? Oct 05 14:17:03 How does facebook app do that list when you scroll and it loads up more items? Is that a default function in the list? Oct 05 14:17:14 mms_: sure Oct 05 14:17:20 i mean it goes to fetch more items from the server or something Oct 05 14:17:32 ok then I will leave it there assuming name resolution will work when I use actual device and wifi Oct 05 14:17:43 anybody please Oct 05 14:17:49 thanks guys Oct 05 14:17:51 bye Oct 05 14:23:25 ill try again, can i call an activity from an activity of a tabhost so the tabs wouldnt vanish? Oct 05 14:25:17 Bear10: I assume that they made a custom version of listview. Oct 05 14:25:42 lov, yeah it looks like onScrollEventListener or something Oct 05 14:25:46 spyzer: not a clue. try stackoverflow. Oct 05 14:25:53 onScrollListener Oct 05 14:28:05 Hodapp: its prebuilt project. Oct 05 14:28:22 Hodapp: it should work without error Oct 05 14:33:18 gah i need google maps in a fragment activity =/ is there a way to use google maps without the mapactivity? Oct 05 14:38:24 hello, I am trying to setup an eclipse environment for android core system. Did anybody succeeded? I mean that I want to edit apps such as the Android Settings Oct 05 14:46:36 How's the HDMI output on most Android devices work? Is it just mirroring the normal screen? Same resolution or scaled? Oct 05 14:47:10 Hodapp: i changed target from 2.3.3 to 4.1 then it works Oct 05 14:47:44 Hodapp: why is that? Oct 05 14:50:30 Hodapp: in our droid it is mirrored Oct 05 14:51:18 tinti: Alrighty Oct 05 14:51:56 Hodapp: I would say that you could do an extra screen depending on kernel args Oct 05 14:52:40 Mirroring's what I'm interested in. I'm just curious if it's standard behavior. Oct 05 15:04:02 There is nothing like implementing some new feature, hoping the reusability of the code will hold up after all the rigging and wiring and voila it works. Oct 05 15:10:42 there's one thing I say for java: refactoring is far easier in it than any other language I've used. Partly because of the IDE, which as efficient symbol search and continuous build features, but also partly because of the compile-time type checking that catches most mistakes Oct 05 15:11:01 there's such a high guarantee that if it compiles, it also works. Oct 05 15:11:59 a lot of people hate eclipse, and hate java, for this or that reason, but imho these features I mentioned are delivered in such a tight package that the I think that part works incredibly well Oct 05 15:12:12 -the Oct 05 15:12:40 yes, I am a big fine of static typing Oct 05 15:12:44 s/fine/fan Oct 05 15:12:56 ello Oct 05 15:12:57 the continuous build is especially impressive. Typically over a debug link I see the changed version of code running less than second later I press cmd-S which saves the file Oct 05 15:13:08 because hot code replace is also possible on java, even if it's not possibile on android (boo) Oct 05 15:14:48 It's a real shame that doesn't work on android. Maybe people haven't been used to getting it so they don't know what they are missing. It shrinks the change-compile-deploy-test cycle length to the absolute minimum. Oct 05 15:15:26 hy all Oct 05 15:15:35 how can I write log to the eclipse consol? Oct 05 15:15:54 gregtom6: see Log class, try Log.i("BOO", "Hello world") Oct 05 15:19:38 alankilla: I saw that, but not works Oct 05 15:19:54 nothing happens on eclipse consol Oct 05 15:20:35 omg, I found that Oct 05 15:20:37 thx Oct 05 15:20:39 logcat Oct 05 15:20:40 :D Oct 05 15:21:38 yeah I thought you were talking about the logcat window all the time though Oct 05 15:21:45 the console is just the tool output. Useful, but not really. Oct 05 15:25:36 okay, I try to connect to a bluetooth mate via bluetoothsocket, but I get ioexception Oct 05 15:25:39 what is the problem? Oct 05 15:25:52 it should ask for the pair code Oct 05 15:25:55 JakeWharton, are you here? Oct 05 15:26:23 ok Oct 05 15:26:36 omg i finally registered Oct 05 15:26:48 right? Oct 05 15:26:54 hello? Oct 05 15:27:31 did somebody say something? Oct 05 15:27:36 i did Oct 05 15:27:38 what? Oct 05 15:27:43 yay!! Oct 05 15:27:55 can you help me Oct 05 15:28:05 silverfox983: just ask your question, thanks. Oct 05 15:28:20 well Oct 05 15:28:29 i need help compiling a kernel from source Oct 05 15:28:43 for an app you're writing? Oct 05 15:28:50 I try to connect to a bluetooth mate via bluetoothsocket, but I get ioexception. What is the problem? Oct 05 15:29:07 ugh. Oct 05 15:29:10 silverfox983: source.android.com Oct 05 15:29:19 if you're trying to do this for a custom rom, #android-root Oct 05 15:29:37 gregtom6: got bluetooth permission? Oct 05 15:29:43 okey dokey Oct 05 15:32:13 I can't apply android:margin_top/bottom to a Button? Oct 05 15:32:39 In eclipse if I right click a variable from another object is there a way to jump to its declaration? Oct 05 15:32:44 hi! is there any system notification that I can set so that to knwo when an activity launched by intent has been done? Oct 05 15:33:38 opariti: are you looking for startActivityForResult(..) ? Oct 05 15:34:31 evancharlton: yes ;-) ... Oct 05 15:35:11 evancharlton:+ thanks man Oct 05 15:35:56 no problem Oct 05 15:36:51 meetoman: wat Oct 05 15:41:25 I'm setting samplesizes on my bitmapfactory.options and my images look like complete crap if i use anything higher than 2. anything i can do to reduce the size of the bitmaps while avoiding having my images look terrible? Oct 05 15:45:49 anyone have problems lately uploading an apk to the play store? Oct 05 15:46:32 LuxuryMode you might want to read this: https://plus.google.com/111962077049890418486/posts/Ytar76F56y5 Oct 05 15:47:42 thanks lasserix, ive seen that and have tried to keep those points in mind, but unfortunately, it hasn't helped me much Oct 05 15:48:29 hmm, I have a fragment in my activity, but on orientation change, the fragment becomes null Oct 05 15:48:44 the fragment has setRetainInstance set to true Oct 05 15:48:53 so I'm guessing a lifecycle event that I'm missing Oct 05 15:49:00 but which one could it be? Oct 05 15:50:11 belgianguy i had similar problem/ i was initializing fragments in code / to fix do a check if null if so fragmentManger.findbytag Oct 05 15:50:20 when you add the fragments use the tag flag Oct 05 15:50:27 what do you mean "the fragment becomes null"? Oct 05 15:50:38 the entire activity is recreated so you have to re-obtain the fragment instance from the manager Oct 05 15:50:50 http://stackoverflow.com/questions/8474104/android-fragment-lifecycle-over-orientation-changes Oct 05 15:50:53 I have a reference to my fragment in the activity Oct 05 15:51:12 that I populate with a reference when I create it Oct 05 15:51:14 you have to re-assign the fragment by using fragmentManager.find by id or find by tag Oct 05 15:51:41 in onCreate I check if savedInstanceState is null, and it isn't null Oct 05 15:51:46 so it passes over it Oct 05 15:52:02 and I guess that's what causes my fragment not be reinstated Oct 05 15:53:28 http://pastebin.com/Y3AcnZi2 Oct 05 15:53:31 belgianguy here's an example http://pastebin.com/qZgMbS77 Oct 05 15:53:34 is the activity code Oct 05 15:54:48 so you can just add an else to that if saved == null and then do fragment = (BackgroundFragment) getFragmentManager().findFragmentByTag("thread_manager"); Oct 05 15:54:58 the entire activity is recreated so you have to re-obtain the fragment instance from the manager Oct 05 15:57:29 http://stackoverflow.com/questions/7836250/saving-ui-on-orientation-change-onsaveinstancestate-not-working-as-expected-if Oct 05 15:57:47 explains why savedInstanceState is null Oct 05 15:58:03 happens when the setRetainInstance is set to true Oct 05 15:59:43 gah, ubuntu acts odd again, I only have 20px or so of the right side of my screen, so this is ad lib Oct 05 15:59:44 brb Oct 05 16:05:14 belgianguy, try this: else { fragment = (BackgroundFragment) getFragmentManager().findFragmentByTag("thread_manager"); } as the else to the if (savedInstanceState == null) Oct 05 16:05:22 ah, thanks! Oct 05 16:05:29 laptop crashed :/ Oct 05 16:05:46 as JackWharton explained, "the entire activity is recreated so you have to re-obtain the fragment instance from the manager" Oct 05 16:05:53 which is how you do Oct 05 16:05:57 np good luck! Oct 05 16:09:16 lasserix: thanks! it doesn't fc anymore Oct 05 16:09:45 also thanks to all others who helped, like JakeWharton Oct 05 16:10:52 Oh damn, I feel the need for a bigger monitor to code on Oct 05 16:10:55 This is getting bad Oct 05 16:15:13 gregtom6: stick to the channel, please Oct 05 16:15:19 and do you know about Android permissions? Oct 05 16:20:48 Good morning. Anybody know anything about monkey runner? I'm using the switch --pct-syskeys 0, but it's still opening other apps and playing music and things. Any way to keep it in a specific (my) app? Oct 05 16:21:40 Should I be using --pct-appswitch too? Oct 05 16:24:20 i'm here Oct 05 16:24:21 sry Oct 05 16:24:38 i don't know anything about android permissions Oct 05 16:25:09 "cleaning up failed UUID channel lookup" it writes this when trying to connect Oct 05 16:26:39 For some reason, I do not have a prebuilt/toolchain and I also can not execute /prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/* but I can execute /prebuilts/gcc/linux-x86/x86/i686-android-linux-4.4.3/bin/* Is there a simple way to redirect the build to use the alternative toolchain or does changing the toolchain create host/target issues? Oct 05 16:28:03 When the build attempts to execute /prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/* I receive warnings "Can not execute binary file rather than the cross-compiling completing. Oct 05 16:29:19 Hi. My phone is not recognized eclipse, I activated the debug usb. What's wrong? Oct 05 16:30:03 If I knew the exact line in all the makefiles that determines the proper toolchain to use, couldn't I "repo forall" a script that would sed out the reference pointing to the non-working toolchain and sed in the new statement to point to the working toolchain? Oct 05 16:33:24 hi. how can i set the xml android:enabled? Oct 05 16:33:31 under: Your phone and Eclipse have nothing to do with each other. You need to look into ADB. Oct 05 16:33:32 or should i do it? Oct 05 16:34:24 Chronax: adb devices returns none Oct 05 16:35:58 hi Oct 05 16:36:03 this is my simple basic networking usage application. http://paste.ubuntu.com/1262222/ and i get error app stopped working when i click on button Oct 05 16:36:05 help please Oct 05 16:36:39 whats up fam Oct 05 16:38:48 aha, seems I had to reassign some references in the onResume, which first were placed in the onCreate Oct 05 16:39:13 can someone please help me? Oct 05 16:40:00 abhijit what does the log say when the app crashes Oct 05 16:40:17 app do not 'crash' Oct 05 16:40:26 it just stop working Oct 05 16:40:55 jayd16, there is error for Failed to load libGL.so but i dont think this is causing he problem Oct 05 16:41:00 oh I see, you're doing network IO on the main thread, use an async task Oct 05 16:41:15 i see Oct 05 16:41:27 let me do it the proper way Oct 05 16:41:45 heres a good guide: http://developer.android.com/guide/components/processes-and-threads.html Oct 05 16:42:21 jayd16, do you know what i have to do when i get error main can not be resolved for code setContentView(R.layout.main); Oct 05 16:42:58 you probably imported android.R instead of your.package.R Oct 05 16:43:12 so annoying when that happens Oct 05 16:43:31 there is no line called import android.R Oct 05 16:43:56 +1 IDE does it and I don't notice until I've spent 10 mins checking widget id's for mismatch Oct 05 16:44:20 gutano, is that reply for me? Oct 05 16:44:40 no, empathyzing with jayd16 Oct 05 16:45:07 so what i have to do? jayd16 what is your.package? is it my application name.R? Oct 05 16:45:18 yeah Oct 05 16:45:21 package is defined in your manifest Oct 05 16:45:30 if it lines up with your code pkg, you don't need to import Oct 05 16:45:53 check your generated R file for presence of your layout Oct 05 16:46:17 how can i stop eclipse from automatically generatig the R.java? Oct 05 16:46:21 hey JakeWharton Oct 05 16:46:27 yop Oct 05 16:46:28 Abhijit, that's not a bad thing Oct 05 16:46:28 -p Oct 05 16:46:32 finally Oct 05 16:46:38 device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); Oct 05 16:46:38 ok, I am pulling this.getFragmentManager() Oct 05 16:46:43 if I use this Oct 05 16:46:45 Abhijit, it should be listing of whatever you have in res/... Oct 05 16:46:48 but it's loading this.getFragmentManager() Oct 05 16:46:58 using SherlockFragmentActivity Oct 05 16:47:04 uh, what? Oct 05 16:47:05 will I get a device variable what can be able to set an rfcomm connection? Oct 05 16:47:19 gutano, ok Oct 05 16:48:10 i mean it's loading android.app.Fragmentthis.getFragmentManager() Oct 05 16:48:51 android.app.Activity.getFragmentManager() Oct 05 16:48:58 why wouldn't it? Oct 05 16:49:01 that's what you're calling Oct 05 16:49:07 I am trying to call the v4 Oct 05 16:49:19 the backward compatibility Oct 05 16:49:23 meetoman, getSupportFragmentManager Oct 05 16:49:26 then you want this: https://developer.android.com/reference/android/support/v4/app/FragmentActivity.html#getSupportFragmentManager() Oct 05 16:49:43 gutano, thanks Oct 05 16:49:45 exactly what i need Oct 05 16:50:19 I've stubbed my toe on that a few times... you have to use it with the v4 Fragment/Adapters/etc Oct 05 16:57:38 When running in the emulator 4.0 or 4.1 I'm noticing a shift of my entire screen along the diagonal from the upper left to lower right corners anyone else seeing this? anyone know how this can be fixed? Oct 05 17:03:29 tilt your head Oct 05 17:06:09 how can i stop eclipse from autogenerating R.java? Oct 05 17:06:16 it ignores my manually added corrections? Oct 05 17:06:31 you manually add stuff to R.java ?! Oct 05 17:06:58 why do you manually add to R.java Abhijit Oct 05 17:07:13 Chainfire: the real Chainfire? Oct 05 17:07:25 im the real mikedg Oct 05 17:07:27 if not the, then at least a Oct 05 17:07:40 mikedg_, to solve can not resolve type errors Oct 05 17:08:09 Abhijit: you need to NOT edit the autogenerated R file. Oct 05 17:08:10 period. Oct 05 17:08:11 don't do it. Oct 05 17:08:16 Abhijit you're probably doing something else wrong... you shouldn't be touching R.java manually... Oct 05 17:08:17 your changes will be ignored at best. Oct 05 17:08:33 You need to fix the errors you're having outside that file. Oct 05 17:08:41 Abhijit: make an S.java file Oct 05 17:08:52 android looks for S.java if it cant resolve in R Oct 05 17:08:58 and eclipse will not wipe that out Oct 05 17:09:03 you're the worst mikedg Oct 05 17:09:06 mikedg_: you're fired Oct 05 17:09:15 mikedg_: just make S extend R Oct 05 17:09:57 R is final man Oct 05 17:10:00 learn2code Oct 05 17:10:19 mikedg_: not if you edit R.java Oct 05 17:10:26 I've the problem that adb wont recognize my s2 :\ I installed the samsung driver, tried to change kernel but nothing... Oct 05 17:10:28 good point Oct 05 17:10:47 R should be R.jar so people can't do stupid shit Oct 05 17:10:51 easily Oct 05 17:11:27 Chainfire, lov this is my code http://paste.ubuntu.com/1262286/ taken directly fro the andoird tutorial and i get error for onCreate function. error is can not resolve type id Oct 05 17:11:31 help please Oct 05 17:11:38 from* Oct 05 17:12:01 you imported the wrong R Oct 05 17:12:10 Hi Nazgul . Oct 05 17:12:16 that i added just now evancharlton Oct 05 17:12:25 it's still the wrong one Oct 05 17:12:34 what should i write there? Oct 05 17:12:40 Abhijit, can you post your res/layout/main.xml as well Oct 05 17:12:48 under: hi :) Oct 05 17:12:59 Abhijit, nothing, or the package name from your AndroidManifest.xml Oct 05 17:13:39 Abhijit: you are hereby sentenced to listen to gangbang style on repeat forever Oct 05 17:13:53 Abhijit, let me try to summarize, I think this might help (guru's pls correct as necessary) Oct 05 17:14:05 gutano, http://paste.ubuntu.com/1262292/ Oct 05 17:14:24 Abhijit, res/ gets indexed to R (my.manifest.package.R), you can use that in your code to access resources Oct 05 17:15:22 your lookups are wrong Oct 05 17:15:47 findViewById(R.id.textView1), findViewById(R.id.edit_text) Oct 05 17:15:54 gangbang style... hmm, that sounds like an apt porn parody of the song Oct 05 17:16:42 ok Oct 05 17:18:17 wasnt there something released recently thats uspposed to speed up compiles? Oct 05 17:18:29 gutano, i replaced edit _text with textview1 but still error Oct 05 17:19:24 Abhijit, your android:id="@+id/name" is what your are looking up by (R.id.name that is) Oct 05 17:19:49 yes and i written the correct name there but still there is error Oct 05 17:19:51 assuming you haven't imported android.R, and that R is resolving correctly to your generated R (indexed res/) Oct 05 17:20:07 mikedg_: https://android-review.googlesource.com/#/c/43680/ Oct 05 17:20:48 Abhijit, I think your issues have been layed out for you to tinker for a bit (imho) Oct 05 17:21:16 :-( Oct 05 17:22:28 Abhijit, I don't own the channel, you can keep posting your errors... I just think you are close and tinkering/inspection will get you there faster Oct 05 17:23:01 ok Oct 05 17:23:44 evancharlton , mikedg_ ... binaries here: http://forum.xda-developers.com/showthread.php?t=1907281 Oct 05 17:24:09 no offense, but just grabbing binaries and running them on your computer is terrible idea Oct 05 17:24:16 :) Oct 05 17:24:38 yeah, aapt is so slow these days Oct 05 17:24:39 why? Oct 05 17:24:46 Chainfire, what'd you change? submit your patch to aosp yet? Oct 05 17:24:58 pfn: https://android-review.googlesource.com/#/c/43680/ Oct 05 17:25:08 evancharlton> well, I compiled them myself, so I'm not just grabbing binaries :P Oct 05 17:25:30 Chainfire: right, my point was that there's no way I'll be grabbing the binaries, and I can't believe people on XDA do that, too :) Oct 05 17:26:02 afraid I'll steal your source? :P Oct 05 17:26:15 evancharlton: it's the same people who give everything root access on the anroid market Oct 05 17:26:23 mikedg_: ha, true Oct 05 17:26:31 winzippers! Oct 05 17:26:32 but yeah, I've noticed that aapt is so slow lately Oct 05 17:26:34 so very slow Oct 05 17:26:35 you compile the SDK yourself then? :) Oct 05 17:26:51 i run the SDK in a VM with no network access Oct 05 17:26:54 hi Oct 05 17:27:38 i like this Spotify audio commercial where the Spotify girl says scrobbler and scrobbling Oct 05 17:28:35 I'll remember next time I try to be helpful though... :P Oct 05 17:28:53 i compile my own compilers for safety Oct 05 17:29:03 i dont even trust antivirus binaries Oct 05 17:36:04 gutano, now the program works but it does nothing. i mean no error and even no output no result. what can be wrong? Oct 05 17:36:57 Abhijit, pulling your code again... what output are you expecting? Oct 05 17:37:43 first 500 characters of a given webpage gutano Oct 05 17:38:28 gutano, am i supposed to change this line from tutorial to something else? protected Object doInBackground(Object... arg0) Oct 05 17:38:39 return null; Oct 05 17:39:16 Abhijit, I don't see anything triggering this logic Oct 05 17:39:29 ok Oct 05 17:40:23 has to be kicked off in onStart, or some button/etc tied to your onClick (I typically implement interface View.OnClickListener, vs custom named method and binding via xml, but I guess this is preference) Oct 05 17:42:59 yes Oct 05 17:43:52 gutano, should i call myClickHandler on button click? Oct 05 17:45:03 JakeWharton Oct 05 17:45:17 Abhijit, for the sake of simplicity (matching existing tutorials/etc)... I would advise making your class also implement View.OnClickListener in your Activity, create a button in your layout, find it in your onCreate, setOnClickListener(this) Oct 05 17:45:23 what's the style for the bottom of the actionsherlock? Oct 05 17:45:40 gutano, ok Oct 05 17:46:36 hail, romainguy =) Oct 05 17:46:42 I'm innocent! Oct 05 17:46:44 are you at the oracle conference for java? =) Oct 05 17:47:01 nope Oct 05 17:47:42 oracle doesn't even make java main part of the event anymore =| Oct 05 17:48:40 JakeWharton Oct 05 17:48:52 hello good sir Oct 05 17:48:56 how may I be of assistance? Oct 05 17:49:05 int widens into double automatically, doesn't it Oct 05 17:49:38 are you talking about JavaOne? pretty sure Java was the main part... Oct 05 17:50:04 talking about openworld Oct 05 17:50:37 ok, jakewharton, i m trying to add a different seperation bar on the bottom of actionsherlock Oct 05 17:50:48 When running in the emulator 4.0 or 4.1 I'm noticing a shift of my entire screen along the diagonal from the upper left to lower right corners anyone else seeing this? anyone know how this can be fixed? Oct 05 17:50:57 what's the style thats used for that? Oct 05 17:51:12 actually happens on any version Oct 05 17:51:30 abs__cab_background_top_holo_light? Oct 05 17:51:55 meetoman: http://developer.android.com/guide/topics/ui/actionbar.html#Style Oct 05 17:51:58 actionBarSplitStyle Oct 05 17:53:34 got it, thanks JakeWharton Oct 05 17:53:37 you are the best =) Oct 05 17:55:42 JakeWharton, it's not, where is that bluebar come from? Oct 05 17:57:00 Why would the application part of a LogCat message not be present? Oct 05 17:57:20 Hrrm... I wasn't expecting my ListView header to trigger onListItemClick, is there an easier way to defuse this even than filtering in onListItemClick? Oct 05 17:58:03 s/even/event Oct 05 17:58:41 found it =) Oct 05 17:59:05 It works on 1 tablet but no the other Oct 05 17:59:19 nope =| Oct 05 18:03:44 Project_2502: omfg Oct 05 18:06:01 ... Oct 05 18:06:11 .... Oct 05 18:06:31 fracking ghost/antighost/antipoltergeist/ghostbuster thing... Oct 05 18:07:15 TF? Oct 05 18:08:14 What's the name of this layout? http://i.imgur.com/rdkBI.png Oct 05 18:08:38 ViewPager is probably what you're looking for Oct 05 18:09:24 thanks JakeWharton Oct 05 18:11:56 [20:07] TF? <- nothing: sometimes my nick (_2501) "hangs" even if i disconnect correctly, so on reconnection my client uses _2502, but since it's not registered i can't speak on certain channels... this the only networks that has this problem, on other networks a disconnected nick just dies for timeout :/ Oct 05 18:12:30 ohhh lol Oct 05 18:12:49 thought you meant real life :P Oct 05 18:13:43 what is the float value for 360 degrees for animate().rotation()? Oct 05 18:13:59 360f? Oct 05 18:15:04 doh Oct 05 18:16:40 Project_2501: link 2502 to your main account Oct 05 18:17:27 ask nickserv for help, or read FAQ Oct 05 18:18:18 hum... i'll take a look Oct 05 18:18:23 ty SpeedEvil Oct 05 18:32:53 Does anyone here understand the internals of the calendar app? Oct 05 18:34:35 There's a bug in Droid's Activesync implementation and under the right circumstances you can get an event stuck on the droid that does not exist on the server. Oct 05 18:34:45 I've identified the offending event in /data/data/com.android.providers.calendar/databases/calendar.db Oct 05 18:35:02 and using sqlite3, deleted it from the events table. Oct 05 18:35:21 but it's still there somewhere, the server still shows the bad request coming through Oct 05 18:36:36 i've restarted the calendar app, the sync process, rebooted, etc. the calendar.db is still correct, but the bad guys is still somewhere. Maybe cache? Oct 05 18:43:09 hi, can anyone give me some ideas on solving this problem? Oct 05 18:43:10 http://pastebin.com/8r1PJfZE Oct 05 18:43:21 I want to play a video by setting an offset Oct 05 18:43:43 using the method setdatasource(filedesrciptor, offset, length) Oct 05 18:44:16 I step over line by line and the code already breaks at the line AssetFileDescriptor f = a.openFd(fileName); Oct 05 18:44:23 throws IOexception Oct 05 18:44:57 I checked fileName and it shows a ID from R.java, which corresponds to my actual mp4 file Oct 05 18:45:07 am I doing something wrong? Oct 05 18:48:27 as well I am somewhat confused on openFd(fileName). Should I pass in a path or just the fileName itself? right now I am just passing in fileName, giving me this : android.resource:/com.mypackage.app/2130968577 Oct 05 18:53:36 shmooz: you there dude Oct 05 18:55:08 omg its retomeier Oct 05 18:55:54 I wonder if he has come to give me that answer regarding readonlyness of secondary external storages he promised me months ago, but I guess not. ;) Oct 05 18:58:03 lol Oct 05 18:58:26 hey Chainfire how is faapt working out? any serious bugs found with the latest patch? Oct 05 18:58:32 nope Oct 05 18:58:45 that bus error in the first patch on OS X was the only problem found so far... Oct 05 18:59:14 counting a few thousand users, one person reported a problem building K9 email client, but it builds fine for me, have tried both under Windows and Linux, so not sure if user error or not Oct 05 18:59:27 heh Oct 05 18:59:41 well id definitely like to see that in the sdk before the release of Popsicle or whatever Oct 05 19:00:51 myeah - if they're even going to bother checking it out. Wonder if that new build system they're working on might replace aapt altogether - don't think so though Oct 05 19:03:03 Hey JakeWharton: I'm trying to monkey test my app, and I keep running into these ActionBarSherlock Exceptions: http://pastie.org/4916327 Is this a timing issue or something? Oct 05 19:13:09 Is it just me or is dp scaling quite... weird in certain cases, and I'm better off using something like metrics.widthPixels/3 if I want an exact location relative to, well, the screen borders? Oct 05 19:19:32 hi all Oct 05 19:19:33 from a directory of android source (containing bionic/, bootable/, build/, cts/, etc.), is it possible to tell which android build tag (from http://source.android.com/source/build-numbers.html) it is? Oct 05 19:21:38 cb360: if it's a repository, not exported dump Oct 05 19:22:45 though... Oct 05 19:23:02 hey guy Oct 05 19:23:04 guys Oct 05 19:23:24 at which function does FrameLayout intalize it's setting? Oct 05 19:23:33 that all the views are populated Oct 05 19:23:54 cb360: if you want specific version, use the tag when pulling Oct 05 19:30:06 p_1: I understand, but I'm looking at a folder that has already been pulled (not by me), and want to figure out what tag it is Oct 05 19:30:30 cb360: check with git what revision it contains, and match the tag Oct 05 19:34:20 I am using ِAndroid-ViewPagerIndicator library. The FragmentAdapter contains 3 items, the ViewPager contains three pages but the third page is not rendered any idea why that happens ? Here is my AdapterCode http://pastebin.com/Z6VP1ebD Oct 05 19:35:37 also the breakpoint inside the getItem method is getting hit only two times Oct 05 19:42:37 Summoning JakeWharton? I'm trying to monkey test my app, and I keep running into these ActionBarSherlock Exceptions: http://pastie.org/4916327 Is this a timing issue or something? Oct 05 19:42:38 hi guys, can anyone give me a way to create a listview with mixed layout? example, one line i want just text and in another line i want a switch. Oct 05 19:43:07 Duailibe: Google mergeadapter. Oct 05 19:43:12 do layout animations for a viewgroup work if you change the view's visibility instead of vreating them at runtime? Oct 05 19:43:14 Chronax thanks! Oct 05 19:43:26 hello, how to implement the API(+RESTful Client) in Android nicely? Any tutorials? I found a few articles, but nothing interesting of them learned Oct 05 19:44:58 meverone: your question is impossibly vague. Oct 05 19:45:01 "the API" Oct 05 19:45:03 what api Oct 05 19:45:25 hello. I believe I have found a bug with the linux version of the adb tool. where do I report it? at source.android.com ? Oct 05 19:47:53 lov: for example themoviedb.org Oct 05 19:51:00 ... Oct 05 19:51:05 Davor: b.android.com Oct 05 19:51:12 meverone: you're still not telling me anything. Oct 05 19:51:20 meverone: consider using HttpUrlConnection? Oct 05 19:51:36 meverone: is your question "How do I use a RESTful service"? Because if so it might be beyond the scope of this channel. Oct 05 19:51:49 meverone: http://developer.android.com/training/basics/network-ops/index.html Oct 05 19:51:58 yep i using this Oct 05 19:52:37 If I have a viewgroup set to android:animateLayoutChanges="true" and all of the views in the group set to "invisible", shouldn't the views have layout animations when i set the views to "visible"? Oct 05 19:52:51 at runtime... Oct 05 19:53:47 ik0n: No. You need to call startAnimation() Oct 05 19:55:50 When running in the emulator 4.0 or 4.1 I'm noticing a shift of my entire screen along the diagonal from the upper left to lower right corners anyone else seeing this? anyone know how this can be fixed? Oct 05 19:56:09 yakkof: o_O Oct 05 19:56:11 actually, it's happening with all sdk versions. Oct 05 19:56:46 I think that you might have some issue with your graphics card? Oct 05 19:56:50 that's pretty strange Oct 05 19:56:55 send a bug report to b.android.com Oct 05 19:56:57 along the diagnonal and some verticals.. the shifts are a couple pixels tried turning scaling to 1 for the window, no gpu. Oct 05 19:57:15 on a macbook pro haven't had any issues like this before Oct 05 20:00:07 yeah, definitely file a bug with b.android.com Oct 05 20:04:49 lov: you don't see that at all? Oct 05 20:10:17 yakkof screenshot? Oct 05 20:16:23 anyone else forget to hit the 'save' button after 'activating' your apk Oct 05 20:16:35 ^ on the play store Oct 05 20:18:40 no never Oct 05 20:18:42 noob Oct 05 20:21:17 uh oh http://hardware.slashdot.org/story/12/10/05/1913256/samsung-creates-new-file-system-f2fs-for-linux-android Oct 05 20:21:27 ... lol Oct 05 20:21:34 cue rofl all around Oct 05 20:22:26 yeah because RFS worked out so well Oct 05 20:22:30 'rofl all around' sounds like it could e a Pet Shop Boys song Oct 05 20:22:42 hey guys Oct 05 20:22:48 if i just pass activity to an utility class Oct 05 20:22:55 does that increase chance of memory leak? Oct 05 20:23:34 yes. Oct 05 20:23:35 well Oct 05 20:23:36 no. Oct 05 20:23:41 if you CACHE that activity, yes. Oct 05 20:23:46 ok Oct 05 20:23:49 i m not cache anything Oct 05 20:23:54 if you just pass it as a reference, but never hold on to it, no. Oct 05 20:23:58 its just an object that has activity in constructor Oct 05 20:24:03 hmm Oct 05 20:24:15 public LoadingFragmentUtil(AbstractActivity activity) Oct 05 20:24:22 strongly consider passing the application context wherever you can if you just need a context, unless you need something specific to the activity Oct 05 20:24:26 is that considering caching? Oct 05 20:24:31 yah, i need the activity Oct 05 20:24:37 i need the findViewById Oct 05 20:24:41 and getSupportFragmentManager Oct 05 20:25:07 I can pass them seperately, but it just complicates it, since entire utility becomes an object, i m not sure if its a good idea for it to hold on to the activity Oct 05 20:25:38 as long as the only reference to that thing is within the Activity, it's probably fine. Oct 05 20:25:41 Just be careful. Oct 05 20:25:45 lov: how do I serialize my context? Oct 05 20:25:50 ok Oct 05 20:25:52 thanks Oct 05 20:26:02 evancharlton, that's a good question Oct 05 20:26:03 another question, how to check if getSupportFragmentManager() already has something loaded? Oct 05 20:26:09 evancharlton: attach it to an intent email Oct 05 20:26:18 that way i wouldnt need my public static MainActivity sMainActivity; Oct 05 20:26:26 then you can open the context on any phone Oct 05 20:26:30 even iphones Oct 05 20:26:39 I can only check isEmpty() Oct 05 20:27:26 evancharlton: you're the worst. Oct 05 20:27:47 documentation says The fragment to be added. This fragment must not already be added to the activity. Oct 05 20:27:48 so mikedg_ is not the worst any more ? Oct 05 20:27:56 congrats mikedg_ ! Oct 05 20:28:29 ello g00s, long time no see =) Oct 05 20:28:40 hi meetoman Oct 05 20:28:43 i win Oct 05 20:28:44 its been 7 month to be exact =P Oct 05 20:28:52 maybe even 9 Oct 05 20:30:48 so ... not so exact, then? Oct 05 20:31:01 nope =( Oct 05 20:31:18 just started consulting gig again =| Oct 05 20:31:24 been out for too long lol Oct 05 20:33:05 meetoman: things haven't changed much in android land Oct 05 20:33:40 changed al lot Oct 05 20:33:52 i went on an interview Oct 05 20:34:02 they kept asking me about sherlockactionbar, loadmanager Oct 05 20:34:12 haha Oct 05 20:34:16 look what jake started Oct 05 20:34:25 i know, and i m like wtf, i dont use 3rd party Oct 05 20:34:32 wasn't me Oct 05 20:34:43 http://www.youtube.com/watch?v=2g5Hz17C4is Oct 05 20:35:01 and i still dont know how to use loadmanager yet Oct 05 20:35:35 loadermanager is a brilliant concept wrapped in the most awful API you've ever seen Oct 05 20:35:35 i m able to create my own jakewharton now Oct 05 20:35:55 JakeWharton, i know, it's really hard to understand... Oct 05 20:36:06 it's poorly thought out Oct 05 20:36:07 not straight forward at all, like actionsherlock Oct 05 20:36:15 they'll change it on the next version Oct 05 20:36:23 well ABS just mirrors the native action bar API so... Oct 05 20:36:24 it's pretty much google's response to GCD as I can see Oct 05 20:36:33 GCD? Oct 05 20:36:41 grand central dispatcher from iOS 4 Oct 05 20:37:02 never had the displeasure Oct 05 20:37:15 GCD is ... something completely different Oct 05 20:37:19 microsoft just started their own, the async await pattern Oct 05 20:37:42 greatest common denominator? Oct 05 20:37:44 p_l, I thought that's what loadmanager does, just handles all the async event Oct 05 20:38:00 meetoman: GCD exists in Java since long ago Oct 05 20:38:09 otherwise I can just keep using async on iOS as well, but gcd took out a lot of usage of async events Oct 05 20:38:19 if you open loader manager it's just static SparseIntArray tasks Oct 05 20:38:24 :) Oct 05 20:38:37 lol Oct 05 20:39:30 async await is simply extension to C# to make it easier to handle async events, though I'd like to point out that NT in general is pretty good on async Oct 05 20:39:42 not as good as VMS, but they took only half of VMS' system Oct 05 20:40:39 p_l, the old call back method was "horrible" Oct 05 20:40:52 on C#, just horrible, espcially when you are trying to some chain events, and change UI in the end Oct 05 20:41:20 all the handlers needs to be in the same class, and because of that, it was really hard to reuse bunch of functions Oct 05 20:41:26 at least that's from my experience =| Oct 05 20:42:00 sounds like error in scoping and access permission Oct 05 20:42:25 anyway, async await is essentially syntax sugar Oct 05 20:42:34 you know, the kind of stuff people like me just macro up Oct 05 20:42:43 it is, but made programming smooth Oct 05 20:43:00 heh, I dont like to macro up, cuz i know in a few month they gona change it Oct 05 20:43:13 like LoadManger this, i m sure by next android version this will be super easy Oct 05 20:43:30 meetoman: also, GCD was critical for OSX because Cocoa is more broken than any other API I know in thread handling Oct 05 20:43:44 well considering loader manager hasn't really changed since API 11, I doubt it Oct 05 20:43:47 and it's not hard to use now Oct 05 20:43:51 (when it comes to how threads interact with GUI system) Oct 05 20:43:53 the API just sucks and was poorly designed Oct 05 20:44:01 the functionality is sound Oct 05 20:44:24 JakeWharton: bad APIs are bugs. Please report it on http://b.android.com/, especially if you have better suggestions Oct 05 20:45:39 i'm not sure it can be fixed without breaking backwards compatibility, something i'm not willing to sacrifice Oct 05 20:45:53 JakeWharton, can you fix LoadManager in ActionSherlock Oct 05 20:45:59 as well as the dialog for normal dialog style =P Oct 05 20:46:02 no and no Oct 05 20:46:17 so this way it would be super easy for everybody else to use and benefit the community ;) Oct 05 20:46:58 and next time when someone ask me questions like that on interview, i can say "I suggested JakeWharton to do it that way" ;) Oct 05 20:49:36 ABS is an action bar backport. It will never be anything more and its usefulness should fade as adoption of the newer platforms grow. Oct 05 20:50:13 if you want a backported dialog then copy the assets and styles into your project Oct 05 20:50:27 Can someone help me set up code that will download and launch the installer for a custom APK? I'm reading SO, but none of their solutions are working for me. http://ideone.com/bgCoQ Oct 05 20:50:27 or just update your UI Oct 05 20:50:46 just set your minSdkVersion to 16 Oct 05 20:53:09 but i want JB actionbar functionality/fixes on ICS! Oct 05 20:54:26 is anyone going to the big android bbq? Oct 05 20:55:05 i heard they were going to have cows on rotisseries Oct 05 20:55:15 i think about 600 people are going Oct 05 20:55:19 ==JakeWharton Oct 05 20:56:22 s/anyone/anyone in here/ Oct 05 20:57:54 canadiancow: did you mean this ? http://www.bigandroidbbq.com/ Oct 05 20:58:12 ... yes... Oct 05 20:58:23 never heard of it Oct 05 20:58:32 neither had i until recently Oct 05 21:01:40 Anyone here already used MergeAdapter? Oct 05 21:03:36 Duailibe, im assuming theres a real question behind that one? Oct 05 21:04:45 Duailibe, yes Oct 05 21:07:26 hi, does anyone know if it is possible to Replace an Element in a ListView? (instead of having to reload the complete list every time) Oct 05 21:07:59 hai Oct 05 21:08:13 Masano, yes, you make the change to the adapter, and call notifyDatasetChanged() Oct 05 21:08:38 I need help with rotating a bitmap to face coords of a touch. Can anyone help? Oct 05 21:08:53 canadiancow, and the following question is then, how do you do it if the ListView is inside a widget? Oct 05 21:09:08 no idea Oct 05 21:09:22 I have searched all night to find a way that works, Matrixes just behaves weirdly. Oct 05 21:09:52 I'm having one of those days. Got a TextView for an error message. I say setVisibility(View.VISIBLE). I set the Text. It does not appear, but the retry button does. It's gonna be something so stupid. Oct 05 21:10:11 I have to ignore it and do something else for a bit.. grr, I hate days like this. Oct 05 21:10:17 oh, then i give up :p Oct 05 21:10:38 oh, anybody have ideas of how to make eclipse perform better? Oct 05 21:10:47 buy a supercomputer Oct 05 21:10:49 the Real Memory that's being allocated keeps going up Oct 05 21:10:57 I like my macbook pro =| Oct 05 21:11:04 should've bought the 8GB version thinking of it Oct 05 21:11:08 Masano, you know how to use matrixes and bitmaps? Oct 05 21:11:26 uppgrade the ram yourself Oct 05 21:12:09 meetoman, yep. it does that. ADT is part of it. I keep hittin MaxPermSize after lots of layout editor work. Oct 05 21:12:20 I'm just numb to it now. Oct 05 21:12:32 canadiancow: you cant in the new verions... Oct 05 21:12:37 really? Oct 05 21:12:44 that's... well that's why i dont use apple :) Oct 05 21:12:50 my personal laptop is a MBP running windows Oct 05 21:12:52 mrenouf|work keep restarting isn't really making me productive =( Oct 05 21:12:54 but it was cheap Oct 05 21:13:29 canadiancow: yea - me too....the memory is soldered onto the board with no slots/sockets for you to change it Oct 05 21:13:37 The most irritating part of Eclipse is that it does not crash. It "breaks" and starts acting erratic. It pretends like it can keep going but then it gets totally borked and if you force it, it will start showing error messages for errors while showing errors.... Oct 05 21:13:43 so you cant even pay apple fo ran upgrade? Oct 05 21:13:43 me too to the "why i dont use apple" at least Oct 05 21:13:56 canadiancow: you can pay apple for a replacement motherboard Oct 05 21:14:06 It's like "would you like to close the workspace"?... I'm always like NOOO. But I don't really have a choice now, do I? Oct 05 21:14:10 that will be $$$ though Oct 05 21:15:00 Anyone been using RemoteViews? Oct 05 21:15:20 what's why I use thinkpads :) Oct 05 21:15:58 my company would buy me whatever I want and I still choose thinkpad over Apple. Because they wont let me put linux on the MacBooks :-( Oct 05 21:16:15 haha Oct 05 21:16:18 VMware Oct 05 21:16:18 x1 carbon <3 Oct 05 21:16:33 btw Oct 05 21:16:46 mrenouf|work, im using a thinkpad right now :P Oct 05 21:16:51 anyone knows if I can reverse engineering database for ormlite ? Oct 05 21:17:01 i have linux running on my mac Oct 05 21:17:15 meetoman: do tim cook know about it ? Oct 05 21:17:33 I just need a thinner, lighter, more powerful, and more memory mac that has triple amount of battery power as my current one Oct 05 21:17:43 hehe :) Oct 05 21:17:50 gorudonu, probably =) VMWare is in a pretty good relation with apple Oct 05 21:18:24 no one been using RemoteViews around here? =) Oct 05 21:18:31 why should I install linux in VM when I can use it natively ? Oct 05 21:18:45 ok guys Oct 05 21:18:56 what about reverse engineering the db for ormlite ? Oct 05 21:19:04 is there such a tool or should I write one ? Oct 05 21:20:23 so answer is probably no ;) Oct 05 21:26:24 How can I fix a: "E/AndroidRuntime(651): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW typ=application/vnd.android.package-archive }" ? I get it when setting the MIME type to "application/vnd.android.package-archive" Oct 05 21:29:45 mrenouf|work: i heard its getting more and more difficult to get linux on apple machines. do you find that true ? Oct 05 21:30:49 g00s, dont know, I've never tried Oct 05 21:32:15 im in layout HELL. Oct 05 21:32:20 ARGH Oct 05 21:34:07 anyone know when regular folks will be able to reply to play comments ? Oct 05 21:35:51 RemoteViews, how to update a listview element in that? Oct 05 21:35:57 why would a text view render 0 tall? Oct 05 21:37:54 mrenouf|work: because you told it to? Oct 05 21:38:09 lol Oct 05 21:38:12 and of course it listened Oct 05 21:38:16 forgot to put text in it? Oct 05 21:38:22 not only that, my frame layout inside my fragment is not expanding. I set everything in the chain to "matchParent" Oct 05 21:38:34 hierarchyviewer Oct 05 21:38:40 I'm looking at it :-) Oct 05 21:39:04 the textview is there. it has text, it's 0 tall, and 720p wide Oct 05 21:39:21 If I have a viewgroup set to android:animateLayoutChanges="true" and all of the views in the group set to "gone", shouldn't the views have layout animations when I set the views to "visible" in onResume()? Oct 05 21:39:35 getHeight(): 0 Oct 05 21:39:44 mrenouf|work: check the layout params Oct 05 21:39:53 layout height: WRAP_CONTENT Oct 05 21:40:23 what's the parent? Oct 05 21:40:27 what are its layout params? Oct 05 21:40:35 what are the other layout params of the TextView Oct 05 21:40:36 , etc. Oct 05 21:40:45 I think it's because the container is not expanding. The TextView is in a relative layout, set "above" a button which is "centerInParent" Oct 05 21:41:04 so its probably clipped off the top, because the container should be full height, but it's just wrapping the button Oct 05 21:41:13 what's the RelativeLayout's height? Oct 05 21:41:29 96 (48dp) the height of the button of course Oct 05 21:41:32 its layout param height I mean Oct 05 21:41:37 MATCH_PARENT Oct 05 21:41:50 (which is the same) Oct 05 21:41:53 just show me your layout Oct 05 21:42:02 OH. it's in a damn scrollview Oct 05 21:42:06 gaaah Oct 05 21:42:12 there you go Oct 05 21:42:14 :-) Oct 05 21:42:31 romainguy: getting any good picture of fall colors ? Oct 05 21:42:43 I haven't used a camera in weeks Oct 05 21:42:52 lies Oct 05 21:43:11 i swear you posted something on g+ Oct 05 21:43:20 doesn't mean it was a picture I shot recently Oct 05 21:43:28 that is true Oct 05 21:43:56 hah. true. I have thousands of shots I could post. Oct 05 21:44:06 haven't really gotten out in a LONG time. Oct 05 21:44:13 romainguy: all i have right now is a 2007 powershot g9; and i'm finding it somewhat fun to live within its severe limitations. and i only have 1 battery, so when i go out for a few days i really have to think about what i want to capture Oct 05 21:44:40 I like cameras with limitations *if* they can take good pictures :)) Oct 05 21:44:48 that's why I mostly use my M9 these days Oct 05 21:45:00 heh, i'm sure thats much better than my g9 :D Oct 05 21:45:30 i just use my nexus 7 for taking photos Oct 05 21:45:48 i'm pretty surprised that canon, in 2012, put out the g15 with the same 1/1.7" sensor Oct 05 21:46:10 the sony p&s with larger sensors look really nice Oct 05 21:46:38 g00s: the M9 takes either crappy pictures or *amazing* ones Oct 05 21:47:51 the Nokia 44mphone looks interesting Oct 05 21:48:59 i wonder if any of those sony exmor-rs sensors are going to start popping up soon in phone cameras Oct 05 21:49:43 fundamentally, there is one thing that leads to better pictures in all environments. Oct 05 21:49:56 larger sensors, and bigger lenses. Oct 05 21:50:16 bigger lenses are not necessary Oct 05 21:50:24 Leica M lenses are tiny :) Oct 05 21:50:39 i think the 4/3 lenses can be smaller because they are closer to the sensor Oct 05 21:50:40 bigger than 2.5mm across Oct 05 21:50:49 g00s: some of them are small, not all Oct 05 21:51:03 although I have to say that the Olympus 45mm I use on the E-M5 is amazing Oct 05 21:51:42 i just noticed lr was updated to 4.2. i guess i should finally try it Oct 05 21:53:36 i think really what i miss with my little p&s is the ability to use some sort of grad nd filter. would be cool if phone cameras could standardize on some sort of attachment mechanism that yet you use filters Oct 05 21:53:59 or polarizer Oct 05 21:54:38 canadiancow, with the front camera?! Oct 05 21:56:25 i was joking Oct 05 21:58:20 quality of the glass is one of the top criteria Oct 05 21:58:35 equally with sensor size, sensitivity Oct 05 21:59:25 i'm also really interested putting cameras on quadricopters for unique compositions. that should be exciting Oct 05 22:00:02 like what these guys do http://bigstory.ap.org/article/drones-capture-mountain-scenery-pakistan Oct 05 22:00:08 notice the 3 guys on the mountain :) Oct 05 22:00:32 I found this .in guy who penned, imho, one of the most accidentally funny blog posts I have read in my life: http://thelocalteaparty.com/post/6032648949 Oct 05 22:02:34 he is quite skillful at non-sequitur obfuscating of issues, using insults, faulty analogy, and completely out of the whack logical arguments, and some emotional blackmail at times Oct 05 22:02:47 I think this post has examples of all three Oct 05 22:02:53 err... four Oct 05 22:04:31 it might be just satire though. I'm not sure. Oct 05 22:04:40 * alankila is sort of hoping it is Oct 05 22:07:31 definitely satire Oct 05 22:08:42 there's a lot of blog posts just like this one. I'm not so sure. Oct 05 22:10:58 anyway, I'm leaning towards satire too now that I've thought about it some more. Oct 05 22:12:22 Hi, anyone can give me some pointers to this problem? Oct 05 22:12:23 http://pastebin.com/ZKCP0AHw Oct 05 22:13:12 I want to setdatasource of my mediaplyaer by passing in file descriptor, offset, and length, when I try to open file descriptor it throws IOException Oct 05 22:13:14 alankila: me too. Oct 05 22:14:06 Although certain forms of mental illness could generate this sort of things too Oct 05 22:14:46 I suspect the way that I am obtaining the fileName is wrong Oct 05 22:14:52 alankila: The same sort of mental illnesses that produce Tea Partiers of this sort. Oct 05 22:15:01 the guy would be clever but in denial simultaneously, and have a damaged, authoritarian upbringing, and some amount of pure unresolved hatred Oct 05 22:15:48 is onResume() the only place to put code that needs to run when an activity becomes fully visible? Oct 05 22:15:54 hmm, I don't think this is the sort of Tea Partier I thought at first glance Oct 05 22:20:40 ik0n: what are you trying to achieve? Oct 05 22:40:12 Anyone able to help me with some bluetooth stuff using App Inventor? Oct 05 22:41:43 lol, ai still exists ? Oct 05 22:42:38 Apparentally Oct 05 22:42:55 I was just trying to throw something really simple together to control my robot before Maker Faire tomorrow Oct 05 22:43:27 Unfortunatly the bluetooth blocks all require some un-named "component" connected to them to work. (Also an address, but that's obvious) Oct 05 22:43:43 And all the examples I look at show blocks -without- the "component" input Oct 05 22:44:53 yay, Time for a PermGen/coffee break Oct 05 22:45:50 blargh, why is there not seemingly a decent command-line websocket tool Oct 05 22:46:24 jasta, I wrote a very small library in java, but I doubt it's still compatible with the spec Oct 05 22:46:45 there are a million libraries out there Oct 05 22:46:56 but nobody seemingly has gone so far as to make a freaking netcat like tool Oct 05 22:47:01 https://github.com/mrenouf/websocket-client Oct 05 22:47:18 oh, that's the easy part... no? Oct 05 22:47:29 hmm. "webcat" Oct 05 22:47:30 you'd think, but why hasn't anyone done it? Oct 05 22:49:03 I take it then that you guys are all focuses are actually Android programming? q.q Oct 05 22:49:33 (Actually versus web-interface newb graphical programming) Oct 05 22:50:26 Hello, was just curious on a good place to learn more about user interface or a good tutorial on android sdk? Oct 05 22:53:36 hm, if i recall in JB voice actions now work offline. is it possible to integrate this with my own app so somebody can drive the UI with voice ? Oct 05 22:53:38 DarkGhost`, http://developer.android.com/training/index.html Oct 05 22:54:30 yeah but it doesnt explain like lets say I want a spacer in the linearlayout Oct 05 22:54:40 like two edittext and a space between them Oct 05 22:54:47 then ask a more specific Q? Oct 05 22:55:15 g00s: I think so Oct 05 22:55:17 I'm sure it's buried on that set of pages, this is the right place to ask specifics though Oct 05 22:55:18 I just didn't want to be that guy. but in that case. Oct 05 22:55:25 but they only work for some languages Oct 05 22:55:27 how would I create a spacer within an linear layout? Oct 05 22:55:37 and so far my experiences with voice recognition were dismal Oct 05 22:55:57 you can use a view with no text or background, or a imageview with some sort of graphic Oct 05 22:56:15 p_l, accent? Oct 05 22:56:19 native speaker? Oct 05 22:56:49 non-native, yeah Oct 05 22:57:01 and I don't expect seeing support for my native tongue any time soon Oct 05 22:57:23 maybe I should dust off some materials and try to train myself in received pronunciation Oct 05 22:57:25 personalized voice learning might help Oct 05 22:57:58 my pronunciation took a hit... by going to scotland Oct 05 22:58:02 because no one cared :D Oct 05 22:58:55 though I think I might prefer to take lessons in extra languages instead of polishing pronunciation Oct 05 22:59:39 get my japanese up to speed, try again at french, maybe russian or german later Oct 05 23:03:05 hey guys, I want to put an image picked from the gallery in a textview. The thing is that the image textview scales to image size (the image is big) and I want the image scale to the textview size. How can I do this? Oct 05 23:05:22 kulas: Why would you do that? Oct 05 23:06:39 Chronax: it's like a profile picture. I have the picture and next to it the text with the user name and mail Oct 05 23:08:08 Chronax: so the size of the textView must be fixed and the image should resize to the textView size Oct 05 23:10:57 Please, I am using ِAndroid-ViewPagerIndicator library. The FragmentAdapter contains 3 items, the ViewPager contains three pages but the third page is not rendered any idea why that happens ? Here is my AdapterCode http://pastebin.com/Z6VP1ebD Oct 05 23:17:08 kulas: You could try using the scaleType attribute, but I'm not sure. Oct 05 23:26:52 the data layout for my app is 1. a main list (handful of items), leads to 2. a list of that category (many items), leads to 3. details on that specific item. On tablet layouts the main list should always be visible (on left). I currently have a list fragment and detail fragment. What I want to know is, would it be better to have the detail fragment handle the lists of items in a category Oct 05 23:26:53 AND the corresponding details, or should I use two list fragments (one for main, one for categories) and one detail fragment? Oct 05 23:27:43 maybe it doesn't matter but i don't want the back button to do unexpected things Oct 05 23:27:48 brb Oct 05 23:32:59 When I try to use an onclick listener, I get "OnClickListener can not be resolved to type" Oct 05 23:33:06 Has anyone here created an HTML5 web app? I'm trying to get it so that when it's added to the home screen, it use's the "apple-touch-icon-precomposed" instead of wrapping the favicon in a bookmark icon. All of the documentation I've read indicates that I have the correct HTML for the icon. Oct 05 23:53:14 jimi_: So you need to import it. Oct 05 23:54:17 savid: from what i hear, html5 stuff is hard to get right pre-chrome on android Oct 05 23:54:45 lots of areas where the older webview stuff was not compliant (even with html4, heh) Oct 05 23:55:26 g00s, I don't know, all the blogs and documentation I've read says that this should work: http://dpaste.com/810346/plain/ Oct 05 23:56:23 I am so pumped right not Oct 05 23:56:24 now Oct 05 23:56:31 99% chance I am picking this up tomorrow Oct 05 23:56:32 http://qnbikes.files.wordpress.com/2011/10/ducatistreetfighter848-red.jpg Oct 05 23:56:55 ron_frown: looks faster than my 97 dodge :) Oct 05 23:57:14 well I suppose there is a chance the dealer sells it out from under me Oct 05 23:57:15 the front tire is probably worth more than my whole truck Oct 05 23:57:36 but I'll be there or be sq Oct 06 00:03:36 well thats dumb, the lumia 920 will be an at&t exclusive >.> Oct 06 00:09:14 retomeier: i enjoyed your android book; i hope someone writes a good & beefy book on how to write rich custom ui widgets and viewgroups Oct 06 00:09:46 g00s: it's on our todo list with Chet :p Oct 06 00:09:56 cool ! Oct 06 00:10:14 g00s: Thanks! Glad you enjoyed it :) Oct 06 00:11:36 <[deXter]> retomeier, I've been out of the loop for a bit but have you written a book for Android 4.x yet? Oct 06 00:12:40 [deXter]: its been out with Wrox for a while; one the best one available. i always recommend it over everything else. 2nd place is Ziguer's Oct 06 00:12:44 *Zigurd's Oct 06 00:13:16 <[deXter]> oh, thanks g00s Oct 06 00:15:16 [deXter]: Yeah, I wrote a v4 one earlier this year: http://www.amazon.com/Professional-Android-Application-Development-Guides/dp/1118102274 Oct 06 00:15:28 <[deXter]> Thanks :) Oct 06 00:15:45 retomeier: i'm glad you kept the terminator on the cover :) Oct 06 00:16:05 g00s: Hell yeah! Wouldn't be the same otherwise :) Oct 06 00:48:35 exit Oct 06 01:22:58 JakeWharton, I just found Otto. I was about to shrug it off until I got to @Produce Oct 06 01:25:55 cool and @Produce method returning null does not send anything Oct 06 01:57:13 http://ormlite.com/data_types.shtml Oct 06 01:57:18 why is sqlite empty ? :D Oct 06 01:59:15 mrenouf: it's super useful Oct 06 02:00:13 I essentially have the same pattern, but manually. Activity implements FooContext. onFragmentAttached, does if instanceof FooClient, setFooContext(..) Oct 06 02:00:56 theres an onChanged or so, then the activity interface has a ton of "hasObj / getObj" pairs Oct 06 02:01:00 totally messy Oct 06 02:01:19 but the pattern works really well, and isn't prone to leaking stuff Oct 06 02:01:50 I went a little nuts with ListenableFuture an FutureCallback the other day Oct 06 02:15:10 Hey guys is there anyway I can add a drawable and eclipse will automaticly put it in all the dpi's Oct 06 02:22:26 techdigy, no eclipse will not generate scaled assets for you Oct 06 02:22:55 techdigy, you may find this useful, however: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html Oct 06 02:23:36 Wow! thats an amazing resource. Oct 06 02:23:40 Thanks mrenouf Oct 06 02:23:50 actually, I take that back... there is some limited asset studio functionality in Eclipse. Oct 06 02:23:59 File, New, Android Icon Set Oct 06 02:24:12 but the website does much more Oct 06 02:24:16 yeah i see Oct 06 02:24:40 i mean when you create a new project in eclipse it tells you to do the defult icon but i never knew about this site which does the other icons. Oct 06 02:24:42 whats layout to have most control? Oct 06 02:25:04 By the way I'm making this scaled image for my BG Oct 06 02:25:15 DarkGhost`, define "most" Oct 06 02:25:29 absoluteLayout ! Oct 06 02:25:50 g00s, I was gonna say that. but didn't feel like being mean Oct 06 02:26:05 ;) Oct 06 02:26:10 thank you:" ) Oct 06 02:26:24 DarkGhost`, no.. he wa kidding. DO NOT use that. Oct 06 02:26:30 :( Oct 06 02:26:43 stuff is so much different than web developing Oct 06 02:26:46 DarkGhost`, please describe what you need to do, they're all different and none is the "best" Oct 06 02:26:50 <_kbulgrien> Newb Alert. Installed SDK and stuff. Installed Eclipse. Am trying to install Developer Tools into Eclipse. I get an error http://pastebin.com/e8hjy18b Is this the right place to figure out what the heck I'm doing? Oct 06 02:27:11 _kbulgrien, right place indeed. Oct 06 02:27:16 you might not have the Oct 06 02:27:19 think located Oct 06 02:27:30 your ADT Oct 06 02:27:30 for linearLayout if I dont put an orientation what is the default? Oct 06 02:27:33 it doesnt seem to be horizontal or vertical Oct 06 02:27:41 Horizontal Oct 06 02:27:45 in eclipse's preferences Oct 06 02:27:50 gotcha Oct 06 02:28:13 _kbulgrien, make sure you check the box that says something like "check all repositories for dependencies" Oct 06 02:28:41 * "contact all update sites during install..." Oct 06 02:29:14 <_kbulgrien> Contact all update sites during install to find required software? Oct 06 02:29:17 Yes that Oct 06 02:29:39 ADT depends on some other eclipse components that aren't always installed. Oct 06 02:30:16 lol Oct 06 02:30:23 whats a good start up app? Oct 06 02:30:24 yeah... At least i tried to help Oct 06 02:30:25 to get a feel for everything Oct 06 02:30:46 <_kbulgrien> Ok, so Window | Preferences ... Oct 06 02:31:15 what do you mean DarkGhost` Oct 06 02:31:32 I don't know what kind of app to make, any suggestions? a fun app that will help me learn? Oct 06 02:31:48 DarkGhost`: Your knew to this? Oct 06 02:32:19 <[deXter]> Necessity is the mother of invention. :P Oct 06 02:32:20 yes Oct 06 02:32:46 <[deXter]> Think of what you really want to make, and work with it. Start small, like just implementing the GUI and then keep working on it Oct 06 02:32:58 <[deXter]> I find it a total waste of time writing apps that are useless Oct 06 02:33:02 hey like Oct 06 02:33:03 an IRC chat? Oct 06 02:33:03 dude Oct 06 02:33:05 no Oct 06 02:33:11 I would start off with smoething informational Oct 06 02:33:25 Maybe displays text or maybe something that deals with a lot of numbers Oct 06 02:33:38 Conversion app? Oct 06 02:33:44 thats hwat I was gonna start with Oct 06 02:33:45 but seems boring Oct 06 02:33:51 write a calculator Oct 06 02:35:22 I mean 2 years ago, when I was 14 , I came to this IRC looking for help on how to make a app. I basicly looked for code online and took tutorials from vaiours places. I actually pulled it off without knowing anything. I remember g00s and mrenouf telling me i cant do anything without knowing java. They told me to go to colleges or anything so that I can learn java first. I dont fully know java, In fact Im taking it at scho Oct 06 02:35:28 know a bit more of what I am doing now. Oct 06 02:35:49 <_kbulgrien> having trouble connecting the dots... what's ADT... I mean I know its android development tools, but I don't know where it's supposed to come from. the same place eclipse came from? Oct 06 02:36:02 I came back because the app I made two years ago has 6000+ downloads and 1500 current downloads.. I didnt want to leave them stranded with the missspellings so I am here devloping again so i can update the app Oct 06 02:36:14 Thats g00s and mrenouf for advising me...lol Oct 06 02:36:41 techdigy, well I bet you know java now? so what you did was learn both at once. Oct 06 02:37:36 I doubt I said you can't do anything. I think it was just a strong recommendation you learn some Java fundamentals first. Oct 06 02:37:57 techdigy, what's the app? Oct 06 02:38:21 yeah. I did kinda learn it at once. It's actually easier then my class in school im taking right now. all i learned there was boolean statements... However on my own i learned about many more thingsl ike the lifecycle , switch and cases, for, do, while all that stuff Oct 06 02:38:26 the app is DNA replication Oct 06 02:38:39 Ill pull up the link Oct 06 02:38:48 But mrenouf I am still having difficulty with a couple of things Oct 06 02:39:14 Two things to be exact. Arrays which I kind of get... and then using some meathods which make no sense to me. Oct 06 02:39:41 https://play.google.com/store/apps/details?id=com.techdigy.DNAReplication&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS50ZWNoZGlneS5ETkFSZXBsaWNhdGlvbiJd Oct 06 02:39:45 techdigy, I find I always learn better with applied concepts. Oct 06 02:39:52 It seems you do too. Oct 06 02:39:53 "UPDATED: February 18, 2011 " Oct 06 02:40:00 What do you mean applied concepts? Oct 06 02:40:02 like to at once? Oct 06 02:40:05 *two Oct 06 02:41:12 Applied. As in, don't tell me how something works. Show me it working. Oct 06 02:41:25 Give me real world examples. Oct 06 02:41:34 So I can see the value and usefulness. Oct 06 02:41:54 Ohh yeah.. Definatly. Where did you start off? Oct 06 02:42:02 I have a strong distrust of those who teach outdated concepts. This industry moves too fast. I learned that in school. Oct 06 02:42:40 I was fortunate to be developing in Java since around early 2000 Oct 06 02:43:10 No offense, but that UI makes me want to cry. Oct 06 02:43:17 yeah...lol Oct 06 02:43:29 i had a prof in university teaching "software engineering" with java ini 2010, and she had no idea what a generic was Oct 06 02:43:46 canadiancow, and this is why I bailed on college. Oct 06 02:44:01 the last person who said that ot me was fired from my old ocmpany Oct 06 02:44:06 I had no patience for that. Oct 06 02:44:10 because he thought "oh im so good and i didn teven go to school" Oct 06 02:44:16 and he actually sucked Oct 06 02:44:18 android is exactly like web developing Oct 06 02:44:22 to whoever said that Oct 06 02:44:24 JakeWharton, lol Oct 06 02:44:29 i was scrolled up Oct 06 02:44:30 wow. Your lucky. I'm 16 now. Almost 17. I don't know what to do. I want to do something that deals with electrical enginerring... anways im taking java right now in school. I do get really confused at times and I don't know if i should strengthen my java before going into these things. Common man... my teacher dosen't even know what a damn intent is... Oct 06 02:44:36 you are 16 going on 17... Oct 06 02:44:52 you do not need elec eng for java Oct 06 02:44:53 and vice versa Oct 06 02:45:04 Yeah but i like working on the hardware side Oct 06 02:45:13 so did i Oct 06 02:45:22 if android had never been created, i'd probably be working at intel right now Oct 06 02:45:39 techdigy, really I got started with an interest in electronics, and had a fascination with digital logic very early on. from there small computers, learned assembly, and how CPUs work. And just sorta built up a foundation of knowledge on that. Mostly on my own. Oct 06 02:46:05 as soon as you get to the "digital logic" level, i stop calling it "electronics" Oct 06 02:46:11 I think it's invaluable to have a good insight into how the stuff works at many levels. Oct 06 02:46:27 agreed Oct 06 02:46:28 canadiancow, analog is voodoo magic. Oct 06 02:46:32 +1 Oct 06 02:46:35 well not really Oct 06 02:46:43 i know (knew?) a lot of the math behind all that crap Oct 06 02:46:53 I got to Reactance and it stopped making sense. Oct 06 02:46:53 voltage is either high or low Oct 06 02:46:54 there's no inbetween :) Oct 06 02:47:08 mrenouf: I agree. I want to learn all over. I know a lot on the web and databasess and other stuff... i never really went in depth with Java Oct 06 02:47:40 Do you think it would be actually good if i tried to work my way through it myself by starting off small or by watching tutorials online? Oct 06 02:47:58 techdigy, from my experience, 95% of people who say "i know a lot about databases" relaly dont know anything Oct 06 02:48:06 haha Oct 06 02:48:13 yeah idk what i ment to say about that Oct 06 02:48:15 SQL Oct 06 02:48:16 :D Oct 06 02:48:18 lol Oct 06 02:48:20 even sql Oct 06 02:48:29 i was using an open source project a friend of mine was writing Oct 06 02:48:30 techdigy, what's a LEFT OUTER JOIN do? Oct 06 02:48:33 and he was "good" at sql Oct 06 02:48:38 lol Oct 06 02:48:38 but he had some shitty queries Oct 06 02:48:40 forget what i said Oct 06 02:48:43 lol Oct 06 02:48:44 haha Oct 06 02:48:50 that i was able to optimize from like taking 60s to taking 5ms Oct 06 02:48:55 mrenouf: I want to reach your level of knowlage haha Oct 06 02:48:57 and im not even that good Oct 06 02:49:04 how would you use a GROUP BY clause, and why? Oct 06 02:49:07 "left outer join" is pretty basic Oct 06 02:49:24 i have a database with ~100 million records, and writing queries that dont take 24 hours is starting to get to be a pita Oct 06 02:49:28 I'm pretty temptted to use google Oct 06 02:49:39 he's not quizzing you Oct 06 02:49:43 ohh Oct 06 02:49:44 i dont think he actually wants an answer Oct 06 02:49:46 canadiancow, you need to mix in some magic shards Oct 06 02:49:51 but if you dont know the answer, it might be good to learn Oct 06 02:49:54 yea mrenouf i know Oct 06 02:49:58 Where do you guys learn all this stuff? Oct 06 02:50:01 self experiance? Oct 06 02:50:03 i know enough to have heard of what a "shard" is Oct 06 02:50:09 a lot self-taught Oct 06 02:50:16 a lot at school (more for theory) Oct 06 02:50:18 a lot at work Oct 06 02:50:25 10 years of banging my head against the wall. it doesn't come cheap. Oct 06 02:50:34 and now im working with the best, so i expect that will make me learn even more :) Oct 06 02:50:40 If you dont mind can i see some of your best works Oct 06 02:50:52 apps? Oct 06 02:50:54 www.coveragemapper.com Oct 06 02:50:57 sites Oct 06 02:50:57 sure Oct 06 02:51:10 my best advice: If you ever think you're the smartest person at your job. Quit. Oct 06 02:51:15 that has a massive database, some server-side stuff, and an app Oct 06 02:51:21 I don't Oct 06 02:51:22 never will Oct 06 02:51:23 mrenouf, i just did that :P Oct 06 02:51:28 there will always be someone smarter then me Oct 06 02:51:33 techdigy, no Oct 06 02:51:34 there wont Oct 06 02:51:39 well maybe...i dont know you Oct 06 02:51:40 haha Oct 06 02:51:45 you'd like to think so... Oct 06 02:51:45 its generally bad to think you're the smartest person Oct 06 02:51:47 but... Oct 06 02:51:48 but its not always wrong Oct 06 02:51:49 Maybe your the top canadiancow Oct 06 02:52:02 sometimes it's painfully obvious Oct 06 02:52:03 i was the best android dev in an office of ~60 Oct 06 02:52:16 I didn't say "in the country"... I said "at your job" Oct 06 02:52:16 now id like to say im in the upper half of my new company/team Oct 06 02:52:20 but im not sure thats true Oct 06 02:53:06 I cant say i know anything around you guys Oct 06 02:53:07 haha Oct 06 02:53:21 thats not bad though Oct 06 02:53:23 you're 16 Oct 06 02:53:27 you clearly have a good attitude Oct 06 02:53:34 Thanks. Oct 06 02:53:35 i'd take a good attitude over a bit of education/experience any day Oct 06 02:53:40 Yeah, I was working at grocery store when I was 16. Oct 06 02:53:51 ive worked with people who dont care about the job or the product or their own skills Oct 06 02:54:08 you can generally teach someone with a good attidue to write good code Oct 06 02:54:16 Ohh. No I'm on the computer when I come home at 4 till 9. Strieght. Oct 06 02:54:27 only 5 hours? Oct 06 02:54:28 :P Oct 06 02:54:30 4-9. lol Oct 06 02:54:31 Yeah Ik I have school Oct 06 02:54:36 I wish I could cut back that much. Oct 06 02:54:39 Weekends its the full day Oct 06 02:54:46 hah mrenouf Oct 06 02:54:57 im on a bus right now Oct 06 02:55:01 I've actually worn out a chair. Oct 06 02:55:04 I dont even do my Homework. I do it in the period before, Unfortunately. Oct 06 02:55:08 literally, it's falling apart. Oct 06 02:55:15 lol Oct 06 02:55:16 mrenouf: haha Oct 06 02:55:17 but I've had it for ~8 yrs Oct 06 02:55:35 8*365*10 is a lot of hours Oct 06 02:55:35 ;) Oct 06 02:55:36 11-3pm 7pm-12:30am.... wow I'm not good at staying away... haha Oct 06 02:55:54 ohh I had mine for 2 years... its good my dad brought it for me from officedepot. Oct 06 02:56:35 Idk man. Time is a real problem. I'm trying to play aruond with android. Yet like Im trying to work on the web to. Oct 06 02:56:49 Me and my friend are starting a site about information for video codec and stuff like that Oct 06 02:56:53 its not serious just a fun project Oct 06 02:57:44 Anyways guys Oct 06 02:57:47 Thanks for the talk Oct 06 02:57:58 ill stay here. Don't want to bother you anymore :D. Oct 06 02:58:09 im not bothered Oct 06 02:58:21 i just realized i dont have what i need to do any dev on this laptop (yet), so i cant do any real work :) Oct 06 02:58:31 this is the most civil and intelligent discussion that's gone on around here in a bit ;-) Oct 06 02:58:36 +1 Oct 06 02:58:39 hey evancharlton Oct 06 02:58:46 cancel that request for -dev-dev Oct 06 02:58:50 lol Oct 06 02:59:08 usually this place is like HAY JAKEWHARTON HOW DO I ABS Oct 06 02:59:24 JakeWharton, got time for a quick Otto question? Oct 06 02:59:27 yes Oct 06 02:59:30 see what i mean? Oct 06 02:59:32 :P Oct 06 02:59:49 so, when is @Producer called and published? **** ENDING LOGGING AT Sat Oct 06 03:00:01 2012