**** BEGIN LOGGING AT Wed Jun 11 02:59:59 2014 Jun 11 03:07:38 the permissions that your app needs ? Jun 11 03:08:58 How do I reset androidmanifesto? Jun 11 03:09:53 there are many times where a bunch of auto-complete entries share the same prefix. for example, if i type "Frag", i get "FragmentActivity", "Fragment", etc. how can i auto-complete up to the furthest point where they all share the same prefix? here it would be "Fragment" Jun 11 03:10:09 in xcode, this is done by pressing tab, but i'm wondering here for android studio Jun 11 03:11:02 whomp_: are you using android studio? Jun 11 03:11:25 If so, you can complete based on camelcase. I.e. for Fragment activity, try simply "FA". or something like FragA Jun 11 03:11:33 for FragmentActivity, I mean Jun 11 03:11:47 JesusFreke, nice, ty Jun 11 03:13:57 whomp_: F*Activity works too ;) Jun 11 03:14:18 rubas androidmanifesto? :D Jun 11 03:14:46 g00s: hahah yeah, spelled it wrong :P but I found out the problem :D Jun 11 03:14:51 so I have a galaxy tab 4, and it shows as a 4gb usb device in windows. There is already a bunch of folders on it. How do I tell if it's internal storage or external storage? Jun 11 03:17:12 gordon_: I have added a service, and use the service to use a built-in sensor that gets langitude and longitude, does this comply with: "explain how to add a service to an application and how to use a service, e.g. for communication with BlueTooth or reading the devices buildt-in sensors" Jun 11 03:18:04 rubas: homework? Jun 11 03:18:21 exam in 6 hours :) Jun 11 03:19:22 But had another exam yesterday, which I had to do first... suckly there is another one today, luckily in android :D Jun 11 03:19:34 rubas: go through the official bt docs. I don't recall them referring to it specifically as a service, but the api model seems to fit that definition Jun 11 03:20:32 rubas: I think so Jun 11 03:20:33 jamesson: it's because a service is something that all apps can access, the purpose of it is to "serve" data, from running processes - or is it me bullshitting? Jun 11 03:20:58 if you're getting data from it and it's working when app is not showed - yes Jun 11 03:21:18 rubas: what gordon says Jun 11 03:21:22 not every app can use your app's service Jun 11 03:21:41 rubas: do you understand the concept of the activity? Jun 11 03:21:45 basicly - service is like activity without view and it works in background (when your app is not shown) Jun 11 03:22:01 use it when you're making long background tasks Jun 11 03:22:06 or music player ;) Jun 11 03:22:14 jamesson: a ui-activity is "destroyed" while a service still lives on, Jun 11 03:22:19 right gordon_? Jun 11 03:22:30 yes Jun 11 03:22:35 now I get what a service is :D Jun 11 03:22:52 am I the only one who watches whole 24 part series of andorid tutorial ;> Jun 11 03:22:57 *watched Jun 11 03:23:06 gordon_: but I thought services were also activities? Just they never closed? Jun 11 03:23:22 where is this tutorial you speak of? Jun 11 03:23:29 youtube Jun 11 03:23:45 gordon_: nice will look later Jun 11 03:24:06 it's not activity Jun 11 03:24:13 it extends different class too Jun 11 03:24:23 it normally extends Activity class? Jun 11 03:24:30 while Service extends Service class Jun 11 03:24:43 ah did not know that Jun 11 03:25:15 "explain how to create a (SQLite-) database and tables, how to update, delete and query the database, and how to use a Cursor object to iterate through the results of a query." Jun 11 03:25:20 What's a cursor object? :o Jun 11 03:25:27 that sounds like homework. Jun 11 03:25:39 nopii: no it's a exam question Jun 11 03:25:50 I have a exam in 6 hours :) Jun 11 03:25:50 is the exam open book or something? Jun 11 03:26:07 if you have an exam in 6 hours on android and you don't know what a cursor is you deserve to fail4 Jun 11 03:26:12 nopii: no you get the questions, make the app and the code, and make a powerpoint presentation and then you run it :D Jun 11 03:26:23 nopii: I deserve to fail? Jun 11 03:26:35 yes, because it's a very basic concept and you haven't bothered to learn it. Jun 11 03:27:27 and seriously this is all in the docs Jun 11 03:27:29 Sorry, was to busy screwing around with girls Jun 11 03:27:30 or wait Jun 11 03:27:32 no? Jun 11 03:27:49 yep it is, reading atm. in it :P Jun 11 03:27:51 cool story bro Jun 11 03:27:56 i recommend doing a tutorial to make a list Jun 11 03:28:01 there's a todo list app in the samples. Jun 11 03:28:05 that will teach you cursors Jun 11 03:28:12 you could learn it in 6 hours and that'd be respectable. Jun 11 03:28:17 cool, will check it out now :) Jun 11 03:29:03 after this with sqlite there is 2 more questions, one with adapters and one with Content Providers + Broadcast Receivers :) Jun 11 03:29:44 hello i am trying to develop offline capabilties for my app that uses a webview .. it looks like the manifest file is ignored and insetad the Droid app cache is used instead Jun 11 03:29:56 am i correct Jun 11 03:30:07 look at professional android development by reto maier Jun 11 03:30:30 I still see an empty Fragment even after implementing onConfigurationChanged(). Could someone take a look at my implementation and maybe spot some problems: https://gist.github.com/MarkyC/0f713fef339e18ac1f69 Jun 11 03:31:44 MarkyC: I'd expect the layout inflation to be in onCreateView Jun 11 03:33:47 dragorn: ++ Jun 11 03:35:45 why are you playing with views in onConfigurationChanged ? Jun 11 03:36:16 yeah, i'd also add i almost never ever need to use that in a fragment Jun 11 03:36:25 move your inflater to onCreateView, return the inflated view Jun 11 03:36:30 and I bet you'll have more success Jun 11 03:37:43 bankai_au: I am using a ViewPager and a FragmentPagerAdapter. When I rotate my device, the screen goes blank on the currently active tab. Other tabs in the pager are not affected Jun 11 03:38:26 before you added the above code? Jun 11 03:39:40 bankai_au: My onCreateView() works fine so long as I don't rotate the screen. Say I start the Activity in portrait: All my views look as they should. It is only when I rotate the device I get a blank active tab (the other tabs are fine) Jun 11 03:43:05 Looking at the logs say the ListView is calling onDetachedFromWindow(), so maybe that might offer some insight as to why the view is blank Jun 11 03:55:32 anyone have experience with webview LOAD_NO_CACHE and it not functioning at all? Jun 11 03:58:18 anyone here built their own distro from AOSP then added gapps + google play? Jun 11 04:01:02 how do I add a menu and a item to the menu? Where should I input it? Jun 11 04:03:53 why does passing a context param allow you to guarantee that only one of your object will be created for that context? Jun 11 04:03:56 http://stackoverflow.com/questions/3826905/singletons-vs-application-context-in-android Jun 11 04:04:08 does it require the constructor to be run on a certain thread? Jun 11 04:05:00 *require the get method Jun 11 04:05:37 Hi guys, Jun 11 04:06:04 Can i ask a question here about listview widget? Jun 11 04:06:22 I want to display the applications icon in a widget but... Jun 11 04:06:26 whomp_, i think they're expecting you to vuild your singeltons in onCreate and get them later Jun 11 04:06:49 alex_PP, ty Jun 11 04:06:53 if they're created in onCreate, they hould be ready by the time you get going with any real app code Jun 11 04:07:03 t4nk347, go for i Jun 11 04:07:04 t Jun 11 04:07:14 setImageViewResource() would not allow loadlabel(packagemanager); Jun 11 04:07:19 why is that? Jun 11 04:08:00 Error:(92, 16) error: method setImageViewResource in class RemoteViews cannot be applied to given types; required: int,int found: int,Drawable reason: actual argument Drawable cannot be converted to int by method invocation conversion Jun 11 04:08:07 that is the error Jun 11 04:08:24 in an ordinary listview, i can use iconview.setImageDrawable(data.loadIcon(packageManager)); Jun 11 04:08:38 remote views are special Jun 11 04:08:54 they're running in another proccess so you can only use static resources Jun 11 04:08:58 R.* stuff Jun 11 04:09:06 row.setImageViewResource(R.id.app_icon,R.drawable.ic_launcher); --> that will work Jun 11 04:09:18 yup as you said it.. Jun 11 04:09:46 any alternatives? Jun 11 04:10:51 not that i know Jun 11 04:10:54 of Jun 11 04:11:29 so something like it is not possible at of this moment? Jun 11 04:15:37 can I suspend console logging in eclipse somehow? Jun 11 04:17:26 anyone here could take a guess as to why with appcache enabled load_no_cache still loads the cached version? Jun 11 04:25:03 how can I see if my service is running? Jun 11 04:32:11 i'm making a fragment and i type "public void onListIte", shouldn't it be suggesting "onListItemClicked(...)"? Jun 11 04:35:15 whomp_: Looks like onListItemClicked() is a method of ListActivity, not Fragment. Perhaps you want to add an OnClickListener to a ListView? Jun 11 04:35:29 MarkyC, thx :) Jun 11 04:35:56 My TextToSpeech engine restarts speaking when I open a new Activity. Anyone know why? Jun 11 04:39:26 Wow. Jun 11 04:39:56 The amount of issues I've encountered simply following the first like, 2 tutorials on the android dev website is ridiculous Jun 11 04:40:29 It also gives you no background as to why you need to do certain things Jun 11 04:41:20 programming isn't easy Jun 11 04:47:44 nopii, I didn't experience these sort of issues with iOS, and I'd expect that to be a lot harder Jun 11 04:52:03 man, I am looking at this old code and I can't figure out if a remote service is running Jun 11 04:52:27 how can I tell if it is running? Jun 11 04:52:42 I can't find anything on the code that says to start the service Jun 11 04:54:07 AllTuna: Well, iOS is still there if you don't want to play. Jun 11 04:55:28 If you haven't got your setup yet, I recommend trying android studio. Jun 11 05:11:16 Hi guys, I have launched an Android app dev challenge - http://www.codelearn.org/android-tutorial/challenges/android-http-twitter . Can somebody here give it a shot & pass some feedback on it ? Jun 11 05:27:23 So.. when using the support library, can I just have a styles.xml file in the values-v11 folder, and only edit that Jun 11 05:27:32 and have both support values and non support values Jun 11 05:27:43 or do I have to have a styles.xml in the values folder as well Jun 11 05:34:02 AllTuna: are you using the support library because you want to use fragments or actionbar sherlock on 2.x devices? Jun 11 05:34:27 or have to... Jun 11 05:38:38 This is my first app Jun 11 05:38:54 I'm assuming that I'm using it, because styles arent working without it Jun 11 05:38:59 and they're working with it Jun 11 05:39:03 as in, when I program for it Jun 11 05:39:14 and my min version looks like 8 Jun 11 05:47:16 If you don't have to target 2.x I would just start at 4.x and up considering it accounts for the majority of android devices now, around upper 80% of them Jun 11 05:47:29 oh really Jun 11 05:47:34 is it that large Jun 11 05:47:34 2.x will just shrink and shrink and you'll spend precious development time with the support lib crap. Jun 11 05:47:37 yes Jun 11 05:47:42 So how do I do that Jun 11 05:47:47 and what does it mean for my code Jun 11 05:48:21 just set your target to a higher api level and then you can use the new apis and fragments etc without worrying about backwards compat, actionbars, viewpagerindicator etc. Jun 11 05:48:36 VPI has nothing to do with compatibility Jun 11 05:48:43 but you can stop using it if you want! Jun 11 05:48:49 VPI? Jun 11 05:49:06 oh, I thought there was a native thing that it was replacing Jun 11 05:49:17 nope, it just augments ViewPager Jun 11 05:49:19 anyway it's all good stuff but i'm glad to see 2.x almost dead Jun 11 05:49:48 minSdk, not target** Jun 11 05:49:56 Where should I be working on styles.xml Jun 11 05:50:03 just in values-v11? Jun 11 05:50:15 if you feel you need different styles for different API levels, then that would be a good place to put it. Jun 11 05:50:43 Well, if I want to support only 4.x+ Jun 11 05:50:49 just use the values/ dir. Jun 11 05:51:00 the -v11 stuff is so you can have different resource files for that api level etc. Jun 11 05:51:08 but it doesnt recognise my android: calls Jun 11 05:51:36 that's a difficult problem to troubleshoot but I am going to guess you're using eclipse. Jun 11 05:51:38 If I have an ArrayAdapter with a filter function I will need to store the original data array too? Jun 11 05:51:50 nopii, ye Jun 11 05:52:26 you might have better luck working with intellij and android studio. Jun 11 05:52:43 I'd try to troubleshoot it remotely but eh -- Jun 11 05:52:51 likely there's a syntax error in one of your xml files Jun 11 05:52:56 look in the problems window Jun 11 05:53:53 phasip: yes Jun 11 05:54:00 when you filter, make a copy Jun 11 05:54:11 nopii, well first off, how do I make sure I'm targetting 4.x+, what values do I need to change Jun 11 05:54:22 minSdkVersion in the manifest Jun 11 05:54:24 should be 15 Jun 11 05:55:33 thats the only thing? Jun 11 05:55:41 I'm at the final question now :D Jun 11 05:55:52 and 3 hours left... Jun 11 05:55:59 I can stop using AppCompat now? Jun 11 05:56:13 heh Jun 11 05:57:00 Don't worry, the android developers will invent another compatibility problem for you once you learn the sdk. Jun 11 05:57:29 So, I should continue to use it anyway? Jun 11 05:57:32 no Jun 11 05:57:37 JakeWharton: I can't do that in the filtering as the next time it would be called I would copy the once-filtered dataset right? The right thing to do is probably to override all add/remove functions but I dont know how the filtering replaces the data Jun 11 05:57:55 imho save your time and life and make great things Jun 11 06:00:41 Uch Jun 11 06:00:49 on to "Managing the Activity Lifecycle" Jun 11 06:00:59 Wow, I'm far from creating games :P Jun 11 06:04:44 nah, you will be there soon enough Jun 11 06:12:06 So basically, an 'Activity' is a window Jun 11 06:12:17 a collection of elements which make up the view Jun 11 06:13:14 AllTuna: why would you like to use appcompat for andorid 4.x Jun 11 06:13:15 ? Jun 11 06:13:37 Because I'm working on my first app with java, android or even having to use XML files Jun 11 06:13:45 and I'm following the android developers guide Jun 11 06:13:51 and it told me to make it compatible Jun 11 06:13:55 dont use appcompat ;) Jun 11 06:13:56 I've changed it Jun 11 06:14:00 if you dont have to Jun 11 06:14:28 at least robolectric will work without problems ;) Jun 11 06:17:50 is this android developer guide an all inclusive guide Jun 11 06:18:07 I mean, after I finish this, including all the "best practices" will I know the majority of the API Jun 11 06:18:55 thats a good question ;) Jun 11 06:19:22 is the android webview suppose to persist its cache after application is “shutdown” Jun 11 06:19:23 ? Jun 11 06:38:41 I just updated android studio and clicked the update gradle plugin thing, then I got this error: Error:The SDK Build Tools revision (19.0.3) is too low for project ':EkonomikaTools'. Minimum required is 19.1.0..... so I installed 19.1 sdk build tools via the sdk manager, and resstarted android studio but im still getting the error Jun 11 06:38:54 do I need to manually edit the gradle build file? Jun 11 06:41:20 ok I think I found it in build.gradle file..... the linebuildToolsVersion "19.0.3" , it says recommended is "19.1.0" but on the sdk manager it is called "19.1" so do I change it to 19.1 or 19.1.0? Jun 11 06:45:58 19.1.+ Jun 11 06:46:12 that was the syntax I guess Jun 11 06:50:11 ok I changed it, now I get the error Error:Cause: failed to find Build Tools revision 19.1.0, Please install the missing Build Tools from the Android SDK Manager. Jun 11 06:50:19 but I caan see in my sdk manager 19.1 is installed Jun 11 06:51:03 quick question, why are my questions not being posted on Android Developers Google Group? Jun 11 06:52:19 njcomsec: hmm Jun 11 06:53:11 http://stackoverflow.com/questions/24088275/android-studio-after-updating-to-build-tools-19-1-0 Jun 11 06:53:11 and is it okay if I try luck posting my problem here? Jun 11 06:53:18 ok..... I clicked the sdk manager link from within android studio and it shows the few updates are not installed...... but when I view from launching the sdk manager in windows explorer, it shows they are installed.. Jun 11 06:53:25 but it is the same sdk manager Jun 11 06:55:45 ok... I updated the sdk manager from clicking it within AS... now it seems to work Jun 11 06:56:54 Hi guys, I can't finger out how to handle this problem, I just need to make a simple application doing this: "explain what a Broadcast Receiver is and how to set it up and use it. Also explain how a Content Provider can give different applications access to the same data" Jun 11 06:57:54 Okay, so I have this app with a webview, and I need it to be fully compatible with TalkBack, but in the WebView TalkBack will only read the form elements ("EditText", "RadioButton", etc.) in English, regardless of the user locale Jun 11 07:04:01 Guys I'm having a layout in my layout folder and I have 2 layouts in my layout-v9 folder. When I run android 4.4 he still takes the layout from the V9 folder, how is this possible? Jun 11 07:05:16 njcomsec: Then you might have two SDKs installed Jun 11 07:05:39 Depending on what you initially downloaded, AS might come with its own copy of the SDK. Jun 11 07:07:02 well I only downloaded one sdk, and set my environment variable for it, I presumed AS would use the path to find that one Jun 11 07:07:55 and I only installed the platforms on the one I downloaded, which I use on AS..... I guess it is possible AS has a seperate manager with those same platforms already installed Jun 11 07:07:59 but that seems a bit odd Jun 11 07:08:49 oh right there is an sdk manager inside AS's files Jun 11 07:09:39 i dont think AS comes with the SDK Jun 11 07:09:49 at least, no version i have tried :) Jun 11 07:10:16 mine does. Android Studio / bin, lib, license, plugins, sdk Jun 11 07:10:29 6.0 ? Jun 11 07:10:51 0.6 yeh Jun 11 07:10:57 weird, i don't have it Jun 11 07:11:53 "NOTE: These .zip files do not contain an embedded SDK install. If you have an existing install of Studio which contains an embedded SDK, if you upgrade by installing one of these zips, make sure you copy over the SDK as well." Jun 11 07:12:36 Is Android Studio the prefered IDE now? Jun 11 07:12:38 ahh so the old version comes with the sdk and the new one doesnt Jun 11 07:12:40 I guess Jun 11 07:12:58 well I prefer it Jun 11 07:13:16 Can anybody help me with figuring out what dataCursor is? https://gist.github.com/anonymous/4eabf1c29e6c253f36aa Jun 11 07:13:27 What does Google prefere? :-) Jun 11 07:18:58 phyzloc: google switched from eclipse to AS last IO Jun 11 07:19:39 How can I have a specific layout for just one android version? Jun 11 07:20:18 phyzloc: but most tutorials are still eclipse and AS can be unstable sometimes, so I would try both Jun 11 07:22:30 shmooz: I tried AS when it first was introduced but couldn't get it to work :-/.. maybe can tried it again Jun 11 07:23:21 Android Studio is still "Early Access" (v0.5). Jun 11 07:23:27 phyzloc: you probably got stuck setting your PATH or something common like that Jun 11 07:26:14 Hi there. I have a queston regarding nfc and broadcastreceiver... I have one activity which has broadcastreceiver in it. Then I have navigation drawer and a bunch of fragments. When I hover the nfc reader with my phone, first fragment opens. But if I put my app in backgroudn e.g. I press home button and then hover the reader my first fragment again opens. The problem is that broadcast receiver is reading the values from fragment that was previosly Jun 11 07:30:29 Hello all! A quick question: I'm using the NDK to build my app from Android Studio, is it possible to get auto completion of .cpp in AS? Jun 11 07:31:26 Click66: Yes, which one would that be in your case? Jun 11 07:31:39 kakazza: android 2.3.7 Jun 11 07:32:11 Click66: See Table 2 at the bottom https://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Jun 11 07:32:12 kakazza: I now have a folder v10 for the 2.3.7 and a folder v11 for all the rest Jun 11 07:32:27 but that gives me a crash with error Resourcesnotfoundexception Jun 11 07:32:33 Hi everyone, how can I get the source code of SDK-22.6.2. There's no branches / tags named of that. Jun 11 07:32:54 Click66: I think you still need a normal folder without qualifier, but I might be wrong. Jun 11 07:33:03 any ideas abotu my my question? Jun 11 07:34:57 Click66: Is the Layout the resource that's not found? Jun 11 07:35:32 kakazza: you are right I still need a normal layout folder. But the problem is then. That he always takes my layout-v10 folder for every version. Jun 11 07:36:15 Put the v10 one in the layout directory, the one for API ≥11 into the layout-v11 Jun 11 07:36:35 It will use `layout` as the default, except when the API version is ≥11 Jun 11 07:39:02 time to fly home... :-/ Jun 11 07:39:44 Im sending the helicopter now Jun 11 07:39:45 Ehnighma: no Jun 11 07:39:55 intellij / AS doesnt support cpp / ndk Jun 11 07:40:30 kakazza: I've got the default layout folder with my 2 special cases in it. Then I've got a folder layout-v11 for all the rest. Then when I run my project on 2.3.7 I get res.resourcesNotFoundException Jun 11 07:40:57 Ehnighma: maybe I was wrong Jun 11 07:41:01 take a look at http://ph0b.com/android-studio-gradle-and-ndk-integration/ Jun 11 07:41:48 gordon_: it That depends what you mean supports. I can build the app from within AS with gradle Jun 11 07:42:18 Actually what I would like is when I put app with active fragment into background e.g. I press home button and then I hover my phone over nfc reader I'd like this fragment to come upfront.. how do I do that? Jun 11 07:42:23 gordon_: That link you gave me is not really valid for building with gradle anymore since it is outdated. It is simpler now :) Jun 11 07:42:46 Ehnighma: any link to source? Jun 11 07:42:53 I'm interested in JNI myself Jun 11 07:43:49 AFAIK jetbrains is preparing cpp IDE so.... Jun 11 07:44:17 gordon_: not right now. I took one of the NDK samples and converted it. But basically all you need to do is specify the info previously defined in the mk files, in the build.gradle instead Jun 11 07:44:41 *previously* Jun 11 07:44:42 gordon_: I guess I could push it to github though? Jun 11 07:44:45 if you have something Jun 11 07:45:09 a you mean when you were creating projects in past Jun 11 07:45:12 got the point Jun 11 07:45:30 but IDE itself doenst support anything Jun 11 07:45:59 gordon_: as far as C++ goes? no that is true. But I thought there might be a plugin that might solve it. Jun 11 07:46:23 gordon_: one too many "might" :) Jun 11 07:46:25 Hello, World! Jun 11 07:47:09 Ehnighma: I'm still waiting for http://blog.jetbrains.com/objc/2014/02/jetbrains-c-ide-status-update-and-video-report/ Jun 11 07:47:24 Click66: Sorry, gotta go to work. Jun 11 07:47:45 http://www.jetbrains.com/objc/features/cpp.html Jun 11 07:47:50 gordon_: yeah it looks awesome :) Jun 11 07:47:51 it's in appcode Jun 11 07:48:30 gordon_: I wonder if I can setup sublime to fetch the header files from the NDK folder and help me out a bit. Jun 11 07:48:56 sublime Jun 11 07:48:56 ? Jun 11 07:50:00 gordon_: it is the "notepad++" of OSX/Linux. A nice text editor with plugin support :) Jun 11 07:50:38 ah you mean sublime text Jun 11 07:50:42 gordon_: I use it to write GLSL shaders in, since there is a plugin that compiles it on the run and show if I make any spelling errors etc. Jun 11 07:50:48 i fony like it personally Jun 11 07:50:52 gordon_: ah yes sorry for leaving the text part our :P Jun 11 07:50:53 out* Jun 11 07:51:05 on linux I use qtcreator Jun 11 07:51:18 got good intellisense like feature Jun 11 07:51:43 gordon_: ah! never thought about that one, but that is true. Can I simply just point out where my header files are and it will be happy? Jun 11 07:51:48 I really like kdevelop4 on linux Jun 11 07:52:11 Ehnighma: dont know about it, but you probably can Jun 11 07:52:21 like LIBS += thingy Jun 11 07:52:42 http://stackoverflow.com/questions/2752352/how-to-add-include-path-in-qt-creator Jun 11 07:52:45 yes you can Jun 11 07:53:38 cool :) I'll try that out if sublime fails me :P Jun 11 07:54:48 daf*** sublime magically gives me gl auto completions either way Jun 11 07:54:49 Hello Jun 11 07:55:00 :) Jun 11 07:55:12 gordon_: I love when magic works :) Jun 11 07:56:52 I use to just plavce ads at the button and center of screens, now I want to plave one below a specific EditText. I manage doing that if I declare the object in the xml and use the below attribute. But how can I set this in the source ? Jun 11 07:57:18 gordon_, so what's the secret to getting a SIM in Japan without a phone with the logo? Jun 11 07:57:47 place* even. Jun 11 07:57:52 pfn: getting your own phone and buy prepaid ;) Jun 11 07:57:53 ( blame it on the gloves ) Jun 11 07:57:56 prepaid phone I mena Jun 11 07:57:57 *mean Jun 11 07:58:13 oh my Jun 11 07:58:23 gordon_, yeah, that sucks Jun 11 07:58:23 Ehnighma: sublime auto completion isnt that good Jun 11 07:58:29 Sorry about the bad sentences. Jun 11 07:58:29 at least I've found it rather stupid Jun 11 07:58:46 pfn: well I gonna get contract so.. Jun 11 07:59:11 you cannot use internet on prepaid Jun 11 07:59:17 hi, can anyone show me how to print objects through the dalvik debug monitor at runtime? is this possible if I put breakpoints? Jun 11 08:00:18 Its the gloves. Jun 11 08:01:05 gordon_, yeah, it sucked, I'm on my way out through NRT now, spent all of maybe 2 hours in Tokyo Jun 11 08:02:01 ah figured something out. Thanks for reading. ( and not handling my glove mistakes ( spelling ) ). Jun 11 08:02:13 ( to badly ) Jun 11 08:02:27 or freaking out and catching fire. Jun 11 08:03:05 gordon_: works pretty good actually, at least for me on OSX Jun 11 08:03:30 pfn: good luck ! Jun 11 08:03:54 Ehnighma: found qtcreator better :), sorry Jun 11 08:03:57 Do you generally make a new intent for each activity in the manifest? Jun 11 08:04:31 wanted to ride the shinkansen while I was here, missed out on that too Jun 11 08:05:01 gordon_: but QTCreator does not auto complete any of my includes OTB :P Jun 11 08:05:14 ;O Jun 11 08:12:30 gordon_: got it working in QTCreator :) I desperately need change the color theme though, so that is the next task Jun 11 08:23:41 im thinking of just targeting api16+, instead of 14. i want to use roboto font in my app without subclassing textview and littering my app. What you guys think, too soon? Jun 11 08:24:41 api 16 = jelly bean ? Jun 11 08:25:06 https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net Jun 11 08:25:17 ICS = 12.3 % Jun 11 08:25:32 this is probably like all iphone share market :P Jun 11 08:27:49 hm Jun 11 08:28:11 ok maybe half of it Jun 11 08:28:13 the only real reason is for the roboto font, maybe think its not worth to loose that many customers Jun 11 08:28:28 roboto isnt on ICS ? Jun 11 08:28:40 cant set fontFamily in ics Jun 11 08:28:44 added in 16 Jun 11 08:29:19 dont get it Jun 11 08:29:24 roboto is standard font Jun 11 08:29:32 if you want to use some different Jun 11 08:29:34 Personally I'd litter the app, but I'm always in favour of increasing the baseline ^^ Jun 11 08:30:00 ah but font isnt all about weight Jun 11 08:30:02 hmm Jun 11 08:31:01 hm, well, in my design i use robot thing quite a lot Jun 11 08:31:08 which i cant have in ics Jun 11 08:31:14 unless i include a custom font Jun 11 08:31:36 Does setting the font really add that much baggage to your code? Jun 11 08:31:49 Most of it would just be a longer class name in xml Jun 11 08:32:10 no it doesnt really, other than annoying me :D Jun 11 08:35:04 xD Jun 11 08:40:57 I find system fonts do just fine Jun 11 08:41:08 some users like using system wide fonts throughout the app Jun 11 08:41:22 like changing a system font, and whatsapps message font changes also Jun 11 08:41:37 also, people like to be able to change fonts to what they find easier to read Jun 11 08:41:56 some fonts are painful to read without glasses etc if people have a mild stigmatism Jun 11 08:42:10 That might be true, but typography is an important element of design Jun 11 08:42:55 Kevel, you mean "astigmatism" Jun 11 08:47:37 josaphat: ye Jun 11 08:47:38 :( Jun 11 08:47:43 i thought i had perfect vision Jun 11 08:47:46 turns out i didnt Jun 11 08:48:01 Estel: true Jun 11 08:48:24 Estel: as long as u dont do this: http://www.theworldsworstwebsiteever.com/ Jun 11 08:48:44 Well yes, but lots of custom fonts isn't the same as bad design :P Jun 11 08:48:56 Not that more than three isn't a stretch Jun 11 08:50:58 I don't get typography. Aside from serifs, and the obviously stylized fonts, most look the same to me. Jun 11 09:02:47 If I have a Spinner loaded with an Array of Strings how can I update the Spinner to contain no items? Jun 11 09:03:14 I tried mySpinner.setAdapter(null), but that gives me a NullPointerException. Jun 11 09:03:33 clear the adapter? Jun 11 09:04:09 How? Jun 11 09:05:07 Keep a reference to the adapter, then call clear() Jun 11 09:06:11 Call notifyDataSetChanged() unless you've configured it to notify automatically Jun 11 09:06:13 Cool, it actually refreshes automatically. Thanks. Jun 11 09:07:50 Is there a way to narrow down entries in a spinner by typing in the first letters of the entry? Jun 11 09:08:56 i am facing an issue , creating an date entry for 12th June thursday in GMT+2 time zone , when changing the timezone to GMT-11 shows in 11th wedensday . Any idea what is the issue ? Jun 11 09:09:42 are you sure this is incorrect? Jun 11 09:11:13 chinmaya: Depends on the time you set. Jun 11 09:12:31 barq, i set on the webapp and get the info by a REST API Jun 11 09:12:59 then parse the date from the json response. Jun 11 09:13:12 Don't see how that is relevant for the issue you describe. Jun 11 09:13:31 I have one layout that supports two fragments top fragment A and bottom fragment B, fragment A always stays the same but fragment B may be a fragment of type X or type Y. Now a action in fragment A should behave differently depending on which fragment is showing in B. Currently I use findFragmentById and then use javas instanceof to check if it's X or Y. Is there a better way? Jun 11 09:14:41 barq, because when i parse the date like new Date(time) , it shows different dates depending on the timezone of the mobile Jun 11 09:14:51 If you set a time < 13:00 on Thursday then the behavior is correct. Jun 11 09:15:01 yes Jun 11 09:15:23 So don't see where the problem is. Jun 11 09:17:20 barq, when the time is after > 13:00 will it not show correct information Jun 11 09:17:24 Hi Jun 11 09:17:45 why do we get error inflating class checkbox Jun 11 09:18:02 Could you be more specific. Jun 11 09:20:50 Is there a View predefined in Android that acts as a dropdown, but narrows down results by typing in the first letters of an entry? Or do I need to custom build it? Jun 11 09:27:13 Custom build, unless you can find a prebuilt library Jun 11 09:27:42 barq, I think it exists. Jun 11 09:27:46 Let me get back to you Jun 11 09:28:11 Thanks. Jun 11 09:29:42 AutoCompleteTextView? josaphat Jun 11 09:29:55 hello Jun 11 09:30:07 barq, yeah that's what I was thinking Jun 11 09:30:44 mrpyo, hi Jun 11 09:31:13 I want to create searchable activity with fragments Jun 11 09:31:26 on handleIntent I replace fragment Jun 11 09:31:37 now I want it to replace back on home button Jun 11 09:31:42 you know how to do it? Jun 11 09:32:02 your question is not clear Jun 11 09:35:20 mrpyo: I'm not sure what you're asking. But it seems like you want to change the behavior of the home button. You shouldn't do that. I'm not even sure you can. Jun 11 09:35:25 http://stackoverflow.com/questions/24159462/searchable-activity-with-fragments Jun 11 09:36:54 what's the best way to scale image for list view item ? Jun 11 09:37:30 your question is not clear Jun 11 09:37:52 I got bunch of images as resources Jun 11 09:38:05 and list with image and text Jun 11 09:38:13 now I want image to be 70dp Jun 11 09:38:26 but maybe it's better to scale it in code and then use it ? Jun 11 09:38:31 so just put layout_width and height to 70dp ? Jun 11 09:38:39 doing it now Jun 11 09:38:42 isnt it too slow ? Jun 11 09:39:18 probably not Jun 11 09:39:31 ok I will make it that way Jun 11 09:39:37 will be worried if hit the wall on android 2 Jun 11 09:39:57 just a thought: maybe resize your resources to the wanted size? ;) Jun 11 09:40:34 they are downloaded from internet Jun 11 09:40:37 so dont know Jun 11 09:40:47 we will see, for now I will do it like that Jun 11 09:40:49 wow ok that's different Jun 11 09:41:01 I thought they were resources in your project! Jun 11 09:41:16 if your downloading them... I recommend a library like Picasso Jun 11 09:41:21 there are standard ones but you can 'install' new Jun 11 09:41:29 I'm using UIL already... Jun 11 09:41:42 anywany, thanks Jun 11 09:42:37 hi all Jun 11 09:43:31 mrpyo, Use the backstack. I posted to your Stackoverflow question. Jun 11 09:44:20 it deosn't work Jun 11 09:44:34 it gets back when I press back twice Jun 11 09:44:49 or home button and back Jun 11 09:45:38 How can you clear the current selection of a AutoCompleteTextView? Just clearing the adapter doesn't work. Jun 11 09:48:03 mrpyo, Then I have no idea. You must be doing some weird things Jun 11 09:50:57 barq, I don't have experience with the AutoCompleteTextView but there's a couple of clear methods Jun 11 09:51:10 I guess setText("") workds. Jun 11 09:51:13 works* Jun 11 09:51:20 clearComposingText() might be what you're looking for. Jun 11 09:53:13 That one doesn't work. Not sure what it does. Jun 11 09:53:31 hrm... Jun 11 09:53:45 setText works, but not sure if that's the most elegant solution. Jun 11 09:56:17 Hey if it works it works. Jun 11 09:57:35 + Jun 11 09:57:37 1 Jun 11 09:59:24 Should I use onClick or onTouch? Jun 11 10:02:10 depends :) but probalby onClickl Jun 11 10:02:14 -l Jun 11 10:03:30 ah Jun 11 10:32:40 I'm trying to display Korean characters in my app. In Android Studio layout editor it displays correctly, but not when I run it in the emulator Jun 11 10:41:19 what happens in emulator? Jun 11 10:41:52 Hey. I am inflating a layout multiple times from an XML file and adding that to a linear layout. Yet, it's only added once. Any ideas? Jun 11 10:42:09 not without the code.. Jun 11 10:43:03 Okay, hold on. Jun 11 10:45:15 danijoo: This is the code: http://pastebin.com/j4UMp4hc Loop begins at line 98. Jun 11 10:46:13 I should've stripped it from the comments. Hope you can read anyway. Jun 11 10:47:37 non-english variable names are sick if you show your code to other people.. Jun 11 10:47:49 I am sorry. Jun 11 10:47:50 but you're lucky, im german too ;) Jun 11 10:47:50 hi, i have a bunch of textviews (with drawable) and i'd like to fill the screen with it.. Jun 11 10:47:57 Oh good. Jun 11 10:48:36 so if my parent is linearlayout and orientation is horizontal, they would go out of view Jun 11 10:48:48 how do i "break" then for a new line? Jun 11 10:48:49 Tobbi, so I guess it only runs the loop once? Jun 11 10:49:12 Tobbi: you sure the loop runs multipe times? Jun 11 10:49:15 BulleTTime: Shouldn't you have the orientation vertically then? Jun 11 10:49:29 danijoo: josaphat I have this debug code in there, and it shows me it runs for EN and DE Jun 11 10:49:48 then they dont repeat horizontaly phyzloc .. Jun 11 10:50:00 basicaly i want both Jun 11 10:50:12 for fill the screen with the textfields Jun 11 10:50:15 BulleTTime: Then you should have a vertical one containing several horizonal ones Jun 11 10:51:05 hhm okayh Jun 11 10:52:13 but thats not realy what i want though.. Jun 11 10:52:22 they should be in the same container Jun 11 10:52:37 atleast i think that is better ? Jun 11 10:53:24 I don't see how you can break to a new line using only horizonal orientation. Jun 11 10:53:26 BulletTime what about a GridView? Jun 11 10:53:53 hhm ill check that Jun 11 10:54:05 it automatically organices your images to a grid Jun 11 10:54:29 What is the general fallback strategy in Android? For instance I'd like to use GridView, but it's not available before API 14 (targeting 9)... should I use it anyway and add a fallback view or stick to an older view anyway? Jun 11 10:55:31 platzhirsch: gridView is available via support-v7 library Jun 11 10:55:38 hello everyone, is there a way to get the Header of a ListView to resize before it gets its items? Jun 11 10:56:42 danijoo: I need to read into Support Library, but how does it work? I add it and all problems are solved? ;) Jun 11 10:57:25 you add it as library to your projects and it provides you alternative classes with nearly the same features Jun 11 10:57:26 I' Jun 11 10:57:44 how to make search interface like in google play app - so activity with results also has search widget in action bar? Jun 11 10:57:50 danijoo: makes sense, thanks Jun 11 10:58:06 I've added the header, and got it to resize but it happens after the items have been displayed which causes sort of a flicker-ish effect Jun 11 10:58:20 for example if you want to use android.app.Fragment, supportlibrary give you android.support.v4.app.Fragment with the same features, just another import Jun 11 10:59:01 hey guys Jun 11 10:59:08 lets say i have a listview Jun 11 10:59:16 and i want it to accept more than one custom adapter Jun 11 10:59:22 seeing that both adapters would have the same methods Jun 11 10:59:30 how would i go around to doing that? Jun 11 10:59:53 you want to add 2 adapters to the same listview instance? Jun 11 10:59:59 or what do you want? Jun 11 11:00:00 nope Jun 11 11:00:03 diferent instances Jun 11 11:00:06 i just want to use the same class Jun 11 11:00:20 ListView accepts everything that inherits from Adapter class Jun 11 11:00:35 so just make them both inherit from that Jun 11 11:00:44 they both inherit from baseadapter Jun 11 11:00:50 but the set adapter method Jun 11 11:00:53 on my listview Jun 11 11:01:04 yeah i had to override that Jun 11 11:01:13 then your listview should accept both Jun 11 11:01:29 no because the method specifies a specific adapter Jun 11 11:01:44 "setAdapter(CustomAdapter1 adapter) Jun 11 11:02:11 ah yes Jun 11 11:02:13 i see now Jun 11 11:02:20 ok i think i can handle it Jun 11 11:02:21 thanks man Jun 11 11:02:35 jvrodrigues, Are you familiar with the word "Polymorphism" Jun 11 11:03:20 every class extending BaseAdapter is a BaseAdapter so you can use it in every setadapter() Jun 11 11:03:57 josaphat, yeah, im just new to android and didnt notice how they were doing things here, basicaly i thought setAdapter was bound to a specific adapter Jun 11 11:04:04 danijoo, i see it now, thanks Jun 11 11:07:46 Hi Jun 11 11:08:19 I am trying to implement 3 checkboxes with one checked and a button which when pressed should dispaly which checkbox is selected Jun 11 11:08:30 I added strings in strings.xml Jun 11 11:08:55 added checkboxe ids and necessary details in activity_main.xml Jun 11 11:09:11 also added a button layout in activity_main.xml Jun 11 11:09:21 And in MainActivity Jun 11 11:09:33 I added the code Jun 11 11:09:44 But while I am trying to run this in emulator Jun 11 11:10:05 danijoo: Sorry. It just doesn't display. It's nothing Jun 11 11:10:09 the emulator bigins and then shows unfortunately checkbox_demo is closed Jun 11 11:10:34 often you have two urls, one to the thumbnail and one to the fullsize image - anyone know is Universal Image Loader or Picasso has elegant ways of using the thumbnail version of an image before loading the fullsize one? Jun 11 11:10:36 I am not able to understand as there is no errors reported Jun 11 11:10:40 Can anybody help Jun 11 11:12:31 Let me paste the Logcat details in a pastebin Jun 11 11:12:55 http://pastebin.com/UjfbN1GD Jun 11 11:13:10 could somebody check and help me in solving the error Jun 11 11:13:31 niru: your activity_mail.xml is fucked up Jun 11 11:13:50 android.view.InflateException: Binary XML file line #7: Error inflating class Checkbox Jun 11 11:14:10 Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.Checkbox" Jun 11 11:14:14 these are the relevant lines Jun 11 11:14:44 show the xml file Jun 11 11:15:28 danijoo, this is my activity_main.xml http://pastebin.com/WHfCsZWB Jun 11 11:15:35 could you please have a look Jun 11 11:17:23 yes Jun 11 11:17:28 its a typo Jun 11 11:17:59 it has to be CheckBox, not Checkbox Jun 11 11:21:01 When taking a picture with an Intent some phones rotate it and some do not. How do I know the orientation of the image? :-/ Jun 11 11:21:02 danijoo, yes I am here Jun 11 11:21:14 where is the typo error Jun 11 11:21:28 13:17 danijoo: it has to be CheckBox, not Checkbox Jun 11 11:21:37 ouch :( Jun 11 11:22:19 I want to divide my activity layout into four equal parts, the parts will be used as buttons for navigation. Should I go with a grid view here or is this the wrong use case? Jun 11 11:23:36 Does the default Android font support unicodE? Jun 11 11:23:45 Or at least a great part of unicode Jun 11 11:24:40 <_CalLightman_> Hi can someone help me with the scan only mode of wifi Jun 11 11:27:00 Hi guys, any pointers on how do I get bitmap from glsurfaceview using onDrawFrame from render class? Jun 11 11:27:18 been searching in google but didnt get any luck Jun 11 11:29:02 danijoo I have solved them but check this http://pastebin.com/xn4kn6Vy Jun 11 11:29:08 NullPointerException Jun 11 11:30:13 what is the difference between offsetTopAndBottom and setTranslateY? Jun 11 11:30:32 *setTranslationY Jun 11 11:32:05 platzhirsch: How about using weights? http://developer.android.com/guide/topics/ui/layout/linear.html Jun 11 11:32:20 My mainactivity file is http://pastebin.com/waT9fLUJ Jun 11 11:32:27 phyzloc: Thanks phyzloc, that is indeed my current solution, haven't looked at the layout profiler yet Jun 11 11:32:33 I am just afraid, that it is inefficient Jun 11 11:34:35 <_CalLightman_> is scan only mode unavailable for android versions bellow 4.3 Jun 11 11:34:41 <_CalLightman_> if so then how can we implement it Jun 11 11:34:57 <_CalLightman_> do we necessarily have to switch on for it in those versions Jun 11 11:37:51 danijoo, I got it Jun 11 11:38:06 I am able to see the output now Jun 11 11:38:10 thanks:) Jun 11 11:38:44 <_CalLightman_> is scan only mode unavailable for android versions bellow 4.3 .... if so then how can we implement it .... do we necessarily have to switch on for it in those versions Jun 11 11:50:04 Isn't Android Asset Studio part of Android Studio by now? Jun 11 11:50:27 http://romannurik.github.io/AndroidAssetStudio/ Jun 11 11:54:24 danijoo, is it ok if i change R.java file according the requirment Jun 11 11:54:41 for adding the buttons or checkboxes whnever needed Jun 11 11:55:00 you cant change R.java Jun 11 11:55:19 its generated from your xml resources eveytime you compile the app Jun 11 11:55:39 what do you want to do? Jun 11 11:55:58 But when I introduced the new checkboxes in activity_main.xml Jun 11 11:56:20 Why R.java did not get updated Jun 11 11:56:26 it should Jun 11 11:56:41 it takes the android:id field and updates R. accordingly Jun 11 11:56:48 maybe you have to recompile Jun 11 11:58:25 yes danijoo I understood Jun 11 12:20:07 is it possible to have a GridView animate its contents when an item is removed from the adapter? Jun 11 12:23:54 If I have an ArrayAdapter and fill an AutoCompleteTextView with it, how can I retrieve the position of the selected item with regards to the position in the ArrayAdapter (not the dropdown)? Jun 11 12:28:19 osxorgate: probably not without coding it yourself Jun 11 12:28:35 I tried http://stackoverflow.com/questions/13621762/how-to-find-the-position-of-item-in-a-autocompletetextview-filled-with-array but still returns the position in the reduced list. Jun 11 12:28:38 barq: The arrayAdapter has a getView method and the position parameter will give you what you want Jun 11 12:30:25 hi Jun 11 12:30:46 i have this little code that attach a class : Jun 11 12:30:47 http://pastebin.com/9xXdrzFS Jun 11 12:30:53 Betray1st: What is the convertView param in getView though? Jun 11 12:30:54 but how do i get views inside that? Jun 11 12:33:15 barq: the convertView param is a view (row) that is recycled by the ListView Jun 11 12:34:30 Not sure I understand where to get that from. Jun 11 12:34:55 I have public void onItemClick(AdapterView parent, View arg1, int pos, long id) Jun 11 12:35:01 barq: apparently I'm not fully awake yet today. I would just override the onListItemClick method Jun 11 12:35:32 hello, i am trying to load from cache else network on an android webview butwhen iclose the app and reopen it in airplane mode all i get is a white screen.... anyone have any ideas? Jun 11 12:37:00 Betray1st: That pos in onItemClick gives the position of the reduced dropdown, not the original ArrayAdapter. Jun 11 12:40:31 barq: what type of view are you using? Jun 11 12:41:02 hello. Are static objects released on close? Im working in a java game using libGDX framework and I had a class to manage my assets with a singleton. I store the instance in a static final variable but when I close and relaunch the game all crash because the instance is the same but all objects inside that class were disposed Jun 11 12:41:37 Betray1st: AutoCompleteTextView Jun 11 12:43:11 barq: Oops, I assumed you were using a ListView Jun 11 12:44:44 Is there a newer way of doing separated/grouped list views? The articles I've been finding some old articles -- one's from 2008. Are the called something else now? Like grouped list view? Jun 11 12:45:08 Oops, grammar.. "the articles I've been finding are pretty old" Jun 11 12:46:00 barq: autoCompleteView's getListSelection() might get you what you want, never worked with it so I'm not sure Jun 11 12:46:29 One of the examples creates an Adapter that extends BaseAdapter.. but it's called "Separating Lists with Headers in Android 0.9".. Jun 11 12:48:26 Betray1st: That returns -1 Jun 11 12:50:14 barq: are you using an arrayList for your data source holding the items? Jun 11 12:50:23 I am finding some stuff that uses ExpandableListView, but if I don't need my list to expand or contract. Is there anything else that just provides a list view with headings? Jun 11 12:50:46 hi there! is it possible to use a dynamically created array (instead of one defined in arrays.xml) in a ListPreference? how can i point android:entries to a array that is created at runtime? Jun 11 12:50:48 any help with my question? this bug is killing me :( Jun 11 12:51:08 Betray1st: ArrayAdapter. Jun 11 12:52:41 i have a layout with 2 textviews, both varying in linecount from 1 to 2. Both different fontsizes. Is it possible to have the layout always have the size of when they would have 2 lines? Meaning, if i have 2 lines in total, the layout would still be as high as if they had 4 Jun 11 12:53:43 mrcloud, are you sure the singleton is the same instance as the one that was around before you exited the game? Could it have been re-initialized when you started the game again? Jun 11 12:54:07 highcup: what's "separated/grouped" mean? Jun 11 12:54:43 highcup: must be the same because I have an assetmanager inside that is disposed on close and when I realaunch the game it crash because is still disposed so a new instance of this singleton was not created Jun 11 12:54:50 barq: that's not the data source, take a look at this link: http://stackoverflow.com/questions/15833327/selected-item-of-autocomplete-textview-show-as-simple-textview Jun 11 12:55:36 anyone have experience with webview cache? Jun 11 12:55:41 osxorgate, separated as in list view items that can be grouped under headings. Jun 11 12:55:53 Betray1st: Sorry, it's a List = new ArrayList Jun 11 12:59:23 mrcloud, so when a singleton instance is created, you also create a new assetmanager? Jun 11 12:59:33 highcup: exactly Jun 11 12:59:58 highcup: this is the code http://pastebin.com/bL0PUWf0 Jun 11 13:01:55 So I need to use indexOf? Jun 11 13:02:36 mrcloud, where's Assets.dispose() called from? Jun 11 13:02:55 highcup: on game dispose Jun 11 13:03:01 highcup: before close it Jun 11 13:06:13 mrcloud: Hmm, would it make sense in your game to write a setup() method that is called from Game, that would re-initialize the assetmanager? As for your original question, the singleton should stick around the entire time your application is running. So unless "closing the game" means that Android halts execution of your app, the singleton instance will stick around. Jun 11 13:06:53 highcup: yeah, I could use a new assetmanager every time I suppose Jun 11 13:08:10 mrcloud: is there a reason to dispose of it entirely, or would just clearing its contents/resetting it work? Jun 11 13:09:16 highcup: actually its the same but dispose method kill the assetmanager and as Im clossing the game I think that is not necesary anymore Jun 11 13:10:21 could somebody tell me, where in the fileysystem is the file maindebug supposed to show up? http://pastebin.com/WPyTmsqc Jun 11 13:16:01 anyone experuence with webview cache in airplane mode? and it loading white screen? Jun 11 13:16:41 can I turn off the expandability of expandable list views? Jun 11 13:19:18 anyone have the debugger working on win8? Jun 11 13:19:39 jamesson: Which debugger? Jun 11 13:19:57 Jonathan_Eyre: DDMS Jun 11 13:20:09 Eclipse +Windows 8 + DDMS works on my machine. Jun 11 13:21:25 Jonathan_Eyre: It just says "connection attempts..." wihout an error Jun 11 13:22:33 Jonathan_Eyre: I had this isue http://stackoverflow.com/questions/2937532/should-i-worry-about-ddms-console-log-messages-cant-bind-to-local-nnnn-for-deb, but it sswitched to the current situation after I followed their instructions Jun 11 13:27:37 jamesson: When in doubt, reboot everything. Jun 11 13:28:18 Jonathan_Eyre: the odd thng is, LogCat seems OK Jun 11 13:28:20 This is the second time that i tried flashing TWRP 2.7.1.1 to my N5 and when booting to recovery it goes into loop, flashing the 2.6 version goes well am i doing something wrong i falshed it with fastboot with N5 oem unlocked? Jun 11 13:29:28 asad2005: you probably want #android-root as per title Jun 11 13:31:53 jamesson: FWIW, I had the most difficult time connecting my devices for a time, and they used to connect, so I knew it wasn't lack of drivers or phone permissions. It turns out that my murderous rage was 99% due to crappy USB cables. TL;DR Get the best USB cables you can. Jun 11 13:32:19 Jonathan_Eyre: these are brand new from the box Jun 11 13:32:52 And you see the device through "adb devices"? Jun 11 13:32:59 anyone know how google created that new review dialog on google play?? Jun 11 13:33:01 And can shell into it? Jun 11 13:33:45 serrghi_: in what way? Jun 11 13:34:32 Estel: in the way that the profile image is floating outside the dialog fragment (or atleast looks like it) Jun 11 13:34:56 seen here: http://cdn.androidpolice.com/wp-content/uploads/2014/05/nexusae0_wm_2014-05-15-22.15.18.png Jun 11 13:34:56 serrghi_: the view at that point is transparent? Jun 11 13:35:11 anyone know what android.os.Build.MANUFACTURER is on LG devices? Jun 11 13:35:26 Estel: looks to me like theyve built the whole dialog from scratch, with custom 9patches Jun 11 13:35:55 hello i m using the following code to create a webview/webchromeclient and when i switch over to aireplane mode in LOAD CACHE only i get a white screen -> http://pastebin.com/9P0vThyZ Jun 11 13:38:42 Hmm, so looks like if you want headings within a list view, you _have_ to go with ExpandableListView and just disable the capability to collapse/expand the list. Jun 11 13:58:59 highcup: https://play.google.com/store/apps/details?id=oak.demo, has a demo for a sectionlistview and link to source/library Jun 11 14:02:17 frankdoyle: thanks, I'll check it out Jun 11 14:05:42 You can also get headings in listviews by writing your own adapter and inserting new elements that change the layout for that view Jun 11 14:06:07 ie use a map of lists and then present an arrayadapter that flattens it into a single list with header items Jun 11 14:06:15 and then show/hide the 'header' part of your item view Jun 11 14:07:24 section headers? easy... just a different type of view in your list every now and then Jun 11 14:07:36 yup Jun 11 14:07:52 dragorn, I kinda like that -- less nesting and the only overhead is a TextView per item that can be hidden.. Jun 11 14:08:25 hello there. I'm struggling with android studio. When mouse selecting a piece of code it does not highlight the code row by row but i need to design a selecting rectangle Jun 11 14:08:28 highcup: you most likely can also just expand a different view, but I've never bothered testing b/c I didn't make huge sectioned lists where it mattered Jun 11 14:08:36 to include all the code i want in my selection Jun 11 14:08:52 that's effectively what that library i gave does, it just abstracts away the logic of deciding whether an element should show the header Jun 11 14:08:52 do you know how to switch back to a "more standard" selection behavior? Jun 11 14:08:55 highcup: I'm positive it will work for expanding a new view, but I'm not sure what it would do to the view recycling a listview does for you Jun 11 14:09:25 highcup, http://javatechig.com/android/listview-with-section-header-in-android Jun 11 14:10:33 expandablelistview is a horrible component Jun 11 14:10:37 I hope no one ever uses it :p Jun 11 14:13:04 Ah. Thanks for the suggestions, guys. My cup overfloweth -- got some reading to do. Jun 11 14:28:33 I had this working, but now it doesn't... how do I get a list view to have checkedtextView items, and programmaticalyl check them? Jun 11 14:44:30 Scorp1us: it's kinda messy, but basically you want a custom layout that is checkable, http://developer.android.com/samples/CustomChoiceList/src/com.example.android.customchoicelist/CheckableLinearLayout.html and if you want child views to reflect the parents state, use http://developer.android.com/reference/android/view/View.html#setDuplicateParentStateEnabled(boolean) on the child view - then the CheckedTextView should display the state chorrectly Jun 11 14:45:03 Scorp1us: I'm assuming the textview is part of a more complex adapter... Jun 11 14:47:48 yes Jun 11 14:47:50 thanks Jun 11 15:01:57 Hrm. I'm not sure that's useful. but it is close Jun 11 15:02:36 I'm so confused. this worked as long as the user was selecting it. Jun 11 15:13:42 I have an activity that starts a Service once, and inside that Service I need to send a notification Jun 11 15:14:13 how would I define the intent that does this? intent = new Intent(Service, ); Jun 11 15:14:38 since my activity is not guaranteed to be running at the time of the notification being triggered, since the service will keep running regardless if the activity is Jun 11 15:18:18 Sicp: what sort of notification are you sending? Jun 11 15:18:31 one that appears in the top drawer Jun 11 15:18:45 user notification Jun 11 15:21:29 Well when you're in your service, you can just build the notification object with Notification.Builder and perform notiffy on the notificationmanager? Jun 11 15:21:59 still requires intent Jun 11 15:22:04 I dont know how to populate the intent in this case Jun 11 15:22:08 http://stackoverflow.com/questions/1207269/sending-a-notification-from-a-service-in-android Jun 11 15:22:18 see 2nd part of 2nd answer Jun 11 15:22:29 ah sorry, I didnt read Jun 11 15:22:37 / prepare intent which is triggered if the Jun 11 15:22:37 / notification is selected Jun 11 15:22:42 That intent is the pending intent in the notification, yeah Jun 11 15:22:57 I thought it was going to use that activity to receive the notification, as in my case the activity would be long gone Jun 11 15:23:02 this is for reopening it if pressed Jun 11 15:23:31 Yep Jun 11 15:23:47 is there a SortedMap that lets you gives you a keyList? Jun 11 15:23:51 it should bundle all of that information up in Extras, shouldnt it Jun 11 15:24:01 or I can just putExtras in it Jun 11 15:24:10 (It doesn't have to be reopening the activity, the intent it sends could also be intercepted by a receiver and do something without opening an activity) Jun 11 15:24:17 yea I dont want that Jun 11 15:24:25 Im aware of what you said Jun 11 15:24:45 or maybe Jun 11 15:24:47 dont know Jun 11 15:25:02 shekibobo: you can get the keys from a map and then sort that Jun 11 15:25:17 anyone here know how to get the bitmap image from glsurfaceView? Jun 11 15:25:55 markmarkmark: but if the map is sorted, i.e. in the order the keys are added, there's no way to get those preserving their order? Jun 11 15:26:08 shekibobo: would a LinkedHashMap do? Jun 11 15:28:18 Does it return a SortedSet if I get keySet()? Jun 11 15:28:29 well that worked Jun 11 15:30:15 I don't want to iterate through the keys, so much as get a list of the keys in their proper order Jun 11 15:30:17 god damn moog synth Jun 11 15:30:27 what a beast Jun 11 15:33:21 shekibobo: try a TreeMap probably http://developer.android.com/reference/java/util/TreeMap.html Jun 11 15:34:16 what is the best way to check the server for new input after a given period of time? Jun 11 15:34:22 should i create a service and a callback? Jun 11 15:35:20 jvrodrigues: http://developer.android.com/google/gcm/index.html Jun 11 15:35:45 thank you mate Jun 11 15:36:58 np Jun 11 15:37:46 markmarkmark: so something like `new ArrayList(treemap.navigableKeySet())` should give me what I need, right? Jun 11 15:38:45 does NavigableSet implement Collection? Jun 11 15:38:51 you cannot know when the user hangs up the phone call, can you Jun 11 15:38:53 I dont think so Jun 11 15:39:07 shekibobo: that should work Jun 11 15:39:13 markmarkmark: thanks Jun 11 15:39:18 np :) Jun 11 15:40:01 hey Estel , what if I want the intent to be that of nothing? Meaning I dont want anything to happen when the notification is pressed Jun 11 15:40:19 this shouldn't happen to begin with? canceling press? Jun 11 15:49:11 is there a permission that allows me to get a decor view with the status bar intact? Jun 11 15:51:30 is it possible for a native android app to run a piece of javascript code, possibly passing in some objects, and getting the result back? (just a piece of code, no html ui or anything like that) Jun 11 15:52:07 i have googled a bit, but all i can find has to do with WebViews, which i don't think is what i want Jun 11 15:57:23 Ahti333, you need a javascript engine, maybe rhino / nashorn Jun 11 16:02:40 ktwo i'll look into that, thanks :) Jun 11 16:25:50 what is the secret to getting clicks on list items? Jun 11 16:26:05 Mine are in a scroll view and they seem to not be clickable. Jun 11 16:28:16 Scorp1us: what do you mean by in a scrollview? Jun 11 16:28:33 "List items" usually means within a ListView Jun 11 16:28:48 yes, listview is in a scrollview Jun 11 16:28:55 Yeah, don't do that :) Jun 11 16:28:58 IsIs there a way to request for large heap on 2.3? because I got OutOfMemory on 2.3 (min sdk 10) but not on 4.0+ Jun 11 16:28:59 The listview already scrolls Jun 11 16:29:23 Estel: the scrollview has a lists of lsits. Jun 11 16:29:32 Yeah, don't do that :P Jun 11 16:29:33 It's not my choice. Jun 11 16:29:46 list-ception Jun 11 16:29:48 How so? Jun 11 16:29:53 it's the designer's design. Jun 11 16:30:08 I am responsible for implementing it, and its many faults. Jun 11 16:30:27 Yeah but you don't need to nest multiple listviews in a scrollview Jun 11 16:30:37 What then should I do? Jun 11 16:31:10 I think the normal route is to write a custom adapter that adds views to a LinearLayout that's in the ScrollView. Jun 11 16:31:30 Alternatively, write an adapter that combines the data from all of your listviews into one listview. Jun 11 16:32:00 Oh, ok. Maybe I have misspoken Jun 11 16:32:55 I do have a linear layout in the scrollview. The linear layout is textviews as list headers, then the lists themselves, which are set to View.GONE/VISIBLE as needed Jun 11 16:33:09 is there a way to ensure that calling .add() multiple times will not add duplicate fragments, besides testing if a findFragmentById is null? Jun 11 16:33:45 ... Jun 11 16:34:04 Yeah, you still shouldn't have a listview in a scrollview. Jun 11 16:34:15 all of that in a .. Jun 11 16:34:41 So I'm not understanfing your suggestion. Jun 11 16:34:42 I am having a problem getting the cache to load in a webview when in airplane mode (offline) - its just a white screen -> http://pastebin.com/q5kZRbGQ this is the code any input would be appreciated Jun 11 16:35:08 Scorp1us: how many items are typically in each of those listviews? Jun 11 16:35:23 it varies, from 1 to 100 Jun 11 16:35:40 Images? Jun 11 16:35:53 text. multiple-selectable text Jun 11 16:36:16 each LVI is a selectable CheckedTextView Jun 11 16:36:31 Cool. Then rather than use a ListView, you can probably just loop through your dataset and add a CheckedTextView into the LinearLayouts manually Jun 11 16:37:12 I really like using adapters though, because the list items themselves are populated by web services. Jun 11 16:37:17 You could have a list of lists and when the adapter is creating the rows, it will loop through the outer list to create the headers and the inner list for creating the rows for that header Jun 11 16:37:34 So I have a web service asyc that popualtest he list data. Jun 11 16:38:03 Betray1st: who is that a criticism of? me or Estel? Jun 11 16:38:46 Scroplus: just a possible suggestion for you, no criticism Jun 11 16:38:53 I started out with LinearLayouts, but moved to LVs Jun 11 16:39:54 There would be a lot of "which index am I modifyng from" Jun 11 16:40:08 and the async issues.... indexes could get out of order Jun 11 16:40:26 Betray1st: you could write a custom Adapter class that populates a LinearLayout with CheckedTextView "rows"? The Adapter itself isn't worried about it being a listview Jun 11 16:40:37 hey there, im using http basic authentication via rest, is there a kind of token id or similar to identify against the server? atm after successful authentication im trying to do another request but server still asks for authentication Jun 11 16:40:49 Ultimately that's all that the adapter does, right, bind data to a view? Jun 11 16:41:24 Estel: right, I think I over thought some things. Jun 11 16:41:32 I am faceing a problem with Android Custom Fonts, could someone help me! Jun 11 16:41:32 Anyway, what are the keys to beign able to handle clicks in my current situation? Jun 11 16:41:37 Scorplus: are the headers from a web service as well? Jun 11 16:41:44 Betray1st: no Jun 11 16:41:59 IsIs there a way to request for large heap on 2.3? because I got OutOfMemory on 2.3 (min sdk 10) but not on 4.0+ Jun 11 16:42:00 they come from application state. Jun 11 16:42:28 Scorp1us: you've added an OnItemClickListener to (each of the) listviews and the onClick() event isn't firing? Jun 11 16:43:02 Why not have one fragment or activity handle the list of headers and another to show the second list from a web service when the header is clicked? Unless the design is to show both Jun 11 16:43:03 I did at one point, let me verify. Jun 11 16:43:21 the design is to show both. Jun 11 16:44:11 yoavst: not really, no. It varies between devices at the random whim of the manufacturer anyway Jun 11 16:44:50 EEstel: :/, It make me angry that android 2.3 devices crashes but 4.0+ not Jun 11 16:45:12 Just use less memory :D Jun 11 16:45:34 Fwiw I don't know if you can assume that all 4.0+ devices would work either? Jun 11 16:46:00 Bah, I've got liek 10 LVs, I missed hooking this one onItemClickListener up. LOL Jun 11 16:46:01 Well, I'm working on an app that was built by another dev. this dev never heard about drawable-XXXX Jun 11 16:46:22 well, he actually heard only about -HDPI, so 90% of the pictures (70 Jun 11 16:46:27 )are in this folder :( Jun 11 16:51:39 Did you saw Google IO 2014 app? Jun 11 16:52:15 Here is the problem, https://github.com/Amjadf/amjadf/issues/1 Jun 11 16:54:59 yoavst is it out yet ? Jun 11 16:55:10 yes Jun 11 16:55:33 oh, i mean source code Jun 11 16:55:35 nice Nav drawer (3 parts, settings is same layout as the other) Jun 11 16:55:37 oh, I'll check Jun 11 16:55:43 doesnt seem to be Jun 11 16:55:48 Im using http basic authentication via rest with https, is there a kind of token id or similar the server responds? atm after successful authentication im trying to do another request from another activity but server still asks for authentication, so i have to send credentials again, which sucks Jun 11 16:56:04 yoavst can you save me 10 seconds and let me know if it requires google+ ? Jun 11 16:56:13 No, it does not Jun 11 16:56:20 ah, awesome. last years did Jun 11 16:56:25 i'll try it then :D Jun 11 16:56:33 * g00s pretends to be at i/o Jun 11 16:57:38 hm, searched for iosched and all i found was 2013 Jun 11 16:58:07 g00s: not yet :( Jun 11 16:58:12 alt0r: I believe you have to send the auth string with every request. Jun 11 16:58:45 eventhough it has a metro look Jun 11 16:59:42 yeah, it looks like metro heh Jun 11 17:00:02 scrolling is pretty janky; i guess we still can't do that right Jun 11 17:00:29 hm, so they hide the action bar on scrolling, interesting Jun 11 17:03:44 any help !! Jun 11 17:03:57 hm, when i have it filter for android sessions, it only shows 8 - are ther really only 8 sessions ? Jun 11 17:05:09 interesting, background images to tiles stopped showing Jun 11 17:05:13 heh Jun 11 17:10:33 the app is showing different android sessions than the website Jun 11 17:14:08 just noticed there are lots of really interesting sandbox sessions, but those won't be recorded. bummer Jun 11 17:19:38 g00s: do you have experience with custom fonts ? Jun 11 17:29:08 I'm using a FragmentPagerAdapter and I'm trying to run some code to send a broadcast to a Fragment after the Fragment has been resumed. I register a listener in the Fragment's onResume. However, even when overriding onResumeFragments in my activity, the code in onResumeFragments runs before the Fragment's onResume. Anyone know how to run code after the Fragment is actually ready? Jun 11 17:39:08 Let's say I have a linear layout and a picture in it. I have an assumption about the size, so it shouldn't be the default size (match_parent), instead I use fitXY scale type and set a fixed dp' Jun 11 17:39:22 fixed 'dp' layout_width/height, it doesn't scale on different screen sizes Jun 11 17:39:26 what am I missing here? Jun 11 17:41:45 hi Jun 11 17:41:58 i want to set a drawableLeft on textview by code Jun 11 17:42:09 now i think i should use setCompoundDrawablesWithIntrinsicBounds Jun 11 17:42:14 but its undefined ? Jun 11 17:43:09 TextView has a drawableLeft? Jun 11 17:43:47 yep Jun 11 17:44:31 good to know :) Jun 11 17:45:58 also important, because it's more efficient than just putting together imageview and textview Jun 11 17:46:07 scales better Jun 11 17:47:06 do you have a source for that? Jun 11 17:50:44 What’s a decent entry level android to buy if I want to get into coding android apps in a couple of weeks? I know they have emulators but obviously the real thing will have non emulatable stuff like geolocation. One of the samsungs? I heard there’s developer centric droids out there... Jun 11 17:51:16 That’s a good question…I’ve been wondering the same thing Jun 11 17:51:43 \o/ Jun 11 17:51:46 extor: best would be to get one of googles own phones (nexus), as they get updates faster then other brands Jun 11 17:52:13 danijoo firwmare updates or OS updates? Sorry I’m a total droid noob Jun 11 17:52:22 both Jun 11 17:52:38 I hope nexuses can be aquired for less than $200 Jun 11 17:52:41 you dont have to care about firmware as developer Jun 11 17:52:59 and if google releases a new android version or update, it instantly pushes it to their nexus phones Jun 11 17:53:06 firware is ROM or is it the OS? Why does #android-root exist? Jun 11 17:53:16 and all other brands will do their own modifications and u have to waot Jun 11 17:53:33 ROM is the OS. android-root is for rooting phones Jun 11 17:53:39 Ahh so do all serious developers prefer nexus then Jun 11 17:53:55 yeah but when you root phones, you’re rooting the ROM right? Jun 11 17:54:01 extor: it really doesnt care what phone you have for developing Jun 11 17:54:11 but nexus are the most and longest up-to-date Jun 11 17:54:12 extor: Buy a used, unlocked Nexus device for sure. You can get a Galaxy Nexus (dated) or Nexus 4 (more recent) for pretty cheap I'd bet. Jun 11 17:54:33 I assume rooters and developers probably prefer some hardware flexibility such as detachable ROMs. Does nexus have that or would some other manufacturer have that sort of flexibility Jun 11 17:55:01 I take it used ones don’t have a warranty. I’d hate for it to go kaput. Jun 11 17:55:05 the good thing about nexus is to root your android, for other brands you often have to use hacks, tools or whatever Jun 11 17:55:08 Nexus phones from newest to oldest: Nexus 5, Nexus 4, Galaxy Nexus, Nexus S, Nexus One Jun 11 17:55:11 on nexus its only one terminal command Jun 11 17:55:28 So a nexus is easier to root than the others Jun 11 17:55:31 yep Jun 11 17:55:32 Definitely Jun 11 17:55:58 Does Nexus 5 have the version 5 OS? I thought 4.4 was the latest Jun 11 17:56:00 in the past, even google called their nexus phones "for developers" Jun 11 17:56:16 No, it's called that because it came after the Nexus 4 Jun 11 17:56:21 Oh nice. So nexus is what I’ll have to get Jun 11 17:56:28 extor: the 5 is because its screen size is 5" :) Jun 11 17:56:33 Does 5 just have more ram and better CPU than 4? Jun 11 17:56:37 Yes Jun 11 17:56:38 oh just a screen Jun 11 17:56:47 is also has better ram, cpu and stuff Jun 11 17:57:01 The Nexus 4 is still pretty solid by today's standards, and it will likely be significantly cheaper Jun 11 17:57:17 Used nexus 5 with remaining warranty can be had for less than $200 ? Jun 11 17:57:27 yes. also nexus 4 still gets the newest updates. so the android version is the same as nexus 5 Jun 11 17:57:34 You'd have to check ebay/craigslist for that Jun 11 17:58:02 then besides the sceen there’s no real reason to get a 5 over a 4 for development purposes and even general use Jun 11 17:58:21 Don't worry about the warranty though. It's not going to break, and it would be very, very, very difficult to break it by running a buggy program on it Jun 11 17:58:43 I take it droids function on GSM only with a sim card. ie very ATT friendly in the states Jun 11 17:58:45 Even that would certainly be reversible, anyway Jun 11 17:59:08 extor: It varies Jun 11 17:59:11 If you buy a GSM variant of the phone, yes Jun 11 17:59:23 In some countries, you can make emergency calls with no SIM Jun 11 17:59:47 I like the idea of GSM since it’s most hackable once you break into it Jun 11 18:00:00 with dual sim cards and all other modder stuff out there Jun 11 18:00:07 SpeedEvil: emergency calls, at least in EU, are by law always available Jun 11 18:00:13 Not in the UK Jun 11 18:00:26 In the US I know you can use a phone with no active service to make an emergency call Jun 11 18:00:27 SpeedEvil: hmm? Pretty sure they are supposed to provide 112 Jun 11 18:00:29 I don't know about other countries in teh EU Jun 11 18:00:36 Well, they don't. Jun 11 18:00:57 And the droid language is identical in syntax to java and c++ I take it. With or without OOP formatting Jun 11 18:01:26 http://www.coastguardrescue.org.uk/lrgtxt/reg-document.htm?textobjid=F09BC275533745FC Jun 11 18:01:37 In Germany, you can do that emergency calls, too Jun 11 18:01:38 You can use the NDK to run C++ code natively on android, but most apps are written in Java Jun 11 18:01:55 '5 Emergency roaming (without a SIM) facility existed in the UK mobile telephone network until 1998. It was switched off as a result of a request from Association of Chief Police Officers (ACPO) and the then Office of the Deputy Prime Minister. Concerns were raised around the volume of hoax and nuisance emergency calls made, using this facility, which could not be traced.' Jun 11 18:02:03 The whole android dev kit is centered around writing Java-based apps, for the most aprt Jun 11 18:02:21 SpeedEvil: heh Jun 11 18:02:23 (It's not been turned ack on) Jun 11 18:02:49 extor: Also Droid is a specific style of an Android device made a while ago by Motorola Jun 11 18:02:58 danijoo, nicht mehr :-) Jun 11 18:03:05 echt? Jun 11 18:03:09 Yeah, "android" is the proper term for the OS, not to be pedantic Jun 11 18:03:54 Moto did some good marketing with "droid" though, because I still hear a lot of people refer to Android by that :) Jun 11 18:04:52 Anyone have good coding music to recommend? I'm getting tired of my playlists Jun 11 18:05:20 classical? Jun 11 18:06:02 JavaDog: I listen to soundtracks for video games and stuff, I can't sing along with them but they sound awesome, and kind of fade out in the background. Basically classical music but bad ass Jun 11 18:06:12 Heh, can you Händel it? Jun 11 18:06:17 Like Elder Scrolls or World of Warcraft playlists Jun 11 18:06:32 The super meat boy soundtrack is pretty good too Jun 11 18:06:43 Lord of the Rings Jun 11 18:06:54 Battlestar Galactica Jun 11 18:08:40 Händel is more Baroque than Classical Jun 11 18:09:53 i'm surprised nobody joked dubstep Jun 11 18:12:29 JavaDog: if haz_spotify then http://open.spotify.com/user/oliveremberton/playlist/4ifk7EG0SLkV0En6s0ds7g Jun 11 18:13:23 * JavaDog is a faithful google user, therefore he uses GPM :| Jun 11 18:15:03 is it possible to schedule a release on google play dev\ Jun 11 18:15:47 GRADLE INVOCATION FINISHED <- anyone figured how to shut that thing up for good? Jun 11 18:20:34 Does android have a highly scrutinized and hard to get into official app list like apple has, or are droid apps pretty much strewn everywhere rather than at one central place like the iphone’s appstore? Jun 11 18:22:36 can I not use Butterknife to instantiate view references in a custom component? Jun 11 18:26:52 Hey guys, question about alpha testing. I uploaded my apk for a small group of testers. It's version 3. There is an issue we had to resolve so now i'm trying to upload a replacement, but it wants me to increase the version. So do I have to increase the version for every new alpha test? and if so, when I eventually publish to prod, do I have to use the latest alpha version or can I manually upload back to version 3? Jun 11 18:30:27 RetroDude, well there is actually the version label and version, the version has to be increased for each apk, but the label can be same like 1.0 Jun 11 18:32:10 extor: No, everyone plays in the same field on android. The central "place to get apps" is the Google Play store (android's appstore) Jun 11 18:32:40 It's not highly scrutinized, which can be good or bad depending on how you look at it. I prefer it that way. Jun 11 18:33:22 OK, so if we end up having to test like 5 different version of the apk in alpha testing and finally have a stable version, the one we publish to prod has to equal to the latest alpha version, but manifest version label can be anything. Seems kind of silly Jun 11 18:33:36 why wouldn't you be able to remove/replace an alpha apk Jun 11 18:34:03 its not as silly if you think about it , and its not like that , beta alpha and production are separate Jun 11 18:34:08 extor there is 'Editor's Choice' Jun 11 18:35:03 oh they are separate so if I upload 5 versions to alpha so that the latest is like version 7, I can still upload version 3 directly to prod, it couldn't clash? Jun 11 18:35:26 well, no the increment has to be increased each time, but the version the users see not Jun 11 18:35:30 it can be anything Jun 11 18:36:02 gotcha, thanks Jun 11 18:37:52 I'm trying to use a custom implementation of Switch in my XML but it's just giving me a nullpointer in android studio. Anyone know what I'm doing wrong? http://pastebin.com/jfiVQ2fR Jun 11 18:38:48 (and no, that LinearLayout is not the root layout) Jun 11 18:39:47 and the constructor is just a pass-through: Jun 11 18:39:48 public BetterSwitch(Context context, AttributeSet attrs, int defStyle) { Jun 11 18:39:50 super(context, attrs, defStyle); Jun 11 18:39:51 } Jun 11 18:52:46 anyone here used worklight to make an app? Jun 11 19:01:49 Hey, I'm using Android Annotations and Spring Android to receive data from a REST API. My app consists of a FragmentStatePagerAdapter that manages fragments. When I swipe through the Fragments quickly, I get an uncaught exception and the app crashes (black, unusable screen). Any ideas on what I should do? Jun 11 19:02:41 I wrapped all my netcode in try/catches. I believe this happens when the Fragment is invalidated (because I swiped past it), and my @UiThread methods may be calling a stale UI element Jun 11 19:11:38 MarkyC: well you can always catch the exception, you just need to look at your logcat output. You may need to provide callbacks in your threaded updates to abort them when the fragment moves away Jun 11 19:16:12 I'm having a slight design annoyance with an ExpandableListView dividers - I want dividers between the parent elements and none between the children. That's fine. The problem is I want the divider for the parent to be under the children elements Jun 11 19:17:00 MarkyC: hard to say without seeing the stacktrace :) Jun 11 19:17:16 However, the divider is between the parent and the children. How can I fix? Jun 11 19:27:48 does anyone have experience developing in a webview with cacheing? Jun 11 19:30:18 strange, onCreate is never called more than once in 3 of my TabHost tabs Jun 11 19:30:20 wtf Jun 11 19:30:29 the 2 remaining tabs call onCreate each time! Jun 11 19:32:34 strangest behavior I've seen Jun 11 19:32:39 http://www.androidpolice.com/2014/06/10/simplified-permissions-ui-in-the-play-store-could-allow-malicious-developers-to-silently-add-permissions/ Jun 11 19:33:16 When new permissions are added, there are no outwardly visible signs that anything has changed so long as no new categories are added. Jun 11 19:33:17 g00s: https://developer.android.com/sdk/installing/studio.html contains the SDK btw Jun 11 19:33:44 there is absolutely nothing differentiating those activities from one another as far as the overridden lifecycle methods... Jun 11 19:34:02 google is getting more and more stupid with this Jun 11 19:37:04 Expecting users to read permissions in the first place was stupid Jun 11 19:38:11 SimonVT: i dunno, it's a very big thing for them Jun 11 19:38:23 to give the responsibility and acountability to the user Jun 11 19:38:39 *accountability Jun 11 19:38:46 Haha Jun 11 19:39:20 it's kinda their thing Jun 11 19:39:29 Dudi: did you go to droidcon today? Jun 11 19:39:37 I assume you're from IL Jun 11 19:39:44 It'll always be googles fault if bad things happen to a users device/information because of a play store app Jun 11 19:39:52 thepoosh I'm from Poland and no Jun 11 19:39:58 ohmyyyy Jun 11 19:40:07 you have a very Israeli nick Jun 11 19:40:07 and I'm from Lebanon Jun 11 19:40:12 party! Jun 11 19:40:20 Sicp: you should come by Jun 11 19:40:28 you come by Jun 11 19:40:29 there is an android conference in IL tomorrow Jun 11 19:40:36 meet you at the blue line Jun 11 19:40:37 lol Jun 11 19:40:41 lolz Jun 11 19:41:19 Dudi: sorry, an israeli based name (short for David in IL) and being active in the same hours as me Jun 11 19:41:26 made me assume stuff Jun 11 19:41:27 if I want to remove the tabhost implementation and replace it with a swiping tabs one, what am I looking for? Jun 11 19:41:35 FragmentTabHost? Jun 11 19:41:39 ViewPager Jun 11 19:41:48 with ViewPagerIndicator Jun 11 19:41:49 even with 5 tabs? Jun 11 19:41:53 yeah Jun 11 19:42:01 does it support icons for indicators of the tabs? Jun 11 19:42:13 http://viewpagerindicator.com/ Jun 11 19:42:17 I think it does Jun 11 19:42:37 or you could just write your own indicator Jun 11 19:42:38 you can ask JakeWharton if it doesn't say anything in the website (i think it's all there) Jun 11 19:42:47 cause Sherlock is like that one Jun 11 19:42:48 no icons Jun 11 19:42:51 dragorn: serrghi: Thanks! I set an DefaultUncaughtExceptionHandler and I was wondering why an uncaught exception was coming through. Then it occurred to me I didn't set one on the bg threads. So I set one and it told me I was using a null activity from getActivity() (from a @UiThread). All fixed now and safeguards put in place. Gracias! Jun 11 19:42:56 I depend heavily on the icons as indicators Jun 11 19:43:00 yea I could write my own Jun 11 19:43:06 Jun 11 19:43:13 attach s Jun 11 19:43:14 done Jun 11 19:43:33 :shipit: Jun 11 19:43:41 now start listening to the changes of the adapter and make some animations Jun 11 19:43:52 sort of easy peasy Jun 11 19:44:10 if you know it's always five views i wouldn't even bother generalizing Jun 11 19:44:19 just throw them right in the XML and bind Jun 11 19:44:22 Is it possible to check the date an Intent was created? Otherwise check to see if an Intent used to launch my app is equal to the last Intent used to start it? Jun 11 19:44:52 right now Im looking at the strangest thing, oncreate is called only once for some of the tabs and not others Jun 11 19:44:56 this is absurd Jun 11 19:45:04 there's no CLEAR_TOP anywhere Jun 11 19:45:06 that makes no sense Jun 11 19:45:28 http://il.droidcon.com/2014/agenda/ Jun 11 19:45:33 this is the agenda Jun 11 19:45:33 Im looking at hte lifecycle methods, they're exactly the same, no idea what could be causing this Jun 11 19:45:41 I want only one onCreate for all Jun 11 19:45:51 Sicp: fragments are not very reliable (I think) Jun 11 19:45:59 still on TabHost now Jun 11 19:46:05 hmmm Jun 11 19:46:09 its so stupid simple that I dont know where to look Jun 11 19:46:10 isn't it deprecated? Jun 11 19:46:13 t Jun 11 19:46:15 yea* Jun 11 19:46:42 are you running on a new system? Jun 11 19:46:54 yea Jun 11 19:47:00 hmmm Jun 11 19:47:12 so why are you surprise it's unexpected? Jun 11 19:47:23 I am sure it's something I've done, because it's always tabs 1 and 2 and not the rest Jun 11 19:47:27 its too systematic! Jun 11 19:47:38 Sicp it loads adjacent fragments Jun 11 19:47:39 hmmmm Jun 11 19:47:55 these arent fragment Jun 11 19:47:56 +s Jun 11 19:47:58 if you didn't swipe oh Jun 11 19:48:34 it didn't use to behave this way before, I remember having this solved without solving it even Jun 11 19:48:40 why *would* onCreate be called twice! Jun 11 19:48:44 ok Jun 11 19:48:48 good night you guys Jun 11 19:48:49 its default behavior to have it only once Jun 11 19:49:22 Sicp: where are your setContentViews ? Jun 11 19:49:28 in onCreate of course Jun 11 19:49:40 maybe it has something to do with it Jun 11 19:50:04 what combination of divider/childDivider attributes should I use to get parents of an ExpandableListView having dividers when closed and when expanded for the divider to be below the child elements? Jun 11 19:51:23 Android studio can't see my device. What to do? Jun 11 19:51:37 Can adb see it? Jun 11 19:51:41 'adb devices' Jun 11 19:51:53 yes Jun 11 19:51:54 gdrc: is it auto mounting the sd card to your computer? Jun 11 19:52:01 no Jun 11 19:52:29 is there a way to refresh/reset the IDE adb view like in Eclipse? Jun 11 19:52:55 it was the ID's of the tabSpecs Jun 11 19:53:04 newTabSpec("ID HERE") was duplicated for those 2 tabs Jun 11 19:53:08 here http://stackoverflow.com/questions/6844502/android-eclipse-two-activities-in-two-different-tabs-keeps-calling-oncreate Jun 11 19:53:11 gdrc: look at this: http://stackoverflow.com/a/17509751/1056359 Jun 11 19:53:32 back to normal now Jun 11 19:54:12 I run os x thepoosh. Jun 11 19:54:20 hmmmm Jun 11 19:54:23 join our cult Jun 11 19:54:35 I have a macbook pro Jun 11 19:54:38 :S Jun 11 19:54:38 List of devices attached Jun 11 19:54:38 TA88303VEN device Jun 11 19:54:43 cause you're pro, bro Jun 11 19:54:45 hmmmm Jun 11 19:54:48 lolz Jun 11 19:54:54 I have an hackintosh Jun 11 19:55:10 the blood of christ compels you! Jun 11 19:55:14 tried that once Jun 11 19:55:26 ended up formatting my laptop Jun 11 19:55:30 it sucked Jun 11 19:55:46 I installed it sunday. Works perfect on ssd Jun 11 19:55:47 Hi, I make a new application in eclipse but it doesnt make any R file. i already removed the Import.R in the main.java Jun 11 19:56:15 peyam: do you have an error in one of your xml files? Jun 11 19:56:25 I havent make any xml file yet Jun 11 19:56:33 there is just one main.xml Jun 11 19:57:20 Can Android natively display Chinese characters in a TextView? Jun 11 19:58:04 thepoosh: ok now I can see my motorola on android studio but If I click on Run it asks me if I want to create an avd Jun 11 19:59:59 :S Jun 11 20:00:09 Kake_Fisk: yes Jun 11 20:01:44 I wonder what I do wrong then, nothing displays in the emulator. But it is displayed in Android Studio Jun 11 20:04:26 Kake_Fisk: does your PC have chinese characters installed ? Jun 11 20:05:00 maybe the emulator needs system wide chinese chars to be installed Jun 11 20:06:13 anyone interested in figuring out why the facebook messenger app for android opens a random port and runs a http server on it? just noticed that and i'm a bit curious what is going on there :) Jun 11 20:06:20 can /res/menu be qualified? Jun 11 20:06:48 shmoooz: Wait, sorry. Chinese works, but not Korean Jun 11 20:07:23 jk779 :D Jun 11 20:07:39 jk779: try sniffing it ;) Jun 11 20:08:07 it might be just for debugging Jun 11 20:08:51 Does anybody have any idea if I can enable fonts for other languages, like Korean? Android phones are sold in Korea too, so there must be some Korean fonts as well? :s Jun 11 20:09:26 it responds with HTTP/1.1 501 Not Implemented when trying to connect. tried different user agents with curl, but always the same. any idea how i could get a response or see whats going on on it (without root)? Jun 11 20:11:01 also, it reports that "Server: GenericHttpServer" ... no google results for that. whole wifi has access to it. concerning, isn't it? Jun 11 20:12:46 shmoooz: sniffing, do you mean i can somehow fuzz it with requests until it answers with not 501? any ideas? Jun 11 20:13:31 anyone know if there's a way to get component times from a Joda-Time interval? Jun 11 20:13:51 e.g. 5 days, 6 hours, 23 minutes, 52 seconds Jun 11 20:15:59 jk779: no you use something like wireshark to sniff everything going through it Jun 11 20:16:35 shekibobo: just get the millis and pass it through DateUtils.getRelativeDateTimeString() Jun 11 20:18:53 shmoooz: i'd guess that its not public reachable (no port forwarding/upnp enabled here), so there will be no traffic unless i create some in my wifi network towards it (which would result in the 501 again). don't you think? Jun 11 20:19:44 birbeck: what if I need each individual component separate? preferably as an int or long Jun 11 20:19:54 jk779: possibly Jun 11 20:23:17 pretty much want the value of days, hours, minutes, seconds - number of seconds in the unit above it Jun 11 20:24:34 shekibobo: you should be able to get that directly from JodaTime Jun 11 20:28:40 birbeck: looking like I might need to do the math myself... Jun 11 20:32:30 shekibobo: just use JodaTime Period Jun 11 20:34:01 birbeck: Beautiful! Thanks! Jun 11 20:34:12 man, vzw lte is completely shitty at lax Jun 11 20:36:04 need to use toDuration().getStandard*() on the lowest precision (days), but that worked! Jun 11 20:41:39 Hi Jun 11 20:41:45 Is this wrong? "" Jun 11 20:42:05 I red somewhere that in order to make a R.java automatically the xml should be right. Jun 11 20:42:15 but this line is uncorrect according to eclipse Jun 11 20:42:51 sdorry Jun 11 20:42:57 it should be a = instead of : Jun 11 20:43:02 now the R is generated Jun 11 20:47:18 The Verge is not at all biased towards Apple Jun 11 20:50:49 autrilla: only 90% of the editors Jun 11 20:50:57 they have one android guy on board Jun 11 20:51:01 They do? Jun 11 20:51:09 BUY AN IPHONE BUY A MAC Jun 11 20:51:50 I should finish my app when I get some free time :/ Jun 11 20:51:51 the thing is, apple forces press to write good reviews, there is no unbiased apple news Jun 11 20:52:08 if you write poorly of apple, you will never be invited to a press event again Jun 11 20:52:41 no blog wants to lose their event invites, cause that is a big source of news 3 - 4 times a year Jun 11 20:53:16 Napalm, did you get to write the draggable listview library? I've been away for a couple of weeks Jun 11 20:53:24 birbeck, heh, it's still very noticeable Jun 11 20:53:53 you also risk legal charges if you write ill of apple without it being 100% accurate, or you could end up with defacement charges Jun 11 20:54:27 apparently freedom of speech and freedom of press doesnt matter if Apple is involved Jun 11 20:55:06 I can call them douchebags without being sued ;) Jun 11 20:55:38 you can, but how many of the 426 users in this room actually saw that, and/or give a shit Jun 11 20:56:03 call them douchebags in a large national press with millions of viewers and see what happens Jun 11 20:56:16 the supreme court should take away the word apple from them saying it's a fruit's name Jun 11 20:57:36 birbeck: you can call them them whatever you want, as long as it doesn't accuse them of being unlawful Jun 11 21:00:07 you would definitely lose your event invites and review units in the future Jun 11 21:00:48 yeah they have a secret black list Jun 11 21:02:22 you want your full (glaring) review out as soon as the embargo is lifted, thats impressions which equals ad revenue Jun 11 21:02:33 same with live feeds Jun 11 21:03:23 I am trying to make the app launching preview window (not splash screen) as described here by Cyril Mottier http://cyrilmottier.com/2013/01/23/android-app-launching-made-gorgeous/ Jun 11 21:03:29 but when I am trying to search more, all I am getting are splash screen. Is there a keyword, what these are called? currently my launching looks a bit weird http://i.imgur.com/ayVbC9B.gif Jun 11 21:04:53 I have the white logo only on the first activity, and others have the normal one. But I would like to remove the preview window either fully or make it custom like examples in the article Jun 11 21:08:25 WantToCode: that is just setting up your default theme to look like your main activity... or, loading a basic activity which resembles the main activity while the app is loading... there was an ADiA video about it not too long ago Jun 11 21:10:22 WantToCode: in your case, your actionbar icon changes and your activity has a background... get the right actionbar icon and window background into your default theme Jun 11 21:10:43 He says somewhere in the article that these are handled by Android. It preloads some classes and drawables etc. Jun 11 21:11:05 And by default theme you mean, the one that I am applying at the application level, right? Jun 11 21:11:23 i have a gridview and a few items in it of varying height. I notice that sometimes the items get displayed with their bottom aligned, how can i force the tops to always align? Jun 11 21:12:22 Woo! Jun 11 21:13:58 Has there ever been a notification ticker implemented on Android? Jun 11 21:14:11 That might be cool. Jun 11 21:14:31 WantToCode: yes, still reading the article, but that is what he's mentioning Jun 11 21:14:47 the "preview window" is a blank window displaying your application theme Jun 11 21:15:09 so tweak the theme to have the right actionbar icon and background and you should be set Jun 11 21:15:48 hmm, I have set the same theme, but the problem maybe because I have set customview to the actionbar on the activity Jun 11 21:16:16 im not clear if the preview window is based on Application Theme or the Launcher Activity Theme if both are present Jun 11 21:17:01 So in all, its basically a theme and not something different which need to be added Jun 11 21:17:20 Thanks, I'll now try to make a theme for this Jun 11 21:23:43 really fun gingerbread only crash that is completely inside the OS: Jun 11 21:23:45 https://www.irccloud.com/pastebin/hj8XVTqF Jun 11 21:23:48 any ideas? Jun 11 21:27:22 @birbeck, got it, it depends on the home activity theme rather than application theme. And I changed the icon in the theme to match the custom view's icon. its working now. Thanks Jun 11 21:47:11 what’s the standard way to add rounded corners to buttons? and btw this stuff should have an XML attribute Jun 11 21:47:43 it does Jun 11 21:47:47 use a shape drawable with Jun 11 21:47:49 but alas, I have to go Jun 11 21:49:38 If I wanted to wait 1 second before doing something after I pressed a button, how would I do that? Threads? Jun 11 21:50:26 a delayed post to the main thread handler Jun 11 21:50:27 postDelayed to the main looper Jun 11 21:52:04 I'll try that, thanks Jun 11 21:53:36 That worked. Only problem is that I need to disable all other touch events Jun 11 21:53:56 I can't just do a Thread.Sleep() and force refresh the UI? Jun 11 21:55:06 you could have a boolean member track whether to execute touch events, or set touchable to false on other views Jun 11 21:56:00 birbeck: there’s no XML attribute on button to that effect, right? Jun 11 21:56:40 yaw, no, you set the button background to a shape drawable you define in xml Jun 11 21:57:02