**** BEGIN LOGGING AT Fri Jun 20 03:00:00 2014 Jun 20 03:00:27 gordon_ what i don't understand is, when i go to system updates and manually check, why they don't let me get it right then. seems stupid that even over wifi, i still need to wait Jun 20 03:05:35 How can I get all services started by my app? Jun 20 03:05:50 hm, there is an api ... Jun 20 03:06:34 but where is it? Jun 20 03:07:01 you can start here http://developer.android.com/reference/android/content/pm/PackageManager.html#getServiceInfo(android.content.ComponentName, int) Jun 20 03:07:10 g00s: I'm using custom roms anyway Jun 20 03:07:20 on galaxy nexus Jun 20 03:10:12 ok well http://www.ibtimes.co.uk/malware-posing-official-google-play-app-found-official-google-play-store-1453409 Jun 20 03:10:24 "Googl app stoy" … sounds legit Jun 20 03:10:28 hehe Jun 20 03:10:51 hey, my actionbar button is not appearing on my phone Jun 20 03:10:55 but it is there on my emulator Jun 20 03:11:08 the emulator is a nexus my phone is an s3, does anyone have any ideas? Jun 20 03:11:42 it won't appear on samsungs coz of that physical menu button you have Jun 20 03:14:23 ahhh thanks so much bankai_au Jun 20 03:14:34 really pissing me off that was Jun 20 03:15:32 good to know I'm on the right track Jun 20 03:17:35 there's a few hacks to get it to work if you google around. I don't know what's normal on samsung devices, do you usually see the overflow button in apps ? Jun 20 03:18:08 dazpetty: you can hack it anyway Jun 20 03:19:52 what do you mean gordon_? Jun 20 03:20:31 dazpetty: http://nullpointerbay.com/2014/06/android-actionbar-overflow-menu-on-phones-with-physical-button/ Jun 20 03:20:37 if you do that it will show up Jun 20 03:22:03 so does it automaticly load all the xml files and I don't have to add them in? Jun 20 03:22:27 no you need to infalte menu first Jun 20 03:22:28 because it told me to create a xml file called main_activity_actions.xml, but I havent told it where or how to load this xml file Jun 20 03:22:32 ahh Jun 20 03:23:54 am I supposed to write "yourapplication" or the name of my application? Jun 20 03:23:55 xmlns:yourapplication="http://schemas.android.com/apk/res-auto" Jun 20 03:24:08 dazpetty, anything you want Jun 20 03:24:14 i always use app Jun 20 03:25:31 dazpetty: that is if you're using appcompat Jun 20 03:26:18 or what alex_PP says Jun 20 03:26:22 yeah i am using appcompat Jun 20 03:26:23 I need to edit that post I guess :D Jun 20 03:26:43 a, so use whatever your want - name of your app or somethin Jun 20 03:26:43 g Jun 20 03:27:05 I think I'm getting close to being over the initial pain of getting into android which is a big relief Jun 20 03:27:30 it's not *that* hard ;) Jun 20 03:27:52 well it a little unclear Jun 20 03:27:59 most APIs tell you where you went wrong Jun 20 03:29:59 I have a small question. Jun 20 03:30:11 "android update project -p ." Jun 20 03:30:19 Where can I run this command from? Jun 20 03:30:42 I am trying to find how to test application class with Robolectric. I have some initiliazation which is done in Application class but it is not happening during test. Can somebody take a look http://pastebin.com/xR9ecdzG Jun 20 03:30:43 The docs say to run this command to generate the build.xml file Jun 20 03:31:27 So anyone knows where to run this command from? Jun 20 03:31:58 where do i create "@+id/menuid" Jun 20 03:32:19 its difficult to tell the difference between creating and referancing, sorry Jun 20 03:32:43 pls respond Jun 20 03:32:59 pifon1 i use eclipse Jun 20 03:33:06 Me too Jun 20 03:33:22 ok, it should do it when you go project -> build Jun 20 03:33:29 or project -> clean Jun 20 03:34:02 ok let me check Jun 20 03:34:53 WantToCode: stacktrace ? Jun 20 03:35:09 pifon1: console ? Jun 20 03:35:23 Yeah console.. Jun 20 03:35:46 so invoke it in project root i guess Jun 20 03:36:13 How to access the console Jun 20 03:46:06 I mean your OS console Jun 20 03:57:09 ah Jun 20 03:57:42 gordon_, what file in the sdk/tools do i need to invoke first? Jun 20 04:02:47 well that does not work gordon_ Jun 20 04:02:53 obviously Jun 20 04:10:55 Well Jun 20 04:11:05 Anyone know how to avoid the notorious 64k limit on methods in Android applications? Jun 20 04:13:44 pifon1 usually proguard Jun 20 04:13:49 (sorry) Jun 20 04:13:52 can't image you'd have a problem with it Jun 20 04:14:05 Proguard does not work on debug versions Jun 20 04:14:25 hmm … its not set up to run, but you can Jun 20 04:14:39 probably some caveats Jun 20 04:15:03 Anyone familiar with Robolectric, how can I test Application class correctly? http://stackoverflow.com/q/24319770/3488870 Jun 20 04:15:04 pifon1 so , you reached that limit - may i ask using what libraries ? Jun 20 04:15:44 based on pifon1s previous questions, i doubt he managed to get that many methods to compile without a hitch :) Jun 20 04:15:56 google play services is pretty huge Jun 20 04:15:58 11k I think Jun 20 04:16:10 its more actually, but yeah Jun 20 04:16:13 14-17k Jun 20 04:16:22 a lot of large apps are hitting that limit and there aren't a lot of good optoins Jun 20 04:16:42 at minimum they should unbundle stuff from play services Jun 20 04:16:47 i have like 20 libs g00s Jun 20 04:16:53 holy crap Jun 20 04:16:57 :/ Jun 20 04:20:12 proguard is a good option Jun 20 04:20:14 and it works well Jun 20 04:25:48 oh my a purebread cat ! http://i.imgur.com/GS9qRIh.jpg Jun 20 04:30:25 terrible pun Jun 20 04:31:05 hehe, you clicked :) Jun 20 04:33:12 I clicked it it was great Jun 20 04:33:15 I grinned Jun 20 04:34:32 ;) Jun 20 04:35:13 I have no idea how, but suddenly getFragments became undefined. Any quick fixes? Jun 20 04:36:13 g00s: why we have hoverview for images, literally do not want to spend microcalories clicking that Jun 20 04:37:37 i think textual will display some stuff inline Jun 20 04:45:18 sounds like a prime target for some goatse Jun 20 05:25:44 https://leverich.github.io/swiftislikescala/ Jun 20 05:26:34 Hi Jun 20 05:27:09 gordon_, I just wanted to ask a simply doubt Jun 20 05:27:21 the answer is no Jun 20 05:27:24 'next' Jun 20 05:27:26 ;) Jun 20 05:27:29 (go ahead) Jun 20 05:27:34 how is it that a person can remember so many class names and method names getters and setters Jun 20 05:27:58 or is it that we remember handfull of them and remaining we leave to google Jun 20 05:28:17 this is why we use IDE like intellij, son Jun 20 05:28:18 O.o Jun 20 05:28:45 but I remember everyone of them Jun 20 05:28:53 and I can recite them from memory Jun 20 05:28:57 with parameters Jun 20 05:29:04 gordon_, you are the lord Jun 20 05:29:06 niru one of the nice things about intellij , you can search for 'fL' and it will give you a class/members like fooLarge Jun 20 05:29:22 android devs are not humans, they are androids themselves Jun 20 05:29:32 Jun 20 05:29:38 gordon_, you are right Jun 20 05:29:46 gordon_ i guess i should learn swift Jun 20 05:30:09 because it's not scala at all! Jun 20 05:30:41 from what it sounds shops will be using it for new dev going forward Jun 20 05:30:55 but obj-c has been around so long, hard to imagine it going anywhere Jun 20 05:31:51 * capella is a poor enough hacker in the dozen or so languages I already use ... Jun 20 05:32:21 * capella prefers assembly code, as intended by nature Jun 20 05:32:25 :p Jun 20 05:34:36 g00s: i honestly dont care, but my first impression was like that language looks like scala Jun 20 05:34:44 and now somebody's made comparsion Jun 20 05:35:01 but scala offers more features Jun 20 05:35:09 'there's nothing new under the sun' Jun 20 05:35:35 probably most of the cool features in scala have been around for decades Jun 20 05:35:53 true Jun 20 05:37:27 Does anyone know where you configure the autologin to terminal for Raspi? I've read its in inittab and lightdm but both don't have any configuration for it Jun 20 05:38:23 seems like #raspi could help :) Jun 20 05:38:32 #raspberrypi actually :P Jun 20 05:38:37 or #raspbian depending on what you're using :D Jun 20 05:38:51 wwhoopps Jun 20 05:38:52 lol sorry Jun 20 05:56:07 look capella :) https://developers.google.com/web/starter-kit/ Jun 20 05:56:17 is it another cat? Jun 20 05:56:29 notice the little mobile device on the bottom with nav drawer :) Jun 20 05:57:38 the phone in front of the tablet? Jun 20 05:58:30 ya Jun 20 05:59:11 what is safest way to store sensitive information and secrete key in android app? Jun 20 05:59:14 is that one of the things that "brings great web experiences"? Jun 20 05:59:38 g00s: :) lost me ... Jun 20 06:00:08 capella well, we'll see what happens at i/o Jun 20 06:01:13 ok ... heh ... I've got plenty of devtools, just no sponsored projects ;) Jun 20 06:01:47 capella work on the comment platform for NY Times & Washington Post Xd Jun 20 06:02:12 nononononononono ... do not point me to the internet comment hell Jun 20 06:02:16 lose you again ? Jun 20 06:02:32 i'm sure you got i Jun 20 06:02:34 *it Jun 20 06:02:36 there's no content of value there Jun 20 06:02:56 not really sure why mozilla is in that Jun 20 06:03:00 * capella isn't sure I did Jun 20 06:03:15 http://www.nytimes.com/2014/06/20/business/media/new-york-times-and-washington-post-to-develop-platform-for-readers-contributions.html?_r=0 Jun 20 06:03:29 * capella reads Jun 20 06:05:00 mmmm - interesting ... I wrote a letter to Scientific American (I'm a long time subscriber) complaining after they started posting letters to the editor from web nicks ... and told them I'd cancel if the planned to keep that experiment Jun 20 06:05:14 Well g00s Jun 20 06:05:23 I am downloading android studio Jun 20 06:05:29 The un-credited crap had already started coming in Jun 20 06:05:59 and Jun 20 06:06:24 As its on gradle Jun 20 06:06:40 I can edit the build.xml file to run proguard Jun 20 06:06:46 in the debug version Jun 20 06:07:08 pifon if you are using AS / gradle, there is no build.xml ;) Jun 20 06:07:16 oh no Jun 20 06:07:33 build.gradle file Jun 20 06:07:37 yeah Jun 20 06:07:52 I can't even read the comments on Ars anymore ... it's totally uninformed drivel from non-techs Jun 20 06:08:05 Well lets hope that fixes it Jun 20 06:08:59 * capella not sure there *is* a way to make 'net comments valuable content Jun 20 06:09:53 Is actionbarsherlock still necessary for backwards compatibility? Jun 20 06:09:58 no Jun 20 06:10:02 minSdkVersion="15" Jun 20 06:10:53 JakeWharton: What if my minSdkVersion="9" ? Jun 20 06:11:05 then you open your manifest and change it to 15 Jun 20 06:11:22 leave those on Gingerbread on the current version of your app Jun 20 06:11:33 they aren't worth your time to develop for any more Jun 20 06:14:57 Hi can someone please help me with Robolectric testing a project which has Application class. I want to test push notification from Parse.com server. The app works well on emulator but in test error related to Parse classes are shown. http://pastebin.com/0FZSDv0K Jun 20 06:19:16 g00s: two year project ! Where do I sign :) Jun 20 06:25:19 WantToCode: more info is needed Jun 20 06:26:11 what kind of build system - ant / gradle Jun 20 06:26:12 ? Jun 20 06:26:30 Eclipse. Jun 20 06:27:13 Is the code structuring correct? I followed the guide on the robolectric website Jun 20 06:28:11 Eclipse = Ant Jun 20 06:28:35 WantToCode: it should be Jun 20 06:29:52 I think then the problem would be with Parse's compatibility with Robolectric somehow, because app is working fine on emulator. Jun 20 06:30:41 The aim is check the push notifications, so would using GCM be a better option? Can it be tested with Robolectric? Jun 20 06:32:04 tested how? what you are describing is not really unit tests Jun 20 06:32:17 you can test how a method or class behaves when you feed it an Intent Jun 20 06:33:00 I would be testing a specific message and would like to test that the particular message is received or not Jun 20 06:33:15 *sending a specific message Jun 20 06:39:36 one question to ponder upon..what is safest way to store sensitive information and secrete key in android app? Jun 20 06:40:03 http://www.xda-developers.com/android/breaking-next-major-version-of-android-to-finally-remove-dalvik-and-set-art-as-default/ Jun 20 06:40:16 gordon_ i beat you :) Jun 20 06:40:22 damn Jun 20 06:40:35 WantToCode: you want to *unit* test network Jun 20 06:40:35 ? Jun 20 06:40:38 dont do that... Jun 20 06:40:51 what you want is integration test Jun 20 06:43:27 i just backed art off my n7 due to constant firefox crashs Jun 20 06:48:43 nice try capella-s3 ; ff on android crashes with dvm too :D Jun 20 06:48:56 firefox: 1* DOES NOT WORK ON ART Jun 20 06:49:26 g00s: I was soooooooooooo waiting for you to say that Jun 20 06:51:56 Leeds: so patches are welcomed ? ;) Jun 20 06:56:02 in iosched 2014, when you click on a session … is that an activity with its own action bar themed as a dialog ? Jun 20 06:56:59 @gordon_ Ok Thanks. so I can use Robolectric to test notification, be it from Parse or GCM? I need to do unit testing? Jun 20 06:59:01 WantToCode: usually one unit test is for one class right ? Jun 20 06:59:15 you dont want your unit test to know too much Jun 20 06:59:29 test your receiver or whatever that is Jun 20 06:59:46 Broadcast receiver directly? Jun 20 07:00:01 dont know how it is constructed in your code Jun 20 07:00:09 and what you want to check Jun 20 07:00:38 https://github.com/robolectric/RobolectricSample Jun 20 07:00:42 this is also good reference Jun 20 07:01:18 I have to construct it. I want to check the message that is send in the notification. Currently I was trying to use Parse's push notification but it is giving initialization error when testing. Jun 20 07:01:23 Thanks for the link' Jun 20 07:02:40 if you want to check it working, I guess you should make integration tests with espresso or something Jun 20 07:02:47 dont have exp in integration tests in android Jun 20 07:02:51 *yet* Jun 20 07:03:17 Thanks! Jun 20 07:03:56 I mean if you want to check some flow Jun 20 07:04:20 if I'm speaking bullsh*, someone, please correct ;) Jun 20 07:04:26 education always welcomed Jun 20 07:04:36 hehe I am still confused :P Jun 20 07:10:13 so iosched 2014 uses a library called Glide Jun 20 07:10:19 https://github.com/bumptech/glide Jun 20 07:10:32 seems kinda janky there Jun 20 07:10:56 also uses volley, hm Jun 20 07:14:17 My stupid viewpager crashes because parentView already has a child view. How do I check that? Jun 20 07:15:35 you guys notice romain guy is giving an android talk ? Jun 20 07:18:35 g00s, share the schedule Jun 20 07:19:29 tagrudev download iosched 2014 :D Jun 20 07:19:56 I don't want to, it looks like windows ;( Jun 20 07:20:25 what, a gridview is windows ? Jun 20 07:21:17 gridview ? you mean flat corner shitty color boxes ? Jun 20 07:21:54 they used a foreground for each element with a tint & alpha corresponding to the theme Jun 20 07:21:59 so all green things are android, etc Jun 20 07:22:08 trust me, this isn't metro :D Jun 20 07:22:49 it doesn't cut the fact that it looks like **** Jun 20 07:22:51 :) Jun 20 07:23:41 there is a weird gap between everything Jun 20 07:23:55 yeah, well, get used it it buddy . .. i'm guessing thats Quantum Jun 20 07:24:02 all your stuff is going to look like that soon XD Jun 20 07:24:16 the web site looks 100 times better lol Jun 20 07:24:34 yeah and I am pretty sad about that Jun 20 07:31:24 g00s, oh boy I now look at that Quantum leaks and I am disappointed Jun 20 07:32:05 yeah i think it looks like shit too Jun 20 07:32:21 hopefully they are just trolling us Jun 20 07:32:55 it's nice Jun 20 07:33:59 they have to ensure the supply of things to complain about in this channel is high Jun 20 07:34:27 I was trolling all my friends witht he updates of iOS Jun 20 07:34:32 now I should prepare :D Jun 20 07:34:42 the* Jun 20 07:45:24 hi am trying to test an android app with robotium...the problem is the navdrawer...i can see that robotium clicks on the app icon but the drawer doesnt slide out what could be the issue? Jun 20 08:24:50 i'm having trouble getting adb to connect, and I don't want to restart/logout Jun 20 08:24:58 what should I try next? Jun 20 08:36:32 Hello, While booting android, it preloads all the classes. does it happen each time phone is restarted ? Jun 20 08:36:53 karrboloaded, do u see your device getting listed ? Jun 20 08:39:51 Keestu, no Jun 20 08:39:57 but the server starts Jun 20 08:40:17 and it was working fine yesterday Jun 20 08:40:28 karrboloaded, plug out and plugin once again. Jun 20 08:40:50 so i assume there's a lock or something i have to delete Jun 20 08:41:06 replugging doesn't work either Jun 20 08:41:15 karrboloaded, it happens for me many a time, but i do replugging. Jun 20 08:41:40 just as many times as it takes to work? Jun 20 08:41:47 i've already done it quite a few times... Jun 20 08:42:46 how many times does it usually take? Jun 20 08:44:32 may be just few seconds. Jun 20 08:44:47 does your device enabled with 'usb debuggable' enabled ? Jun 20 08:47:23 yes Jun 20 08:47:45 i'll try revoking it and starting again Jun 20 08:48:27 nope Jun 20 08:48:41 i guess i'll just have to try logging out and back in Jun 20 08:52:44 Has anyone ever tried using KenBurnsView library and load your image from a url? Jun 20 08:52:58 I can't make mine work :( Jun 20 09:02:24 good day guys and gals Jun 20 09:02:30 i have a question Jun 20 09:02:37 anyone seen the new play newsstand app Jun 20 09:02:40 well its not that new Jun 20 09:02:46 yeah Jun 20 09:02:55 how do i get that tab view Jun 20 09:02:56 love the actionbar thing Jun 20 09:03:12 i'm asking the same question earlier Jun 20 09:03:15 using kenburnsview Jun 20 09:03:16 like the tab strip is scrollable and you can scroll to other Jun 20 09:03:22 oh Jun 20 09:03:47 isn't that just scrollable viewpager? Jun 20 09:03:53 mhm Jun 20 09:03:53 i have that part Jun 20 09:03:56 but the indicator Jun 20 09:04:01 it's a viewpager with a scroll indicator Jun 20 09:04:04 and probably transparent actionbar Jun 20 09:04:05 i dont want it to be just an indicator Jun 20 09:04:24 i want the indicator to be interactive and scroll indepantly from the view pager Jun 20 09:04:39 so that you can scroll over all available tabs and then switch to the one you choose Jun 20 09:04:48 instead of just scroll the entire view pager over all content Jun 20 09:05:14 I think you can use PagerSlidingTabStrip and try adding as much tabs Jun 20 09:05:24 then you can scroll from the tabs Jun 20 09:05:52 cool let me check that out quick Jun 20 09:05:54 why can't i change the background color of my gridview? Jun 20 09:06:00 all it displays is grey Jun 20 09:06:37 the list items all have transparent backgrounds Jun 20 09:06:48 i do not understand why it is not setting a background on my gridview Jun 20 09:06:53 jvrodrigues: which background? the grid item or the view background? Jun 20 09:07:00 the view Jun 20 09:07:40 set it in the parent's background instead Jun 20 09:07:50 i already did Jun 20 09:07:52 and it's still grey Jun 20 09:08:09 yeah thnx piracyd3 that is wat i wanted Jun 20 09:08:24 you're welcome Jun 20 09:15:26 jvrodrigues: don't set it in the row layout. Set it in the fragment's. I hope you get what I say. Jun 20 09:20:04 hi Jun 20 09:20:06 if I want to pass an object from one activity to another, and I know that object id in local sqlite database, is it preferable to put this object as parcelable in intent extra, on only the database id and the other activity will query it ? Jun 20 09:31:23 rom1v: I think it depends on your use case. If your object will change in database, you should pass the id and query the object in the other activity. If you just want to pass the object and display its content, I think pass as parceable is ok Jun 20 09:43:05 I have followed the http://www.vogella.com/tutorials/AndroidSQLite/article.html documentation for connection to a database Jun 20 09:43:33 the SQLiteOpenHelper class shows error as cannot instantiate Jun 20 09:43:40 no empty constructor found Jun 20 09:44:50 piracyd3, changing the background of the fragment does not work, looks like this grey is here to stay Jun 20 09:50:08 niru: what would be your idea to fix "No empty constructor found" ? :) Jun 20 09:50:24 obviously to add an empty constructor Jun 20 09:51:00 or learning Java Jun 20 09:51:16 btw where do you get this? I cant remember it to need an empty constructor? Jun 20 09:51:18 you're obviously trying to instantiate a class without passing required parameters. Jun 20 09:51:39 yeah i think SQLiteHelper always needs at least a context. Jun 20 09:51:41 danijoo, you have the mighty documentation. and your IDE. Jun 20 09:51:43 ok edwinkcw Jun 20 09:51:43 danijoo, http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html Jun 20 09:51:45 thanks Jun 20 09:51:50 danijoo, check "public constructors" ;) Jun 20 09:52:04 why is my gridview grey goddamnit Jun 20 09:52:13 Mavrik: I think this should go to niru, not me :) Jun 20 09:52:16 remember, if you're extending a class you need to call through to at least one parent class Jun 20 09:52:19 ah, that :) Jun 20 09:52:25 danijoo, rrr, sorry :) Jun 20 09:52:29 np Jun 20 09:52:55 jvrodrigues, use hiearchyviewer to see which part of hiearchy gives you the background Jun 20 09:52:58 jvrodrigues, kill it there. Jun 20 09:53:09 (you're probably just setting background on the wrong view) Jun 20 09:53:16 thanks danijoo and Mavrik Jun 20 09:58:13 how do you remove the action bar's shadow .. using actionbar compat? Jun 20 10:01:22 Well i imported an eclipse project with more than 65k methods in android studio (fresh install). It has been 10 minutes and its still stuck on, "Building 'projectName' Gradle project info" Jun 20 10:01:37 pifon: it's normal Jun 20 10:01:42 ok Jun 20 10:02:03 is downloading gradle stuff (it does at first run) Jun 20 10:03:00 ok thanks Jun 20 10:03:26 Its funny how they did not provide a download progress bar Jun 20 10:06:23 agree Jun 20 10:07:13 i am so retarded. Jun 20 10:11:03 I have a method wich calls a callback (it gets Location). How can I wait to callback finish to return a value? Jun 20 10:29:35 ha i thought there was a new version of the SDK out but then I noticed the topic was set october 31 2013 Jun 20 10:29:37 :P Jun 20 10:29:53 livin in the past. Jun 20 10:30:34 is there a quick way to change the color of the actionbar menu items without having to create them in that color? Jun 20 10:30:44 basically want to saturate them to white Jun 20 10:37:38 so no way of programmatically de-saturating the actionbar menu icons to display as white? Jun 20 10:43:29 Does it make sense to use an event bus for notifying activities about state changes? Jun 20 10:47:02 I notice that also activies which are paused(?) get the events then Jun 20 10:53:09 hi guys, Can my root element in layout file have an android:id ? Jun 20 10:53:22 to which I add fragment from my Activity class programaticlaly Jun 20 10:55:45 yes Jun 20 10:56:59 alright thanks gordon_ Jun 20 11:26:18 Is it possible to release a new apk via google play that allows 2.3.7 users that already have the app to update but dont allow new users to download the app? Jun 20 11:26:43 dont think so, mh¬? Jun 20 11:45:48 That's interesting it says in the docs: "Paused Activity — […] The paused activity does not receive user input and cannot execute any code.", but when I am in Activity B and A receives an event through an event bus, I get the log message displayed anyway Jun 20 11:46:05 probably on a different thread Jun 20 11:46:08 or what does it mean? Jun 20 11:49:09 is fragment back stack retained on orientation change? Jun 20 11:49:21 mrpyo: yes Jun 20 11:49:35 usually it is Jun 20 11:49:37 thx Jun 20 11:50:02 also will my fragment be automatically reatached on orientation change? Jun 20 11:50:32 usually yes Jun 20 11:51:48 I will explain my situation: I have FrameLayout which I use as fragment host - I switch between 3 fragments using this FrameLayout as container... Jun 20 11:52:06 I attach first fragment in Activity onCreate' Jun 20 11:52:42 but on orientation change onCreate is called again - so I shouldnt attach the fragment myself - how to do it? Jun 20 11:54:20 do it like this: https://gist.github.com/danijoo/77624e7bd1a5cbb49d9a Jun 20 11:55:07 on orientation change the fragment will be reattached, so FragmentManager.findFragmentByTag() will return the fragment and it will not be recreated Jun 20 11:56:25 its a simple check if there is already a fragment with given tag managed by the fragment manager, if not -> create Jun 20 12:07:09 thanks a lot Jun 20 12:12:23 How can I force doInBackground method of AsyncTask to wait a callback? Jun 20 12:13:17 while(iDontHaveACallback) waitForCallBack; Jun 20 12:14:00 but it sounds more like you have a design problem if you need an async task to wait for a callback. Jun 20 12:17:52 danijoo: I use my asynctask to make an http get. Now I have to use it to make an http post. In the body I have to put gps location wich arrives in a callback. Do you got the problem? Jun 20 12:19:00 i never worked with gps but as you are out-of-ui-thread anyway, cant you just make the gps-request synchronous in the task? Jun 20 12:19:21 like doInBrackground(..) { goGet(); getGps(); doPost() } Jun 20 12:19:40 then you dont have to wait for a callback Jun 20 12:19:48 mmh no becouse google provides location with a callback. Jun 20 12:21:39 mh. what about seperate tasks then? one to make the get, publish the get result, and on callback execute a second async task to do the post Jun 20 12:22:44 if this all dont fit you could do it with a while and let the thread sleep some ms. But thats an a bit hacky approach... Jun 20 12:23:18 it won't resolve because you always need to wait google to receive Location Jun 20 12:23:55 with android studio, how might I use a forked version of a maven library so that I can edit/try to fix bugs with it? Jun 20 12:24:15 ^^ by using it in an existing project Jun 20 12:25:42 gdrc: I think you dont understand me correctly. Use one task to do the get request, one task to do the post request Jun 20 12:26:04 and start the second one in the callback of google location service Jun 20 12:27:01 I'll try with that ;) Jun 20 12:29:10 quick question Jun 20 12:29:24 quick answer: a cheetah Jun 20 12:29:26 opening up new activity with a fragment in it Jun 20 12:29:39 with an edit text the keyboard opens Jun 20 12:29:47 how do i not open the keyboard Jun 20 12:30:00 like give that item focus but dont open the keyboard just yet Jun 20 12:30:59 what does it mean to give focus but not open the keyboard? Jun 20 12:31:24 let the cursor be in the edittext without showing the keyboard Jun 20 12:31:24 I'm a little confused, the last piece of code here (an Activity) - http://developer.android.com/guide/components/fragments.html - adds a fragment to android.R.id.content and doesn't use any View inside `setContentView`. So firstly what is `android.R.id.content` and which View does it use to set the fragment into ? Jun 20 12:31:43 right, but what good is a cursor without a keyboard? Jun 20 12:34:01 can someone help me there? Jun 20 12:38:47 prishabh: android.R.id.content always refers to the root view of your layout Jun 20 12:39:05 Its the same as if you would give the most top view an Id and use this Jun 20 12:46:44 danijoo: Jun 20 12:46:54 prishabh: Jun 20 12:46:59 but if you see in that code, no layout was passed to setContentView (this function wans't used at all)' Jun 20 12:47:06 so which layout is it going for ? Jun 20 12:47:29 I dont know. Maybe there is some kind of default FrameLayout if setContentView is not called Jun 20 12:49:42 if you scroll a little above there are fragment_layout.xml files (both having FrameLayout) - but how does that affect I wonder ? Jun 20 12:49:50 cuz they arn't loaded anywhere in the Activity Jun 20 12:50:43 maybe there is an error in the doc :p dunno Jun 20 12:51:36 same code here - http://developer.android.com/reference/android/app/Fragment.html - without setContentView Jun 20 12:52:02 can you have an activity without setContentView anyway ? I don't think so. The Activity needs to know which layout (with or without fragments) to render right ? Jun 20 12:53:32 why dont you just try it? Jun 20 12:54:51 ok, I'll try the code. :) I've a few other questions if you don't mind. Like what is `a_item` here `ft.replace(R.id.a_item, details);` and whats getArguments and setArguments ? Jun 20 12:55:56 a_item is the id. if you look at the xml, there is somewhere an androdi:id="@+id/a_item" Jun 20 12:56:27 like not in the XML's that they have in that page - http://developer.android.com/guide/components/fragments.html Jun 20 12:56:32 setArguments() creates some additional information for the fragment, which you can then get inside of it by calling getArguments() Jun 20 12:56:57 ok if its not in the xml it just counts as an example Jun 20 12:57:17 like ft.replace(R.id.this_could_be_your_id_of_choice, details); :p Jun 20 12:58:39 its hard to learn from google's guides :/ Jun 20 12:58:57 they are more likely written for people who already know the system and want a reference. Jun 20 12:59:18 yeah I was thinking the same right now Jun 20 13:01:39 maybe they sell books :D Jun 20 13:02:10 books suck even more because they are outdated before they are released Jun 20 13:02:41 caution: thats a personal opinion Jun 20 13:03:02 danijoo, it depends. A book based on Android 4 with advanced techniques is quite Jun 20 13:03:09 useful Jun 20 13:03:17 sorry for \n :) Jun 20 13:03:28 it might be good for the basics, yeah. Jun 20 13:04:22 but what if google announces android 5 at google I/O in 5 days? :p Jun 20 13:04:42 and depreciate half of the framework ^^ Jun 20 13:05:00 danijoo: Or goes "lolnope, have KitKat 4.5" Jun 20 13:05:56 p_l 50:50 chance :) Jun 20 13:06:18 i would love to see them with an android 5 deprecating the whole intent-stupidness Jun 20 13:06:42 Hi all, I am trying to capture audio from a BT Device connected to Android, instead of using the device's mic. Here's the code: pastebin.com/JG8gmrYq However, the app still receives the input from the mic! Jun 20 13:08:59 I was using as inspiration http://stackoverflow.com/questions/4026002/how-to-record-sound-using-bluetooth-headset, trying to "fill the blanks" with an AudioRecord object which is recorder Jun 20 13:26:00 so we can call class method from inside a method without `this.` in java ? Jun 20 13:26:16 thankfully, yes Jun 20 13:26:17 not class method but instance method Jun 20 13:27:08 ob.func(); -> calls func() -> call broFunc() without `this.` Jun 20 13:28:33 ok thanks g00s Jun 20 13:32:05 What is the speciality of FrameLayout ? Jun 20 13:35:27 mind if i ask something not related to development, but just apps in general? :D Jun 20 13:36:05 Can I do something like performClick on notification in Robolectric test? I want to peekNextStartedActivity for when notification is clicked. Jun 20 13:36:12 go ahead buddy Jun 20 13:36:27 i have a lot of ideas for apps, but some of them are only going to work if alot of pepole use it... so obviously if i was to launch an app like this, initially there's no users at all... so basically the content is not there... i know that one way to solve the solution is through mass marketing, but that's often not feasable, so for apps like these.. would it be better to just launch them as free apps, and then once enough people use it, change it to p Jun 20 13:36:28 aid? Jun 20 13:37:19 if you change it to paid, users will just go somewhere else Jun 20 13:37:31 therue: unless you're very lucky, and/or have access to a large marketing budget/channel, your app will probably sink without trace Jun 20 13:37:36 basically, this is what most "social" web BS sites struggle with Jun 20 13:38:07 FB / twitter - once free, how do we monetize this? oh , we sell everyone's private data Jun 20 13:38:16 (to remain free) Jun 20 13:38:41 my question is - even if you *do* release it for free, why would anyone use it? Jun 20 13:39:26 how does anyone know your app exists? Jun 20 13:41:54 start with a niche group then grow outwards? like how facebook started out as an exclusive site for college students Jun 20 13:42:34 like i have so many ideas... IF alot of people use it, then app will be extremely useful Jun 20 13:42:58 how do the members of the niche group know about your app? Jun 20 13:43:16 no idea lol :D Jun 20 13:43:23 * flan3002 listens attentively. Jun 20 13:44:25 heh nice one g00s Jun 20 13:44:46 so many apps nowadays... can't rely on users discovering you in the play store Jun 20 13:45:17 Leeds, that's always a problem Jun 20 13:45:38 i haven't been involved with apps for that long... so how do you guys get people to notice apps? Jun 20 13:45:47 * flan3002 doesn't. :/ Jun 20 13:46:02 therue this i/o has another android session on how to make money in Play Jun 20 13:46:10 not sure if it covers marketing angle Jun 20 13:47:08 but previous I/O's had similar content, you can find that Jun 20 13:48:02 therue for example, write a press release and give it to a reviewer at one of these websites Jun 20 13:48:14 (so they don't have to think much :) Jun 20 13:48:52 submit to HN (show HN), reddit, whatever Jun 20 13:49:19 therue: What do you want to build? Jun 20 13:50:57 well online marketing by yourself like spreading it by word of mouth... sure that's manageable .. the developer can do that himself ya Jun 20 13:51:02 but not really mass marketing Jun 20 13:51:29 but man, there are so many good ideas out there that rely on user interaction, content Jun 20 13:51:49 only problem is.. why would anyone use it when there's no users using it at the start. Jun 20 13:51:52 since there's no content there Jun 20 13:52:11 well, if users are creating the content, you can do one thing differently than say google does - pay users for content Jun 20 13:52:21 this is one recommendation in jaron lanier's book Jun 20 13:52:23 it might be the easy answer, but yeah - what you need is money Jun 20 13:52:59 therue: Was that an answer to my question? O.o Jun 20 13:53:12 no i was just rambling Jun 20 13:53:13 hehe Jun 20 13:53:26 Then, what do you want to build? Jun 20 13:54:10 nothing specific really.. i was just thinking about this problem from a broader sense Jun 20 13:54:25 'cuz i've always been curious about it Jun 20 13:54:32 so its just a rue :) Jun 20 13:54:40 Yeah, someone on Reddit used AppBrain to pay users... Jun 20 13:54:48 For installing his app. Jun 20 13:54:56 pay for advertising, pay for content, pay for endorsement Jun 20 13:55:00 with apps that simply functions like an application for the user... to help simplify their life.. ya that's simple.. if it's useful people will use it Jun 20 13:55:02 I'm not sure it worked out too well. Jun 20 13:55:14 opps i used rue wrong Jun 20 13:55:25 but if the app requires a lot of data or user interaction then man it's complicated lol :\ Jun 20 13:55:26 problem is, purchased users tend to be relatively low 'quality' Jun 20 13:55:33 g00s: did you mean ruse? Jun 20 13:55:39 heh Jun 20 13:55:49 Leeds: Never bought users. :) Jun 20 13:56:02 well marketing is by definition buying users Jun 20 13:56:07 flan3002: never paid for advertising? Jun 20 13:56:12 https://sellanapp.com/ Jun 20 13:56:17 this is a pretty interesting site Jun 20 13:56:21 not sure if you guys have seen it Jun 20 13:56:23 Leeds: Nope, though I should. Jun 20 13:56:43 it's like kickstarter but for apps Jun 20 13:56:58 but the pledgers get a part of the revenue if the app becomes successful Jun 20 13:57:09 and the money goes to developing the app, to promotion, advertising, etc Jun 20 13:57:09 my take, to be honest, mostly boils down to me being a techie, let someone else pay me and work out where to get the users... this may be part of the reason why I'm not yet a millionaire Jun 20 13:58:11 I have to study an UI for a 10.1 tablet. any resource / website / forum /g+ community can help? (I suck at design) Jun 20 13:58:40 You have to what? What do you understand as studying an UI? Jun 20 13:59:02 gdrc this may help https://docs.google.com/file/d/0Bz3qX4EBhUvwZWlHekI3Y0wxSUk/view?sle=true&pli=1 Jun 20 13:59:41 my current 'thing' is vaguely groupon-like... just two of us, me doing all the technical, and my boss doing everything else... he's been going out and signing up merchants, but as far as I can tell he's got pretty much no idea how to get 'mass' numbers of users Jun 20 14:00:31 g00s: many thanks Jun 20 14:01:32 Are there design guidelines how to behave on no internet connection? Jun 20 14:02:19 hm, yeah ... Jun 20 14:02:25 scattered here and there Jun 20 14:03:26 hm, this is pretty interesting http://www.androidpolice.com/2014/06/19/facebook-went-to-africa-to-make-its-android-app-faster-slimmer-and-more-reliable/ Jun 20 14:03:48 g00s I saw that Jun 20 14:03:48 "Facebook has started using the Google-built WebP format for images on mobile, reducing image sizes by 25-35% over JPG, and 80% compared to PNG" Jun 20 14:05:00 If you see the twitter app, and then try to swipe the ViewPager (I guess thats what they use), the bottom border of the tabs also swipe along with the panes. If you know what I mean, how is that done ? So the bottom border transitions like scrollable tabs but on fixed tabs. Jun 20 14:05:13 "utilizing Google Play’s ability to upload multiple APKs for different Android OSes and screen resolutions. This allows us to exclude excess code for features or resources not supported on certain mobile devices.", uh sounds like a pain Jun 20 14:05:36 g00s: can be automated... Jun 20 14:06:26 JakeWharton hey the FB app uses okhttp :) Jun 20 14:07:55 at this point, id be surprised if it didnt Jun 20 14:07:55 that's gotta make you feel pretty good Jun 20 14:08:17 any idea guys ? Jun 20 14:08:18 If i make two apps with a shared user id, does the package name need to be the same to get them to access the same shared preference file? Jun 20 14:08:26 Hi all, I am trying to capture audio from a BT Device connected to Android, instead of using the device's mic. Here's the code: pastebin.com/JG8gmrYq However, the app still receives the input from the mic! Any hint on how to deal with AudioRecord through Bluetooth? Jun 20 14:09:49 g00s interesting, never heard of webp until now Jun 20 14:10:03 it never really took off :P Jun 20 14:10:13 what? Jun 20 14:10:16 of course it took off. Jun 20 14:10:25 probably 1/4 of all images you open in your browser are webp Jun 20 14:10:31 do people use it for porn? Jun 20 14:10:36 yes :P Jun 20 14:10:45 * flan3002 chuckles. Jun 20 14:10:52 also all Google services use it ;) Jun 20 14:10:54 the only reason I ever get any WebP is due to Google's compression proxy... Jun 20 14:10:54 What haven't people used for porn? Jun 20 14:10:55 then it'll probably survive :) Jun 20 14:10:58 and all sites that use Google Page Speed Jun 20 14:10:58 do package names have to be unique to publish into the playstore? Jun 20 14:11:05 Syzygy: yes Jun 20 14:11:06 and your mobile Chrome on Android will receive most of stuff in webp :P Jun 20 14:11:20 Leeds, even when they're using the same shareduserid? Jun 20 14:11:41 Syzygy: the package name is the unique identifier for an app Jun 20 14:11:42 any suggestions on how to disable scrolling in GridView? Jun 20 14:12:06 htc one m8 rooted. busybox fails to install, because /system is writable only from recovery; any idea ? changing kernel sounds complicated to me (i would like at least to save original kernel to restaure it). I tried to tell busybox to install to /data/local/bin, but it refuses, and does not tell why. In case it's because that folder is not in $PATH, i am trying to alter PATH, but i don't find in which file it's set Jun 20 14:12:07 Mavrik from what i read, google uses it, but its adoption has been low Jun 20 14:12:21 wel. Jun 20 14:12:35 doublehp http://forum.xda-developers.com/showthread.php?t=2701816 Jun 20 14:12:42 you're getting webp served due to compression and pagespeed proxies Jun 20 14:12:54 whatever you mean by "adoption" is another thing tho ;) Jun 20 14:13:10 (for us it saved like 1/3 of bandwidth cost when we started serving app resources with it) Jun 20 14:13:42 MohammadAG: 1st April ... Jun 20 14:13:59 (of course all images from users are still uploaded in PNG/JPG and most people don't ever notice the format change) Jun 20 14:13:59 doublehp your point? Jun 20 14:14:24 doublehp, you're in the wrong channel. Jun 20 14:16:13 MohammadAG: so i insmod, remount rw, and that's all ? Jun 20 14:16:22 doublehp yeah Jun 20 14:16:28 doublehp at least it worked fine for me Jun 20 14:18:39 MohammadAG mirror is on maintainance, can you DCC (or email) me your local backup ? Jun 20 14:20:18 doublehp http://mohammadag.xceleo.org/wp_mod_m8.ko Jun 20 14:20:41 I'm trying to create shared preferences shared between several apps without a master/slave system. any idea how i could do that? Jun 20 14:20:45 or that ... Jun 20 14:21:00 Can I do something like performClick on notification in Robolectric test? I want to peekNextStartedActivity for when notification is clicked. Jun 20 14:21:28 why do all the viewpager tutorials declare newfragment method in fragments as static? Why is that even necessary? Jun 20 14:21:30 my current approach is using sharedUserIds, but from what I found out so far, it boils down to a master/slave system where all data is lost if the master is uninstalled Jun 20 14:21:41 jamesson just a convenience Jun 20 14:21:59 since you have to do some ugly boilerplate of stuffing a bundle and calling setArguments Jun 20 14:22:10 put that in a static method and hide it Jun 20 14:22:22 g00s: but how is that more convenient? Jun 20 14:22:40 g00s: half the time the vars are not static so eclipse is upset Jun 20 14:22:42 jamesson well, sprinkle Bundle stuffing code all over your app if you prefer Jun 20 14:23:26 g00s: sorry, all over my app? the only place I need it is inside the fragment, no? Jun 20 14:23:31 eclipse upset? the code is either correct or not, sounds more like a java problem Jun 20 14:24:15 MohammadAG: worked. Thank you very much. Jun 20 14:24:26 yw :) Jun 20 14:24:40 Is there a way to get truly shared shared preferences? where no app can just delete them while the other one is still there Jun 20 14:25:24 g00s: well, right, because the variables outside the method are not static, but the method is. Jun 20 14:26:04 jamesson http://developer.android.com/reference/android/app/Fragment.html Jun 20 14:26:16 there is a code snippet right there Jun 20 14:26:24 public static DetailsFragment newInstance(int index) Jun 20 14:26:50 if you are accessing variables that are not static, you aren't writing legit java Jun 20 14:26:56 g00s: I only put it that way because of eclipse java lint, but youre right, it is a java problem. But it comes up so often in tutorials that I wonder if I'm still missing something. Like, surely people would not make so many obvious goofs? Jun 20 14:28:03 g00s: at least 50% of the time, the method is static but the vars are not. Like, here; https://github.com/thecodepath/android_guides/wiki/ViewPager-with-FragmentPagerAdapter Jun 20 14:28:43 jamesson time to learn java ;) Jun 20 14:29:27 g00s: You can't even tell me if I'm misinterpreting that tutorial? Jun 20 14:30:24 i think so? Jun 20 14:32:22 jamesson: i think i see where you are going wrong Jun 20 14:32:42 jamesson: in your static newInstance method you are accessing static variables of your fragment and setting them? Jun 20 14:33:45 Napalm:well, as I said, the tutorial in question does not declare the variables as statitc, but _does_ declare the method as static Jun 20 14:33:55 Napalm: and, I see that a lot Jun 20 14:33:59 thats correct Jun 20 14:34:10 because you are not setting the variables from the newInstance Jun 20 14:34:29 Napalm: sure I am Jun 20 14:34:36 then thats a problem Jun 20 14:34:57 jamesson: those variables should not be static Jun 20 14:35:43 jamesson: want me to explain whats happening and why? Jun 20 14:36:21 Napalm: please. And again, if you can reer to that tutorial, and if possible how to "correct it, that would be great. Jun 20 14:36:29 *refer Jun 20 14:36:48 busybox still fails to install. Jun 20 14:37:00 jamesson: which tutorial specifically Jun 20 14:37:15 Napalm: https://github.com/thecodepath/android_guides/wiki/ViewPager-with-FragmentPagerAdapter Jun 20 14:37:40 jamesson: nothing needs correcting Jun 20 14:38:04 doublehp try #android-root Jun 20 14:38:29 jamesson: the reason why you use newInstance and setArguments is so the platform can reconstruct your fragment when its destroyed.. the same way you have instance data on an activity Jun 20 14:38:32 g00s: thet don't answer Jun 20 14:38:40 doublehp this is the wrong channel Jun 20 14:39:16 Napalm: OK, again, static method newInstance gets and sets non-static variables title and page. According to you guys and Eclipse, that's bad Java Jun 20 14:39:22 no it doesnt Jun 20 14:39:26 look again Jun 20 14:39:33 FirstFragment right? Jun 20 14:39:42 Napalm: yes Jun 20 14:39:48 its not setting them Jun 20 14:40:00 in the static method Jun 20 14:40:26 jamesson: its adding them to the Bundle and that is getting attached to the Fragment Jun 20 14:41:06 then later when the fragment is actually created by the FragmentManager its onCreate method is called and it pulls the state from the arguments and populates the member instance variables Jun 20 14:41:35 Napalm: right, but doesnt it get them from the non-static vars (in the putInt and putSting arguments)? Jun 20 14:42:06 Napalm: and, more to the point, if what you say is the case why does Eclipse complain about it? Jun 20 14:42:07 "gravity is ignored when tile mode is enabled" I just enabled this and my cat floated out of the window. Feature or bug? Jun 20 14:42:30 jvrodrigues: The question is, did it land on its feet? Jun 20 14:42:31 jamesson: the variables where never static Jun 20 14:42:35 jamesson: pastebin your code Jun 20 14:43:05 Napalm: I copied that tutorial. Jun 20 14:43:14 Napalm: verbatim Jun 20 14:43:51 jamesson: the simple premise you need to work with is never make a instance variable static unless its a literal Jun 20 14:44:34 jamesson: if its verbatim that class then it wouldnt be a problem Jun 20 14:44:39 Napalm: Right, which is what he did. But, then it appears to me (and Eclipse) he attempted to access it with a static method Jun 20 14:44:50 ahhh Jun 20 14:44:53 i see the problem Jun 20 14:44:56 lol Jun 20 14:45:24 its detecting the class member variables instead of the paramters, as they have the same names Jun 20 14:45:39 change the parameter names in newInstance Jun 20 14:45:47 and then in the args.put* lines Jun 20 14:45:49 Napalm: OK, so now we progress. Those are in fact not the variables Jun 20 14:46:00 what? Jun 20 14:46:14 the code is fine Jun 20 14:46:21 its eclipse not detecting the scope correctly Jun 20 14:46:43 The arguments of putInt and putString are not the variables, right? Jun 20 14:47:04 i dont follow, you mean not the member instance variables Jun 20 14:47:15 Napalm right Jun 20 14:47:34 correct, they are the parameters Jun 20 14:49:22 Napalm: so change in args.putint/putString, and where else? Jun 20 14:49:55 the newInstance method Parameter names and in args.putInt and args.putString.. thats it Jun 20 14:50:37 Napalm: OK, but now eclipse says those veriables cannot be resolved? Am I OK just suppresing lint for that file? Jun 20 14:51:45 no, just rebuild it Jun 20 14:51:51 either that your names are wrong Jun 20 14:52:08 pastebin your function Jun 20 14:53:59 Napalm: http://pastebin.com/qVk4JA1E Jun 20 14:54:28 well duh Jun 20 14:54:36 your parameter is called message Jun 20 14:54:49 and your use to something different Jun 20 14:54:53 someone ever heard of a very weird bug where String.format("some text %1$s some other text", someObject) sometimes throw java.util.UnknownFormatConversionException, but only when the russian locale is the default (ru_RU) ? Jun 20 14:55:56 Napalm: well, thats not the line that gives the error Jun 20 14:57:54 Napalm: sorry, what did you mean? Jun 20 14:58:20 jamesson: http://pastebin.com/FUBTWZ6Q Jun 20 14:59:11 jamesson: sorry Typo.. try this one http://pastebin.com/r7Dw7qZV Jun 20 14:59:29 lol Jun 20 14:59:33 and another Jun 20 14:59:34 sorry Jun 20 14:59:54 Does anyone here use the genymotion emulator? Would you happen to know if it's possible to limit the bandwidth of the emulator? Jun 20 14:59:58 jamesson: http://pastebin.com/wN3gb4yC Jun 20 15:00:13 thats what i get for typing in notepad Jun 20 15:00:31 highcup: you want to use Charles for that Jun 20 15:00:41 Yea I was gonna ask about putInt messag =P Jun 20 15:01:13 Ahh thanks Napalm, checking it out now. Jun 20 15:01:47 g00s: we know. We work with them, Twitter, and Google on features and bugs Jun 20 15:01:53 highcup: long press on the wifi connection in GenyMotion and choose Modify Network.. check Advanced and you can enter the ip and port for the proxy Jun 20 15:02:40 * mattblang really wishes he could use Genymotion at work Jun 20 15:03:21 Napalm: looks fine so far, ty so much! Jun 20 15:04:12 mattblang, any reason why not? Jun 20 15:04:57 highcup yeah, they have use on an already virtualized system using VDIs Jun 20 15:06:12 mattblang did you talk to management ? Jun 20 15:06:53 its the 'devs need special environments' talk Jun 20 15:07:12 'difficult conversations', vol 2 Jun 20 15:08:28 g00s yeah, sent an email to my boss, who said he will bring it up to his boss. i think they might be afraid of the, "he has one I want one" domino effect. but web dev is one thing, mobile dev is completely another. Jun 20 15:08:55 g00s which most of the developers are web. there is only me on android, and one guy on ios right now Jun 20 15:09:12 how is the ios guy faring ? Jun 20 15:09:39 g00s he actually does have a standalone, since they haven't virtualized osx (is that even legal? not sure) Jun 20 15:09:47 depends on how many beans he eats Jun 20 15:10:04 oh, oh, *faring* Jun 20 15:10:46 mattblang well, so one mobile dev already has a sane dev environment, you aren't the first then! Jun 20 15:11:01 Is it possible to open an apk package using the android vm that comes with the eclipse/ADK ide? Jun 20 15:11:54 g00s yeah, and he actually would love for me to get a Mac too because I want to learn the ios side to help out, which he needs because he is a software architect that is on some other projects besides the mobile. Jun 20 15:12:03 The android VM? Do you mean the emulator, BWestOz? Jun 20 15:12:05 BWestOz: open? Jun 20 15:12:07 try it :P you can copy files to the vm filesytsem via eclipse Jun 20 15:12:10 ie open an android program created outside the ide? Jun 20 15:12:23 you can install and run it, if that's what you mean Jun 20 15:12:39 g00s it pains me to watch him change something in the UI and build to the simulator, because I think about me having to rebuild to a physical device. so much time wasted Jun 20 15:13:26 how can I install and run an apk file in the emulator? Jun 20 15:13:42 adb install foo.apk Jun 20 15:13:54 just like installing any apk Jun 20 15:15:40 Leeds, thank you. I've never installed an apk that way. Will that make it appear as an icon when I run the emulator? Jun 20 15:15:53 Yes, it should. Jun 20 15:15:59 thanks Jun 20 15:16:00 BWestOz yeah Jun 20 15:16:01 the emulator is a device... it installs it on the device Jun 20 15:16:04 it's not rocket science Jun 20 15:19:00 after 2hrs 45 min I will give an introductory lecture in #tclTraining about Tcl/Tk . this can help you in learning AndroWish Jun 20 15:19:46 mattblang: legal? who knows, but Ive done it without too much difficulty. Whether it can support development the way I have it....? Jun 20 15:20:00 mattblang: but you mean to say you cannot do ios dev on PC? Jun 20 15:20:11 Says "error: more than one device and emulator" Jun 20 15:20:16 jamesson: you can't, unless it runs OSX for some reason :P Jun 20 15:20:43 p_l: another reason I am glad i didnt get involved with that :) Jun 20 15:20:54 jamesson, p_l I have a setup at home with VMWare that works well. gave it half my i7 and 4 gigs. i just mean at work. we have to keep it legit at work Jun 20 15:21:01 BWestOz: how about a smidgen of initiative? Jun 20 15:21:17 p_l: I remember 10 years ago I tried to jailbreak an iphone. Worst 2 weeks I ever had Jun 20 15:21:28 eh? Jun 20 15:21:59 BWestOz: long before there were simple tools for it Jun 20 15:22:07 jamesson: 10 years ago iphone wasn't yet there, iirc Jun 20 15:22:11 * flan3002 hopes jamesson doesn't *mean* those 10 years. Jun 20 15:22:22 p_l: whatever, awhile ago Jun 20 15:22:38 p_l: I'm sure theres some freudian repression going on there Jun 20 15:22:45 hehehe Jun 20 15:23:59 ugh, it's probably frigin blue stacks. I'll turnit off Jun 20 15:24:26 how does one build a distributable apk in android studio now? Jun 20 15:24:47 shekibobo using gradle configs Jun 20 15:24:52 not necessarily signed, just something that I can distribute to an internal team Jun 20 15:25:04 shekibobo oh, just check your build folder then Jun 20 15:25:18 mattblang: no apks in the build folder Jun 20 15:25:53 shekibobo check the one in your main module Jun 20 15:26:49 mattblang: just a bunch of cache.xml files and exploded aars Jun 20 15:27:03 shekibobo interesting. i always get a -debug and -debug-unaligned.apk Jun 20 15:28:07 mattblang: what's the path for that? I can't find it anywhere in my project Jun 20 15:28:32 shekibobo for me it is project\module\build\outputs\apk Jun 20 15:29:27 mattblang: yeah, I don't have anything called 'module' Jun 20 15:29:53 shekibobo sorry, when I say module i just mean the main module under your project root Jun 20 15:30:15 skekibobo for me, I just have one, so it is named the same name as my project folder, which is also my app name Jun 20 15:30:46 I've got root/build and root/app/build Jun 20 15:31:05 root/build has the dex-cache and aars Jun 20 15:31:24 shekibobo just search your project root folder for *.apk. if there isn't one and you have deployed it to a device, im not sure. i dont recall doing anything special to set it up Jun 20 15:31:30 root/app/build has generated files for res and source, but no apks in them Jun 20 15:32:24 hmm Jun 20 15:32:25 found them Jun 20 15:34:18 is there a fire phone channel - does anyone knows? Jun 20 15:34:27 root/app/build/outputs/apk Jun 20 15:34:52 According to netsplit search, there is no such channel. I may have searched for the wrong words though. Who manufactures it? Jun 20 15:34:57 lots of directories in there that didn't show up in AS Jun 20 15:35:33 flan3002, amazon? Jun 20 15:35:55 or - does anyone know how to run fire-phone emulator in android sdk? Jun 20 15:36:13 What do you want to do? Jun 20 15:36:34 flan3002, run an emulator - test apps? Jun 20 15:38:02 ddsss: Uhm. I've never used that phone. Anything special about it why the stock rom won't fit it? Jun 20 15:38:39 flan3002, huh? no - amazon just came out with this stupid thing called "fire phone" which is based on Android sdk. Jun 20 15:38:59 Well, they sure got an image laying around somewhere, no? Jun 20 15:39:13 flan3002, in fact their sdk is just an addon to Android sdk. Jun 20 15:39:49 flan3002, but I dont understand how can I run an emulator and see "dyanmic perspectives" or what not. Jun 20 15:40:28 Dynamic perspectives? Jun 20 15:41:14 flan3002, that's how they call their UI or something. Jun 20 15:41:35 Well, they should provide an image somewhere... Jun 20 15:41:50 I won't search that one for you though... Jun 20 15:42:02 * flan3002 should stop using so many ellipses... :) Jun 20 15:46:09 shekibobo sweet! Jun 20 15:51:53 weird, was losing connection when I tried to su in adb shell. closed android studio and It doesn't happen Jun 20 15:52:53 Don't try to understand why adb doesn't work at times. Or if you do, please tell me why. :/ Jun 20 15:59:19 I'm using sharedpreferences to save some profile settings. It works fine if the activity doesn't get destroyed, but messes up when onCreate() gets called. Does sharedpreferences only exist for as long as the activity? Jun 20 16:00:06 helichopter: maybe try using getApplicationContext()? Jun 20 16:00:29 are you comitting your changes? Jun 20 16:01:08 helichopter: Usually, they live as long as the app is installed. They can of course be cleaned manually, but you're probably doing something wrong. Jun 20 16:01:42 snooplsm: yeah i'm committing them afaik, but where would I use getApplicationContext(), in the sharedpreferences constructor? Jun 20 16:02:13 man, just had to figure out how to root my phone to delete /data/data/package.name that wasn't deleted during an uninstall and prevented me from installing my app, from Android Studio or Play Jun 20 16:03:55 mattblang: Congratulations. Sort of. :) Jun 20 16:04:30 flan3002 lol, thanks. just kind of annoying that it happened. im glad I have root now anyway. I really didn't want to factory reset Jun 20 16:05:04 It shouldn't have happened. Do you know why? Jun 20 16:06:32 flan3002 not exactly. i know it happened after a recompose (we are all on virtualized systems) which knocked my Android Studio back to an older version. Jun 20 16:07:00 Oh shit. Where do you work? Why virtualizatin? Jun 20 16:07:13 flan3002 had to update it back up, but ran into some problems, somewhere in all of that it happened. it was consistant whatever it was. happened to my galaxys4, and the work nexus 4 Jun 20 16:07:53 mattblang: You weren't able to use adb to delete it? Jun 20 16:09:57 flan3002 work at a research center at a university. it has major benefits for IT, but sucks for developers, especially me on mobile Jun 20 16:10:01 flan3002 not without root Jun 20 16:25:34 any idea why a relativeLayout is respecting a margin value on 4.x, but not on 2.x? Jun 20 16:26:09 guys, which Cloud service do you use for you client-side application? I mean something where I can put/read my data. I don't want to develop backend myself Jun 20 16:26:25 The standard Google Drive? Jun 20 16:26:37 Or not per device? Jun 20 16:26:39 I mean database Jun 20 16:26:48 to communicate between Device Jun 20 16:26:51 and Cloud Jun 20 16:27:00 what type of database are you looking for Jun 20 16:27:04 maybe something like NoSql Jun 20 16:27:17 ive tinkered with mongohq Jun 20 16:27:53 mattblang: Is it stable? Jun 20 16:28:04 woozly worked well for my tinkering Jun 20 16:28:21 mattblang: okay! thank you.. will try Jun 20 16:28:25 woozly seems to be pretty popular. I think it is the top heroku add on for nosql Jun 20 16:28:38 mattblang: oh.. wow Jun 20 16:41:39 this is really weird. i have an activity with a framelayout that I enjoyed a fragment into. that fragment's parent layout is a relative, with margins. On this Galaxy Ace running 2.x, the left margin of that relative doesn't seem to do anything. the right seems to work though Jun 20 16:41:46 *enjected Jun 20 16:46:04 busybox uses hardlinks by default; could it work with symlinks ? Jun 20 16:48:23 If I want to match phone contact book with my app user system, how could I do that? Jun 20 16:53:35 Napalm: still there? Jun 20 16:53:43 yus Jun 20 16:54:49 what is the purpose of public static final String EXTRA_MESSAGE = "EXTRA_MESSAGE "? Jun 20 16:55:00 hi, im embedding a vimeo video with an iframe in a webview Jun 20 16:55:24 the player shows but when I click on the play button I get E/webcoreglue??? Should not happen: no rect-based-test nodes found Jun 20 16:55:40 jamesson: It allows you to reference the string via a variable, therefore catching typos. Jun 20 16:56:07 flan3002: er, sorry? Jun 20 16:56:11 s/variable/constant Jun 20 16:56:36 jamesson: Are you asking why it is a variable or what the content means? Jun 20 16:57:25 flan3002: I am asking what its used for. The tutorial I got the original code from doesnt include it Jun 20 16:57:43 Its from some code Napalm helped me with Jun 20 16:58:10 jamesson: It looks like a key for a Bundle. Those are key-value-stores which are usually passed with Intents. Jun 20 16:58:41 jamesson: And having a global constant like that allows for easy reference to it (especially with IDEs) and catches typos at compile-time. Jun 20 16:58:48 (Instead of typing the string each time) Jun 20 16:59:17 git clone is no fun with 5kb/s. :/ Jun 20 16:59:23 flan3002: so you are saying, it is best practice to include something like that for every variable passed into onCreate? Jun 20 16:59:34 Yes, essentially. Jun 20 16:59:39 excuse me, newInstance I meant to say Jun 20 17:00:09 I don't know what you're having there specifically, but you should minimize the use of string literals in your methods. Jun 20 17:00:40 Alright, got to go. :) Jun 20 17:03:46 Napalm: what's the EXTRA_MESSAGE for? Jun 20 17:03:58 What do you think would be a reasonable wrapper for an event object to use on an event bus? Event class including an enum plus string for message? Jun 20 17:13:50 Why is android studio so slow? Jun 20 17:14:33 to force you to upgrade your hardware Jun 20 17:14:48 that's how our industry works Jun 20 17:19:13 is it slow ? Jun 20 17:19:38 running gradle in daemon mode ? Jun 20 17:28:22 I have a simple LinearLayout containing two EditText's. Now, I'd like to center these two views inside the LinearLayout. I've been searching the docs for quite a while now, but still can't find how to do this probably simple task. Anybody can get me in the right direction to look info about htis? Jun 20 17:29:00 gordon_, its running in the default mode i guess Jun 20 17:29:03 Just downloaded it Jun 20 17:29:30 Or is, for that simple task, better to use a RelativeLayout? Jun 20 17:31:07 Strat: look into android:gravity and android:layout_gravity Jun 20 17:32:28 ok thnx shmooz Jun 20 17:32:35 i'll look it up Jun 20 17:38:05 wow android studio is taking like 1 gb of ram Jun 20 17:40:52 my app’s icon is smaller (both height and width) than usual android icons. what could I be doing wrong in the creation process? Jun 20 17:51:20 how can i force a listview to redraw? i have invalidated the view and called notifyDataSetChanged() on the adapter, but getView() is never called again for the list items Jun 20 18:05:24 How to know what is the biggest object that take the RAM? Jun 20 18:05:51 my app take 2 MegaByte :( Jun 20 18:08:07 2 meg of ram? that's nothing Jun 20 18:08:25 are you sure? Jun 20 18:13:00 2mb is nothing Jun 20 18:15:32 for some unknown reason, Android studio can't find startSupportActionMode. Is it in appcompat or support-v4? Jun 20 18:17:08 ah nvm Jun 20 18:26:58 2MB is a lot :/ Jun 20 18:26:59 :p Jun 20 18:27:14 somebody here got powermock with android studio and gradle to work? I get hamcrest dex errors Jun 20 18:31:17 could somebody please make sure my comments are accurate? http://pastebin.com/nF74nrkJ Jun 20 18:39:52 Hello. I'm using a VideoView, and I'm setting a onInfoListener info. I'm getting an info code of 951, which isn't documented, how do I find what this info code means? Jun 20 18:53:42 Napalm: there? Jun 20 18:53:54 yes Jun 20 18:54:43 can you tell me if all my comments are accurate? http://pastebin.com/nF74nrkJ Jun 20 18:56:01 Napalm: can you tell me if all my comments are accurate? http://pastebin.com/nF74nrkJ Jun 20 18:56:11 i have better things to do. Jun 20 18:56:13 read the docs Jun 20 18:56:17 and confirm it for yourself Jun 20 18:56:27 Napalm: ok thanks anyway for all your help earlier Jun 20 19:05:52 lamar, hamcrest gets added duplicately; write a buildscript to filter out dupes Jun 20 19:09:52 @pfn thanks for the answer. I was suspecting that based on my googleing. I used tried different combinations of "exclude module" in the dependencies without success, though. Are there any usefull tutorials on how to write such a buildscript because I clearly have no clue about that? Jun 20 19:09:52 *-used Jun 20 19:10:35 lamar, read the docs for gradle... Jun 20 19:14:52 anyone got an fsck.ext4 to send me ? Jun 20 19:16:11 If you have a worker fragment that is setRetainInstance(true), so that it survives configuration changes, do you have to do anything to it so that it will be garbage collected? Or does the framework just "know" when its containing activity is truly finished/destroyed/not-to-be-recreated-again? Jun 20 19:16:54 Like if you call finishActivity() or finishActivityWithResult()? Jun 20 19:17:18 highcup, you have to remove the fragment from your fragmentmanager, of course Jun 20 19:17:36 presuming you added it to begin with Jun 20 19:18:11 pfn: I did add it, yes. So before finish() one should remove those sticky fragments manually.. Jun 20 19:19:55 Hello Jun 20 19:20:37 Wanted to ask - can I add javadoc jar package to a library in Android Studio? Jun 20 19:21:06 tbh, I can't find it anywhere - and google hits seem to mention a way thats absolete in 0.5+ Jun 20 19:23:01 ironhalik, just attach it to the library in project structure Jun 20 19:23:29 as in, right next to the jar the docs are for? Jun 20 19:24:02 I've got RootTools.jar and RootTools-docs.jar in /libs Jun 20 19:24:09 and added them to project structure Jun 20 19:24:42 hmm, Ill need to check in ADT - not every class/method had a doc entry Jun 20 19:25:05 hmm, I guess there's no way to add it in project structure Jun 20 19:25:08 * pfn shrugs Jun 20 19:25:38 the build importer adds javadoc for me Jun 20 19:25:49 i.e. when importing from gradle, maven, or sbt Jun 20 19:26:18 pfn: can you point to any javadoc, or do you mean android docs? Jun 20 19:26:47 any javadoc Jun 20 19:26:55 it's added automatically when using maven/ivy dependencies Jun 20 19:27:29 Im kinda new to that newer stuff :> Jun 20 19:52:29 I still need help with the view pager. Sometimes it just crashes saying that the parent already has a child. But I’m not assigning any child. Jun 20 19:55:39 marrrk, inflate(...., false) Jun 20 19:55:50 I know, I’m not inflating Jun 20 19:55:57 I’m generating the views programatically. Jun 20 19:56:03 And return them. Jun 20 19:56:08 I don’t attach them to a parent. Jun 20 19:56:24 return the same views for a given position Jun 20 19:56:34 cache them you mean? Jun 20 19:56:36 yes Jun 20 19:56:54 lazy val? Jun 20 19:57:04 dunno, depends on what's necessary there Jun 20 19:57:28 I tried with a lazy val and it still gave the same error, I think but I’ll try again. Jun 20 19:58:58 I’m regretting doing my views with scaloid. Jun 20 20:00:07 I haven't found anything compelling about using their dsl Jun 20 20:01:27 I liked how easy it is to get references to views and setting onclicklisteners Jun 20 20:02:06 But I like the separation of just the layout from the rest that comes with XML. Jun 20 20:02:25 I’m too lazy now to change it back, but I probably should. Jun 20 20:02:48 I still haven’t made typed resources work, it should be really easy I suppose but I must be missing something crucial. Jun 20 20:03:22 I think if I could easily get a hold of the views it would be nice. Also I like the implicit context a lot. Jun 20 20:05:38 pfn: Do you have some larger project on github where you’re using Scala with Android? I’d like to see how you do things. Jun 20 20:07:59 marrrk, qicr, keepshare, etc are all examples of scala on android Jun 20 20:08:24 Good ones? Jun 20 20:08:28 yes Jun 20 20:08:33 Cool Jun 20 20:08:41 Ah it’s by you :) Jun 20 20:09:01 Are you on qicr right now? Jun 20 20:09:43 not right now, I broke my moto x yesterday Jun 20 20:10:26 Is it on the app store? Jun 20 20:11:11 Woah, no permissions? Not even Internet? Jun 20 20:11:26 for what, qicr? of course it has internet permissions Jun 20 20:11:42 when I installed it just now it said „no special permissions“ Jun 20 20:11:49 well, internet is no special permission, heh Jun 20 20:12:12 apparently not Jun 20 20:12:35 I just remember searching for an epub reader for 20 minutes that didn’t need internet permission, so at some point it seemed special at least Jun 20 20:15:09 Ah, what a joy to look at some nice Scala stuff. This is getting me motivated again. I will rewrite the fucking layouts now. Jun 20 20:15:55 But I’m not even sure, that’s the problem. Jun 20 20:19:32 nice... heh, I need to do a pretty large refactor of qicr Jun 20 20:19:57 I saw that you have all your fragments in one file, do you find that practical? Jun 20 20:20:10 is there any kind of progress tracking built in to retrofit? Jun 20 20:21:48 marrrk, for relatively small classes, yeah Jun 20 20:29:55 marrrk, in reality, since I've started using an ide, it's less practical; it used to be handy that everything was in a single file for easy nav Jun 20 20:30:09 Were you vimming before? Jun 20 20:30:38 yes Jun 20 20:31:51 I’m not good enough with vim to be too annoyed with the emulation in ideavim Jun 20 20:32:01 So I really like using that. Jun 20 20:32:41 yeah, ideavim is good for me Jun 20 20:33:37 does anyone know how to cause android.database.sqlite.SQLiteDatabase to log queries? Jun 20 20:34:15 read the source Jun 20 20:35:14 i didn't think it was generally possible Jun 20 20:35:25 there are a few loggers for jdbc that act as proxies for logging Jun 20 20:36:50 zerowaitstate there are some helpers here for dumping the results of queries http://developer.android.com/reference/android/database/DatabaseUtils.html Jun 20 20:42:51 :/ iosched only works in portrait Jun 20 20:43:02 wat Jun 20 20:43:28 yoops, i fucked up Jun 20 20:45:35 noob Jun 20 20:45:57 glad that there are 2 talks on advanced android UI stuff this I/O Jun 20 20:46:53 Is anyone here familar with using the Android Testing Framework (or another framework like espresso)? I’m having an issue where my assertions are being ran by the test runner before the UI thread has finished running. Jun 20 20:49:39 android studio is not so bad, really Jun 20 20:59:51 hm. the iosched actionbar has a main spinner that has themes/topics/types. when you select one, another space under the AB has spinners foe the categories you did not select. in landscape mode, there is definitely room to put this all in the AB, kinda looks silly Jun 20 21:00:35 ton of wasted space Jun 20 21:02:49 * g00s wonders if they did it like that because programmatically things didn't work out well organizing the actionbar Jun 20 21:07:27 Aha, now I understand it finally. I need the implicit. Jun 20 21:07:48 http://pastebin.com/vtR327mL Jun 20 21:22:24 ive got layouts for 4 or 5 screen sizes in portrait. they are essentially all the same, except for sizes and padding, etc. I should probably turn them into just one and use values instead huh? Jun 20 21:23:37 mattblang yeah :D Jun 20 21:23:48 ( DRY ) Jun 20 21:24:01 g00s yeah, this is really wet and annoying atm Jun 20 21:24:39 (can't think of anything good for WET to stand for) Jun 20 21:25:37 pfn, why? required: Int ERROR: view.findView(TR.titlebar_icon) Jun 20 21:28:58 g00s: thanks Jun 20 21:30:49 marrrk, import TypedResource._ Jun 20 21:31:06 But you’re not importing that in your main activity Jun 20 21:31:14 I think Jun 20 21:32:08 it's imported Jun 20 21:32:21 at the same time, an older version of my AndroidConversions class had an implicit for me automatically Jun 20 21:32:38 Ah, maybe that’s it. Jun 20 21:32:48 anyway, seems to work now, thanks Jun 20 21:34:56 I stole your AndroidConversions, they are much easier for me to understand and extend than the scaloid stuff. Jun 20 21:41:39 Guys, I have trouble understanding the Context class and it's use withing the android framework. For example, when creating an explicit intent like Intent intent = new Intent(this, someClass.class), I do not get it why the constructor needs a Context as the parameter. Also, the Context reference says a context is an Interface to global information about an application environment. But what is this application environment exactly? Jun 20 21:42:47 Strat well i think the intent ctor grabs the package name or something Jun 20 21:43:11 but context is a big topic, basically a god object to get all kinds of resources and things Jun 20 21:44:17 i have a button below listview Jun 20 21:44:36 and i want to make it not in listview Jun 20 21:46:04 i see Jun 20 21:46:14 i've read about it some more in the past hour Jun 20 21:46:47 a lot was explained on stackoverlfow...almost every answer says that a Context serves as a connection to the application environment Jun 20 21:46:55 but the application enviroment, what is that? Jun 20 21:47:10 is that all resources etc. within the application Jun 20 21:48:07 also, some answers said a Context is a handle to the [b]system[/b] Jun 20 21:49:45 One answer sais: A context is a handle to the system; it provides services like resolving resources, obtaining access to databases and preferences, and so on. An android app has activities. It's like a handle to the environment your application is currently running in. Jun 20 21:50:12 Strat: for that specific Intent constructor, the context used to identify the package Jun 20 21:50:17 So, is a Context now a handle to the system or a handle to the application environment? Jun 20 21:50:36 When you construct an explicit intent, you have to specify the component. And a component is composed of a package and a class name Jun 20 21:50:55 You pass the specific class via the second Class parameter, and the package is determined based on the context you pass in Jun 20 21:50:56 oooooooh JesusFreke, so the 'meaning' of a Context also depends on where you use it? Jun 20 21:51:11 jesus wow Jun 20 21:51:13 It's not the meaning of the context per-say Jun 20 21:51:19 it's just how the context is used Jun 20 21:51:31 that makes a LOT of sense regarding the use of a context inside an Intent constructor Jun 20 21:51:53 thank you soo much JesusFreke ! Jun 20 21:53:10 so let's say, some method in the android framework returns details about some system settings or so, and that same method accepts a Context object as a parameter. Now, if I pass it a context object, that context object refers to the system environment? Jun 20 21:53:29 Is that a plausible example? Jun 20 21:58:47 Strat: There are 4 basic ways to "get" a context. The static Application object is a Context, which is a global context for the application as a whole Jun 20 21:59:26 Both a Service and an Activity object act as a context, and refer to the specific context in which they are both executing Jun 20 21:59:52 And likewise a BroadcastReceiver receives a Context in it's onReceive, which is the context in which it is executing Jun 20 22:01:17 wait, let me make notes of that Jun 20 22:01:49 hello The internet browser render buttons slightly different than the webview … how can i get this same rendering effect Jun 20 22:02:41 okay thank you JesusFreke, it makes a bit more sense now! Still don't understand it completely, but at least I get the big picture right now! :) Jun 20 22:05:45 Hi. I'm trying to get a project working in Eclipse that works perfectly fine using Aide (onboard Android Dev). I keep getting this error: No resource identifier found for attribute 'showAsAction' in package 'com.mypackage' My min sdk is set to 10, and my target is set to 18. i'm using the v7 and v4 support libraries to use the actionbar Jun 20 22:15:12 Hi. I'm trying to get a project working in Eclipse that works perfectly fine using Aide (onboard Android Dev). I keep getting this error: No resource identifier found for attribute 'showAsAction' in package 'com.mypackage' My min sdk is set to 10, and my target is set to 18. i'm using the v7 and v4 support libraries to use the actionbar Jun 20 22:15:50 ive had that before Jun 20 22:16:06 u need to set the default activity to open i think Jun 20 22:20:13 i don't understand. default activity? Jun 20 22:20:31 the activity u want to launch on startup Jun 20 22:20:45 Isn't that handled by androidmanifest Jun 20 22:21:02 yea but in eclipse u gotta set it too i think it messesup sometimes Jun 20 22:21:07 i think* Jun 20 22:21:25 Oh, well, how would I go about doing that in Eclipse, I'm fairly inept at using it so far. Jun 20 22:22:08 in project properties somewhere Jun 20 22:22:13 or run configuration Jun 20 22:22:39 ok, looking Jun 20 22:25:02 Ok, i found the project properties thing Jun 20 22:26:35 I set the default activity to my main activity, but I'm still getting that error. Jun 20 22:27:12 I'm also getting about a 100 "R cannot be resolved to a variable" errors Jun 20 22:27:58 Any other thoughts?\ Jun 20 22:30:11 i dont know how to fix it off hand … but i do remember having the same problems a while back Jun 20 22:30:51 so frustrating. My app works fine in the Aide IDE (on my phone), but I can't seem to get it to load correctly in Eclipse. Jun 20 22:33:34 it can't seem to find any of my "R" Jun 20 22:35:21 qkzoo1978: are you talking about a red squiggly? Or an actual build error? Jun 20 22:35:40 If just a red squiggly, try doing a build, which should cause the R.java file to be generated Jun 20 22:36:16 Ok, well, I have the error I listed above, the 'showAsAction' error, which I think is preventing R from being generated. Jun 20 22:36:26 ah, ok Jun 20 22:36:31 dunno about that one :) Jun 20 22:37:27 Neither do I. I'm using the support library, and it requires you to add a namespace prefix to the "showAsAction" to make it compatible with lower android versions, but that exact line is what's causing it to break. If I omit it, then the actionbar does not show up at all. Jun 20 22:37:49 im trying to get the webview to render elements like buttons, dropddowns etc like the default browser/chrome does (styling wise) how would i go about doing that Jun 20 22:38:38 Might want to check a web dev chat for that jasperthghost? Jun 20 22:39:13 im trying that too Jun 20 22:48:49 why i`m getting an empty string with this? Jun 20 22:48:49 getSharedPreferences(PREF_NAME, MODE_PRIVATE).edit().putString("test", "ok").commit(); Jun 20 22:48:49 Log.i("X", getSharedPreferences(PREF_NAME, MODE_PRIVATE).getString("test", "")); Jun 20 22:49:31 i need to add a permission to use sharedpreferences? Jun 20 22:56:32 how can i get a webview to to render elements like a webbrowser instead of like the app theme Jun 20 22:57:25 Oh thank god I figured it out. Jun 20 22:58:08 Are you telling it to load a specific web page, or a static page that you've created? Jun 20 23:02:21 anybody? Jun 20 23:04:32 Suchorski: you don't need any permission to access the SharedPrefernces Jun 20 23:05:09 my code is supposed to print "ok"in the log Jun 20 23:05:10 right? Jun 20 23:05:36 right Jun 20 23:05:58 but it`s returning "" Jun 20 23:06:37 when i reupload the apk the preferences are cleaned? Jun 20 23:09:07 Suchorski: if you update it, the preferences won't cleaned, but if you uninstall it, the preferences will cleaned Jun 20 23:09:45 my preferences aren`t saved   [Mega Boss] [XP: 13500] Jun 20 23:11:41 Suchorski: use this preferences instead: PreferenceManager.getDefaultSharedPreferences(this) Jun 20 23:12:54 i tried Jun 20 23:12:59 What is the best layout for 4*4 buttons? Jun 20 23:47:27 ok the default android browser renders buttons, dropdowns and checkbox’s different than a webview … how cao i get it to render the same? Jun 20 23:56:39 anyone try to make PagerTabStrip with inages (icons) instead of text? Jun 21 00:44:53 I'm looking to add some sort of content slider/ad to the bottom of a simple app (one activity) for school. I would like to have a static graphic slide up into visibility then disappear after a duration of time. What sort of widget or feature would that be? Jun 21 00:48:11 Hi there. Which one of these is most recent? http://cl.ly/image/2e0z0Y3s1P2H Jun 21 00:59:45 Nexus 5 Jun 21 01:00:24 not that it really matters, those are solely screen configurations Jun 21 01:09:53 anyone know any good sites or books on apps marketing (appreneur) ? Jun 21 01:10:35 http://www.amazon.com/Evil-Design-Interaction-Lead-Temptation/dp/1118422147 is a good read Jun 21 01:11:36 bookmarked it. thanks Jun 21 01:11:56 are there any other books that's more specifically on app marketing that you know of? Jun 21 01:59:34 How to make all my app texts formatted to the default Locale? Jun 21 02:14:50 hi! what options do I have for debugging (unrooted) Android when the OS is booted, but the screen will not power back on and the device no longer shows up for adb? Jun 21 02:17:07 craftyguy: that's a rough one. Not much. Your best bet is to find the keymashing you need to do and see if you can at least boot it into recovery - it won't get you anywhere, but you'll know it's not hw Jun 21 02:18:33 dragorn: thanks for the suggestion. I can successfully boot the OS if I force power down by holding the power button, but occasionally it 'locks up' and will not 'wake up' (even though notification LED blinks, etc) Jun 21 02:19:31 This is the problem that I desperately want to debug: https://code.google.com/p/android/issues/detail?id=64714 **** ENDING LOGGING AT Sat Jun 21 03:00:00 2014