**** BEGIN LOGGING AT Mon Aug 13 02:59:59 2012 Aug 13 03:03:14 Anyone here notice that that when you add a google plus one button of your google page, the numbers don't always add up. My google plus page has more plus ones then the button Aug 13 04:53:37 MS Build 2012 sells out in hour. nice that they will put their classes online :) Aug 13 05:12:48 g00s: presumably people assuming a free surface and/or wp8phoneseriesphonemobilelumia Aug 13 05:31:04 Is there an easy way to give a discount on an app to a group of people? :/ Aug 13 05:31:42 yes, if group = everyone Aug 13 05:34:17 deebo: right, thanks :) Aug 13 05:34:44 or discount = free Aug 13 05:34:51 unfortunately neither of those are true Aug 13 05:41:55 tmandry: in theory, maybe change to subscription? (I've never tried that, just theory) Aug 13 05:44:56 I think the only way is probably to do a partial refund after they bought it Aug 13 05:49:50 Leeds: I thought you couldn't do partial refunds on Checkout/Wallet for app purchases Aug 13 06:07:38 I thought you could, but it's very possible I'm wrong Aug 13 06:22:37 Can I make the volume popup display arbitrary text as I make it control the volume of my mediaplayer? Aug 13 06:23:02 I can do Media volume, but this lowers all media volume Aug 13 06:23:38 So what about the user who wants to play something in music app and silence my bg music Aug 13 06:23:52 hello, i get this error Error: The project either has no target set or the target is invalid. Aug 13 06:24:06 but i have set minSdkVersion in the manifest Aug 13 06:24:15 what does it want, isnt target = api level? Aug 13 06:24:30 Do you have a target tag Aug 13 06:24:44 no Aug 13 06:25:04 Then you should get one :) Aug 13 06:25:21 what is it? Aug 13 06:25:26 isnt the api target? Aug 13 06:25:52 www.google.com Aug 13 06:25:53 ensi: manifest is for runtime, not compilation - are you using eclipse, or something else? Aug 13 06:26:10 Leeds: just command line Aug 13 06:26:31 did you create the 'project' yourself, or are you using someone else's code? Aug 13 06:26:55 well the project is basically a cpoy paste from one of the xamples in ndk Aug 13 06:27:08 did you run "android update project" on it? Aug 13 06:28:05 yes, and it wants a target, i can see the targets with "android list target" and it gives me android-10, i was wondering that isnt the targe tthe same as as the API level aka SDK version which i have already set in the manifest Aug 13 06:28:14 so im wondering why is it complaining... Aug 13 06:28:29 run it again and make sure you set a valid target Aug 13 06:28:53 so the target is the api level or not?? Aug 13 06:29:23 it's either the string or ID of the target you want from "list targets" Aug 13 06:29:46 "android-10" isn't necessarily ID 10 Aug 13 06:30:06 i dont get it, what is the target then? Aug 13 06:30:53 Lol beating around the bush Aug 13 06:30:58 Am trying to create an AVD without a backfacing camera and test my code to see what happens if there's no camera. What I did was to create a new AVD and then go to Hardware --> New --> Configures Camera Facing Back --> None. However, when I run my code (with this AVD) and put a break point, I still see that packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) returns 'true'. Was Aug 13 06:30:59 wondering if I'm missing something obvious. Thank you. Aug 13 06:31:01 have you read the docs Aug 13 06:31:17 Try google.com Aug 13 06:31:18 so you guys dont know what the target really is? Aug 13 06:31:23 I've heard good things Aug 13 06:31:59 ensi: run "list targets", find the target you want, then use it Aug 13 06:32:02 not rocket science Aug 13 06:32:29 Leeds: can you explain how is this different from the api level? Aug 13 06:32:31 themirror: stop that Aug 13 06:32:46 ensi: because a target ID isn't an API ID Aug 13 06:32:53 Leeds: so what is it then? Aug 13 06:32:59 erm... it's a target ID? Aug 13 06:33:14 le sigh Aug 13 06:33:24 what is the purpose of the target? Aug 13 06:33:25 He's asking what it is fundamentally Aug 13 06:33:29 yes Aug 13 06:33:34 it's one of the API packages you've installed Aug 13 06:33:53 but there's nothing which says that target 7 refers to API 7 - it's just the 7th target you installed Aug 13 06:33:54 All I'm saying is that your answer is on Google Aug 13 06:34:02 themirror: you're not helping Aug 13 06:34:29 Leeds: so the target is a toolset/api set in the SDK Aug 13 06:34:31 Lol w/e neither are you Aug 13 06:35:14 themirror: if you've got a link to a page which explains this in simple English with short words, that would help... saying "go to google and find the answer" doesn't help Aug 13 06:36:08 ensi: is it really so hard to understand that you run "android list targets", find the target you want, then use that ID in "android update project"? Aug 13 06:36:31 Leeds: i want to know what does this extra step give me, i already have the API level in the manifest Aug 13 06:36:43 ensi: what was the *first thing* I said to you? Aug 13 06:37:45 also, go RTFM: http://developer.android.com/tools/projects/projects-cmdline.html Aug 13 06:37:45 dunno you mean the compilcation vs. runtime thing? Aug 13 06:37:55 yes, the complication thing Aug 13 06:38:03 but.. thats stupid.. Aug 13 06:38:14 http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Aug 13 06:38:41 "that's stupid"=="that doesn't work exactly the way I assumed it would" Aug 13 06:38:44 and now I'm done Aug 13 06:39:00 yeah lets repeat ourself in multiple .xml files Aug 13 06:39:04 seems like an awesome idea Aug 13 06:39:17 and command lines Aug 13 06:39:48 or you could just use eclipse if this stuff scares and confuses you... whatever Aug 13 06:39:54 maybe there is a valid reason for having this step, but apparenly you dont know what it is Aug 13 06:40:08 saying that "teh manifest is for teh runtime" is a moot point Aug 13 06:40:25 should be easy to for any b uild tool to check the sdk level from there if that is the case Aug 13 06:40:28 moooooo Aug 13 06:40:29 t Aug 13 06:41:58 Yeah just read the link. I got it from google.com Aug 13 06:43:04 This is a repeat of a question I'd asked. Apologies for any inconvenience. Am trying to create an AVD without a backfacing camera and test my code to see what happens if there's no camera. What I did was to create a new AVD and then go to Hardware --> New --> Configures Camera Facing Back --> None. (So, hw.camera.back == none). However, when I run my code (with this AVD) and put a break Aug 13 06:43:05 point, I still see that packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) returns 'true'. Was wondering if I'm missing. Thank you very much. Aug 13 06:44:56 Build target Aug 13 06:44:58 Build target is the API level Eclipse/IntelliJ/whatever IDE you're using is building against. Aug 13 06:45:01 heh Aug 13 06:48:24 Target is an api that you know works. So if some functionality can be accommodated using features of the target. Make it as high as possible. Aug 13 06:49:53 i think it should be as low as possible Aug 13 06:51:13 Do whatever you want. I say as high as possible Aug 13 06:51:50 to target least number of devices? Aug 13 06:52:06 generally i think should use the smalles API level that gets your job done Aug 13 06:52:29 so have more available device s(if you ara interested in getting users for your fart app) Aug 13 06:53:03 No that's not the point. minSdk for that. Target is for your convenience, so you can take advantage of api stuff Aug 13 06:53:50 Design for lowest which is different from target Aug 13 06:54:09 don't use api 12 class if you don't need it Aug 13 06:54:44 but if you accidentally use an api that is newer than your intended api level and you use a newest possible target to build isnt it entirely likely that the target will have a newer api and thus the code will compile Aug 13 06:55:29 I'm sorry I couldn't parse that. Aug 13 06:55:56 ok, english is not your first language then i guess? Aug 13 06:56:19 On second thought, I got work to do. Aug 13 07:38:13 I need to show questions & answer choices (with checkbox) in a listview, should I use nested ListView, i.e.: a listview of questions, and each row contain a listview of choices? Aug 13 07:39:01 I've heard/read somewhere that nested listview have issue with scrollbar Aug 13 07:46:42 setVolumeControlStream does master media volume control. Any way to make this application specific? Aug 13 07:57:18 g Aug 13 07:57:43 Hi, anyone know why my webview not working on old phones? It's basically generated from javascript top-down Aug 13 07:57:57 The page shows fine in newer phones, but not old ones Aug 13 07:58:22 in one phone, it did work and then for some reason stopped working. the screen is all white Aug 13 08:05:40 Hi. I've been trying to get my head around how to test my IntentService using the ServiceTestCase. My tests always fail unconditionally, and the testServiceTestCaseSetupProperly test fails, too. I am totally confused here as there is little info available for testing intentservices on the Web. Any insight? Aug 13 08:18:36 hi, how to drop all database content from an sqlitedatabase? Aug 13 08:18:57 drop database? Aug 13 08:21:12 is it possible to reinstall the OS on my phone (samsung galaxy s2) with adb? Aug 13 08:21:38 i dont like sansungs android distro and want to use an untampered edition Aug 13 08:21:51 hi all Aug 13 08:22:44 Snuffel: that doesn't make so much sense with sqlite which represents a single db Aug 13 08:22:54 oh well i'll iterate through the tablenames and drop them one by one Aug 13 08:23:03 is it possible to enable front and rear camera at the same time and, ipotetically, have on screen 2 windows with the 2 camera capture? Aug 13 08:23:12 tapas: try googling Aug 13 08:23:24 sparkling: sounds awesome but I have no idea Aug 13 08:25:51 tapas, truncate Aug 13 08:26:39 you want to truncate the table[s], this way you keep the structure but get rid of the date Aug 13 08:26:41 *data Aug 13 08:32:13 anyone got some input on why webview stops working on old phones? Aug 13 08:32:27 (not old android, just old phone) Aug 13 08:33:46 How is a CHOICE_MODE_MULTIPLE_MODAL ListView supposed to work? I can select a single item by long pressing it but even that does not remain highlighted. Aug 13 08:47:12 hm, trying to set up eclipse on a new computer Aug 13 08:47:58 i wonder what im missing, importing actionbarsherlock gives me a lot of errors on the project Aug 13 08:48:28 eSatsu: that usually happens if you forgot to include it as a library to your project Aug 13 08:48:45 i mean the library itself is having tons of errors Aug 13 08:48:47 or you have it set to compile on Android-14 API and you didn't download API 14 SDK Platform in SDK Manager Aug 13 08:49:29 oh that might be it Aug 13 08:50:59 hey guys Aug 13 08:52:45 i have a kinda huge issue on my new app... i am working the first time with locationproviders and somehow my LocationListener never stopps.. Aug 13 08:54:30 http://pastebin.com/D8iPSb7g doesn't seem to be enough :/ Aug 13 09:05:05 Aeefire: use the fluffy location library, much easier to handle location listeners and very battery friendly Aug 13 09:06:01 I've already done the whole programming on locationthingies with the usual libs, don't want to throw that all over because of that stupid problem Aug 13 09:06:28 Aeefire: you should throw all that way because its better to do it this way Aug 13 09:09:18 hm didnt help Aug 13 09:09:30 still getting lots of errors on t he actionbarsherlock lib Aug 13 09:10:06 a lot of methods giving the error xx must override a superclass method Aug 13 09:24:12 The default android browser does not support file upload by ? Aug 13 09:24:26 yes it does Aug 13 09:24:35 Snuffel: oh really, thanks Aug 13 09:24:57 Snuffel: That should work on all versions? Aug 13 09:25:30 narf lol Aug 13 09:25:40 ok the structure of my locationlistener was probably just pure shit Aug 13 09:25:44 that's why it didn't work Aug 13 09:27:39 tomoyuki28jp: dunno about that, it works on my phone, that's ICS Aug 13 09:27:51 Snuffel: I see, thanks a lot!! Aug 13 09:27:54 and it works in the main screen Aug 13 09:27:57 not in a popup Aug 13 09:28:09 because it also creates a popup Aug 13 09:32:34 Snuffel: DusteD: DROP IF EXISTS table_name Aug 13 09:32:40 works just dandy.. Aug 13 09:33:04 anyways, back to a different topic: adding fragments to an activity.. on an orientation change the fragments get readded again Aug 13 09:36:39 Tapani, except if you wanted to keep the table structure :) Aug 13 09:38:01 Fragment.setRetainInstance(false) might work Aug 13 09:39:36 How do you test an IntentService using the ServiceTestCase? Aug 13 09:44:17 oh, soft input method woes Aug 13 09:47:10 ok, so is ther a way to programatically remove all fragments from an activity without having to remember all the ids manually? Aug 13 09:48:09 i don't seem to find a way to get a list of all added fragments.. Aug 13 09:54:05 I'm facing the issue described here ---> http://code.google.com/p/android/issues/detail?id=14545 . Basically, the camera continues to be reported even though it's actually turned off in the emulator. Any thoughts on what I should do to check my code for the case when the camera is not present? Aug 13 09:55:27 hi i got a form in one activity which displays some details of a contact. for editing i open another activity where the user can edit the different fields. now if the user goes back to the last activity (display contact details) he sees the old values. how do i trigger the update for the views in the details activity when the user goes back? Aug 13 09:58:09 hi Aug 13 09:58:18 popBackStack doesn't do anything Aug 13 10:00:27 how to record promo film with my app working on device ? I see many applications but they usually need root, and record only 12-15 frames per seconds Aug 13 10:00:29 ? Aug 13 10:26:14 hdmi recorder + hdmi adapter Aug 13 10:32:38 I'm facing the issue described here ---> http://code.google.com/p/android/issues/detail?id=14545 . Basically, the camera continues to be reported even though it's actually turned off in the emulator. Any thoughts on what I should do to check my code for the case when the camera is not present? Aug 13 10:43:26 hey guys, never done android dev before so i have nfi what i'm doing, but i'm trying to get a simple qr reader setup. i'm looking to get zxing libraries into my project but I have absolutely no idea how to import them into my project. has anybody done this and is able to give me a bit of guidance? Aug 13 10:47:01 sfjgk: if it's a jar, dump it in the libs dir and you're done. Aug 13 10:47:29 anyone got some input on why webview stops working on old phones? (not old android, just old phone) Aug 13 10:48:35 hi there, how do i get the ringtone title when picking one with ringtone manager? Aug 13 10:48:37 kreaper: i doubt that anyone will be able to help you with a vague error description like that Aug 13 10:48:46 just like it shows up in the list Aug 13 10:50:57 siyb: i did a better description before but no answer :P Aug 13 10:51:13 EuroTrash: ah ok, cheers. this seems to be a load of code that hasn't been built yet, so i guess i'll have to build it Aug 13 10:51:17 siyb: the problem is javascript i belive, i generate the entire page from javascript and on old phones it just don't work Aug 13 10:51:28 siyb: be belifs are that it is an memory problem Aug 13 10:51:50 appel1: Hi. You have previously helped me with Android services, so I'll ask this to you. Have you tested an IntentService using the ServiceTestCase ? Aug 13 10:53:03 yati: no, I haven't. sorr Aug 13 10:53:04 y Aug 13 10:53:28 hi all , i am working on a project where i have an app that unzip a file which contains .doc/.pdf file . i want to extract the zip file and want to get the .doc/.pdf file and set its permission to readable or rw.And now want to open the file with the proper app say for ms word or pdf viewer with the permission set for the files.how can i do this ?any hint or idea? Aug 13 10:53:41 JakeWharton: hanselandgretel goes all weird when i have a lot of items in the backstack, what should one do about that? Aug 13 10:55:26 sfjgk: http://stackoverflow.com/questions/4782543/integration-zxing-library-directly-into-my-android-application Aug 13 10:56:25 kselos: can you use an emulator and just use a screen capture program? Aug 13 10:56:54 hey guys Aug 13 10:56:54 [12:54] i have found out that smartflash tools is best the posibilty for recovery smaprtphone from bad flash or something Aug 13 10:56:54 [12:54] bad smartflashtool needs .bin files Aug 13 10:56:54 [12:55] i need an image for recovery wich has already gynogen mod installed, that i can play back ma last backup Aug 13 10:56:54 [12:55] but all the roms i found was in zip/mage-format Aug 13 10:56:55 [12:55] so i need such an rom in bin format that i can use smartflashtool Aug 13 10:56:55 [12:55] is there a way to do so? Aug 13 10:57:05 EuroTrash: ahh thanks, i'm following http://www.falatic.com/index.php/9/building-zxing-for-android-part-1 but i'll fiollow the stack exchange one now, cheers Aug 13 11:04:13 hi all , i am facing an issue where a autoresize textview which i created for my app is not working in the 4.1.1 Aug 13 11:04:49 from stack overflow http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds/5280436#5280436 Aug 13 11:05:28 can anyone sujjest what might be the issue ? It works for platforms below 4.1.1 like 4.0.3 Aug 13 11:06:18 and btw: how is this app-bar in android called wich is down on the screen Aug 13 11:06:34 where icons for camera and stuff are in it Aug 13 11:06:49 i have found out, if i place an icon from an app there, i can t remove it Aug 13 11:07:02 its then forever in this app-bar... Aug 13 11:07:59 i love the openness of android, but the API is really getting on my nerves Aug 13 11:08:27 the openess might be the reason, becouse we all have the update problem for new android version Aug 13 11:08:43 the problem is, that linux never had stable api`s for cs drivers Aug 13 11:09:22 therefore is difficult to get the newest version of android running. for that you must wait till the manufacturer do it, if he do it... Aug 13 11:09:47 under win or osx, you press just the update button and you system is up2date... Aug 13 11:10:54 I really don't see why manufacturers can't simply build their stuff on top of stock Android... is that really the way the API sucks? Not offering enough hooks for customization, forcing manufacturers to maintain their own forks? Aug 13 11:11:07 Or are the manufacturers not smart enough to build upon stock Android? Aug 13 11:11:44 wrong, you see it daily! if you want to see it. only 1% of all new devices get an update to jelly bean Aug 13 11:11:47 the rest not Aug 13 11:12:08 and even ics is not for all smartphones avaible becouse the manufactures don t want it Aug 13 11:12:16 better come back 2 reality Aug 13 11:12:34 yes, i think the problem is the api Aug 13 11:12:51 its an generell linux problem, so now we also have it under android Aug 13 11:13:14 there are exists no stable api`s for cs drivers, becouse cs is at default but Aug 13 11:13:22 so the linux dev`s don t care about it Aug 13 11:13:34 and now we must face the problem of this ignorance Aug 13 11:13:59 EuroTrash: the instruction "Enter Eclipse -> new Android Project, based on the android folder in the directory you just extracted" specifically the based on bit, what do they explicitly want me to do? Aug 13 11:14:26 Am I manually setting the project location to the android folder in the zxing library files? Aug 13 11:16:10 you have to jump through terrible hoops to be able to add fragments programatically.. Aug 13 11:16:13 gnah Aug 13 11:16:14 off to lunch Aug 13 11:16:42 also it's pretty much a side effect only api.. Aug 13 11:16:50 you always have to think about loads of application state Aug 13 11:16:55 really really ugly.. Aug 13 11:17:00 Aug 13 11:17:33 i am no expert, but i am watching the linux situation now a long time: cs is at deafult evil. so there are no stable api`s for this evilness Aug 13 11:17:34 How do you make an item in a multiselectable listview appear selected? Do you "manually" alter the item's style in onItemCheckedStateChanged? Aug 13 11:17:41 and the result of this you see now on android Aug 13 11:17:55 no rant, my sentence Aug 13 11:18:40 so there can be just made stock builds wich run on every device becouse of the needed cs-hardware-drivers Aug 13 11:18:58 and the don t work on newer version becouse there are no stable api`s for that Aug 13 11:19:09 the devs don t want it. only idelogy crap Aug 13 11:20:45 so not android is the problem, its the lag of standards in linux Aug 13 11:21:49 Benn really stuck on this: I'm facing the issue described here ---> http://code.google.com/p/android/issues/detail?id=14545 . Basically, the camera continues to be reported as present even though it's actually turned off in the emulator. Any thoughts on what I should do to check my code for the case when the camera is not present? Aug 13 11:21:57 *Been Aug 13 11:22:47 heya Aug 13 11:22:51 One quick question Aug 13 11:23:12 I have some web controllers that I am calling from my android app. However, in order to avoid spoof requests I want to make sure that it's my app and only my app that can access those controllers Aug 13 11:23:27 aha pebkac, found it XD Aug 13 11:23:29 Is there any secure way to identify the app? Aug 13 11:24:01 hi all , i am working on a project where i have an app that unzip a file which contains .doc/.pdf file . i want to extract the zip file and want to get the .doc/.pdf file and set its permission to readable or rw.And now want to open the file with the proper app say for ms word or pdf viewer with the permission set for the files.how can i do this ?any hint or idea? Aug 13 11:25:04 is there a limitation of the size from micro sd card smartphones can use or work every sd-card in each phone? Aug 13 11:25:19 i am thinking to buy an 32gb mirco-sd-card Aug 13 11:26:34 media_man generel u can use every sd card on every phone Aug 13 11:26:56 ... as long as the card is supported (hardware) Aug 13 11:27:26 k, then i better take the phone with my if i buy one, to check this out Aug 13 11:27:28 thx Aug 13 11:27:42 and i think, but i dont now, 64 GB cards can only use in S3 Aug 13 11:28:15 i have a lg p970 atm. i don t know if this has any limitations with sd card Aug 13 11:28:35 well, there is microsd, microsdhc and microsdxc Aug 13 11:28:48 i would assume that all the modern phones support microsd and microsdhc Aug 13 11:29:00 they probably won't all support microsdxc Aug 13 11:29:23 Hey guys Aug 13 11:29:47 I have this RelativeLayout with a ProgressBar and TextView as children Aug 13 11:29:50 micro sdxc.. that i mean. Only in s3 or? Aug 13 11:30:34 oh, i see that mcor sd cards seems to have also different speed clases? Aug 13 11:30:40 The ProgressBar is aligned to the top of the relativelayout and uses android:layout_marginTop="360dp" so it goes further down to around the middle of the scren, and the textview uses android:layout_below="@+id/progressBar1" Aug 13 11:30:54 how can one found out till wich speed the phone supports an sd card? Aug 13 11:30:55 But the textView, instead of being right below the progress bar, is way further down Aug 13 11:30:57 What do I do? Aug 13 11:32:22 Hey there! Aug 13 11:32:55 It seems you're using a relativelayout to do what a linearlayout does by default? But there's not a lot of context. Anyhow, I guess fire up the hierarchy viewer to see what's introducing the extra space. Aug 13 11:33:21 I'm trying to use Jake Wharton's ViewPagerIndicator. Works great with TitleIndicators, but it looks like I can't change the style of TabIndicators by code? Is this impossible or am I overlooking something? Aug 13 11:33:29 Well I'm assuming somehow the marginTop also introduces spacing to the bottom but I don't know why Aug 13 11:33:49 Don't... assume :P Aug 13 11:33:51 Because without marginTop there's no space (above or below) Aug 13 11:35:28 Well, this is a buggger Aug 13 11:35:39 Gonna try again and see if anyone can help me with this Aug 13 11:36:09 I need to do back-end server authorization for users... but in addition to that I want to make sure they're actually requesting the authentication from my app, not from say, their browser. Aug 13 11:36:26 Is there some way to tell my server "this request is 100% coming from the android app" Aug 13 11:36:52 Tee_Pee: I guess a form of http digest along with proguarding your app is relatively secure. Aug 13 11:37:33 Still not 100%. Aug 13 11:38:18 But too hard for 99%, I guess. Aug 13 11:38:28 It'll scare off the kiddies. Aug 13 11:39:09 hmpf, that ought to do to some degree... I was hoping there was something that goes hand in hand with the android market. Aug 13 11:39:14 And the applications link to it Aug 13 11:39:21 Hmmm Aug 13 11:39:30 Looking at the hierarchy viewer, not sure what I should look for tho Aug 13 11:40:00 RazielZ: look at the boxes, see what's introducing the space. Aug 13 11:40:17 I.e. is it the progressbar growing in size or is it the relativelayout introducing a margin? Aug 13 11:40:25 (or the textview having a margin) Aug 13 11:40:37 You can see the values for those attributes at the right. Aug 13 11:41:22 Well the textview has all margins as 0 Aug 13 11:42:01 You can see how the boxes are sized. Aug 13 11:42:11 The progressbar has the proper top margin, 0 bottom margin, and mBottom-mTop makes sense Aug 13 11:42:20 The relative layout is the one that's needlessly big Aug 13 11:42:28 And the textview is at the bottom of that Aug 13 11:42:40 Even though it should be higher up, and the relativelayout should stop after it Aug 13 11:43:07 But the space between the textview and the progressbar...? Aug 13 11:43:40 Well, there's just the textview and progress bar in that relativelayout Aug 13 11:43:54 And there's more space between them than there should be, but I still can't tell why Aug 13 11:44:11 Paste the layout? Aug 13 11:44:41 Any prefered paste website? Aug 13 11:45:23 Any, I guess Aug 13 11:45:30 gist.github.com is nice and clean though Aug 13 11:46:22 https://gist.github.com/f76918c7898aa282fb08 Aug 13 11:47:21 Hum, the pb is vertically centered? Aug 13 11:48:16 For one, that doesn't make a lot of sense if your relativelayout is wrap_content. Aug 13 11:48:29 RazielZ: http://pastebin.com/ Aug 13 11:48:34 Hmmm Aug 13 11:49:06 But secondly, I suspect that that's saying "well, you want me centered and I have 360dip at the top, so I need 360dip at the bottom as well".. or it's splitting, or I dunno. Aug 13 11:49:34 Lol Aug 13 11:49:38 Also not sure what you're trying to achieve with aligning both parentLeft and parentRight. Aug 13 11:49:39 Removing vertical centering worked Aug 13 11:49:48 Thanks Aug 13 11:50:05 And I'm not sure, I just tried stuff to see if it'd change anything Aug 13 11:50:28 Heh ok Aug 13 11:53:16 Also Aug 13 11:53:26 Before addings other things there, there's a small white bar at the bottom Aug 13 11:53:34 No idea why, it doesn't show up on the design view, only on my phone Aug 13 11:55:03 How can i change the file permission and open it in respective viewer ( xls viewer,pdf viewer etc. ) with the chnaged permission? Aug 13 11:55:15 hi guys Aug 13 11:55:35 does anyone know how to compile liblight.exynos.so? Aug 13 11:55:39 RazielZ: hm how large? Aug 13 11:55:56 i only know the c file https://github.com/myfluxi/xxLiblight/blob/master/source/lights.c Aug 13 11:56:02 but this origin for s2 Aug 13 11:56:14 i want to compile into n7000 Aug 13 11:57:04 ok, the back stack seems to introduce another layer of stacking. i.e. you have to press back twice to exit an activity with fragments added using the back stack Aug 13 11:57:17 EuroTrash, about... 20dp Aug 13 11:57:29 Noticeable Aug 13 11:57:39 Weird... is your background just an image? Aug 13 11:57:49 Yep Aug 13 11:58:08 Could it be... slightly too short? Aug 13 11:59:11 Hmmm Aug 13 11:59:21 Well after I add some buttons to the page the bar disappears Aug 13 11:59:33 ok, i'm lost. so what's the canonical way to use fragments when i have to add them programatically in the activity's onCreate() Aug 13 11:59:34 I also have another page with the same background and that one is fine Aug 13 12:00:01 RazielZ: also, your scrollview is height wrap_content. Aug 13 12:00:16 So if your contents are smaller than the screen height, it'll stop before the bottom of the screen. Aug 13 12:00:16 Yeah, I have code that adds many buttons after loading Aug 13 12:00:34 Should I change it to wrap content when I start adding the buttons then? Aug 13 12:00:54 Makes more sense to set it to match_parent. Aug 13 12:01:06 Which basically means "fullscreen" in this case. Aug 13 12:01:14 I'll try that Aug 13 12:02:38 defining children of a list in XML, bad practice? Aug 13 12:02:38 tapas: how are you adding those fragments at the moment? Aug 13 12:02:50 funktronic: huh? Aug 13 12:03:16 is it bad practice to define the children of a ListView right in the xml Aug 13 12:03:28 It's impossible, as far as I know. Aug 13 12:05:39 hrnt: i add them programatically in the activity's onCreate method. What fragments are created is very dependent on the kind of data the activity is to display Aug 13 12:05:49 could you paste an example Aug 13 12:05:54 sure Aug 13 12:06:31 hrnt: http://pastesite.com/41493 Aug 13 12:07:16 hrnt: never mind the backstack stuff in there.. i tried this to see if i could remove all fragments in one go before readding them.. Aug 13 12:07:35 tapas: so your "real" version does not have fragmentTransaction.addToBackStack("views"); ? Aug 13 12:07:56 hrnt: yeah. and the popBackStack() is also gone.. Aug 13 12:08:03 i can remove and repaste if you want to Aug 13 12:08:58 hrnt: i suppose i could somehow check if the activity "really" got created anew (i.e. in such a way that fragments don't survive it) Aug 13 12:09:02 and only then add the fragments Aug 13 12:09:07 tapas: yes Aug 13 12:09:11 sounds totally uberhackish to me, though Aug 13 12:09:15 not really Aug 13 12:09:21 if (icicle != null) do not create fragments Aug 13 12:10:00 hrnt: yeah, the problem with that is though, that i have to set some data to the fragment. see the fragment.setFieldConfig Aug 13 12:10:12 hrnt: i guess i could implment the fragment life cycle methods to store and restore the state Aug 13 12:10:42 of course Aug 13 12:10:56 but this introduces stuff like making things serializable.. Aug 13 12:11:05 can we selectively delete cookies in android from cookie manager? i can't seem to find a way to do it. :( Aug 13 12:11:07 and is just a whole bunch of troubles.. Aug 13 12:11:09 oh well Aug 13 12:11:12 well, just don't create the fragments if your activity has a saved instance state Aug 13 12:11:26 assuming your setFieldConfig is idempotent Aug 13 12:11:42 hrnt: yes, but then on a configuration changed the fragments themselfes get recreated and automatically added by the android system Aug 13 12:11:42 well, i am not sure even that matters Aug 13 12:11:52 hrnt: and this is done using their default constructor Aug 13 12:12:00 tapas: yes Aug 13 12:12:01 so i get no chance to set the state again.. Aug 13 12:12:13 why not? Aug 13 12:12:51 when your activity is recreated with a saved instance state, look up the fragments and setup them Aug 13 12:13:01 if your activity does not have a saved instance state, then create the fragments and setup them Aug 13 12:13:14 hrnt: yeah, then i have to add tags and other state and it all becomes one big mess :D Aug 13 12:13:18 but i will go that route.. Aug 13 12:13:22 i'm not sure if i'm helping. but fragments cannot have parameterized constructors i guess. Aug 13 12:13:24 unmaintainable code, here i come.. Aug 13 12:14:05 btw: what's the reasoning to make fragments persist over activity lifecycle? Aug 13 12:14:11 when nothing else behaves this way? Aug 13 12:15:31 there are stuff that persist over activity lifecycle Aug 13 12:15:41 such as shown dialogs (if you are using activity's showdialog) Aug 13 12:16:00 imho it is actually an useful feature Aug 13 12:16:08 for example if you are showing a DialogFragment and the user rotates the screen Aug 13 12:16:14 android remembers that the dialogfragment was visible Aug 13 12:16:39 tapas: imho the problem with your piece of code is that you are configuring the fragments unusualyl Aug 13 12:16:57 you should pass the fragment parameters in a bundle Aug 13 12:16:59 can we selectively delete cookies in android from cookie manager? i can't seem to find a way to do it. :( Aug 13 12:17:07 that way android would remember the parameters for you Aug 13 12:17:17 hrnt: ah, good to know.. Aug 13 12:17:26 that might work.. Aug 13 12:17:32 instead of Aug 13 12:17:43 ArticleFragmentBase fragment = displayMap.get(config).newInstance(); Aug 13 12:17:57 you would do ArticleFragmentBase fragment = displayMap.get(config).newInstance(article, config); Aug 13 12:18:09 and your newInstance would serialize those in the bundle and store them as the fragment arguments Aug 13 12:18:12 sudarshanpbhat: I guess setCookie("http://url", null) would have a similar effect. Aug 13 12:18:20 yeah, then i can get rid of the ArticleFragmentBase interface, too Aug 13 12:18:26 hrnt: would make things much easier.. Aug 13 12:18:33 hrnt: thanks for the advice.. Aug 13 12:19:26 basically a good rule of thumb is "activities and fragments don't talk to each other" :) Aug 13 12:19:32 sure, there are a lot of situations where that does not hold Aug 13 12:19:33 :P Aug 13 12:19:37 but it is a good starting point Aug 13 12:19:45 every method call from an activity to a fragment and vice versa implies state Aug 13 12:19:52 and android hates state in its fragments and activities :P Aug 13 12:20:06 EuroTrash: yes it does. but i want to remove all the cookies except some. i will not know the URLs i want to remove. I will only know what to set to. Aug 13 12:20:08 hrnt: interesting, the API appears so goddamn stateful Aug 13 12:20:17 hrnt: i mean the android APIs in general.. Aug 13 12:21:40 hrnt: the only additional difficulty now is that i have to lookup the constructor, since newInstance() doens't take parameters.. Aug 13 12:21:58 i guess i could get rid of the map and do everything in a big switch() statement.. oh well.. Aug 13 12:22:29 what is that newInstance anyways? Aug 13 12:22:37 but really it would be simpler just to remove everything and readd it on every onCreate ;D Aug 13 12:22:38 why not just modify the newInstance signature so that it does take parameters :P Aug 13 12:22:52 newInstance is a member of the class Class Aug 13 12:23:08 oh and regarding state, i basically mean that for example in android you do not create a dialog and then show it like you do in most of the other frameworks Aug 13 12:23:18 http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Class.html#newInstance%28%29 Aug 13 12:23:33 instead you modify the current activity "this activity is now showing dialog 1" Aug 13 12:23:51 anybody worked on changing file permission on android Aug 13 12:23:53 > Aug 13 12:23:58 so when the activity is recreated, it resumes from "activity is showing dialog 1" Aug 13 12:31:14 hrnt: ok, and how would the fragments parametrized constructor pass its parameters to onCreate() Aug 13 12:31:18 hrnt: via a bundle? Aug 13 12:31:45 tapas: what does your newInstance look like at the moment? Aug 13 12:32:01 hi, i start activity B from activity A. i am changing something in activity B. now how do I tell activity A that something has changed? Aug 13 12:32:26 hrnt: i removed it. i actually switch over the types and create the fragment directly.. Aug 13 12:32:38 e.g. fragment = new Text(article, config); Aug 13 12:32:51 tapas: it should basically be something like this: static MyFragment newInstance(String param1) { Bundle b = new Bundle(); b.putString("param1", param1); MyFragment retval = new MyFragment(); retval.setArguments(b); return retval; } Aug 13 12:33:25 hrnt: ah ok.. so not implementing a constructor but rather a static factory function? Aug 13 12:33:31 yes Aug 13 12:33:52 hrnt: ok, this kinda makes sense. otherwise i would have to take care to also provide a parameterless constructor that only calls the superclass constructor Aug 13 12:34:04 that is because your fragments _must_ have a parameterless constructor Aug 13 12:34:34 yes Aug 13 12:35:53 can i somehow check if a notification under ceratin id is still showing? Aug 13 12:36:18 tapas: see this: http://android-developers.blogspot.fi/2011/02/android-30-fragments-api.html Aug 13 12:36:34 it is an ancient post (in relative terms), but demonstrates the idea of using newInstance pretty well (IIRC) Aug 13 12:37:17 hrnt: cool, thanks.. Aug 13 12:38:13 i keep seeing tutorials everywhere talking about "main.xml", but I can't find it. where should I be able to find it? Aug 13 12:39:00 ok, luckily enums are by default serializable Aug 13 12:39:15 sfjgk: you should create it if you are creating an android app.. Aug 13 12:39:21 sfjgk: also: what tools are you using/ Aug 13 12:39:22 ? Aug 13 12:39:27 eclipse Aug 13 12:39:39 sfjgk: and your operating system probably has a function to find a file ;D Aug 13 12:39:39 in layout Aug 13 12:39:46 xD Aug 13 12:39:48 sfjgk: ok, look intot hte layout/ folder Aug 13 12:39:50 yeah its not there Aug 13 12:39:51 ah Aug 13 12:39:52 ok Aug 13 12:40:05 if not there u can create it# Aug 13 12:40:46 i'm reading this http://www.jmanzano.es/blog/?p=244 Aug 13 12:40:59 but wtf is "R" this guy is talkint about Aug 13 12:41:06 I'm registering an messager with my handler. But if the activity exits before handleMessage got called it crashes Aug 13 12:41:44 R is created by itself Aug 13 12:41:52 ignor it.. Aug 13 12:41:58 It is on.. yeah! xD Aug 13 12:42:20 is there any way to force resync cookies in android? it seems to take sometime for setting cookies :( Aug 13 12:49:54 I am stuck bad with this one ... i do "adb shell" and then i do "time" ... it works .... but i want to know where is this executable "time" ? :( anyone? Aug 13 12:50:39 'which time' Aug 13 12:51:30 wongk, which and whereis both are not available ... Aug 13 12:51:36 im using Jelly Bean ... Aug 13 12:52:45 then check each directory in your PATH Aug 13 12:52:51 or install busybox Aug 13 12:52:54 NotificationManager has notify and cancel, but how can i check if there's a notification visible under certain id? Aug 13 12:53:01 morning Aug 13 12:53:16 i have searched all the directories ... Aug 13 12:53:21 to no avail :( Aug 13 12:54:49 perhaps it's built into your shell Aug 13 12:54:54 i'll have a look at busybox ... Aug 13 12:55:40 the problem is in order to use extra parameter like "time --verbose" it is required that i write absolute path ... Aug 13 12:55:54 and i dont know where the binary for 'time' is! Aug 13 12:56:24 sprockeeking, /usr/bin/time ? Aug 13 12:56:54 sprockeeking, but try executing `which time`, if it's on your path it will appear Aug 13 12:57:35 kaneda^, i've tried both ... :( Aug 13 12:57:49 sprockeeking, so, what's the goal? Aug 13 12:57:58 the problem is in order to use extra parameter like "time --verbose" it is required that i write absolute path ... Aug 13 12:58:05 parameter for? Aug 13 12:58:08 otherwise it fails ... Aug 13 12:58:21 for "time" Aug 13 12:58:35 what's the goal? Aug 13 12:59:26 aah ... i want to know how much time an executable takes ... Aug 13 12:59:32 from start to finish Aug 13 12:59:42 sprockeeking, and you want to do this in java? Aug 13 13:00:05 nope Aug 13 13:00:05 ! Aug 13 13:00:10 jus inside adb shell ... Aug 13 13:00:18 sorry for confusion ... Aug 13 13:00:23 hi room Aug 13 13:00:52 its just that i want to profile a library that i created using different compilers ... Aug 13 13:01:23 does anyone know how to use a SeekBar or SeekBarPreference on a PreferenceScreen? Aug 13 13:01:31 sprockeeking, i'm not sure Aug 13 13:01:33 is it possible at all? Aug 13 13:02:37 no probs! :) Aug 13 13:05:07 #ndk Aug 13 13:06:57 #android-ndk Aug 13 13:07:46 #wursmahchannel Aug 13 13:27:39 hi all , i am facing an issue where a autoresize textview which i created for my app is not working in the 4.1.1 ,from stack overflow http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds/5280436#5280436, can anyone sujjest what might be the issue ? It works for platforms below 4.1.1 like 4.0.3 Aug 13 13:35:36 why is SeekBarPreference not documented? Aug 13 13:36:38 Because it's not part of the API? Aug 13 13:43:51 I would like to make app for reading my nfc tags at home or office and do something useful (change ringer volume, etc.) I know there are apps for that in store, but i want to learn how to use nfc with this. So far I found i should specify mime type for intent filter. Is there some good practice for this, or is mime "application/cz.pitel.profile" ok? Aug 13 13:44:15 guys, im having a problem with my app, i believe something common but couldnt solve it, im using abt + tabs + fragments, whenever the screen is rotated, it goes back to the initial tab , heres my main activity : http://www.fpaste.org/g1qQ/ Aug 13 13:44:25 abs* Aug 13 13:44:33 actionbarsherlock Aug 13 13:45:21 check lines 30-42 and 107 Aug 13 13:45:39 what did i mess up? Aug 13 13:46:39 Save the selected tab, select it against in oncreate Aug 13 13:46:42 what's the best Eclipse download for Android Aug 13 13:46:49 I know I have to add tools Aug 13 13:49:39 SimonVT can u give me an example? sry im not that good :/ Aug 13 13:50:10 Look up onsaveinstancestate Aug 13 13:50:30 Also, wtf are you doing on line 31 - 34 Aug 13 13:50:35 SimonVT: gr8 ill check it Aug 13 13:51:00 SimonVT: lol im fairly new to android development, u can ignore that ;) Aug 13 13:53:20 i have an Activity that has multiple buttons, some don't fit in certain screens. how to use swipe so that i can show the other right portion of the Activity? Aug 13 13:54:05 i want to be able to swipe left to show the left portion of the Activity and swipe right to show the right portion, is it possible? Aug 13 13:55:24 Niyakun horizontal scrollbar ? Aug 13 13:56:56 SimonVT: but SeekbarPreference it is part of the API Aug 13 13:57:19 it is a valid xml element Aug 13 13:58:57 But it is not part of the API Aug 13 13:59:34 where is the difference? Aug 13 13:59:50 android knows how to show it Aug 13 14:00:07 seems, it is not fully implementd Aug 13 14:00:32 If you can find it on d.android.com, then it's part of the API Aug 13 14:00:37 If not, it's not part of the API Aug 13 14:01:56 And anything is a valid in your preference xml Aug 13 14:02:15 SeekBarPreference just happens to be a class, so it doesn't complain at runtime Aug 13 14:02:20 But it's not part of the public API Aug 13 14:02:35 Aeefire: let me look it up Aug 13 14:02:50 SimonVT: strange but thanks Aug 13 14:11:24 Do you have to update the contextual action bar to display stuff like "1 item selected" or is there a way android does it for you? Aug 13 14:16:14 do i need to place a ScrollView before placing a HorizontalScrollView inside it or i can put a HorizontalScrollView as the root element in the main.xml file? Aug 13 14:21:53 Niyakun: don't put scrollviews inside of scrollviews please. Aug 13 14:22:02 Just use the HorizontalScrollView as your root. Aug 13 14:29:56 SimonVT: i believe im close, but still not working : http://www.fpaste.org/Aw0w/ Aug 13 14:30:05 Hey Guys, I've a query about Messenger and handlers Aug 13 14:30:24 lines 152-154 and 89-90 Aug 13 14:30:25 when I dispatch a message from my service but the activity has exited, how can I know Aug 13 14:30:26 taljurf: outState.putInt("tab", outState.getInt("selected_tab")); Aug 13 14:30:31 Do you see the problem? :p Aug 13 14:30:44 hmm, i did tab views by name Aug 13 14:30:51 you have to get the currently selected tab from the actionbar Aug 13 14:31:03 i have now found this for SeekBarPreference http://robobunny.com/wp/2011/08/13/android-seekbar-preference/ Aug 13 14:31:14 SimonVT: shi* 1 sec Aug 13 14:31:18 lol Aug 13 14:35:42 j\ Aug 13 14:36:21 Can someone explain what a thread is? I know what a thread is but I cant put it in words. Aug 13 14:36:28 does anyone here have an opinion on roboguice they'd care to share? Aug 13 14:37:11 Guest22786: a thread is somthing like a programm in execution Aug 13 14:37:32 Hmmmm thanks j4hr0m Aug 13 14:37:34 Guest22786: may be a part of a programm Aug 13 14:37:49 a thread is a worker that is allocated resources from a pool and performs one or more operations independently of other threads Aug 13 14:38:42 a process is a program in execution, a thread is a lightweighted process Aug 13 14:38:45 And a Process is a chain of "work"? Aug 13 14:39:04 a process is made of one or more threads Aug 13 14:39:12 it has a process id Aug 13 14:39:27 lol Aug 13 14:39:38 is there any possible way to reliably execute code on destruction/termination of an application? Aug 13 14:39:41 wth happen to those users? Aug 13 14:39:46 netsplit Aug 13 14:39:51 sysRPL, onHide, onQuit? Aug 13 14:39:52 google it Aug 13 14:40:06 onPause rather Aug 13 14:40:54 i am trying to work around activities being recreated when the screen is rotated Aug 13 14:40:58 SimonVT: yeeessss mission accomplished ^^ Aug 13 14:40:58 i have a server socket Aug 13 14:41:08 sysRPL: Use a Service for that instead of an Activity Aug 13 14:41:10 sysRPL, set orientation so it cant rotate ;) Aug 13 14:41:14 i want it to stay open regardless Aug 13 14:41:18 SimonVT: thx mate :) Aug 13 14:41:30 lov: this is an application which requires a ui Aug 13 14:41:35 sysRPL: that's fine. Aug 13 14:41:40 trying to google, but can't find anything. is there a list of default icons that I can use with a preview? Aug 13 14:41:43 sysRPL: You can bind to your service and get callbacks. Aug 13 14:42:04 lov: r i could just write my own application class right? Aug 13 14:42:06 sysRPL: it's useful if only for the view and resource injections and roboasynctask, but Guice / DI is pretty useful by itself, I use roboguice extensively. Aug 13 14:42:08 and put the network code there Aug 13 14:42:12 ... Aug 13 14:42:20 you can just do whatever it is you planned on doing since you don't really want advice Aug 13 14:42:27 sorry Aug 13 14:42:33 Yes, you could subclass Application Aug 13 14:42:38 this is generally frowned upon, however Aug 13 14:42:42 EuroTrash, really? so far all i can see that it does it automate the hook up of resource ids and types Aug 13 14:42:56 sysRPL: well, that's quite a lot already. Aug 13 14:43:01 lov, what is the downside to subclassing application? Aug 13 14:43:14 generally, complexity and unexpected behavior. Aug 13 14:43:41 Not sure if you're familiar with Guice in general, but it really cleans up your code and takes care of boring wiring, plus it makes mocking stuff very easy, so you can test in isolation. Aug 13 14:43:43 Additionally, if you have a service running, the device knows that your app is actually doing something. Aug 13 14:44:00 If you're only using activities, and the user puts you into the background, Android has no reason to believe that you couldn't be reaped for resources. Aug 13 14:44:29 If you have a service running, you'll be in line above applications without any running contexts to be reaped Aug 13 14:45:07 Has anyone dealt with this error in the new versions of ADT? The library 'x.jar' contains native libraries that will not run on the device. Aug 13 14:45:07 Additionally some of those libraries will interfer with the installation of the application because of their location in lib/ Aug 13 14:45:07 lib/ is reserved for NDK libraries. Aug 13 14:45:42 So put them in libs/ ? Aug 13 14:45:52 native go in libs no lib Aug 13 14:45:52 ^^ Aug 13 14:45:54 They are in the jar. I can extract them from the jar I guess Aug 13 14:46:18 but I'm guessing things in the jar will be pointing at the wrong places Aug 13 14:46:56 just fyi ... my app allow hearing mpared people to make phone calls ... it converts what they tpye into sound using the tts engine, and covnerts what the other party says into words using speech to text Aug 13 14:47:18 sysRPL: you should definitely use a service. Aug 13 14:47:27 You want the actions to continue even if your app is background, for example. Aug 13 14:47:39 the ui displays the conversation Aug 13 14:47:46 yes, I understand this. Aug 13 14:47:53 You should use a service with your activity Aug 13 14:48:04 your activity should bind to the service, the service should do any long lived operations such as networking Aug 13 14:48:13 it can perform callbacks to the activity when finished Aug 13 14:48:23 this way, if the activity goes away, things keep going on, and the user can leave and come back as appropriate Aug 13 14:48:34 the networking allows you to route the conversation to your pc Aug 13 14:48:43 where you can type easier Aug 13 14:48:48 .... ok? Aug 13 14:49:32 look, read this: http://developer.android.com/guide/components/services.html Aug 13 14:49:37 especially the part about bound services Aug 13 14:49:46 Services are exactly what you want for this application, period. Aug 13 14:49:51 they solve the exact problem. Aug 13 14:50:02 You can and should use Activities as well Aug 13 14:50:09 but you will want to and need to use Services too Aug 13 14:50:27 Correct that when you make a separate Thread/Process it helps prevent the dreaded Application Not Responding Error? Aug 13 14:50:38 Thread, yes. Aug 13 14:50:40 Process ?!?! Aug 13 14:50:55 You shouldn't be creating a separate process unless you have A Very Good Reason to do that. Aug 13 14:51:00 how would you display a screen of the conversation with voice controls (pitch/speed/volume) without an activity? Aug 13 14:51:17 >_< Aug 13 14:51:18 :What would be a good reason to create a seperate Process? Aug 13 14:51:19 you don't. Aug 13 14:51:20 <_zoom_> hi, how to link edittext to my own dictionary to help user with suggested words Aug 13 14:51:20 <_zoom_> ? Aug 13 14:51:23 You display them with an activity Aug 13 14:51:27 sysRPL: you should use Activities Aug 13 14:51:33 sysRPL: but your Activities should bind to Services Aug 13 14:51:56 Activities are for interacting with the user via a UI. Aug 13 14:52:06 lov, how would you display voice controls (pitch/speed/volume) without an activity? Aug 13 14:52:09 How do I pass an Activity's Context to an IntentService? Aug 13 14:52:15 why would you Aug 13 14:52:15 sysRPL: are you just trolling me? Aug 13 14:52:18 a service is a contex Aug 13 14:52:18 t Aug 13 14:52:28 lov, why would you tell me to use an activity too? Aug 13 14:52:36 :What would be a good reason to create a seperate Process? Aug 13 14:52:43 an activity is a ui container Aug 13 14:52:44 lov, when it's obvious you need one to display voice controls (pitch/speed/volume) Aug 13 14:52:48 sysRPL: I'm recommending that your application have multiple components. It should use Activities to display the UI and interact with the user. Aug 13 14:52:57 a service is a for maintaining background logic Aug 13 14:52:58 It should ALSO use Services to perform long lived tasks Aug 13 14:53:05 I do not understand what the miscommunication is here Aug 13 14:53:09 Guest22786: you can use AsyncTask in android to create worker threads, esp for network connections. this prevents the whol application to block, while the connection is executed Aug 13 14:53:22 pfn: no I'm trying to call getSharedPreferences() on the Service's Context - but it fails with a NullPointerException Aug 13 14:53:36 yati, you're calling before onCreate Aug 13 14:53:37 lov, you recommend using an activity too ... as if there is some other way Aug 13 14:53:43 So Some answer on SO suggested I use an Activity's Context Aug 13 14:54:01 trolololol Aug 13 14:54:05 yati you got the wrong answer Aug 13 14:54:06 sysRPL: I am recommending that your code live in multiple classes and components Aug 13 14:54:13 and that each class/component does what is appropriate Aug 13 14:54:23 I'm seriously not sure if you're trolling me but it's really starting to look like it Aug 13 14:54:43 lov, what else would house the user interface if something other than an activity? Aug 13 14:54:45 pfn: What piece of code can possibly be executed before onCreate() of the Activity that fires my Service? Aug 13 14:54:49 NOTHING ELSE Aug 13 14:54:51 NOTHING ELSE WOULD Aug 13 14:54:59 :D Aug 13 14:55:03 lov, because if there is nothing else, then why bother giving out that recommendation? Aug 13 14:55:08 .... Aug 13 14:55:19 i knew that was coming Aug 13 14:55:23 :) Aug 13 14:55:25 I'm done with him. Aug 13 14:55:39 yati, onCreate of your service, activity is irrelevant Aug 13 14:56:18 Guest22786: using a separate service is one of those things where you will know you need to do it when the time comes. Aug 13 14:56:21 er Aug 13 14:56:26 using a separate process Aug 13 14:56:37 the answer to "when should I do this" is "pretty much never" Aug 13 14:56:54 Okay, But mine is an IntentService, so I don't override any lifecycle method except onHandleIntent() - I am, however, calling the problematic code in the ctor Aug 13 14:57:06 yati, ctor is before onCreate Aug 13 14:57:10 okay Aug 13 14:57:15 got it Aug 13 14:57:21 let me try, hang on please Aug 13 14:59:07 pfn: I want to hug you. *hugs* :) Aug 13 14:59:10 Thanks Aug 13 14:59:52 <_zoom_> need to link own custom dictionary to edittext Aug 13 14:59:53 <_zoom_> ? Aug 13 15:01:17 Just making sure, every app has it's main thread right? Aug 13 15:05:24 else it would be pretty hard to run code Aug 13 15:06:38 Lol I was making sure Aug 13 15:07:10 I only question the word "main" Aug 13 15:08:11 I guess that's what you would call "the UI thread". Aug 13 15:25:44 can any1 give me a 1/2 liner explaing what a content observer is for/does (beyond it observes content) Aug 13 15:29:32 Jug6ernaut: User enables the GPS preference? Want to use the GPS? OK, start requesting location updates. Aug 13 15:30:01 oh you said content observer Aug 13 15:30:01 nvm Aug 13 15:30:43 xD Aug 13 15:30:56 If part A of your app is waiting for changes to XYZ, and part B of your app actually makes those changes, you can get an asynchronous callback instead of having to continuously poll Aug 13 15:31:51 lov, so is it perfered over a listener interface? Aug 13 15:34:09 sort of. read the docs. Aug 13 15:35:04 k Aug 13 15:36:16 how to delete apk file from google play developer ac Aug 13 15:39:55 wp-developer: uh, you don't. Aug 13 15:39:58 Guys, How can I get a menu like this http://imgur.com/Rs5K1 Aug 13 15:40:09 you can overwrite it, and you can unpublish it. Aug 13 15:41:14 I want a menu for my ListView just below the row Aug 13 15:42:17 everytime i change something i need to change version Aug 13 15:44:44 That's right Aug 13 15:47:03 wp-developer: that's correct. You upload new builds to your play account and publish them. Aug 13 15:47:10 Your new builds will override your older builds Aug 13 15:51:02 earlier i was able to delete those build and reupload same build version Aug 13 15:51:05 so, various projects use "library" as the root of their projects Aug 13 15:51:16 but when I try to import that into Eclipse, there is a name conflict Aug 13 15:51:18 and I can't seem to get around it Aug 13 15:51:22 WTF am I supposed to do Aug 13 15:51:40 example: actionbarsherlock/library and viewpagerindicator/library Aug 13 15:52:10 I can't rename it Aug 13 15:52:25 select the project and hit f2? Aug 13 15:53:16 oh nice! is that in a menu? Aug 13 15:53:20 Is the name conflict because they are both called library in your workspace? Aug 13 15:53:32 when trying to import them, they both come in as "library" Aug 13 15:53:41 So rename them Aug 13 15:53:45 they both exist as Git submodules Aug 13 15:53:50 so that's not really a good option Aug 13 15:54:10 well, stork just showed me how to rename the workspace reference with f2 Aug 13 15:54:37 I thought it would be in a context menu, but it's in File/F2 Aug 13 15:55:14 it doesn't rename the folder, just the reference to it Aug 13 15:56:11 yeah which is why I thought the name would be in the project preferences or something, not the File menu :) Aug 13 16:03:48 I have tried downloading NDK from site for three times, but it says it is corrupted or so.. i have very slow internet connection.. help me out here Aug 13 16:05:58 why does actionbarsherlock even come with android-support-v4.jar?!!? Aug 13 16:06:07 it just means you'll have jar mismatches Aug 13 16:07:56 is it possible to do real time audio processing on the users phone call Aug 13 16:12:22 Hi pplz, how are you. Im developing a web page than allows me to hear alert sounds about some events Aug 13 16:12:34 but, the web browser, only play sounds when the phone is active Aug 13 16:12:45 is there a way to hear the sounds in locked mode? Aug 13 16:13:27 the sounds plays, only when the phone is unlocked Aug 13 16:16:51 I am having a problem, when i was not using HorizontalScrollview, and when i touched on a button, it changed the background color of button to blue by default but after adding a HorizontalScrollView, i dont see any change in background color when i touch on a button, what might be the problem? Aug 13 16:20:14 ive done the following steps: installed eclipse, installed android sdk, installed the eclipse plugin, installed android sdk tools, android api16-14 and api10-7 and android support library Aug 13 16:21:09 doing new -> project -> android application project, build sdk api 14 Aug 13 16:21:39 and copied the sherlockactionbar library srk/res folders over Aug 13 16:21:53 also tried exporting it as an existing project Aug 13 16:22:11 both result in the library having errors in methods such as onCreatePanelMenu Aug 13 16:22:24 must override a superclass method Aug 13 16:22:36 what am i missing from the install Aug 13 16:23:35 Why not just create a new project from existing sources instead of manually copying files Aug 13 16:30:34 i tried that as well Aug 13 16:30:42 thats not the issue Aug 13 16:39:26 guys, ive set a pattern background to my app, but the actionbar menu icons also changed to pattern image, http://www.fpaste.org/Y6bw/ Aug 13 16:39:43 these are the activity layout and the pattern xml Aug 13 16:40:06 actually im using actionbarsherlock (if that makes a diff) Aug 13 16:40:33 what would cause the menu items to show that pattern? Aug 13 16:46:45 is there a relationship between the main activity layout and menu items??!! Aug 13 16:49:22 if I launch an intent to browse through the contacts and click one, does the contact come back in the intent? And if so, how would one get at it? I tried getData() and looked in the getExtras() bundle but that appears to be null Aug 13 16:56:00 o Aug 13 17:01:09 I liked IDEA at first, but I'm back to Eclipse Aug 13 17:03:59 Is there any easy way to convert an android app to ios? Aug 13 17:04:43 Drager: depends on how much you care about having a decent ap Aug 13 17:04:45 app Aug 13 17:05:26 jcromartie: Care pretty much Aug 13 17:06:19 Drager: then, no Aug 13 17:06:30 hi there can anyone help me? i have some buttons in a linearlayout, when i tap on them they change color, but after adding the layout inside a HorizontalScrollView, i am able to scroll but on tapping the buttons, they dont focus, or dont change color. Aug 13 17:06:31 Drager: any converter = shi**y results Aug 13 17:06:31 Drager: there's just the right way: build an iOS version :) Aug 13 17:06:32 jcromartie: So write a whole new one in ios? Aug 13 17:06:38 Ye alright Aug 13 17:07:03 porting tends to be easier than writing from scratch Aug 13 17:07:18 you have a head start because everything already works Aug 13 17:08:50 can anyone help me out? Aug 13 17:09:46 oGMo: What di yiy mean, port and then rewrite that code? Aug 13 17:10:26 Drager: i mean "port" by "rewrite in the target language", but you're basing it off your existing code to some extent (presumably it's got the same functionality etc) Aug 13 17:10:43 the logic is the hard part, not the syntax or framework Aug 13 17:10:47 oGMo: Ah, yeah Aug 13 17:10:50 Thats true Aug 13 17:12:25 Variables in RenderScript are atomic? Aug 13 17:18:49 nobody is helping me ... Aug 13 17:24:32 I have a project that uses Git submodules to hold libraries that need to be build separately, but I'm having trouble getting Eclipse to build it properly Aug 13 17:24:43 they live in a directory underneath the main project Aug 13 17:25:17 saecula: Which ones? Aug 13 17:32:14 OK let me put it this way: how the flying fuck do I use actionbarsherlock as a git submodule under my project Aug 13 17:33:55 ok this trafficstats bullshit is getting too much. my AVD is spamming the logs with this crap too Aug 13 17:34:56 can anyone here help me find out what is causing my logs on both my physical device and this avd to be spammed with trafficstats errors Aug 13 17:35:04 08-13 12:35:13.971: ERROR/TrafficStats(1636): [QCTMM]tryAll index=1 Aug 13 17:35:24 endlessly spamming logcat with logs like that. over and over nd over and over and ovber and over and.. .. . . Aug 13 17:35:27 ad infinitum Aug 13 17:36:41 mark4: That's in an emulator? Aug 13 17:36:46 yes Aug 13 17:37:01 mark4: Why is there Qualcomm stuff in there? Aug 13 17:37:09 nfi Aug 13 17:37:51 something is measuring bandwidth usage inside the AVD and reportin them to google so google can do market research ??? lol Aug 13 17:38:01 what's process 1636? Aug 13 17:38:09 how do i tell? Aug 13 17:38:20 adb shell ps Aug 13 17:38:26 rite' Aug 13 17:38:30 or look at DDMS Aug 13 17:38:50 system 1636 1507 265232 58820 ffffffff afd0b80c S system_server Aug 13 17:39:43 ok err wtf Aug 13 17:39:48 thats my phone not the avd Aug 13 17:39:55 oh, whew.. Aug 13 17:39:55 oot 31376 1 828 388 c0137d58 afd0b954 S /data/data/com.googlecode.android.wifi.tether/bin/dnsmasq Aug 13 17:40:05 that last paste isa clue to that fact Aug 13 17:40:23 let me unplug phone and repeat adb command Aug 13 17:40:50 no device found. yet the avd is running Aug 13 17:40:52 *($^&#$(&!@ Aug 13 17:41:01 give up. Aug 13 17:41:09 :> Aug 13 17:41:14 (don't give up) Aug 13 17:41:23 closed avd, launching again with phone notplugged in Aug 13 17:42:26 ok. so the trafficstats are only on my phone and logcat is sucking logs from my phone when i am debugging within an avd. thats dumb Aug 13 17:42:37 where do you keep your Eclipse workspace when working with an Android app under source control? Aug 13 17:43:03 i dont use eclipse Aug 13 17:43:14 in your workspace jcromartie Aug 13 17:43:20 mark4: logcat doesn't actually suck the logs up; it doesn't clear them unless you use -c as an arg Aug 13 17:43:26 i also highly recommend nobody else does too Aug 13 17:43:51 isn't Eclipse basically the official toolchain for Android? Aug 13 17:44:03 lov it was reading the spam from my phone as i debugged in an avd. the avd shoul have had exclusive logging abilities Aug 13 17:44:16 jcromartie: er no Aug 13 17:44:18 just because i have a phone plugged in as i debug in an avd doesnt mean i want phone logs as i debug Aug 13 17:44:30 I mean aside from the SDKs Aug 13 17:44:48 the ADT is the only thing Google provides beyond the SDK Aug 13 17:45:00 jcromartie, no the PROBLEM is that 99% of all tutorials assume your dumb enough t ouse eclipse. but even google is now recognizing InteliJ Idea Aug 13 17:45:32 lol "dumb enough to use eclipse" Aug 13 17:45:39 come on Aug 13 17:45:40 jcromartie, get intellij idea. stop having to fight IDE's and use one that was p[roduced by a company that knows their ass from a hole in the groun Aug 13 17:45:43 mark4: use the -e flag with adb Aug 13 17:45:49 eclipse is horrendously BAD Aug 13 17:45:56 if there's multiple devices, you have to disambiguate Aug 13 17:46:01 lov -e selects device? Aug 13 17:46:07 it selects the emulator Aug 13 17:46:09 aha -e selects emulator Aug 13 17:46:11 -d is device, -e is emulator Aug 13 17:46:11 right Aug 13 17:46:16 the assumption is that you'll have an emu and a device Aug 13 17:46:20 took me a second or two to figure that part out Aug 13 17:46:27 you can use -s to give the actual serial if you have multiple devices/emus Aug 13 17:47:10 any angdroid audio guru? I need to know how to play background mp3s and mix with sound effects wavs for my game. I'm not sure which to use for what: SoundPool, MediaPlayer, AudioTrack, and others Aug 13 17:47:27 OpenSL Aug 13 17:48:09 alright I'll stick with IDEA for now… I just figured there'd be less friction with Eclipse… however my experience with Eclipse has not been pleasant Aug 13 17:48:17 IDEA wasn't exactly easy to get going either but… yeah Aug 13 17:48:18 its much easier to find out this information for iphone, i am developping for both iphone and android, and all the android specific features lag months behind Aug 13 17:48:19 Eclipse is a mess Aug 13 17:49:05 I mean I'm an Emacs fan and Eclipse seems baroque Aug 13 17:49:17 maybe just a function of android supporting so many diff hardware types, but i think another aspect is iphone has a lot better documentation Aug 13 17:50:44 i guess iphone is more mature by a few years, which is huge given the relative lifespans Aug 13 17:50:49 google's documentation is AWESOME, if you know 100% of every piece of google documentation inside out\ Aug 13 17:50:49 far_: eh. Aug 13 17:50:56 otherwise its pretty much next to useless Aug 13 17:51:03 far_: You'll want different items for different audio types Aug 13 17:51:18 far_: SoundPool for audio you'll play frequently (e.g. lazer.ogg ) Aug 13 17:51:27 MediaPlayer for regular audio content Aug 13 17:51:30 SoundPool for samples? Aug 13 17:51:36 like background mp3s? Aug 13 17:51:38 thanks lov Aug 13 17:51:44 your background music should be played via MediaPlayer likely Aug 13 17:52:10 you PROBABLY don't need to use AudioTrack unless you're doing your own decoding/encoding or something Aug 13 17:53:19 SoundPool has pretty good documentation of what it's for and how it's used, I'd recommend taking a look ( http://developer.android.com/reference/android/media/SoundPool.html ) Aug 13 17:53:33 Documentation wise, Android has gotten MUCH, MUCH better than it used to be. Aug 13 17:54:07 I think the documentation for how to use the various APIs is good, but not for WHICH api to use Aug 13 17:54:22 Apple will make specific recommendations like, "For background musics in games XXX" Aug 13 17:55:09 * SpeedEvil imagines all apple games shipping with70s porn music. Aug 13 17:55:50 ha Aug 13 17:55:58 Yeah, the documentation still has a ways to go Aug 13 17:57:34 far_: you'll want to glance at http://developer.android.com/guide/topics/media/mediaplayer.html if you haven't yet Aug 13 17:57:37 it may or may not be useful Aug 13 17:59:08 thanks lov, im gonna give the MediaPlayer and SoundPool combo a shot Aug 13 18:02:04 i saw some articles of a gamedev complaining about random latency with soundpool so they were switching to audiotrack or opensl, but im choosing to believe this wont affect me Aug 13 18:02:29 Yeah, if you've got the chops and the need, it might make sense to just use openSL for you. Aug 13 18:04:22 far_ do you know how to put a LinearLayout inside a HorizontalScrollView and still be able to focus on buttons inside the LinearLayout? when i click on the Buttons, it doesnt get focus Aug 13 18:04:56 i tried putting a HorizontalScrollView inside LinearLayout but it doesnt show up Aug 13 18:04:59 Niyakun: try stackoverflow if no one seems to be answering Aug 13 18:05:04 WorkBoot: If I say have a global variable 'count' and increment it in root() is that safe? Aug 13 18:05:51 um Aug 13 18:08:24 saecula wat Aug 13 18:10:09 canadiancow, what? not at work? Aug 13 18:11:15 nah i ditched that nick Aug 13 18:11:17 i'm just canadiancow now Aug 13 18:11:32 the real canadiancow, the original, the bovine Aug 13 18:11:36 i sitll havent figured out how to do an effective nickname transitiion Aug 13 18:11:49 maybe just change my nick and setup a script so if you say "canadiancow" it responds Aug 13 18:11:54 or stick a bot in here or something Aug 13 18:12:03 Change one letter a day Aug 13 18:12:03 just alert to the old nick Aug 13 18:12:17 and when someone alerts you you can be all indignent like, "excuse me? i think you mean me" Aug 13 18:13:02 I can just call you "canadahole" if that helps. Aug 13 18:13:06 SimonVT: wondering if it is possible to put a HorizontalScrollView inside a LinearLayout? Aug 13 18:13:09 then you can set up an alert with irssi Aug 13 18:13:16 one letter a day could work Aug 13 18:13:21 Niyakun: Don't just start randomly asking people your question if no one response. Aug 13 18:13:21 It probably is Aug 13 18:13:24 skennedycow Aug 13 18:13:34 canadianelk Aug 13 18:13:45 canadianmoose makes more sense ofc Aug 13 18:13:48 canadianow Aug 13 18:13:58 canadianWOW Aug 13 18:14:11 lol Aug 13 18:14:16 lov: he helped me before Aug 13 18:14:23 so im trying to transition from canadiancow -> skennedy Aug 13 18:14:24 i think Aug 13 18:14:28 although im not even set on that yet Aug 13 18:14:29 Niyakun: nevermind Aug 13 18:14:34 cownnedy Aug 13 18:14:50 canadianbeef Aug 13 18:16:10 canadianhow Aug 13 18:16:15 canadianchow Aug 13 18:16:25 canuckistanicamel Aug 13 18:16:51 skennedy Aug 13 18:16:52 americancow? Aug 13 18:16:54 lol @ canukistan Aug 13 18:16:55 See, smooth transition Aug 13 18:17:03 canadiancow, americanbovine Aug 13 18:32:21 hey gang. I haven't been able to figure out how to pass extra data into an intent that is linked with a status notification. I.e., you tap the notification, and it fires off the intent, and the intent has some extra data in it; but when it gets back to my app, intent.getExtras() is always null. For those curious, here's my current approach. I've tried suggestions from a dozen threads about this and yet getExtras() is still always null: Aug 13 18:32:22 http://pastebin.com/3vyqpR8R Aug 13 18:33:38 put this line after all your notificationIntent.whatever() calls: PendingIntent pendingIntent = PendingIntent.getActivity(Application.mainActivity, thisNotificationID, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT); Aug 13 18:34:47 canadiancow: yup, I believe that's in there already Aug 13 18:34:56 no i mean Aug 13 18:34:57 put it AFTER Aug 13 18:35:26 oh crap, yeah, I see your point Aug 13 18:35:27 thanks! Aug 13 18:42:06 How can I call a method like refresh() in a tabhost tab's activity, after it has already been created? Aug 13 18:43:14 I can't seem to get this Fragment to use it's onActivityResult() .. instead, the parent FragmentActivity's keeps getting used...any way around this? Aug 13 18:43:43 tnzr verify you're calling the right methods Aug 13 18:44:01 canadiancow: you mean the startActivityForResult() ? Aug 13 18:44:15 oh wait uh Aug 13 18:44:22 the parent Acvtivity's method IS CALLED Aug 13 18:44:34 and if it does NOT handle it, the super.onActivityResult() method calls through to the fragments Aug 13 18:45:03 tnzr its a pain. Keep in mind that if you're trying to use a dialogFragment or something, that frag gets killed and wont get the callback Aug 13 18:45:06 so basically your activity needs if (requestCode == 1) { do something } else if (requestCode == 2) { do something } else { super.onActivityResult(requestCode, resultCode, data); } Aug 13 18:45:22 hmm ok so I should have a call to super.onActivityResult() at the bottom of the parent FragmentActivity's onActivityResult()? Aug 13 18:45:28 ok thanks Aug 13 18:45:36 that's the one thing I hadn't tried :) Aug 13 18:46:10 jayd16: thanks for the heads up Aug 13 18:46:23 I lost several hours to that realization Aug 13 18:46:36 it should get the callback? Aug 13 18:46:49 unless you kill it yourself Aug 13 18:47:06 dialog fragment kills itself when the dialog closes Aug 13 18:47:58 it seems like "oh I'll pop this dialog and do stuff with an activity. It'll be great!" but you never get the callback because it already closed itself Aug 13 18:48:19 so dont close it if you still need it Aug 13 18:48:40 well its more like make sure you dont use dialog activity Aug 13 18:48:45 er Aug 13 18:48:48 dialogFragment* Aug 13 18:49:59 Why should they stick around, there's no need for them once the dialog is dismissed Aug 13 18:50:35 sure, thats the idea BUT it means you can't get an onactivityresult() callback Aug 13 18:50:51 has anyone seen this on 2.2 and know of a fix? http://community.developer.motorola.com/t5/MOTODEV-Blog/Why-Does-My-ListView-Look-Different/ba-p/17462 Aug 13 18:51:08 You probably can if you don't dismiss the dialog until you get the callback Aug 13 18:51:58 anyone aware of something like a zoomable grid view ? Aug 13 18:52:09 i'd like to have pinch to zoom Aug 13 18:54:32 SimonVT, that might be true. Aug 13 18:55:16 So, unrelated discussion. I'm going over the process lifecycle. Everything after onPause is killable but how often are they actually killed? Can I safely assume onStop gets called 90+% of the time? Aug 13 18:55:59 hey guys, I am a complete newbie to java and android development. I need to display an image from an url and it seems like I can't simply do this by .setImageURI since that only works locally Aug 13 18:56:29 jayd16: you can safely assume it gets called about 99.9% of the time probably Aug 13 18:56:48 lov, awesome, thanks Aug 13 18:57:41 Nibble. Look at httpurlconnection and bitmapfactory.decodestream Aug 13 18:59:05 jayd16, thank you m8 Aug 13 19:08:34 jayd16, this may be a dumb question, but the url, can it contain ?user=DickPuncher Aug 13 19:08:53 lulz Aug 13 19:08:55 I think so Aug 13 19:09:26 thats just a query parameter and the as long as the server returns an image file you should be ok Aug 13 19:09:40 so here's a dilemma Aug 13 19:09:48 uh Aug 13 19:09:57 a client does not want the app icon as the "up" navigation icon in the action bar when you're viewing some content Aug 13 19:10:07 jayd16, it seems to be sending exceptions Aug 13 19:10:42 I'm at a loss Aug 13 19:11:20 jcromartie, is this in the same activity or different activities have and dont have the up arrow? Aug 13 19:11:38 jcromartie: why nto? Aug 13 19:11:39 viewing the details of an item in a list Aug 13 19:11:59 jcromartie: tell him that it will frustrate people and make them hate the app Aug 13 19:12:03 I tried Aug 13 19:12:16 said there's really no reason to change it Aug 13 19:12:23 totally standard and consistent Aug 13 19:12:39 clients don't care about "standard" and "consistent" Aug 13 19:12:45 but it's like, what else do you do? I'm not used to thinking in the "how do I make this worse" direction Aug 13 19:12:47 they care about customers hating the shit out of the app Aug 13 19:13:36 so crazy requirements asside, whats the question? Aug 13 19:14:24 or just ranting? I'm perfectly fine with just ranting =p Aug 13 19:14:41 it needs to pop out more jcazevedo Aug 13 19:14:44 jcromartie, * Aug 13 19:14:57 Nibble: indeed, more pop Aug 13 19:15:15 tell the client if they want a baby deer executed then they can find someone else to do it Aug 13 19:15:18 can we make the actionbar blink? Aug 13 19:15:30 hahahah Aug 13 19:15:41 what's inside the mind of clients Aug 13 19:15:54 they aren't users Aug 13 19:15:54 as a dev shop we practice moral and social consciousness Aug 13 19:15:58 and they aren't devs Aug 13 19:16:01 so what is their role Aug 13 19:16:12 hi guys. i've searched the whole web during the last few hours and since nobody on stackoverflow does seem to have a quick solution to my problem, maybe one of you guys can help me. Aug 13 19:16:22 mrmaffen, go ahead Aug 13 19:16:23 my problem is related to android and more specific actionbarsherlock and customviews within an actionbar: http://stackoverflow.com/questions/11937856/android-actionbarsherlock-how-to-display-my-customview-in-the-bottom-bar Aug 13 19:16:47 i've already explained my problem as good as i could on stackoverflow Aug 13 19:17:27 jayd16, would it be okay if I pastebin'd my code and PMd it to you? it has some sensitive bits like urls and shit that I don't want in logs Aug 13 19:17:38 feel free to say no if you don't want/cant Aug 13 19:18:08 Nibble: sorry I'm about to step out Aug 13 19:18:19 jayd16, thanks for the help you have given me anyways :) Aug 13 19:18:29 this guy has the exact same problem i have: http://stackoverflow.com/questions/11816041/android-actionbar-push-custom-view-to-bottom-of-screen Aug 13 19:18:29 but unfortunately his question didn't get answered either Aug 13 19:19:47 mrmaffen: Pretty sure you can't put a custom view in the split actionbar Aug 13 19:20:02 hmmm maybe its an ABS bug? I've never tried to have a custom view in the split bar. Aug 13 19:20:21 http://pastebin.com/JU4Fitwp so here's my code, it doesn't show the image but shows the user friendly text about the exception thrown Aug 13 19:20:24 I am at a loss Aug 13 19:20:46 (also, not all of the code is my own ... basically none is. it's from 10+ googles and the tutorial. Aug 13 19:20:46 SimonVT: that sounds like bad news :S Aug 13 19:21:05 OK so now it will be an RSS icon instead of the app icon in the action bar Aug 13 19:21:08 seriously Aug 13 19:21:11 You do know you could just put a view at the bottom of your layout, instead of using the splitactionbar Aug 13 19:21:12 jayd16: didnt try it with the standard android actionbar yet, so i can't say if it's a abs bug Aug 13 19:21:39 mrmaffen, you should give it a try just to be sure Aug 13 19:21:44 And your custom view being below the actionbar tabs in the first picture is a framework bug Aug 13 19:21:48 SimonVT: yeah i do know that ^^. but i want the customview to merge into the actionbar when switching to landscape mode Aug 13 19:22:13 So provide different layouts for port and land Aug 13 19:22:17 And handle it accordingly Aug 13 19:23:36 that would mean a lot of work ... i would have to make my own actionbar Aug 13 19:24:06 Why would you have to do that Aug 13 19:26:14 because i'm not able to integrate my customview into the bottom actionbar with the current implementation (i'm talking about portrait mode now) Aug 13 19:26:33 So don't use the bottom actionbar Aug 13 19:26:45 and i want other actionbar actions to the right of my customview Aug 13 19:27:14 portrat has a fake split bar, landscape uses the customview…done and done Aug 13 19:27:40 You just have to make your own layout for the bottom bit Aug 13 19:27:57 Seems simple enough Aug 13 19:28:07 but how can i handle the overflow of actions in the bottom bit ? Aug 13 19:28:40 Are global variables in RenderScript atomic? Aug 13 19:28:42 Put a button, click it, display a popup Aug 13 19:29:13 yeah that's what i meant with "make my own actionbar" Aug 13 19:29:40 but if customviews can't be shown in the bottom bar, that's the only way there is Aug 13 19:29:51 thanks for your help guys :) i'll get to work on that now Aug 13 19:30:36 hmm, so i have two images side-by-side, if i use multitouch i can literally fire their on click methods at the same time Aug 13 19:30:41 how can i stop this from occurring? Aug 13 19:30:50 can i disable multitouch on certain screens? or is there some other way? Aug 13 19:31:51 i already tried making a mutex lock Aug 13 19:32:00 but the events actually fire so close to simultaneously that the lock fails Aug 13 19:32:07 is the return value in onRetainCustomNonConfigurationInstance not activity-specific? Aug 13 19:33:36 http://stackoverflow.com/questions/8570982/disable-or-prevent-multitouch-in-activity <-- this seems far from satisfactory Aug 13 19:35:19 i dont really want to disable multitouch so much as ensure that only one item is clicked Aug 13 19:35:40 kaneda^: have all your views share a common state variable Aug 13 19:35:43 :P Aug 13 19:35:46 Napalm, tried that Aug 13 19:35:47 or click listeners Aug 13 19:35:49 or whatever Aug 13 19:36:01 you need to add a time offset Aug 13 19:36:04 Napalm, if you click on them simultaneously then the state variable is fliped in BOTH cases Aug 13 19:36:11 yes Aug 13 19:36:11 Napalm, ugh, that's exactly what i DONT want to do Aug 13 19:36:15 otherwise it SEEMS laggy Aug 13 19:36:20 no Aug 13 19:36:22 you miss my point Aug 13 19:36:43 Napalm, you mean ilke, disable all clicking on those views for X seconds? Aug 13 19:36:47 np Aug 13 19:36:49 no Aug 13 19:36:56 that would work though... Aug 13 19:37:13 if !clickLocked && timePassage > 1 or something Aug 13 19:37:17 all the views that you want to not to be clickable at the same time Aug 13 19:37:20 have a static variable with a simple wall time Aug 13 19:37:28 on performClick() Aug 13 19:38:04 if(System.getCurrentTime() > wallTime){ super.onPerformClick(); wallTime = System.getCurrentTime(); } Aug 13 19:38:12 kaneda^: with me? Aug 13 19:38:20 Napalm, forget that, i'll just write a synchronized setter,t hat wil force serialization of the clicks Aug 13 19:38:36 that last assignment would be wallTime = system + amount_ms; Aug 13 19:38:49 kaneda^: but you have that at the moment Aug 13 19:38:49 Napalm, again, doesnt matter if you ignore time passage and instead make it synchronized static Aug 13 19:38:56 Napalm, nah, it was just static, not synchronized Aug 13 19:38:57 they dont actually come in at the same time Aug 13 19:39:07 Napalm, but close enough that the var isn't set Aug 13 19:39:13 all clicks are done on the UI thread Aug 13 19:39:21 Napalm, oooh ofc, synchronizing won't help me :/ Aug 13 19:39:36 i guess i will implement a time wait Aug 13 19:41:49 java date's getTime is in seconds right? Aug 13 19:41:54 like, from the last epoch? Aug 13 19:41:57 no Aug 13 19:41:58 millis Aug 13 19:42:09 noooo Aug 13 19:42:10 lol Aug 13 19:42:15 hey cow Aug 13 19:42:17 hows it going? Aug 13 19:42:20 canadiancow, damnit Aug 13 19:42:30 just divide by thousand Aug 13 19:42:35 JakeWharton: why is my Action Bar blank in my SherlockPreferenceActivity? Aug 13 19:42:36 hi Aug 13 19:42:36 good luck have fun with java dates Aug 13 19:42:36 going good Aug 13 19:43:00 canadiancow, so, if currentTime - lastTime > 1000 means if more than 1 second has past Aug 13 19:43:12 yes Aug 13 19:43:17 but there are helper methods to do that shit for you :P Aug 13 19:43:27 why would i need help with that? Aug 13 19:43:37 not exactly rocket science... Aug 13 19:43:54 why would an action bar be blank in my activity? Aug 13 19:43:54 so why u asking? :> Aug 13 19:44:01 it's not blank in other activities, just this new one Aug 13 19:44:58 have you handed over the right menu xml? Aug 13 19:45:07 jcromartie: oh hai Aug 13 19:45:13 lol Aug 13 19:45:33 called getSupportActionbar() insted of getActionbar ? etc. Aug 13 19:45:43 pretty hard to say w/o code Aug 13 19:45:49 see my question Aeefire Aug 13 19:46:07 Using SherlockPreferenceActivity, Action Bar shows but is completely blank Aug 13 19:46:23 EddieRingle see my question. Aug 13 19:46:25 nothing's changed in how we access it from other activities Aug 13 19:47:34 lol if you don't want help... that won't help me much at helping you ;) Aug 13 19:47:48 Aeefire: that's why I was pinging JakeWharton Aug 13 19:47:55 lol Aug 13 19:47:59 kk... Aug 13 19:48:11 i just think he gets pinged 128037123 times a day and won't react that much lol Aug 13 19:48:32 He loves me though Aug 13 19:48:39 We're bestest friends Aug 13 19:48:47 haha nice. you donated much? :P Aug 13 19:49:06 EddieRingle he loves me more! Aug 13 19:49:10 canadiancow: lies! Aug 13 19:49:36 nevermind, he wins Aug 13 19:49:40 :) Aug 13 19:50:08 Maybe you messed up your theme or something Aug 13 19:50:09 my eye has been twitching all day Aug 13 19:50:22 canadioncow : cut it out! Aug 13 19:50:33 SimonVT: dunno what's causing it, can't see any differences Aug 13 19:50:53 * Aeefire sits the half day in front of his eclipse IDE doing nothing but waiting for his xbian download to finish *yawn* Aug 13 19:51:06 my only hope was that JakeWharton was doing some weird voodoo with the preference activities Aug 13 19:51:15 and that I could just blame him Aug 13 19:51:21 whoodoo Aug 13 19:51:21 :D Aug 13 19:52:43 I inflate a menu in onCreateOptionsMenu and the actions appear in the bar Aug 13 19:52:57 but I still can't set a title or get the icon to show or anything :| Aug 13 19:54:57 holy fuck Aug 13 19:55:02 I just discovered what I have been doing wrong Aug 13 19:55:08 great nipple! Aug 13 19:55:12 i mean.. nibble Aug 13 19:55:13 CREATE A NEW GODDAMN THREAD Aug 13 19:55:19 -__________________________________- Aug 13 19:55:24 WHALEFACE Aug 13 19:55:56 ( . ) ( . ) Aug 13 19:56:06 u now what a nibble is right? Aug 13 19:56:22 Aug 13 19:56:38 this 4 bit thingy? Aug 13 19:56:40 now how do I use threads Aug 13 19:57:13 There's no difference in how the ActionBar is handled in SherlockPreferenceACtivity compared to the other Sherlock*Activity Aug 13 19:57:21 Thread t = new Thread ( new Runnable{}); ? Aug 13 19:57:52 Nibble or asynctask? Aug 13 19:58:04 I was thinking about asynctasc Aug 13 19:58:16 there seems to be some rules regarding updating ui Aug 13 19:58:18 in android Aug 13 19:58:20 idk more than that Aug 13 19:58:22 ya Aug 13 19:58:22 SimonVT: slowly figuring it out Aug 13 19:58:31 there are about a million tutorials out there concerning asynctask Aug 13 19:58:36 yeah imma google Aug 13 19:58:37 SimonVT: somehow I've gotten a title and up icon to show but still no icon Aug 13 19:58:57 and telling which methods access UI and which do not. :) however, don't compute too much in the ui thread Aug 13 20:01:57 EddieRingle: I can tell you that both up icon, icon and title shows just fine in my sherlockpreferenceactivities :p Aug 13 20:02:11 SimonVT: yeah, it's starting to work now Aug 13 20:02:23 there's something about the order in which I set it up that affects it Aug 13 20:03:08 Aeefire, that was simple! Aug 13 20:03:17 ya lol Aug 13 20:04:49 i am so much lacking motivaation Aug 13 20:04:56 EddieRingle: Try doing stuff with the actionbar at the very top of your oncreate.. Just to make sure it's attached before you start adding preferences etc Aug 13 20:04:59 someone has a can full of motivation? :P Aug 13 20:05:01 No idea if that could influence it Aug 13 20:05:20 SimonVT: yeah, that's where I'm working with it Aug 13 20:05:22 got it working now Aug 13 20:06:10 EddieRingle and how? Aug 13 20:06:32 Aeefire: pasted my exact setup code from the rest of the app over Aug 13 20:06:52 so some typo issue ? :P hehe Aug 13 20:07:42 no Aug 13 20:08:37 ab.setDisplayShowHomeEnabled(true); Aug 13 20:08:51 apparently it doesn't show the home icon by default Aug 13 20:08:57 what a silly paradigm Aug 13 20:09:50 setDisplayHomeAsUpEnabled() ?? Aug 13 20:10:01 mhm whatever... /flashing xbian to my rpi Aug 13 20:10:05 that should Aug 13 20:11:23 doogan: was doing that too, both times Aug 13 20:11:23 I'm still blaming JakeWharton Aug 13 20:11:32 damn Aug 13 20:11:39 6 mentions Aug 13 20:11:43 STFU EDDIE RINGLE Aug 13 20:11:46 JakeWharton: <3 Aug 13 20:11:54 If you find any differences in behavior from ABS to the latest framework release, file a bug report :p Aug 13 20:11:57 Napalm, mmm, a 250ms delay is hardly noticeable and it works perfectly Aug 13 20:12:12 3 lines of code if you put the if statement on one line Aug 13 20:12:20 :P Aug 13 20:12:34 SimonVT: I never use the framework's implementation Aug 13 20:13:26 Aeefire, this may be a stupid question but, how am I going to access my ImageView frin the AsyncTask extendant(thats a word right?) Aug 13 20:13:40 Do you mean subclass? Aug 13 20:13:48 frin is not a word :P Aug 13 20:13:58 yeah Aug 13 20:14:07 deadmund, stfu Aug 13 20:14:09 xD Aug 13 20:14:38 Nibble, you do work on the UI thread in onPostExecute() Aug 13 20:14:40 either you have a subclass and make the variable global or hand it over in the constructor or to the .execute(param) method Aug 13 20:14:55 oh, yeah Aug 13 20:15:16 class A extends B {}; class B extends C {}; class C extends A {}; Aug 13 20:15:34 that's circular man Aug 13 20:15:51 nonsense, looks perfectly fine Aug 13 20:15:55 extenze Aug 13 20:15:57 yup is fine Aug 13 20:16:16 how Aug 13 20:16:18 i design all my classes that way Aug 13 20:16:28 didn't you burn people for this in the 1600's? Aug 13 20:16:44 javasorcery? Aug 13 20:17:03 narf Aug 13 20:17:03 lol Aug 13 20:17:08 just dropped my laptop Aug 13 20:17:10 well of course you'll want to have an AbstractABCFactory Aug 13 20:17:21 i dropped my n7 and the back popped off Aug 13 20:17:23 i was so scared Aug 13 20:17:26 but it just popped back on Aug 13 20:17:28 and all is good :) Aug 13 20:17:38 at least the screen didn't pop off Aug 13 20:17:46 my s2 hit the rocks face down Aug 13 20:17:55 then again the next day Aug 13 20:18:12 apparently you should take better care of your tech :P Aug 13 20:18:16 my hox has a huge scratch :( dropped it while bycicling Aug 13 20:18:21 i dooooo Aug 13 20:18:23 like 2 weeks after i bought it Aug 13 20:18:28 twas like a freak accident Aug 13 20:18:46 is there any policy on user-initiated proof of concept apps? Aug 13 20:19:24 oh you can declare classes inside other classes right Aug 13 20:19:49 say, for example, demonstrating an app has continued to leak user credentials despite being informed of this flaw months ago, and the app having been updated multiple times since? Aug 13 20:20:19 robb_www: you'll want to do your due diligence of course Aug 13 20:20:30 robb_www: contact security@, ask if they're going to update the app, etc Aug 13 20:20:53 as a last resort, tell them that you're exposing the security flaw in 1 month with a PoC app and to get ready Aug 13 20:20:54 hm, sensible to at least ask for a timeline Aug 13 20:21:07 If you're concerned about legal repercussions, you MAY want to contact the EFF. Aug 13 20:21:23 I strongly doubt that would happen, its a freeware file manager Aug 13 20:21:27 wish me luck Aug 13 20:21:29 trying to boot my rpi Aug 13 20:21:30 >.< Aug 13 20:21:31 send it to android police or something Aug 13 20:21:33 .... oh. Aug 13 20:21:43 Is the app made by a large company, or some random dude? Aug 13 20:21:52 if it's made by some random dude, just let the blags know about it Aug 13 20:22:04 odds are the guy either doesn't really know or doesn't really care Aug 13 20:22:09 ESFileExplorer Aug 13 20:22:19 it's possible that there's not much you'll be able to do in the end except to not use the app Aug 13 20:22:43 I left a comment and emailed them, + had a reply to that email Aug 13 20:22:54 * lov shrugs Aug 13 20:23:38 ill send them another email, otherwise androidpolice sounds like a good call Aug 13 20:23:38 odds are that the guy is crying all the way to the bank with his ad money Aug 13 20:23:48 10M to 50M installs Aug 13 20:23:49 yeah Aug 13 20:23:55 dude is pretty clearly doing JUST FINE. Aug 13 20:24:15 yep Aug 13 20:24:24 rpi succesfully booted Aug 13 20:24:24 yay Aug 13 20:26:00 Hi, is it possible to trigger custom animations on individual Views when transitioning to a new Activity? Aug 13 20:26:55 nbadal look at .overridePendingTransition Aug 13 20:28:23 doesn't that just specify an animation for the activity as a whole? i.e. the whole screen would animate Aug 13 20:28:33 ups Aug 13 20:28:39 i overread "view" Aug 13 20:28:39 * g00s wonder what cool new things can be done on mobile browsers with this http://venturebeat.com/2012/08/13/webrtc-is-almost-here-and-it-will-change-the-web/ Aug 13 20:28:42 don't know about that. sry Aug 13 20:29:50 my only idea would be to intercept the transition's trigger, and animate before finishing, or firing the new intent Aug 13 20:30:24 g00s that sounds pretty nice Aug 13 20:31:00 g00s how does that even work Aug 13 20:31:13 Aeefire, do I have to use onProgressUpdate and publishProgress? Aug 13 20:31:21 my firewall blocks incoming connections! Aug 13 20:31:22 hahaha Aug 13 20:31:25 no you don't have to Aug 13 20:31:28 thank god Aug 13 20:31:29 canadiancow: not sure, kinda reminds me of a feature Oprah does/did have Aug 13 20:31:30 but it's pretty handsome sometimes Aug 13 20:31:47 and in onProgressUpdate you can access the UI Aug 13 20:31:53 which is pretty neat too Aug 13 20:32:03 Aeefire, this may be stupid again, but how the fuck should I declare my subclass? AsyncTask if it isn't clear, i'm not a web developer ;) Aug 13 20:32:21 extends BlarfActivity Aug 13 20:32:43 now you gotta be trolling me man Aug 13 20:32:54 Nibble => i suggest you some java basic book :) Aug 13 20:33:03 nah man that's booring ass fuck Aug 13 20:33:10 LOL Aug 13 20:33:14 id rather just google it Aug 13 20:33:16 but... actually, it's pretty elementary Aug 13 20:33:26 probably, never done java Aug 13 20:34:00 i always thought i could get along with googling.. but books (hopefully) tell you the background, which is a must in some cases to fully understand what you are doing.. for details you can google anyways ;) Aug 13 20:34:13 actually, with android you are doing java Aug 13 20:34:14 :d Aug 13 20:35:01 Nibble: You should learn java before you do Android development Aug 13 20:35:18 I don't even own an android device man Aug 13 20:35:22 so? Aug 13 20:35:26 Use the emulator. Aug 13 20:35:29 I do Aug 13 20:35:32 ok Aug 13 20:35:38 learn both at the same time Aug 13 20:35:40 but I don't really plan on doing anything after this Aug 13 20:35:45 and this has to be done soon Aug 13 20:35:58 OK, best of look. Aug 13 20:36:05 I look forward to your 3AM emergency plea Aug 13 20:36:14 nah I have a few days Aug 13 20:36:25 if it works out and people use it Ill perhaps keep developing it Aug 13 20:36:29 until then? fk java Aug 13 20:36:53 Hey guys, I am desperate. Anyone get NDK development working in either eclipse or MOTODEV Studio? I need help Aug 13 20:38:06 ahh generics Aug 13 20:38:08 now I see Aug 13 20:39:19 I f i use CDT 8.1.0 it cannot find jni.h and breaks the java side of the build. If i use cdt 8.0.2 it has completely random and useless c++ erros by the bucket full and also...breaks the java side of the build. I conot find out how to install NDK in MOTODEV Studio Aug 13 20:39:31 I've got an NDK game app, where if resources are read from an OBB/SDCard location then it works fine. But if it uses the APK then it crashes at random points. This is only on releasing, not debugging. Could one of the release modifiers on the build process be a cause? Aug 13 20:40:45 when are OEMs going to stop advertising smartphones as if they were 20 year old dumbphones Aug 13 20:40:52 Camera - FOCUS - Automatic Aug 13 20:40:53 REALLY? Aug 13 20:40:55 AUTOFOCUS? Aug 13 20:41:06 why would a layout lose it's background color? Aug 13 20:41:13 its* Aug 13 20:42:30 are you referring to when scrolling a ListView ? Aug 13 20:43:11 no Aug 13 20:43:36 sometimes the background color applies, sometimes it does not Aug 13 20:44:09 hi everyone...anyone have an idea about making google play purchases inside an app without losing the EGL context? Maybe have the purchase UI work through a dialog instead of a brand new activity Aug 13 20:45:44 irwinb: you can't really do that, by design. Aug 13 20:46:45 aww..thanks Aug 13 20:51:04 hi Aug 13 20:51:21 is nexus 7 good for development nowadays? Aug 13 20:51:46 always and forever Aug 13 20:51:56 get a nexus 8 Aug 13 20:52:16 I need a tablet on which developement and debugging is available out of the box Aug 13 20:52:23 define 'tablet' Aug 13 20:52:48 my current tablet has no debugging option (at least with bundled rom) Aug 13 20:52:53 tempted to get a cheap chinese android tablet, but the prospects for software updates arent great Aug 13 20:53:16 i've hot chinese one and it's shit Aug 13 20:53:30 :( how much was it? Aug 13 20:53:48 and now my client is willing to pay the price for newer and faster chinese tablet, however he could get nexus 7 for the price Aug 13 20:54:01 robb_www: dunno, about $130 ;) Aug 13 20:54:04 Go get a galaxy tab or a xoom or something Aug 13 20:54:16 All tablets which have google play allow debugging/development out of the box Aug 13 20:54:50 I was able to install my own application via microSD card Aug 13 20:54:55 will it be still possible? Aug 13 20:55:13 (any more convinient way is welcome Aug 13 20:55:14 ) Aug 13 20:55:33 anything more than £75 is too much for me, can barely justify it for personal dev projects let alone anything else Aug 13 20:55:56 well i'm not paying for this Aug 13 20:56:11 I should get a tablet myself but I have absolutely no use for one except for development Aug 13 20:56:25 I think they're useless in general and can't understand why people want to use them Aug 13 20:56:32 but I need to develop for them :E Aug 13 20:56:46 Zharf: yup Aug 13 20:56:53 id probably use it for web browsing / reading emails / netflix in bed, thats about all Aug 13 20:57:24 klaudeclaw: adb install app.apk Aug 13 20:57:28 I've got this chinese one and it is not very comfortable to browse web with it Aug 13 20:57:31 klaudeclaw: alternately, click the little "run" button in eclipse. Aug 13 20:57:45 You get exactly what you pay for when you buy a shitty chinese tablet Aug 13 20:57:55 Hello. I want to slide %80 a new activity over my home activity. how can i achieve that activity slide ? (not a complete slide, lets say new activity will be cover %80 of the screen and on the remaining %20 part i should see home activity) ? Aug 13 20:58:05 maybe I should try the transformer Aug 13 20:58:18 lov: ok, I need an opportunity to test it on real device and finally install it with a nice icon on the "desktop" Aug 13 20:58:46 lov, unfortunately thats what i expected to hear Aug 13 20:59:03 lov: I don't remember how I've tested it exactly, my eclipse wasn't always working as expected Aug 13 20:59:45 http://old.goclever.com/en/tablet/356-TAB-I101-.html Aug 13 21:00:08 web browsing with opera mobile is awful Aug 13 21:00:13 Hello Aug 13 21:00:16 Hello. I want to slide %80 a new activity over my home activity. how can i achieve that activity slide ? (not a complete slide, lets say new activity will be cover %80 of the screen and on the remaining %20 part i should see home activity) ? Aug 13 21:00:27 images are loading forever etc Aug 13 21:06:18 BBC Click have an episode on learning a programming language in 1 day, it upsets me Aug 13 21:09:35 doesn't seem like there is a tablet I would want to pay for... transformer's still too expensive and the rest available around here are just crap Aug 13 21:11:02 just wondering if anyone has read any good books on ID/UX specifically for mobile. Just getting done reading The Mobile Frontier (Hinma) and it was pretty good but more theoretical than the avg book. one argument she puts forth is that traditional tools for HCI like personas / scenarios don't work well, and instead suggests using Lucy Suchman's situated action model. Aug 13 21:11:12 *Hinman Aug 13 21:11:44 anyhow, pretty cool stuff. lots of UX material on web sites, less for mobile Aug 13 21:24:34 nullpointers, nullpointers everywhere Aug 13 21:26:00 and all the board did shrink; nullpointers, nullpointers everywhere, not a reference to link Aug 13 21:26:10 * g00s is headbanging Aug 13 21:28:20 g00s, do you know masterchef? Aug 13 21:28:57 robb_www: no :) i way playing with Coleridge, but thinking of the Rhyme of the Ancient Mariner Aug 13 21:36:56 http://www.youtube.com/watch?v=WfNAiPpApx4 :) Aug 13 21:37:14 epic Aug 13 21:48:15 it so quiet in here :) Aug 13 21:48:30 * g00s imagines all of android-dev headbanging to iron maiden Aug 13 21:48:33 XD Aug 13 21:49:09 http://www.youtube.com/watch?v=2wfR0y9qg90 that's what's on at my place right now Aug 13 21:49:13 so no Aug 13 21:51:55 when building with the ndk, what is the default optimization level? Aug 13 21:54:17 nvm, https://groups.google.com/forum/?fromgroups#!topic/android-ndk/LqTTFK__On0%5B1-25%5D Aug 13 21:56:16 super duperfast? Aug 13 21:56:44 that's what she said Aug 13 22:05:05 Would no having permissions correct for internet usage on an app cause an inexistent initialization of a variable that finds its valua on the internet Aug 13 22:05:14 or do you find out some other way if that's the case? Aug 13 22:17:03 ye I fiexed it Aug 13 22:17:06 <- da boss Aug 13 22:17:12 don't even know java y'all Aug 13 22:17:44 congrats Aug 13 22:17:48 ty m8 Aug 13 22:18:32 now I just need the image to be placed below Aug 13 22:35:47 that got sorted out. now to make the image scrollable Aug 13 22:44:06 I have a web view that loads a js file, but I think its being cached somewhere cause my changes has no effect. How can I clear the cache without adding any code to the actual app? Aug 13 22:44:17 Hello, In an XML file I use on a EditText component. When running the application I do get the focus but when tapping on the EditText field in order to write something in it, the keyboard doesn't show up - only when I switch to another EditText and then go back to the previous EditText. Any idea why is it happening? Thank you. Aug 13 22:55:16 hi Aug 13 23:25:53 Good night Aug 13 23:26:13 Hello guys, I'm looking for a way to persist a simple value while my app is live. Can anybody help me with it? Aug 13 23:27:08 ? Aug 13 23:27:14 Is anybody here? Aug 13 23:27:54 JOIN Aug 13 23:31:47 samuelbarbosa: http://developer.android.com/guide/topics/data/data-storage.html Aug 13 23:32:33 Hey ryanm, I know Aug 13 23:33:12 But I want a way to persist just while my app is running… And it says to you don't store // persist data on onDestroy() callback... Aug 13 23:34:10 Get it? Aug 13 23:34:16 samuelbarbosa what kind of variable, and what do you mean by while app is live, if ondestroy is called ur app is not live Aug 13 23:34:23 samuelbarbosa, that may be because onDestroy() is not guaranteed of being called. Aug 13 23:35:02 Yeah, I want to say to my app that user is logged. I don't want to trust on server session/cookie expiration time. Aug 13 23:36:04 Hi everyone. I'm having trouble getting my app to catch URLs from the browser. I have an set up in my manifest, but when i go to a url it's supposed to catch, it just sends me straight to the Play store website without asking if i want to complete the action with the app or with the browser. Any ideas? Aug 13 23:40:48 i have my app installed, and i still end up on the google play page when i type in the url the is supposed to catch Aug 13 23:40:48 it should ask to go to my app or go to the web. Aug 13 23:40:48 awdt123: can you paste bin the activity snippet from your manifest Aug 13 23:40:48 wongk-home: sure, one sec Aug 13 23:41:21 wongk-home: here it is: http://pastebin.com/T9XPbc8g Aug 13 23:41:45 it has something to do with android OS version (or device), as i'm testing on 4 devices and it works on 1, but the other 3 fail Aug 13 23:41:50 hey, can anybody suggest me a way to persist a simple key value during my App lifetime? Aug 13 23:42:17 it should catch the /nativeappinstall url and prompt me with how to open it Aug 13 23:42:56 I'm already using SharedPreferences Aug 13 23:49:38 But I should not edit it on my onDestroy() callback. Aug 13 23:49:39 Anybody? Aug 13 23:49:39 samuelbarbosa: Just use apply() after changing it. Aug 13 23:49:39 I'm already doing Aug 13 23:49:39 awdt123: i don't see any issue Aug 13 23:49:39 I'm just looking to a way to set it to false when user kill my app Aug 13 23:49:39 why would you do that Aug 13 23:49:39 kill the app / reboot the device / ... Aug 13 23:49:39 Because I don't want to trust on server cookie expiration time. Aug 13 23:49:39 when your app is killed, it's killed Aug 13 23:49:40 that's it, no more code is ran Aug 13 23:49:40 invert the case.. if it's gracefully stopped, write true Aug 13 23:49:44 brb Aug 13 23:49:53 wongk-home: thanks, yeah, it looks fine to me too. Aug 13 23:49:54 thanks! Aug 13 23:51:25 kroot, but it does not make sense. Aug 13 23:51:44 I want to set true if user logged in. Aug 13 23:51:54 And set off when the app is no more running Aug 13 23:52:32 Okay, just keep it in memory and don't write it to disk. Aug 13 23:52:45 Yeah, Aug 13 23:52:55 How can I write into memory? Aug 13 23:53:01 Is just to don't call apply() ? Aug 13 23:53:19 No no no Aug 13 23:53:22 No, just have a Service that holds onto the value Aug 13 23:53:38 Or a singleton pattern if you want Aug 13 23:53:42 hmm Aug 13 23:53:49 Service is an Android class? Aug 13 23:54:19 Hmm... Aug 13 23:54:23 Yes, but if it doesn't need to know about any Androidy things, you can just use a singleton. It's still a Java program after all Aug 13 23:54:24 Interesting. Aug 13 23:54:45 Do not use a singleton to hold on to references of Android objects, though. Aug 13 23:54:57 Right. Aug 13 23:58:20 hola Aug 13 23:58:27 hello Aug 13 23:58:33 someone speak spanish Aug 14 00:00:32 /j #android-es Aug 14 00:00:39 actually, I don't know if that exists Aug 14 00:01:16 no Aug 14 00:01:59 kroot Aug 14 00:02:03 Really thank you. Aug 14 00:02:13 Just found what I'm looking for! :D Aug 14 00:02:18 ;) Aug 14 00:02:23 No problem. Aug 14 00:02:43 how can set a scrollview to move to a specific place? scrollTo(x,y) doesn't do anything, and i don't understand why there would be 2 positions anyway Aug 14 00:06:12 hu Aug 14 00:06:28 anyone can pinpoint to stuff that brings "templating"? Aug 14 00:06:55 speaking of, im currently already inflating layouts into other layouts, but i might wanne se that more often/frequent Aug 14 00:07:30 so im not realy having a question, more looking for knowledge ill need to get ;-) Aug 14 00:11:59 Where can I find the source code for the application called "Google Calendar Sync" ? Aug 14 00:18:49 I have this code which creates item using DefaultHttpClient, it works well, but now I would like to add an image http://pastebin.com/rL1v79gA I have a ListView with an ImaveView Aug 14 00:22:13 uni4dfx: I could be wrong, but I don't think it's open source Aug 14 00:23:22 ryanm could it be this? https://github.com/android/platform_packages_apps_calendar Aug 14 00:24:46 uni4dfx: the calendar app and sync *interface* are open source - the bit which actually talks to Google isn't... or wasn't, at least Aug 14 00:24:55 uni4dfx: I don't see the string "Google Calendar Sync" in there, so I don't believe that's it Aug 14 00:25:18 ryanm Leeds That's what I thought. Aug 14 00:26:51 there is also smth in python http://code.google.com/p/googlecalendarsync/ (its a trap, these are not the droids youre looking for) Aug 14 00:29:37 why would i suddenly start getting resource errors in eclipse? i didn't change anything Aug 14 00:31:38 How do a keep a 2nd activity in a app from showing up in the app drawer? right now I have a appname activity and a settings activity, when I go to the app drawer I see both of them with the same app icon Aug 14 00:32:01 wtf eclipse! Aug 14 00:33:03 tabakhase If that was made for Android it would be exactly what I'm looking for. Aug 14 00:37:22 Hello, In an XML file I use on a EditText component. When running the application I do get the focus but when tapping on the EditText field in order to write something in it, the keyboard doesn't show up - only when I switch to another EditText and then go back to the previous EditText. Any idea why is it happening? Thank you. Aug 14 00:39:09 Hoy kroot Aug 14 00:39:31 I just used the Intent extra :D. It worked perfectly. Aug 14 00:39:47 I'll user services for another thing, Notifications :) Aug 14 00:39:58 Anyway, thank you for the help! Aug 14 00:40:48 nylon100, http://plainoldstan.blogspot.co.uk/2010/09/android-set-focus-and-show-soft.html Aug 14 00:41:08 Is there an elegant way to communicate back from a DialogFragment to the Fragment that opened it? I'd rather not mediate everything via the Activity in this case, as the dialogs are always called from a particular fragment... Aug 14 00:41:14 LostC1tY: I'm going to take a look. Thank you! Aug 14 00:41:41 If it works, thank google. ;] Aug 14 00:45:02 LostC1tY: Actually this is not what I was looking for, but thanks for the try anyway : ) Aug 14 00:48:45 Ok. :[ From what it's saying though, using will prevent the OSK from showing until focus is lost and regained. Aug 14 00:51:34 LostC1tY: Yes, but I forgot to mention that I only inflate and do not extends a View so I can not lost and gain view programatically. Can you think of a doing so via XML? Aug 14 00:52:22 Sorry, I don't know. Aug 14 00:52:38 * LostC1tY isn't even an Android dev :[ Aug 14 01:11:04 anyone happen to know how to chang the timeout in CTS, right now its waiting 10 minutes after a failed test case... it will take half a year for this thing to run to to completion Aug 14 01:12:45 Can you use numbers in your package name? Aug 14 01:19:44 T-Dub: yes, you can Aug 14 01:20:04 Thank you ryanm. For whatever reason google has failed me for that answer. Aug 14 01:20:12 example: https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2 Aug 14 01:22:14 i really wish, authenticater would automatically open and close upon request, i mean if they can send out sms on command it shouldnt be much harder for push messaging Aug 14 01:23:45 hello Aug 14 01:24:05 Jug6ernaut: +1 Aug 14 01:24:58 speaking of phones... i dont know where i put mine Aug 14 01:25:20 woopsie Aug 14 01:25:25 there we go Aug 14 01:25:34 is there a way to get the image 'path' of an ImageView Aug 14 01:25:44 but seriously, opening authenticator every time i wanna log in is a @#$@ pain Aug 14 01:25:58 joikus well considering u specify it :\ Aug 14 01:26:22 ya I do Aug 14 01:26:39 hey everyone Aug 14 01:26:39 if you'd like to get involved in Linaro's Virtual Connect please take a look at: Aug 14 01:26:39 https://plus.google.com/events/cuedgatkfdhfcf88co78q65g3s0/116754366033915823792 Aug 14 01:26:39 https://plus.google.com/events/c9r67l6t01cgvgo6sjclfccqo00/116754366033915823792 Aug 14 01:26:39 https://plus.google.com/events/cj4fohi8vddvjj5j9oee5mp3vhc/116754366033915823792 Aug 14 01:26:39 happy to have more participates Aug 14 01:26:43 please email me at zach.pfeffer@linaro.org is you want to talk Aug 14 01:27:04 thing is I want to pass some params to my PostItemAsyncTask Aug 14 01:27:27 and all I have in the AddItemActivity is a Listview with dynamic ImageViews Aug 14 01:28:02 you add ImageViews from your device as you select images, then I have a "submit" which calls new PostItemAsyncTask(context, this).execute(); Aug 14 01:28:10 and wanted that task to handle everything Aug 14 01:28:26 I was going to give him 'this' which has the ListView Aug 14 01:28:44 what's the best way to have left/right swipe detection for an activity? Aug 14 01:28:50 i'm seeing many different options Aug 14 01:29:03 is gesturedetector the best choice? Aug 14 01:29:31 joikus u coudl set the path as teh view tag Aug 14 01:30:45 iv.setTag(selectedImagePath); Aug 14 01:30:50 ok let me try this Aug 14 01:35:18 yep, then getTag when needed Aug 14 01:37:29 ^.^ Hey guys, back to making some editions to my app for work. One of the things I am allowed to do at this job, is clock in and out using my phone's web browser. This is because we are paid commissions and fired based on hourly wages. I need to try and 'mock' a browser message containing POST form data to index.php. Is this possible? What key terms should I be googling for research? Aug 14 01:38:22 Komak57: https://developer.android.com/reference/android/net/http/AndroidHttpClient.html Aug 14 01:39:59 hi, I asked this yesterday but got no answer: Is android sdk Java-based or something? I was reading the how to and looked like java Aug 14 01:40:40 alternately, searching for android http will find you a few things (though unfortunately the first two results are a little useless) Aug 14 01:40:51 Devastator: Yes. Android apps are written in Java Aug 14 01:41:35 ryanm, as i noticed. Is this going to bring a browser to the front? or quietly work behind the scenes? Aug 14 01:41:41 why would tag be null though Object tag= iv.getTag(); Aug 14 01:41:44 I was setting it Aug 14 01:42:44 it shoudl only be null if u havent set it Aug 14 01:43:40 Object tag = iv.getTag(); erroring with a null exception suggests that iv either can't return getTag(), or iv is null Aug 14 01:44:02 iv = null Aug 14 01:44:27 Komak57: behind the scenes. Aug 14 01:44:30 then you can't set anything in iv to tag, as there is nothing to add XD Aug 14 01:44:52 ryanm thanks! is it correct to say that android api is java then? Aug 14 01:44:54 there's not actually a "browser" involved; it just programmatically makes HTTP requests Aug 14 01:45:38 ryanm, sweet :D now to find some source to find out just what it cand do Aug 14 01:45:54 right, I see why Aug 14 01:46:10 Komak57, http://hc.apache.org/httpcomponents-client-ga/quickstart.html Aug 14 01:46:19 Devastator: I'm not sure what you mean by that. I would say that you write programs that use the API in Java. Aug 14 01:46:27 I works if I choose image from decide Aug 14 01:46:28 device Aug 14 01:46:41 but when I pick an image from picasa it does not Aug 14 01:47:06 for picasa I use InputStream is = getContentResolver().openInputStream(selectedImageUri); Aug 14 01:47:36 ryanm understood, sorry, my english is quite bad hehe Aug 14 01:47:55 Devastator: not a problem. As long as my answer helps :-) Aug 14 01:48:05 I just wish I could use multipartEntity.addPart("Image", image); using a Bitmap or Drawable Aug 14 01:48:19 instead of new File(path) trying to find that path Aug 14 01:48:42 huh Aug 14 01:50:28 I'm using Intent.createChooser to select an image from either my download folder, or picasa Aug 14 01:51:26 if it's from my downloads folder, I use Cursor cursor = getContentResolver().query(uri, projection, null, null, null); Aug 14 01:51:30 and I get the image path Aug 14 01:51:46 but if it's from picasa, all I have is InputStream is = getContentResolver().openInputStream(selectedImageUri); Aug 14 01:57:37 I read this Aug 14 01:57:43 "However, on newer OS's, 3.x and 4.x, images may come from picassa with the following urls: "content://com.google.android.gallery3d.provider/picasa/item/", and then MediaColumns.DATA cannot be used to retrieve file path." Aug 14 01:59:31 http://stackoverflow.com/questions/5944282/retrieve-picasa-image-for-upload-from-gallery Aug 14 01:59:34 aw nasty Aug 14 02:00:41 is it a good idea to use viewpager right now? Aug 14 02:00:50 or should i wait until the api's more stable? Aug 14 02:04:54 well the google play app uses it.. Aug 14 02:05:02 wow that was the answer: http://dimitar.me/how-to-get-picasa-images-using-the-image-picker-on-android-devices-running-any-os-version/ Aug 14 02:05:25 i have a scrollview, which nests a tableview, and it's rows have buttons… how do i get the position of the button relative to the scrollview? button.getLeft() returns 0 b/c i think it's giving me a position relative to its parent Aug 14 02:11:09 oh wow... how odd... I added 2 more menu items to my main activities menu/main.xml, along with handlers, and strings. This worked great, but it compiled them in an order i didn't like. So i moved the 's around how i would like it, compiled, and it looked great. However, clicking them seems to activate the wrong action handler? Aug 14 02:34:41 cool http://tos-dr.info/ Aug 14 02:43:28 nothin like fixin a bug on a monday night~ **** ENDING LOGGING AT Tue Aug 14 02:59:58 2012