**** BEGIN LOGGING AT Thu Jan 09 02:59:58 2014 Jan 09 03:07:59 eghdk: call super first Jan 09 03:08:06 nick9998: that doesn't make any sense Jan 09 03:10:57 So I have to list my key alias.. which one is it exactly? Jan 09 03:11:09 I've listed it using the keytool Jan 09 03:11:19 but I'm not sure where the "alias" is Jan 09 03:11:57 I'm supposed to 'Replace your_alias_name with the alias that you assigned to the certificate when you created it.' Jan 09 03:12:30 thanks durka42. Any material I can read up on for this? Im never sure when to call super first? Jan 09 03:12:58 it might be mentioned in the activity lifecycle docs Jan 09 03:13:05 AFAIK whenever you have to call super, you do it first Jan 09 03:15:44 <|0xD34D|> I've seen cases where super is called last Jan 09 03:15:55 so if I'm using my API key I generatd with my debug keystore for Google Maps, do I need to generate a separate SHA1 for use with the release/signed APK? Jan 09 03:17:43 yes Jan 09 03:21:32 i have a bouncy ball Jan 09 03:21:46 boingggg Jan 09 03:21:46 jealouse ?? Jan 09 03:23:18 its actually quite lame Jan 09 03:24:34 i am ashamed, on the bright side ,people love my youtube channel Jan 09 03:24:50 can someone kick him please ? Jan 09 03:25:02 what did i say Jan 09 03:27:29 bankai_, was that yes directed at my question? Jan 09 03:27:43 yes Jan 09 03:35:16 100dpi = 1 inch? Jan 09 03:35:56 What does this "auto-import" checkbox do when importing a project into android studio? Jan 09 03:47:46 i dont know what auto-import does ,sorry Jan 09 03:49:25 bankai_, ok thanks Jan 09 04:02:31 evanc: apparently, "ant debug install", "ant release install" to build and install - or "ant installd", "ant installr" to just install... thanks for the pointer! Jan 09 04:30:19 any flingers in the audience, tonight? Jan 09 04:30:40 audioflinger experts,that is-- not booger flingers Jan 09 04:33:48 hi guys Jan 09 04:34:00 what are the general online storage options for data Jan 09 04:34:01 hey boss Jan 09 04:34:07 my data inlcudes text images Jan 09 04:34:16 text is solveable by using dbs Jan 09 04:34:20 but what about images Jan 09 04:35:41 hmm well u have a bunch of options Jan 09 04:35:59 namely Jan 09 04:36:30 well there are amazon's offerings, then there's google's Jan 09 04:37:15 can you give me links Jan 09 04:37:24 (i am looking for preferably free ones Jan 09 04:37:27 for now Jan 09 04:37:35 later i might host on a private server) Jan 09 04:37:59 yea im sure u can get trials and what not Jan 09 04:38:05 let me get those links for u Jan 09 04:38:38 nick9998: thanks Jan 09 04:38:42 i saw this gravity movie today-- masterpiece Jan 09 04:39:52 I have an activity which calls a method makeWebRequest() on the onCreate() method... I want to create that activity in a test with robolectrict, but I want makeWebRequest method to be a no-op (as in, calling the method should have no effect whatsoever). Is that possible? I'd normally spy the activity, but I can't spy the activity before robolectric calls the onCreate method Jan 09 04:40:09 how can I do that? Jan 09 04:40:21 awefaw: you would use intents Jan 09 04:40:50 nick9998: You already told me that you don't know what robolectric is... Jan 09 04:41:02 nick9998: What you are saying makes no sense! Jan 09 04:41:05 i still dont Jan 09 04:42:48 dont run any onCreate code if you dont want to, whats the big whoop Jan 09 04:43:30 can a shadowclass from robolectric "replace" a method of the realclass? Jan 09 04:44:41 nick9998: links? Jan 09 04:44:53 awefaw: shouldn't you refer to robolectric documentation Jan 09 04:46:52 situations like this is where injection and mockito are great Jan 09 04:55:37 goodbye, jews Jan 09 04:56:23 wtf Jan 09 04:57:52 he's been saying weird shit for the last few hours Jan 09 04:58:14 drunk anyway Jan 09 04:58:39 *maybe :P Jan 09 05:02:35 damn it capella https://www.howsmyssl.com/ Jan 09 05:02:46 "Your SSL client is Bad." Jan 09 05:07:07 anybody Jan 09 05:07:11 know any preferably Jan 09 05:07:18 free links Jan 09 05:07:22 for hosting data Jan 09 05:07:36 the data i want to store is both images and entries that can be stored in dbs Jan 09 05:17:08 is the Android gradle plugin source publicly available? Trying to sort through what ndk support is available in the latest release. It's crazy that the only info seems to be in SO answers… Jan 09 05:19:49 dbro: what is gradle? Jan 09 05:22:55 the new android build tool. It acts where Apache ant did before Jan 09 05:28:09 wtf, AS 0.4.2 already Jan 09 05:28:23 i knew this thing was fucking cursed Jan 09 05:29:04 that means Tor & co were staying late ;) Jan 09 05:29:18 they could go home at a normal time if they just did a better job of testing :| Jan 09 05:34:47 g00s: or not go home at all Jan 09 05:34:59 who said there *is* testing ;) Jan 09 05:35:17 :) Jan 09 05:35:26 well, we test :) Jan 09 05:36:12 dbro i have apache ant Jan 09 05:36:17 should i replace it Jan 09 05:37:53 no, but might be worth looking into gradle. Especially if you plan on moving to Android Studio Jan 09 05:42:49 I don't really understand why they had to go and replace everything Jan 09 05:44:25 to endear themselves with the "hip" younguns of the innernet. ;-) Jan 09 05:44:58 ant adoption & usage has been in decline for years Jan 09 05:45:10 there is a reason for that ;) Jan 09 05:45:13 I am a former committer to the Apache Maven project Jan 09 05:45:32 joakime not any more ? Jan 09 05:45:48 moved on, working on Eclipse Jetty now. Jan 09 05:45:54 nice Jan 09 05:46:00 but i use maven for android development (just because i'm like that!) Jan 09 05:46:13 impressive Jan 09 05:46:18 well, you're probably really familiar with it :) Jan 09 05:46:26 gradle takes some time to learn Jan 09 05:51:30 there's lots of reasons to switch to gradle Jan 09 05:51:43 chief among them, ant sucks Jan 09 05:55:00 maven 's pretty shitty too. Jan 09 05:57:48 but the real question is, does gradle suck in new and different ways? Jan 09 05:59:38 that's like asking if sun rises. it's software after all Jan 09 05:59:51 :) Jan 09 06:00:09 Anyone having trouble setting Gradle home with AS 0.4.2. I fresh installed gradle 1.9 via homebrew, and point AS to /usr/local/Cellar/gradle/1.9 , and every dir above and below.. Each time it reports "Gradle lcation is incorrect" Jan 09 06:00:24 maybe this speaks to durka42's question… Jan 09 06:01:04 g00s: That was with desktop FF? I get |Your SSL client is Probably Okay.| Jan 09 06:01:14 both Jan 09 06:01:26 are you using aurora or something ? Jan 09 06:01:41 i think they are going to fix it in ff 27 Jan 09 06:01:53 but still, it took them fucking forever and a day Jan 09 06:02:47 Nightly of course :D Jan 09 06:03:04 I eat dogfood ;) Jan 09 06:03:19 dbro i noticed as 0.4.2 is retarded, and asks for my gradle dir but insists on installing the gradle wrapper in the project anyhow Jan 09 06:04:44 how do i show the menu button at the bottom? Jan 09 06:05:30 g00s: Something does seem off. When I try to import a project without a gradle wrapper, it prompts for "Gradle home" and refuses to take any path whatsoever. Aye aye aye Jan 09 06:05:59 but if I create a new project with a wrapper, and manually change the Gradle settings to "use local distribution" and point it to my local install, it builds fine Jan 09 06:06:17 dbro where was that setting again ? Jan 09 06:06:52 It's a project setting, so once you have a project opened you can : Android Studio -> Preferences -> Gradle Jan 09 06:07:08 hm thx Jan 09 06:12:15 g00s is it possible to do custom fonts on the action bar Jan 09 06:13:55 yes. two ways: disable normal title and set the action bar's custom view with your own TextView, or use the normal title and a typeface spannable Jan 09 06:23:33 JakeWharton: can you show me the second one i cant seem to find it anywhere Jan 09 06:23:54 do i need otf or ttf Jan 09 06:23:55 https://developer.android.com/reference/android/text/style/TypefaceSpan.html Jan 09 06:25:03 don't think you can do custom typefaces with that span Jan 09 06:25:06 might need to roll your own Jan 09 06:28:45 yep, you need to roll your own Jan 09 06:28:52 there's ton of example when googling Jan 09 06:31:33 that sucks that google would not create an api for that Jan 09 06:31:43 JakeWharton: surely there is a way to set the global font Jan 09 06:31:51 no Jan 09 06:32:31 what? Jan 09 06:32:32 wow Jan 09 06:32:56 JakeWharton: okay so to igve you a better idea im trying to do something like this Jan 09 06:32:57 https://play.google.com/store/apps/details?id=com.tul.aviate&hl=en Jan 09 06:33:28 you're trying to be acquired by Yahoo? Jan 09 06:34:55 likely a custom view inside the action bar Jan 09 06:34:58 or not even the action bar at all Jan 09 06:37:09 really Jan 09 06:37:17 JakeWharton: nothing like that Jan 09 06:37:29 I am just curious, if other people can do it why cant i Jan 09 06:37:31 hmmmm Jan 09 06:37:37 i just told you two ways to do it Jan 09 06:38:04 either of which could have been done in the amount of time we have been having this conversation Jan 09 06:38:14 how do you do the second Jan 09 06:38:19 cause i havent been able to do it Jan 09 06:38:36 google "android custom typeface span" Jan 09 06:40:03 every result has practically the same implementation Jan 09 06:40:19 it's basically TypefaceSpan but with an added arg to pass in the Typeface rather than the name Jan 09 06:40:50 JakeWharton: your first way Jan 09 06:40:58 just inherits from the actionbar right? Jan 09 06:41:34 no, you just make a TextView, set the typeface, call actionBar.setCustomView(textView), and call actionBar.setDisplayCustomEnabled(true); Jan 09 06:41:47 and actionBar.setDisplayTitleEnabled(false); Jan 09 06:43:20 JakeWharton: something like this http://stackoverflow.com/a/8748802 Jan 09 06:44:02 that'll work. i usually just instantiate the TextView in code. unless you need more complex layouts, there isn't much point in inflating an XML Jan 09 06:44:14 okay Jan 09 06:44:30 well based on what you have seen with the link to the app I showed you Jan 09 06:44:39 I probably will require a lot of custom items Jan 09 06:44:55 oops it broke Jan 09 06:46:40 JakeWharton: it says it cant find my customtextview which is referenced in my xml Jan 09 06:50:01 JakeWharton: any ideas? Jan 09 07:00:35 man this quiet NDK support in the latest Android gradle plugin is getting me excited Jan 09 07:01:47 To Xavier and the gang I send love Jan 09 07:02:03 tonight I'll drift to sleep a little happier… maybe dreaming of ART, and the Android framework rewritten in Go Jan 09 07:03:11 dbro: i am having osme trouble with some code, might you spare a few minutes Jan 09 07:03:13 http://stackoverflow.com/a/15181195 Jan 09 07:03:53 hey not this second, but I'll be around here and there. Take it slow, and try it yourself Jan 09 07:04:01 you'll probably be surprised what you can do yourself Jan 09 07:05:06 i tried it Jan 09 07:05:13 ive been struggling for past 1 hour Jan 09 07:05:18 dbro: ^ Jan 09 07:11:43 hi all Jan 09 07:21:21 hello Jan 09 07:21:33 what is it called when you have a dialog/alert box, and you tap the background to cancel it? Jan 09 07:31:33 Can I open a custom view from a URL the user clicks on the WebView i open ? I have defined a custom data URI my app listens to Jan 09 07:32:25 Can I do Click Me ? Jan 09 07:33:48 or do I need special treatment for my_custom_view_name to work ? Jan 09 07:46:30 hi Jan 09 08:16:44 JakeWharton: i tried work still no luck Jan 09 08:16:49 *i tried both Jan 09 08:18:53 can anyone help with custom font in title for action bar Jan 09 08:42:32 anyone? Jan 09 08:42:33 able to help? Jan 09 08:59:47 Hey, I'm a Java developer with years of experience and want to start learning Android. Can you recommend any tutorials, websites or books (preferably 4.x compatible). Thanks in advance! Jan 09 09:00:38 d.android.com Jan 09 09:01:21 developer.android.com Jan 09 09:01:33 and buy a book Jan 09 09:01:50 I saw that URL in this topic. But can you please point me out where to begin? I see only documenttion on there Jan 09 09:02:44 Buy a book was my plan. But which one? I heard Manning: Android in Action is a good one. But I can't find an edition for 4.x. Only the 3rd edition which is for 3.x Jan 09 09:02:58 RawChid: you can see some people set up their IDE and run hello world on youtube Jan 09 09:03:07 It's hard to say which is best... Jan 09 09:03:24 But i say look on amazon and take a look at some reviews Jan 09 09:03:38 There are a lot of tutorials on youtube available for free Jan 09 09:05:06 Thnx for the tips. I prefer text over video though. Easier to see what I can skip Jan 09 09:05:31 I'll continue my search :-) Jan 09 09:08:00 RawChid, https://developer.android.com/training/index.html Jan 09 09:09:35 alex_PP: I jusst found that one! thnx Jan 09 09:09:42 Installing Eclipse ADT now :) Jan 09 09:10:19 i have an apk built via apktool, but when it runs, it's just giving me a black screen and logcat is saying "Process xxx.xxxxxx.xxxxx (pid XXXX) has died" (via ActivityManager) over and over... any tips on how i can trace what's causing ActivityManager to keep killing the process? Jan 09 09:11:00 (there's already an issue filed on apktool for this, https://code.google.com/p/android-apktool/issues/detail?id=442 and #apktool is dead, so i thought i'd try here) Jan 09 09:15:50 Hello! Anyone here who encountered platforms where applications couldn't load native libs causing ANR in System.loadLibrary? Jan 09 09:43:22 hello everybody. Jan 09 09:44:46 I have a requirement in which when i click on my application from HOME, it launches an activity which does some processing and when its done it opens an another activity Jan 09 09:45:36 If i do the same thing in service and when done open the second activity from the service how much will it affect the performance. Since opening an activity takes time Jan 09 09:45:57 will opening a service takes the same time as opening an activity Jan 09 09:45:59 ?? Jan 09 09:47:03 DarkSlay3r: do oyu mind helping me with a styling question Jan 09 09:47:21 its about action bars and custom fonts Jan 09 09:48:41 alex_PP: ^^ any help Jan 09 09:59:56 sunny_slls: a service generally boils down to creating an instance and calling its oncreate method. It should take very little time. In general opening activities shouldn't be much slower either except if you have to create a new process to hold it and all that stuff which takes setup time Jan 09 10:03:39 alankila: mind helping me everyone else seems asleep Jan 09 10:03:58 don't know much about styling Jan 09 10:04:24 damn Jan 09 10:04:32 hmmmm i am missing something Jan 09 10:04:39 i mean this should be quite simple Jan 09 10:06:05 no fucking way Jan 09 10:06:19 this has got to be a joke Jan 09 10:06:38 holy shi i got it Jan 09 10:09:04 Morning all Jan 09 10:44:04 has anyone had a problem with some reds not rendering correctly on some devices? Jan 09 10:44:47 I have an icon with 3 shades of red, it looks fine on my N7 and N4 but when I try it on my GalaxyTab 10.1 one of the reds merges with one of the other reds Jan 09 10:47:51 I'm implementing ActionbarCompat in my problem. I've added compile 'com.android.support:appcompat-v7:19.0.+' and ./gradlew :app:dependencies shows it properly but Android Studio (0.4.2) doesn't see it. Any idea? Jan 09 10:48:27 s/problem/project Jan 09 10:51:04 anyone ever have a problem with the emulator just showing a black screen (mac)? eclipse says my apk installed successfully, and that it's launching Jan 09 10:51:22 i just created the emulator and it's the first one on this machine, so i've yet to have a working one Jan 09 10:52:12 Ankhwatcher: it may be that the device's gamut is simply not wide enough to allow distinguishing between all shades Jan 09 10:52:23 you should be happy that it is color-correcting, though Jan 09 10:53:30 is there a way to re-incode the image which might get me closer to it's original shades? Jan 09 10:54:12 probably not, but if you reduce saturation then it is likely that any device can dislay distinct 3 shades... Jan 09 10:54:38 this diagnosis of course relies on the theory of too narrow hardware gamut being the problem Jan 09 10:55:15 but there's some reason to believe that this could be true -- the mobile device dislays are rarely as good as the LCD monitors we use, for instance. Jan 09 10:55:22 on the GTab running stock you can put it into "movie mode" and the three shades will become distinct Jan 09 10:55:36 also the apparent gamut is a function of the lighting conditions the device is in Jan 09 10:56:26 due to reflections from the dislay glass which in effect gives a kind of background level for color channels and thus washes out all colors by default Jan 09 11:26:35 does anybody happen to know where I'm supposed to add the Google+ community in the Google Play Developer Console for my alpha application? For the life of god, I can't seem to find it... Jan 09 11:27:55 you'll find it @ apk settings Jan 09 11:28:58 All Applications > (click on app) -> APK? Jan 09 11:29:27 aaaaaaaargh, found it Jan 09 11:29:32 hehe Jan 09 11:29:34 you need to click on "Manage list of testers" Jan 09 11:29:42 yes Jan 09 11:30:12 seems like publishing is the hard part :) thanks Jan 09 11:32:32 you're welcome... Jan 09 12:12:24 Has anyone one used @OnItemClick in JakeWharton 's Butterknife library? I'm looking for an example Jan 09 12:18:56 Ankhwatcher: https://github.com/JakeWharton/butterknife/blob/master/butterknife-sample/src/main/java/com/example/butterknife/SimpleActivity.java Jan 09 12:21:24 thepoosh: ah cool, now i just need to figure out what I did to make this list no-longer clickable Jan 09 12:38:25 onCreate is called after onPause in an activity containing fragments Jan 09 12:38:31 why? Jan 09 12:45:34 mygreymatter: I suspect you're wrong Jan 09 12:49:09 mygreymatter: http://developer.android.com/images/training/basics/basic-lifecycle-paused.png Jan 09 13:03:48 somebody experience with otto lib? I'm using it basically but now I need to do something else but would like to know if something is possible Jan 09 13:04:57 good thing your description is so precise we can give you an answer :) Jan 09 13:06:37 something is always possible Jan 09 13:07:03 well, I get a json result from api call. each object of the jsonArray contains a "location":locID", or sometimes a "location="{"_id"="locID", "address="Street ABC"} Jan 09 13:07:49 how should my model class be? String locationID and CustomLocation location ? Jan 09 13:11:23 * not otto lib but gson Jan 09 13:16:46 hi, how would I write a double array into a file (raw audio data)? At the moment I'm converting each recorded short to 2 bytes and write them using a buffered outputstream. As I need to convert the data at some point for analysis (one to determine if the audio data is relevant and should be written and later reloading the written data for further analysis) , is it possible to save one cast and save them as double? Jan 09 13:25:39 Hello, I have a situation. Android ICS lvl 15, rooted. System bar hide by service call activity 42 s16 com.android.systemui, launching app, but still getting the height-sysbarHeight, have done dumpsys window windows and have got Display: init=800x480 base=800x480 cur=800x480 app=800x444 raw=800x480, so I assume is getting the app values. Do anywan has any idea how can I shell-override this? Jan 09 13:26:08 anyone* xD Jan 09 13:27:11 sorry wrong channel Jan 09 13:27:46 Mornin'! Jan 09 13:29:53 I can't make my emulator faster if the cpu doesn't support KVM, right? (on ubuntu) Jan 09 13:37:00 ironmarx you have a beard? Jan 09 13:42:46 lasserix: What a peculiar question. No, I shaved it off yesterday. Jan 09 13:44:21 by chance did you shave it off for "the" cause? Jan 09 13:47:18 hello Jan 09 13:47:24 why is that? http://wstaw.org/m/2014/01/09/1596493_379284505542445_690648183_o.jpg Jan 09 13:47:29 lasserix: Mmmm no, I didn't have a cause. It was just kind of a pain, I like to mix it up, I'm meeting some new folks today, etc. The time was just right. Jan 09 13:47:58 ahh i was just wondering about your choice of name ;p Jan 09 13:48:32 i switched android:orientation="horizontal" and this is how it accually works Jan 09 13:48:35 karab is that a n10 or n7? Jan 09 13:48:38 7 Jan 09 13:48:55 lasserix: Mostly arbitrary, really. Iron came from an old moniker, Marx was a nasty villain from a Nintendo classic. Jan 09 13:49:02 yeah i believe landscape is not supported as homescreen on n7? Jan 09 13:49:23 lasserix: That can't be true. Jan 09 13:49:24 how do you know it's nexus btw? :) Jan 09 13:49:25 or homescreen is locked into portrait by default on n7 Jan 09 13:49:35 karab44: What is the end goal? Jan 09 13:49:36 i have one Jan 09 13:49:40 ;p Jan 09 13:49:59 ironmarx: end goal is that emulator shows different result on the same app Jan 09 13:50:29 And I don't know why is that Jan 09 13:51:02 karab44: Not sure... Emulators are strange beasts. Trust your Nexus before the emulator. Jan 09 13:51:03 did you navigate on the emulator into settings and rotate the screen? Jan 09 13:51:24 No, just CTRL F11 Jan 09 13:53:05 Where can I change it to landscape in settings? Jan 09 13:54:13 in settings somewhere? Jan 09 13:55:23 It's not there Jan 09 13:55:43 I wouldn't ask if I didn't look for it Jan 09 14:03:14 Is nexus 7 really behave this way? Can somebody confirm that? I actually use nexus 7 2nd gen. Jan 09 14:04:09 morning Jan 09 14:12:22 karab44, emulator can be buggy sometimes when it gets to orientation changes Jan 09 14:12:26 my Nexus 7 2nd gen rotates by default Jan 09 14:12:35 karab44, the other thing is you might have rotated it the wrong way Č= Jan 09 14:12:37 :) Jan 09 14:13:25 no no, I tried both ways. Result is that hardware always rotates no matter what are the settings, emulator never rotates no matter what are the settings. Jan 09 14:13:43 thats what i mean first gen doesn't Jan 09 14:13:50 am guessing the emu is first gen? Jan 09 14:13:54 yes Jan 09 14:14:19 So basicly is it correct? Jan 09 14:14:42 yeah Jan 09 14:14:46 cant you just take a screenshot from device? Jan 09 14:14:59 okay but what about my hw, it always rotates, that's funny also Jan 09 14:15:19 lasserix: what do you mean take screenshot from device? What for? Jan 09 14:15:58 nm Jan 09 14:16:15 I sent photo how does it look Jan 09 14:17:18 yeah Jan 09 14:18:00 your anti-glare screen lessens the flash from blinding us Jan 09 14:18:51 sorry for that :) Jan 09 14:23:52 this rotation... maybe it's nothing but it broke my concentration... Jan 09 14:28:20 for a year input I'd like to put "20" and have the user fill in the rest, can I stop them from deleting the "20"? Jan 09 14:30:55 Ankhwatcher: that seems easy, just handle the value change and if it's a numerical value < 100 then add 2000 Jan 09 14:33:39 Ankhwatcher: That pretty much hard limits your app to a thousand years. :\ Jan 09 14:34:25 Ankhwatcher: sounds like you need a prefixed-edittext Jan 09 14:34:49 actually it hard limits it to 85 years Jan 09 14:34:54 http://loopj.com/android-async-http/ Jan 09 14:35:05 Ankhwatcher: https://gist.github.com/alexfu/5996908 Jan 09 14:35:10 on the example under recommended usage:making a startic http client Jan 09 14:35:21 Ankhwatcher: Until 20,xxx AD comes around. Jan 09 14:36:09 ironmarx: not if I set the edittext character limit to 4, which I will Jan 09 14:36:18 would the client be static in this case? from what i understand about programming, it would be a static client that would be used for all calls made from one instance of the class, but each instance of the twitterRestClient would endup with their own AsyncHttpClient? Jan 09 14:37:10 alexfu: that's cool, thanks! Jan 09 14:39:23 hey guys, does android handle tabulation, or jump line Jan 09 14:39:26 like in C langage Jan 09 14:39:30 \n \t Jan 09 14:39:41 or strings display Jan 09 14:39:50 on* Jan 09 14:40:29 macTAR: there's formatting support on a typical string resource, and textviews can have styles associated. I think the answer is generally yes. Jan 09 14:41:59 public class TwitterRestClient { Jan 09 14:41:59 private static AsyncHttpClient client = new AsyncHttpClient(); Jan 09 14:43:16 JeremieDeNoob: a naming convention issue, you should call static members by all-uppercase names. That would be CLIENT Jan 09 14:43:43 ok, but would this be a static client for all instances of the TwitterRest Jan 09 14:43:44 also this may require the client to be thread safe. I am not familiar with asynchttpclient class. Jan 09 14:43:49 client object* Jan 09 14:43:58 its example code from loopj Jan 09 14:44:32 I see, asynchttpclient is already moving networking off the caller thread. Jan 09 14:44:44 so you can just call it and it will invoke the handler when the response is ready, it seems. Jan 09 14:45:36 I don't liket he onSuccess(String response) API though. Responses are not always correctly conceptualized as strings but may be byte streams. Jan 09 14:45:56 yeah, but my question is related to android... as i am new on this platform. but will each TwitterRestCLient instance use the same CLIENT or is the static only valid accross a single instance of TwitterRestClient Jan 09 14:46:12 the staticness means similar thing to a global variable Jan 09 14:46:30 it is initialized when class is loaded into memory, and all instances reference the same object Jan 09 14:46:44 Any Google Analytics users on? What is a good way to filter out crash reports on my production device? I could change the version number until build time, which would separate them out by version number. I would prefer a better method though. Jan 09 14:51:06 alankila: ok thank you! Jan 09 14:51:36 i wasnt sure the scope of the staticness... but i guess if it only affected one instance of an object it would be the same as a private Jan 09 14:55:41 alankila: i confirm it works :) Jan 09 15:00:57 I have a feeling that to make an app really stable you will have lots of try catch blocks, especially when dealing with the local sqlite DB Jan 09 15:01:23 jonc: why w/ the local DB? Jan 09 15:01:43 to make sure the cursors can close and to end transactions Jan 09 15:02:40 try catch finally (close cursor and end transaction) Jan 09 15:05:20 best practice. I'm also catching any throwables in things scheduled at fixed rate / fixed delay Jan 09 15:05:24 JeremieDeNoob: well, apart from the way that it is initialized at a different time and not collected until the class is unloaded (which is potentially never) Jan 09 15:06:13 jonc: you'll be happy with kitkat and its try-with-resources. Jan 09 15:06:56 jonc: but sure, the runtimeexceptions are a bane of programming, though probably a lesser evil than checked exceptions considering that you do have the option of ignoring the runtime exceptions and writing minimally defensive code that avoids most cases of such Jan 09 15:07:31 jonc: the close function doesnt actually throw an exception Jan 09 15:07:37 for instance I generally avoid returning null values from methods that return lists, I prefer Collections.emptyList() and similar Jan 09 15:07:42 i dont think Jan 09 15:08:20 and I prefer static final variables, immutable objects, etc. Jan 09 15:08:21 Yeah, the main reason I am just taking any runtime exception and logging it in scheduled threads is because they will not run again if an exception is thrown. I'd rather log it and have the thread run the next time Jan 09 15:11:32 will it get unloaded if it goes out of scope? I need the staticness of the client to always be the same across the entire app Jan 09 15:17:57 Hey guys, does anyone of you know when the DownloadManager service (android.app.DownloadManager) started supporting HTTPS? I know it didn't work in Gingerbread, and it did in ICS, but what API version did it start? Jan 09 15:19:19 Is there a built in Object Pool for java / android? Jan 09 15:20:27 someone needs to make the checkboxes neutral colored in Kitkat's .1 release. Jan 09 15:21:39 I'll be creating and dropping 50k objects fairly frequently so I think it'd be best to just use a pool of them allocated up front Jan 09 15:22:58 jonc: i beleive apache has one i think... Jan 09 15:23:17 jonc: http://commons.apache.org/proper/commons-pool/ -- might be a good starting point Jan 09 15:24:13 thank you Jan 09 15:37:29 Hey folks. It seems opensl on android has issues when you dont provide a buffer in the bufferqueue callback and terminates the decode. This is in oposition to what the opensles spec says should happen. Does anyone know how to get around this limitation? Jan 09 15:41:02 If I have 2 threads scheduled in ScheduledExecutorService, one is withFixedDelay and the other is atFixedInterval, why would the FixedDelay one run the first time at the correct delay, but everytime after that run at the same delay as the fixedInterval thread? Jan 09 15:42:20 obvious answer is I am passing in the wrong value for the non-initial delay, but: http://pastebin.com/D1E1WEFS Jan 09 15:47:39 Hey guys, I'm getting an authentication error when trying to use Google maps in my app. It's telling me to ensure the following correspond to whats in the google api console and it gives me the API key which is exactly the same then it gives me the certificate fingerprint. But I cannot see where in the Google API Console I should find the Certification Fingerprint? Jan 09 15:48:25 Is it the part where it says Android applications and then a series of characters followed by a semicolon and then the package name? Jan 09 15:48:29 CocoStorm: you have to make sure the hash of your debug.keystore (or whatever keystore) you're using is the same as what's in the console and the package matches Jan 09 15:48:34 yup -that's the hash Jan 09 15:49:01 louielouie, I see, well I've followed the isntructions and that's what I got Jan 09 15:49:06 and they seem to be different Jan 09 15:49:18 CocoStorm: there's your problem Jan 09 15:49:29 I did use a publishing keystore file Jan 09 15:50:02 CocoStorm: put both debug and production keystore SHA1 in there Jan 09 15:50:22 you have to make sure you to sign your app with whatever's in the console, using Eclipse's Export Android application and then specifying that exact keystore Jan 09 15:51:09 alexfu, put both keystores in the console? Jan 09 15:51:25 louielouie, yeh I have a keystore called (myapp).keystore Jan 09 15:51:40 i'll try and get the debug one Jan 09 15:51:42 CocoStorm: yes. one SHA1 fingerprint per line Jan 09 15:51:47 hello there. any ideas what would be the way to hook into all res/values/strings.xml reads? even those which are caused by the layoutinflaters and other? Jan 09 15:52:13 hook into? like intercept? Jan 09 15:52:18 alexfu, I see so put two? kk I'll try Jan 09 15:52:28 CocoStorm: yes. it's allowed. Jan 09 15:52:34 can I for example provide an own implementation of the context, in order to override Resources.getString*() methods? Jan 09 15:52:36 Oh I see Jan 09 16:00:25 alexfu, I'm still getting the same issue Jan 09 16:00:34 for some reason even though I've added both SHA1 fingerpritns Jan 09 16:01:46 CocoStorm: one per line? Jan 09 16:01:55 oh wait the map showed up :S after the error loool Jan 09 16:01:57 that's weird Jan 09 16:02:34 I think it took a while for the google api console to update Jan 09 16:02:41 but it looks like everything is good so far Jan 09 16:02:44 thanks alexfu :D Jan 09 16:02:59 np Jan 09 16:03:21 yay Jan 09 16:03:26 cheers louielouie Jan 09 16:03:27 lol Jan 09 16:05:23 maps is so cool Jan 09 16:06:11 You said it. Jan 09 16:07:11 =p Jan 09 16:16:22 Any opensles gurus about? Jan 09 16:25:22 Does someone know how to create app extensions for your own app like DashClock Widget does? I've looked into some stuff like the ContentProvider, but I can't find a good way of implementing so I can detect all of the application extension and then possibly send the user to an activity of that extension. Jan 09 16:25:52 Dreeass, use intent system Jan 09 16:26:10 tell extensions to implement YOUR_AWESOME_APP_INTENT Jan 09 16:26:18 and you'll be able to resolve all activities with that intent :) Jan 09 16:26:48 Mavrik, well that's the thing I don't know how to do. I can't seem to find a good article explaining this. Jan 09 16:27:21 em Jan 09 16:27:21 http://developer.android.com/guide/components/intents-filters.html Jan 09 16:35:43 why don't you just look at how dashclock does it.. m Jan 09 16:37:12 Just passed my java cert (hoorah), would like to learn Android dev. Having trouble setting up an Android Virtual Device for testing -- target area is greyed out. Jan 09 16:37:52 install sdk images Jan 09 16:37:57 ^ Jan 09 16:38:10 and possibly genymotion Jan 09 16:38:19 thanks -- I tried doing that in the SDK manager, I thought I did but maybe I messed it up Jan 09 16:38:56 I will open it up real quick and check the installed packages Jan 09 16:39:17 are you using eclipse? intellij? AS? Jan 09 16:39:24 pfn, ya. I'll just use their way. Jan 09 16:39:25 eclipse Jan 09 16:39:48 I had an existing installation of eclipse and ran through the steps on getting started Jan 09 16:41:16 so I have ARM EABI v7a Image and Intel x86 Atom System Image installed for API 18, 17 installed Jan 09 16:41:33 is that what "sdk images" refers to? Jan 09 16:42:09 maybe I need Intel x86 Emulator Accelarator (HAXM) ? Jan 09 16:42:15 if you run "android" from the sdkfolder/tools/ Jan 09 16:42:25 you can install all the sdks from there Jan 09 16:42:43 apis rather Jan 09 16:43:25 paniclater: i'd say either Beacon Mountain to save you some trouble or Genymotion or if you want to go the longer way, install HAXM and whatever SDKs you want along with the x86 images Jan 09 16:43:37 If I pass a large Object into a method, does it create a copy or does it just create another reference to the same object? Jan 09 16:43:51 i'll check out beacon mountain. Jan 09 16:44:16 paniclater: i've got some Android emulator resources including slides for a talk i give at http://www.luisdelarosa.com/emulator/ Jan 09 16:44:26 i'm also stuck developing on a windows machine atm, and I'm unfamiliar with the platform, so i am really dumb at everything atm Jan 09 16:45:03 i'll check out the site and trouble shoot a bit. if i can't get it going i think i will just trash my eclipse instance and start with the prepackaged one with the adt plugin Jan 09 16:45:44 paniclater: tip - uncheck NDK and the other intel tools if you want the install to go faster and don't need them right now Jan 09 16:45:59 ok Jan 09 17:03:52 i need some advice, I want to use an activity to basically handle communication between 2 other classes, one which is a floating window view, and the other which is google services activity that i want to leave completely invisible, whats the best way to handle the communication? The floating window is just some buttons that needs to tell the game activity backgrounder to start recording audio, or to mute incoming audio Jan 09 17:04:33 at this point, im thinking i may need an application class that i call from each, and create a messages array object with getter and setter methods, but that seems overly complex Jan 09 17:04:52 shinkamui: you might want to try Otto - http://square.github.io/otto/ Jan 09 17:05:08 i've used that to communicate between fragments and its pretty lightweight Jan 09 17:06:11 louielouie to the rescue again, thats twice in two days :) Jan 09 17:06:19 that looks very much like what i need Jan 09 17:06:31 ill do some reading here and see how well it works for me Jan 09 17:06:41 haha i try my best Jan 09 17:21:24 If I have a Bitmap that I don't want to use anymore, and clear it from memory, should I do myBitmap.recycle() or myBitmap=null? Jan 09 17:21:46 both Jan 09 17:21:51 beat me to it Jan 09 17:22:05 evanc: Which one first? I'm guessing recycle then null? Jan 09 17:22:15 good guess Jan 09 17:22:19 recycle has to be first Jan 09 17:22:28 Anything else I should do? Jan 09 17:22:29 otherwise you'd call recycle on a null object Jan 09 17:22:33 eghdk: Good reading, https://developer.android.com/training/displaying-bitmaps/manage-memory.html Jan 09 17:23:58 the recycle is part of the GC so if you are lazy, just getting rid of a valid reference will do Jan 09 17:24:16 What about for a stream? Should I always myByteArrayStream.close and then myByteArrayStream = null? Jan 09 17:25:45 hi. I have a ListFragment and I want to adjust it from class. How do I find ListView from ListFragment? I tried this, but it doesn't work: lvList = (ListView) getView().findViewById(android.R.id.list); Jan 09 17:26:05 eghdk: you can just do close, the object will get gc'ed Jan 09 17:29:42 Thanks desmin88 Jan 09 17:29:46 yw Jan 09 17:30:23 If I recall right, cant you just getList() from the list fragment? Jan 09 17:40:30 Does onActivityResult get called if I'm in my app, and then I recieve a phonecall, and then I get back into my app? Jan 09 17:44:19 eghdk: http://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent) Jan 09 17:44:24 uhh Jan 09 17:44:29 yeah thats the right link Jan 09 17:48:04 is ti possible to have more than one layout in the same .xml file? Jan 09 17:48:23 arcode: do I dare ask why you want to do this? Jan 09 17:48:26 arcode: why would you Jan 09 17:48:45 i want a listview that has different items depending on which row it is Jan 09 17:49:03 for a main menu Jan 09 17:49:11 what Jan 09 17:49:25 row 1 -> "Label" Jan 09 17:49:40 row 2 -> "Button", "Button" Jan 09 17:50:25 by label i mean textview Jan 09 17:50:45 So you have 1 listview, with some list items. You want these items to have different sub views depending on which list item it is Jan 09 17:51:28 yes Jan 09 17:51:40 So in your getView just inflate a different layout xml file Jan 09 17:52:13 ok, i thought it would be nice to have different layouts in the same xml file but guess that can't be done Jan 09 17:52:52 thanks anyway Jan 09 17:53:00 imo that wouldnt be nice Jan 09 17:53:30 I'm still a bit confused about what happens to objects when I pass them through methods. I know its copy by reference, but which one of these methods is the right way to handle it? http://pastebin.com/emmxmPbX Jan 09 17:54:02 why would you set params to null Jan 09 17:54:17 Because params is an object I no longer need Jan 09 17:54:27 so let the GC take care of that... Jan 09 17:55:10 How does the GC know to take care of it. lol. I'm sure thats why it was built, but I just want to make sure that I don't have two of the same objects floating around. Jan 09 17:55:17 is it possible to add an image to the default marker on google maps or do I have to change the marker completely? Jan 09 17:55:41 eghdk: tw ofo the same objects? Jan 09 17:55:43 Is there something made for App engine to put data into ListViews? Maybe an Adapter for it? Jan 09 17:55:55 Hii all Jan 09 17:56:31 Well params is an object, and then Intent data = params[0]; Is basically making another copy of it… erm. I guess they are not the "same" object. Jan 09 17:56:45 As i am trying to run project. it is gining me an error PANIC: Could not open: AVD_for_Nexus_S_by_Google Jan 09 17:57:09 I am very new to Android, can any one help me to figure out this.. Jan 09 17:57:13 desmin88: I guess I'm confused about which objects I should try to get rid of right away. Jan 09 17:57:22 eghdk: you don't get rid of any Jan 09 17:57:25 the general rule is not to worry about it at all unless you are OOMing Jan 09 17:57:39 the GC takes care of this for you, thats basically the whole point of java, heh Jan 09 17:57:58 PANIC: Could not open: AVD_for_Nexus_S_by_Google what does this means? Jan 09 17:58:28 desmin88: Well, like I've learned (the hard way), that I should try to get rid of/close/recycle, streams and bitmaps. Jan 09 17:58:39 well, bitmaps are big Jan 09 17:58:40 intents are small Jan 09 17:58:41 those are different Jan 09 17:58:50 simple objects are well handled by the jvm and gc Jan 09 17:59:08 dheeraj_: you didnt even wait a minute before pressing enter again, cmon bud. Jan 09 17:59:33 desmin88: Sorry :( Jan 09 17:59:42 things like streams and such you want to close, yes Jan 09 18:01:06 dheeraj_: have you tried this https://stackoverflow.com/questions/15103782/avd-panic-could-not-open-not-a-path-issue Jan 09 18:02:06 desmin88: Okay, last question. If I'm done modifying a stream, should I close it, if I still want to use it once more after wards (just to pass into another method). Or should I close it after I pass it into this other method. Jan 09 18:02:30 eghdk: if you close it, its closed, dont think you can continue doing anything on it Jan 09 18:03:21 okay, thanks for the enlightenment. Jan 09 18:03:22 =) Jan 09 18:03:39 np Jan 09 18:09:44 is it possible to add an image to the default marker on google maps or do I have to change the marker completely? Jan 09 18:12:09 if i setContentView(layout), how do I get the View? I want to set its background. Jan 09 18:12:15 durka42: Here it is saying to create a environment variable.. but i don't know how to? :/ Jan 09 18:12:26 Can I set the background to a bitmap from xml/layout? Jan 09 18:12:29 Houte: use google Jan 09 18:12:33 dheeraj_: google can tell you that, it depends on your OS Jan 09 18:12:59 man this channel kinda sucks Jan 09 18:14:32 I have Linux as my OS durka42 Jan 09 18:14:34 you never noticed? Jan 09 18:14:41 all yall suck ;-) Jan 09 18:15:00 there are an uncountably infinite number of web pages instructing you how to set an env var on linux Jan 09 18:15:31 Does someone have experience with AIDL? Jan 09 18:18:26 anyone use the async http library and need the body on a non-200 response? Jan 09 18:19:01 it seems to error out on anything that is not a 200, the API I am hitting will throw a 400 and have a response body, but it seems like you can't get the response body using the async library Jan 09 18:19:15 if i set background to a drawable and i is not displayed, what could i be doing wrong. it works when I have class that extends View and sets the background to a bimapdrawable but when i do it on a layout-view it does not work. i can however set buttons on the view. Jan 09 18:20:37 Houte: Are you using a custom layout? Jan 09 18:20:39 nevermind it is there Jan 09 18:22:28 Houte I remember I had to do this for my background to draw in my custom relative layout. http://pastebin.com/KBSjNJPq Jan 09 18:22:40 what is a layout-view? Jan 09 18:48:36 if com.sj.tiltball.Game.BoardView imports com.sj.tiltball.SharedData, why cant it access SharedData.theBallWidth? Jan 09 18:49:33 what are the permissions for theBallWidth? Jan 09 18:52:26 it is a static int in a public class Jan 09 18:54:45 oh so private is default if not given? Jan 09 18:54:52 works now when it is public Jan 09 18:54:58 package private is default Jan 09 18:57:14 yup what SimonVT said. ref: http://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html Jan 09 18:58:03 oh, huh, I thought private was the default Jan 09 18:58:04 neat Jan 09 18:59:13 is there a way to change the theme of an activity in realtime Jan 09 18:59:22 any one here using eclipse with linux Jan 09 18:59:31 eg, I want to do some things on a config page, load a floating window, and then set the theme of the original activity to Theme.NoDisplay Jan 09 19:01:56 shinkamui: sadly no - you have to recreate it after changing the theme Jan 09 19:05:21 craaaaap Jan 09 19:05:22 recreating isn't difficult Jan 09 19:05:26 activity.recreate() Jan 09 19:05:28 ... Jan 09 19:05:38 but what happens to the stuff i implemented on it Jan 09 19:05:44 i guess i can just try it Jan 09 19:05:46 and see Jan 09 19:05:46 what stuff you implemented Jan 09 19:05:48 yup - what pfn said. Jan 09 19:05:53 save/restore it like usual Jan 09 19:06:10 just set the theme flag in onSaveInstanceState Jan 09 19:06:10 http://developer.android.com/training/basics/activity-lifecycle/recreating.html Jan 09 19:06:15 and apply the theme in onCreate Jan 09 19:06:26 basically, i want the main activity to be a config page, then change its theme to invisible when you log into google services and configure stuff, and then launch my flaoting window, and a thread that handles the google communications Jan 09 19:06:31 there is no nice way to close the keyboard is there? Jan 09 19:06:41 PANIC: Could not open: AVD_for_Nexus_S_by_Google Jan 09 19:06:49 For some reason when i change fragments the keyboard is staying open Jan 09 19:06:57 Couldn't get the correct path to go? Jan 09 19:07:05 jonc, take the focus off something that accepts text input Jan 09 19:07:08 I am working over Lunix Jan 09 19:07:09 dheeraj: try recreating the AVD Jan 09 19:07:14 I am working over Linuxx Jan 09 19:07:15 pfn, my problem with setting it before the user has configured their stuff, is mainly that im using it to log into google service, and then using it as a central control point for all the comms Jan 09 19:07:54 louielouie: I got the folder named AVD in /root/.android Jan 09 19:07:54 it just doesn't need to be visible, i haven't figured out yet, if hiding it and running something else will have adverse consequences though Jan 09 19:08:02 do i place it?? Jan 09 19:08:35 dheeraj_: yes but it could have gotten corrupted. create a new one in Window > Android Virtual Device Manager Jan 09 19:09:16 shinkamui: i wouldn't put your comm layer in an Activity - move it to a Service to be more persistent, launched from that Activity Jan 09 19:09:22 uhh Jan 09 19:09:59 Eclipse bundled with x64 ADT doesn't run on x64 ubuntu? Jan 09 19:10:13 because it's 32bit Jan 09 19:10:18 what's up with that? Jan 09 19:10:42 Has anyone had issues with a keyboard staying open between fragments? Jan 09 19:11:01 you can force the keyboard to open when your fragment comes up Jan 09 19:11:03 if that's what you mean Jan 09 19:11:20 louielouie: it is showing OK here Jan 09 19:11:26 no, I have a login fragment that takes a pin, you enter the pin and without closing the keyboard you are taken to another fragment Jan 09 19:11:36 the next fragment has no inputs, but the keyboard stays open Jan 09 19:11:44 thykka: i've used 64bit eclipse+adt on 64bit ubuntu. did you use http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20131030.zip ? Jan 09 19:11:51 louielouie: well, sadly, i've only learned how to use activities for the google services so far, so im limited atm. Maybe is should change this up a bit and make an inner class of the google game activity on the floating window activity Jan 09 19:11:58 that might be the answer i need Jan 09 19:12:03 then scope is less of an issue Jan 09 19:12:11 since everything will basically happen from the floater Jan 09 19:12:19 shinkamui: another alternative is to have one Activity and have it display different Fragments Jan 09 19:12:31 louielouie, yes I did Jan 09 19:12:33 perhaps a DialogFragment is what you want too Jan 09 19:12:48 jonc: well, you could always do the reverse, i.e. close the keyboard when the second one comes up Jan 09 19:12:59 look up setSoftInputMode Jan 09 19:13:01 louielouie: I've never been good with fragments... :) Jan 09 19:13:04 I suppose i've got unmet deps.. are they listed anywhere? Jan 09 19:13:07 tried that, it closes temporarily and then pops right back up Jan 09 19:13:11 i guess this is as good a time as any to learn Jan 09 19:13:44 thykka: hmm i seem to recall having to install some packages now that i think about it Jan 09 19:13:55 shinkamui: now is a good opportunity to learn :) Jan 09 19:15:44 Everything I have found is that you should use fragments over activities now Jan 09 19:16:22 louielouie: same problem again :/ made new ADV then also Jan 09 19:16:24 meh.. i was super motivated to start working on an app 1.5h ago, but all i've done so far is fighting devtools which don't work oob -__- Jan 09 19:16:30 jonc: yes Jan 09 19:16:30 thykka: can't seem to find it right now. time to google your errors. Jan 09 19:21:34 It is normal style to have one activity for each different "page" in your app right? you shouldnt try to keep the nbr of activities down? Like if i have play,highscore,help as menus that would be 3 activities. and play would have one activity for choosing level then another for aplying the game. this is fine? seems easier to structure things that way, keeping everything modula Jan 09 19:21:35 r Jan 09 19:22:50 If I was making the app that would be 1 activity and 3 fragments Jan 09 19:23:20 Houte, like SimonVT said, 1 activity 3 fragments Jan 09 19:23:50 Unless the game was all custom menus done in OpenGL, 1 activity would be it Jan 09 19:23:52 Houte: depends on what you want. that's kind of the old school way and the newer way is to have more Fragments. To me, it is primarily dictated by your navigation framework. If you're using something like say ViewPager, you'll need Fragments. Jan 09 19:25:39 Square's going in a different direction with their Mortar framework. They don't seem to like Fragments or Loaders… Jan 09 19:26:03 hello Jan 09 19:26:35 I am having a ton of trouble trying to access my layout Jan 09 19:26:45 from my activity. Jan 09 19:28:47 I had saved a layout called videoview_main.xml in my layout folder. And I tried to load it using setContentView(R.layout.videoview_main); but the compiler is saying "videoview_main" cannot be resolved Jan 09 19:31:10 Is anyone on here? Jan 09 19:34:27 star_ski12, have you tried cleaning and rebuilding? I know I've had issues with R and android studio before (if that is what you are using) Jan 09 19:34:35 yes Jan 09 19:34:46 I have cleaned, rebuilt, and even restarted eclipse Jan 09 19:34:56 try turning your monitor off and back on Jan 09 19:35:30 jonc: but it keeps on complaining just that couple line- "videoview_main cannot be resolved or is Jan 09 19:35:31 not a field" Jan 09 19:35:56 can you reference R.anythingelse without error? Jan 09 19:36:02 yes Jan 09 19:36:28 but i just can't seem to reference any layouts at all Jan 09 19:36:29 R.anythingelse_withunderscore Jan 09 19:36:50 hmm Jan 09 19:37:46 ok... that is frikin weird.... Jan 09 19:38:19 I restarted it, rebuilt it. And now i am able to reference my other layout- activity_main.xml Jan 09 19:38:35 but i still can't reference the videoview_main.xml Jan 09 19:40:17 And i have another error on the following line when i try to findViewById(R.id.VideoView). It complains that: VideoView cannot be resolved or is not a field Jan 09 19:40:56 I have a question about the best way to handle a problem I'm having. I have an activity and then an AttachmentManager class for images. Any time I add an Attachment I do some stuff in AttachmentManger, and then I wait for a view to be generated to pass back into the activity. In short, I have a fwe methods that have to work with each other. Should I make static methods, or should I try to get the instance of the activity inside of the Atta Jan 09 19:44:35 Is there a font that can support english, Chinese and arabic letters or would I need a different one for each language? Jan 09 19:50:00 louielouie: setTheme(R.style.Theme_NoDisplay); generates an error, i want to take your initial advice and set the theme in onCreate before the activity starts. This is an inner class activity, can i still do this in the manifest with xml? Jan 09 19:50:49 apparently R.style.theme_nodisplay doesn't exist, however, im looking at it in the google docs, so either im missing something, or im doing it wrong Jan 09 19:51:37 I'm trying to get an oauth token that I can send to a server for later use. I'm invoking GoogleAuthUtil.getToken with a scope of "oauth2:server:client_id:835904834568-77mtr5mtmpgspj9b051del9i9r5t4g4n.apps.googleusercontent.com:api_scope:https://www.googleapis.com/auth/userinfo.email" , but get a GoogleAuthException of "INVALID_SCOPE". However, this looks correct at least according to https://developers.google.com/+/mobile/android/sign-in#server- Jan 09 19:51:37 side_access_for_your_app . Am I misreading it, and if so how should I construct my scope? Jan 09 19:53:20 shinkamui: not sure about that theme. i was using it to set day/night mode. might want to check out fragments again ;) Jan 09 19:54:01 YES! I figured out my problem :) Jan 09 19:54:47 Eclipse had slipped in an android.R and that was screwing with all my references.... Jan 09 19:55:25 star_ski12: ah i hate when that happens Jan 09 19:56:08 .... yeah- I don't get why Google won't just fix this bug or something Jan 09 20:01:28 louielouie: one more thing, how do i call an inner class activity with startActivity? I tried the normal Intent specifying the class as the innerclassname.class, but now that i think about it, that shoudl only signify a root class, how do i specify the inner class? LIterally using the full namespace to it? outerclass.innerclass.class? Jan 09 20:03:08 hm never done that - yea i would use the full namespace. or better - break it out into its own class Jan 09 20:03:19 star_ski12: It's not a bug, you just fucked up when importing Jan 09 20:03:24 you'll need to declare it too in the AndroidManifest.xml like every Activity Jan 09 20:04:21 louielouie: I think that part is ok, I can still compile and don't get an instant runtime error, declared as name=org.blah.outer$inner Jan 09 20:04:25 since its a static inner Jan 09 20:04:57 If all else fails i can break it out, but that means a LOT of additional scope related rewrites Jan 09 20:05:00 :-D Jan 09 20:05:17 refactoring tools help Jan 09 20:11:54 How do I draw a square on a view? Jan 09 20:12:23 * nebs hands Houte a sharpie Jan 09 20:13:33 but seriously Jan 09 20:13:54 you would use Paint in the onDraw of the view Jan 09 20:13:59 which gives you a canvas Jan 09 20:14:13 canvas.drawRect and etc Jan 09 20:15:51 but i dont use a class for the view, i just used a layout Jan 09 20:16:16 Anyone know where I can get a Chinese ttf from? Jan 09 20:16:48 when building with the NDK is it possible to specify a custom linker script? Jan 09 20:22:36 Houte: you can either make a custom View like nebs said or you can try using a ShapeDrawable in XML like http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape Jan 09 20:25:18 I have a textView in a linear layout, and even though the text view has text of "Test" and it's attributes for width and height is "wrap_content", it still takes up like the entire screen. Any ideas? Jan 09 20:26:31 ^^ shape drawable, probably a better idea. Jan 09 20:30:15 I am having trouble trying to register my app on google cloud Jan 09 20:30:57 Im following the instructions here https://developers.google.com/youtube/android/player/register but I don't see where you select "Registered apps" Jan 09 20:32:52 to register your app Jan 09 20:36:08 hy all Jan 09 20:36:20 how can I enable internet connection in Open NFC? Jan 09 20:36:41 (android emulator for virtualbox with NFC capability) Jan 09 20:36:52 Has anyone like registered your app before? How can i go about doing so? I don't see the option to do so on the cloud.google.com page Jan 09 20:39:08 trying to port our library to gradle Jan 09 20:39:11 https://github.com/jobi/android-leveldb/blob/gradle/build.gradle Jan 09 20:39:26 for some reason the build of the NDK part fails with: Jan 09 20:39:42 :compileDebugNdk Jan 09 20:39:42 make: *** No rule to make target `/Users/jobi/src/android-leveldb/build/ndk/debug//Users/jobi/src/android-leveldb/src/main/jni/com_litl_leveldb_DB.cc', needed by `/Users/jobi/src/android-leveldb/build/ndk/debug/obj/local/armeabi-v7a/objs/leveldbjni//Users/jobi/src/android-leveldb/src/main/jni/com_litl_leveldb_DB.o'. Stop. Jan 09 20:39:42 :compileDebugNdk FAILED Jan 09 20:40:02 something very wrong with the paths, but I don't see what I'm doing wrong Jan 09 20:43:22 jobl: prob your makefile is not correct. NDK is tricky Jan 09 20:44:20 yeah but I don't see what's wrong, it's pretty straight forward Jan 09 20:44:23 https://github.com/jobi/android-leveldb/blob/master/library/jni/Android.mk Jan 09 20:44:32 ndk-build works in that folder Jan 09 20:46:07 when building with the NDK is it possible to specify a custom linker script? Jan 09 20:49:42 Intel HAXM is awesome Jan 09 20:49:50 so it looks like the gradle plugin is generating an Android.mk makefile instead of using mine Jan 09 20:49:52 and GPU acceleration is awesome too Jan 09 20:49:57 in build/ndk/debug Jan 09 20:50:17 HAXM didnt work when install from manager, I had to download it from Intel website and install it manually Jan 09 20:50:32 but now its almost native speed, its still not as fast as native, it still have some lags, but its 100x speed up :p Jan 09 20:50:47 haxm works when installed from sdk manager just fine Jan 09 20:50:54 you realize you have to run the installer after downloading from manager Jan 09 20:50:55 right? Jan 09 20:51:06 the sdk manager just downloads it, you have to run the installer afterward Jan 09 20:51:16 and the x86 emu is way faster than an actual device Jan 09 20:52:00 Oh, I see... No, I didn't know that... Jan 09 20:52:10 I wasn't aware of that, nobody told me, and the SDK Manager did not inform me. Jan 09 20:52:31 I still feel like real devices are faster than x86 emu Jan 09 20:53:03 I run the x86 image with HAXM on a i7 4770K, and its much faster than ARM image, and much faster than x86 without HAXM, but its still not as fast as real device Jan 09 20:53:35 try android x86 in virtual box Jan 09 20:54:35 sdk manager is not that good at things like this Jan 09 20:54:44 Is android x86 in VirtualBox fast? Jan 09 20:55:03 I run android-x86 from Android Studio, I think it uses QEMU Jan 09 20:55:07 sdk manager still corrupts my treeView (outline) of things available when i click a certain order, giving the impression there are less extras than there really are Jan 09 20:55:08 as fast as any other x86 OS in a vm Jan 09 20:55:20 Oh, cool! Jan 09 20:55:20 you have to install haxm from sdk/extras/intel/Hardware_Accelerated_Execution_Manager/ in your filesystem after you "install" it via SDK Manager Jan 09 20:55:25 how fast an emulator runs is entirely dependant on the HOST machine Jan 09 20:55:32 you just have to tell adb to connect to it differently Jan 09 20:55:41 and yea your AVDs will run super fast, esp if you have an SSD Jan 09 20:55:43 louielouie, I see. Thanks! I didn't know. Android Studio, SDK Manager, and ADT never told me about that! Jan 09 20:56:15 smallfoot-: i've got some slides about the emulator at http://www.luisdelarosa.com/emulator/ Jan 09 20:56:24 I440r, mostly yes, it also comes down to the emulator / what you are trying to emulate. Emulate Arm = slow, emulate an x86 platform = much faster Jan 09 20:56:35 x86 can be much faster* Jan 09 20:56:56 where can I download the android gradle plugin source code? Jan 09 20:56:58 I have 4770K, 16 GB RAM, and a high-end SSD, a beast machine. I installed HAXM and enabled GPU acceleration. I run android-x86 through Android Studio (think it uses QEMU?). It runs fast but not at native speed like a real device. Jan 09 20:56:59 an alternative to haxm is genymotion, which uses virtualbox underneath Jan 09 20:57:40 smallfoot-: sounds like a good machine. it should be faster. also it depends on how many pixels you emulate i think. Jan 09 20:58:46 louielouie, I emulate the Nexus 7 device Jan 09 20:59:14 smallfoot-: i usually emulate a Nexus S :) Jan 09 20:59:18 I see Jan 09 20:59:20 4770K of what? Jan 09 20:59:22 * JesusFreke ducks Jan 09 20:59:37 never mind, found it Jan 09 20:59:39 palithius: s.android.com Jan 09 20:59:39 JesusFreke, Intel Core i7 4770K "Haswell", 4-th generation Core processor Jan 09 20:59:42 still it should be pretty good and will get better as the GPU acceleration improves. i think its still "experimental" Jan 09 20:59:56 smallfoot-: see: sarcasm :) Jan 09 21:00:36 smallfoot-: i usually use an older Macbook Pro, but i recently built a 3930k w/32GB RAM. Android Studio seems to make better use of the cores. Jan 09 21:00:55 jonc my asus rampage iv extreme with the i7-3960X processor (lga2011) and 64 gigs of ram STILL does not run android apps on the android emulator as fast as my slowest phone Jan 09 21:01:01 Why doesn't the AVD Manager have profiles for the Nexus 5? Jan 09 21:01:13 is that because the google emulator "sucks" ? Jan 09 21:01:41 I440r that is because your x86 processor is trying to emulate an ARM processor Jan 09 21:01:47 how much of all that ram is your guys' system using? Jan 09 21:02:18 thats 6 cores, 12 threads at 4.7ghz - u saying its THAT difficult to emulate arm? Jan 09 21:02:48 l440r: the emulator doesn't take advantage of multiple cores. use HAXM or Genymotion. Jan 09 21:02:50 Yes, I440r. There was a paper going around that states to emulate an SNES perfectly you need at least a 3.2ghz x86 chip awhile back Jan 09 21:03:41 I don't understand why people get 32 or even 64 GB RAM. I got 16 GB, its overkill. I just got it because it was cheap and I didn't pay for it Jan 09 21:03:53 It's not nearly as simple as "toss more cores at it", things still have to happen in the correct order, you are essentially translating ARM instructions to x86 instructions Jan 09 21:04:14 smallfoot-, i have 32 gigs of ram and 32 gigs of ram drive. all my emerges build out of a ram drive. Jan 09 21:04:29 i boot to windows and play bf3? bf3 sits on a ram drive. way faster than any SSD Jan 09 21:04:33 I440r, I see. I use Ubuntu with pre-compiled packages. Jan 09 21:04:37 and then theres the braging rights :) Jan 09 21:04:50 Yes :D Jan 09 21:04:59 Why doesn't the AVD Manager have profiles for the Nexus 5 phone? Jan 09 21:05:02 smallfoot-, then i agree, ubuntu is a waste of that 16 gigs Jan 09 21:05:04 smallfoot-: i like to have headroom. also 2011 RAM works in quads. but its helpful if you run wasteful programs like Photoshop. Jan 09 21:05:26 louielouie, 16 GB RAM is headroom for me. Right now I am using 1,1 GB Jan 09 21:05:27 If you gave me 100gb of ram I could use it with some things I have written, but that's mostly for matrices that are 100k*100k Jan 09 21:05:42 no wait, I am using 757 mb right now only Jan 09 21:06:01 sometimes larger depending on what I was doing, typically very sparse, but for look up / calculation speed having it all in memory would be the easiest Jan 09 21:06:16 fwiw, I'm currently using 16gb (of 64gb) Jan 09 21:06:23 smallfoot-: try giving your IDE lots of RAM too by passing in memory options to java Jan 09 21:06:51 and all the extra ram serves as disk cache, which always helps :) Jan 09 21:07:31 Why doesn't the AVD Manager have profiles for the Nexus 5 phone? Jan 09 21:07:40 It has Nexus S and Nexus 7, but not Nexus 5 :( Jan 09 21:08:07 so at least 32gb seems pretty reasonable to me Jan 09 21:08:16 not too hard to make a nexus 5 avd: http://stackoverflow.com/questions/20360183/why-there-is-no-nexus-5-in-avd-manager-what-option-to-use-instead Jan 09 21:08:48 yea 32gb is pretty reasonable. it was cheaper too a year or so ago before it spiked up in price. Jan 09 21:13:49 louielouie, thanks Jan 09 21:14:12 I wonder why there is no pre-defined Nexus 5 by Google in Android Studio Jan 09 21:14:17 what is the best way to save an array list so when the application is open again, the contents are still there? Jan 09 21:14:51 save it out to file Jan 09 21:14:56 save it in a db Jan 09 21:15:26 database or file which one Jan 09 21:15:33 but yeh probably a file Jan 09 21:15:33 hm Jan 09 21:15:38 whichever tickles your fancy Jan 09 21:15:49 fancy pansy Jan 09 21:16:14 i'd prob just save it to a file via Serialization http://developer.android.com/training/basics/data-storage/files.html Jan 09 21:16:22 as long as your object is serializable you could just save it that way Jan 09 21:16:38 otherwise you could use Gson to turn it to a Json string and write that to the file Jan 09 21:17:08 I've got an issue w\ Gradle, on our build server, it gets to running lint on a module, and just hangs, never finishes Jan 09 21:17:11 hmm Jan 09 21:17:13 anyone seen this? Jan 09 21:19:43 gson sounds even better actually if you're familiar with it Jan 09 21:20:55 how can I enable internet connection in Open NFC? [21:36] (android emulator for virtualbox with NFC capability) Jan 09 21:21:21 does anyone know of a way to disable lint all together in gradle? Jan 09 21:27:22 somebody? Jan 09 21:28:25 gregtom6: never even heard of it. best bet is to ask on Stack Overflow Jan 09 21:28:48 or maybe their listserv https://lists.sourceforge.net/lists/listinfo/open-nfc-help Jan 09 21:28:49 and what about simple android mobile phone (not tablet) in virtualbox? Jan 09 21:29:03 gregtom6: use Genymotion - they've made it simple and use virtualbox Jan 09 21:30:33 louielouie: I need to use Open NFC Jan 09 21:31:05 the nfc capability of that is already working Jan 09 21:33:21 well you said simple android mobile phone in virtual box :) Jan 09 21:34:01 ya Genymotion is awesome Jan 09 21:34:11 hopefully Google has a free solution for us soon Jan 09 21:34:25 also I do wish there were easier tools for simulating a degrated network connection Jan 09 21:34:47 Genymotions sensor tools are awesome so far, but they need more Jan 09 21:36:13 Wavesonics: use Charles proxy for that Jan 09 21:36:29 its not free but its awesome, plus you can inspect the traffic you're sending/receiving from web services Jan 09 21:36:42 oh cool, that is helpful Jan 09 21:36:51 still it'd be nice to have it built into the standard dev tools Jan 09 21:43:50 AS 'check for updates in channel' still doesn't persist correctly Jan 09 22:11:21 Okay, so I have a MainActivity a class called Maps, and another class called Marker. MainActivity instantiates new Marker and adds to an ArrayList. I need to use this ArrayList of Markers in the Maps Activity. Therefore I believe I need to pass this using Parcelable. which Activity should Implement Parcelable? Jan 09 22:14:23 CocoStorm wouldn't you really store GeoPoints or something Jan 09 22:14:58 Sometimes the hardest part of Android is figuring out how to get access to the proper view Jan 09 22:14:59 lol Jan 09 22:15:56 g00s, I just used Marker as the name of the class because it made sense in my head but what they're really holding are strings and LatLong of the location when a button was pressed in the MainActivity Jan 09 22:16:12 i wonder if its just because membership in google+ android tools has grown substantially, but it seems people are having lots of problems with as 0.4.2 Jan 09 22:16:34 CocoStorm aoh, k - thought Marker was a google class Jan 09 22:16:42 ah nope :P Jan 09 22:16:50 yeah make that parcelable Jan 09 22:16:58 parcel all the things ! Jan 09 22:18:28 I see, and I have to override the methods, what do I do in them exactly? Also I'm getting 'This class implements Parcelable but does not provide a CREATOR field' lint on one of my constructors Jan 09 22:19:03 there are plenty of tuts on making things parcelable Jan 09 22:19:29 lol i'll check them out Jan 09 22:20:05 CocoStorm: use Parcelabler http://www.luisdelarosa.com/2013/01/22/parcelabler-helps-you-create-parcelable-implementations-for-your-android-classes/ Jan 09 22:20:18 thanks Jan 09 22:21:27 <_spm_draget> On a nexus7 I can unlock the bootloader (fastboot oem unlock) and install a custom recovery for example. When locking the bootloader agian (fastboot oem lock), what happens to the alternative recovery? Is it replaced by stock recovery? Does it stop working because it is not signed? Jan 09 22:21:46 Anyone here worked with custom alertdialogs before? Jan 09 22:22:54 _spm_draget: #android-root Jan 09 22:31:57 Oh, I just figured out my mistake Jan 09 22:32:00 gosh I do stupid things sometimes Jan 09 22:32:01 lol Jan 09 22:32:12 I was getting view from the dialog fragment, not from the insance of the dialog being created Jan 09 22:32:15 -facepalm- Jan 09 22:32:39 we need more emoticons Kappa Jan 09 22:36:21 hello Jan 09 22:36:41 Can someone please help me with my Bitmap? I'm trying to use BitmapFactory with options to try to shrink the size, but it outputs as the same size! http://pastebin.com/KYp5i8NB Jan 09 22:41:37 So my test project to test Android Studio 0.4.0 was this: shrink Jan 09 22:41:39 woops Jan 09 22:41:44 this: http://imgur.com/a/PODKW Jan 09 22:42:54 liking it so far? Jan 09 22:43:07 hello Jan 09 22:43:32 What is the best way to keep data offline in android apart sqllite ? Jan 09 22:43:56 SharedPrefs? Jan 09 22:44:03 i mean much data Jan 09 22:44:12 like 500 products Jan 09 22:44:13 http://developer.android.com/guide/topics/data/data-storage.html Jan 09 22:44:46 SqlLite =) Even though you already mentioned that. But you can use text files as well I guess Jan 09 22:44:46 ok so internal storage only Jan 09 22:44:49 you can write files in whatever format you want Jan 09 22:45:02 I am not sure if it worths the complexity Jan 09 22:45:06 there's also "external" (sdcard) storage Jan 09 22:45:14 I need some help how to design it Jan 09 22:45:16 you can write a content provider if you have complex needs Jan 09 22:45:33 I need to download some data from REST JSON web service Jan 09 22:45:48 then these can be stored either in relational format in sqlite Jan 09 22:45:59 or like json as i do already Jan 09 22:46:19 but when application is stoped i have to reload all them Jan 09 22:46:20 storing json in sharedprefs seems like it would be the easiest Jan 09 22:46:56 shigeru store 1mb of json data at sharedprefs ? there is a limit as far as i know Jan 09 22:47:51 wow you dl 1mb of json? Jan 09 22:49:35 yes it can be 1000 rows of data Jan 09 22:49:41 or more Jan 09 22:49:45 from relational database Jan 09 22:50:17 but it parses them into objects within 2-3 secs at shitty devices Jan 09 22:50:41 idk maybe best to stick it in a sqlite db then Jan 09 22:52:35 maybe you could xfer protobufs Jan 09 22:52:47 depends on how you need to access , what kind of indexing Jan 09 22:53:13 if its k/v thats easy peasy; protobufs in mvstore ;) Jan 09 22:54:27 do you really need to dl all 1000 rows at once? Jan 09 22:55:22 i've been kinda happy with protobuf, but i just happen to be doing a project that involves c++ python and java all talking over the network Jan 09 22:55:42 if it was only one language/arch, i'm not so sure Jan 09 22:57:13 baluse - yea i would translate it into sqlite bc it'll be easier to work with once downloaded Jan 09 22:58:07 yes I need all data Jan 09 22:58:23 because it should work if it is online , so its a sync thing Jan 09 22:58:30 offline* Jan 09 22:58:34 whats important is you you want to search for things Jan 09 22:58:45 louielouie i tend to sqllite because when I try to be smart I loose Jan 09 22:58:45 if you don't need multiple indexes, you can go one way Jan 09 22:58:53 only a few indexes, you can use mapDb Jan 09 22:58:57 many indexes, sqlite Jan 09 22:59:02 whats mapdb Jan 09 22:59:19 I was planning to use greendao because raw sql is going to be a hudge pain Jan 09 22:59:24 if you use a mac, get Base.app - its so nice to prototype and debug sqlite dbs Jan 09 22:59:32 I did it once and i regreted it Jan 09 22:59:35 http://www.mapdb.org/ Jan 09 22:59:58 seems new product Jan 09 23:00:19 it goes back almost 10 years i think Jan 09 23:00:53 forgot what it used to be called Jan 09 23:01:18 oh cool Jan 09 23:01:34 http://code.neenbedankt.com/introducing-cupboard-simple-persistance-for-android/ looks interesting too but ive never tried it Jan 09 23:01:47 interesting Jan 09 23:01:48 so Jan 09 23:01:54 please tell me you opinion Jan 09 23:02:08 I used to store in memory as List of objects. Jan 09 23:02:15 At application object Jan 09 23:03:00 and create a Service class that had some HashMap for indexing. Is there an alternative for this from architectual view? Jan 09 23:04:08 I mean I had List and HashMap and at service class had methods that got data from it Jan 09 23:04:53 idk i think contentprovider + cursorloader is the recommended way to go for that kind of stuff Jan 09 23:05:54 Baluse mvstore is a persisted hashmap Jan 09 23:06:27 but yeah, as long as you don't need to export it to the world as a content provider Jan 09 23:06:39 yea what shigeru said is standard. commonware covers it well in his book. Jan 09 23:09:05 so what is the way to go ? I have 10~ like that Jan 09 23:13:38 anyone know where I can get more inform ation about XML for android Jan 09 23:14:14 meaning ? Jan 09 23:17:01 im lookinf for documentation on XML Jan 09 23:21:38 http://www.w3schools.com/xml/xml_whatis.asp Jan 09 23:22:08 that tutorials sucks Jan 09 23:23:18 there's really not much to XML, it's very basic Jan 09 23:23:57 well where is the documentation Jan 09 23:24:07 10 px to the lef Jan 09 23:24:11 20 px from the bottom Jan 09 23:24:19 Maybe a text box Jan 09 23:24:21 im ean what the heck Jan 09 23:24:26 for what? each view has very good documentation in d.android.com Jan 09 23:24:28 that's documentation on layouts in Android, not on XML Jan 09 23:25:16 rather, you /want/ documentation on layouts in Android, not on XML Jan 09 23:51:51 "One other thing that was put in the GSM specification, after demands from some countries, was that the encryption could be turned off, without the cell phone user knowing.", didn't know that :| Jan 09 23:52:25 although the 54bit a5/1 seems weak anyhow Jan 10 00:05:56 Why "R.layout.activity_main" works, but android.R.layout.activity_main don't ? I mean the android.R.layout.activity_main was default, but then It stopped worked (It couldn't find the symbol) Jan 10 00:06:37 Shouldn't it be by default my package !? Jan 10 00:09:02 This "mAlarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime(), 60000, pIntent);" should activate the pendingIntent right away, and then every 60 seconds, right? Jan 10 00:11:23 .Right? Jan 10 00:12:42 Could anyone just agree or disagree? Jan 10 00:17:21 I agree Jan 10 00:17:30 what am I agreeing with again? Jan 10 00:17:33 wilornel, Teechnically it should activate pIntent, not pendingIntent Jan 10 00:17:39 but thats probalby just a typo Jan 10 00:17:40 lol Jan 10 00:19:38 Brian|CS: Right. Thanks Jan 10 00:20:05 PendingIntent.FLAG_NO_CREATE means that if the service is already running, it should not do anything with it, right? Jan 10 00:20:24 well, if the pendingIntent is already running, sorry. Jan 10 00:21:32 for some reason, PendingIntent.FLAG_NO_CREATE just does not let me create the intent... Jan 10 00:21:47 "Flag indicating that if the described PendingIntent already exists, then simply return null instead of creating it." Jan 10 00:22:04 so, if the pendingIntent is == null, then create it, right? Jan 10 00:22:25 heh, tbray "It’s a pity some people still build important apps in PHP and Spring, but those aren’t choices anyone is forcing them to make." Jan 10 00:24:24 Alright so, no matter what flag I am using, if it's not equal to 0, the pendingIntent is not activated Jan 10 00:24:25 https://www.tbray.org/ongoing/When/201x/2014/01/01/Software-in-2014 Jan 10 00:24:49 bluesm, why would there be an android.R.layout.activity_main Jan 10 00:25:11 pf Jan 10 00:25:21 android.R is framework Jan 10 00:25:26 it has nothing to do with your code Jan 10 00:25:27 pfn: No idea, I used the Android Studio Jan 10 00:25:34 Maybe it messed up something... Jan 10 00:25:35 android.R != your.R Jan 10 00:25:40 you messed up your import Jan 10 00:25:41 not it Jan 10 00:26:10 pfn: Maybe when I deleted the "main_activiy.xml" it mess somthing up.. Jan 10 00:31:33 pfn: Ok. Thanks :) Jan 10 00:36:57 Settings > Application > Running > someApp > Services > someService > "Stop". After I do that, my logCat is still receiving Logs from the service.... Jan 10 00:40:15 wtf... Jan 10 00:40:18 missing R.drawable.ic_drawer D: Jan 10 00:48:51 Hello how can I pass an object to an intent service? Jan 10 00:49:06 it has to be Parcelable Jan 10 00:49:12 heh Jan 10 00:49:32 and it doesn't pass the instance - it passes an instance. (serialize\unserialize, etc.) Jan 10 00:50:36 i have hashsets about 20k in size total Jan 10 00:50:43 are there any good docs that explain what the different methods that need to be overidden should be implemented? e.g the creator thing and describe contents Jan 10 00:50:46 serializing this i feel is going to be sloow Jan 10 00:50:58 cocostorm of which? Jan 10 00:51:11 when implementing parcelable Jan 10 00:53:59 lasserix you can just put the objects in a data structure, and then have the intent service process them in handleIntent() Jan 10 00:54:13 like some static field in the intentService Jan 10 00:54:22 see AsyncQueryService in the email app i think Jan 10 00:54:55 you mean they are passed in with the intent? Jan 10 00:56:25 the objects are strings, just a lot of strings, so i didn't want to parcel it, was hoping i could pass in the arraylist of hashsets, Jan 10 00:56:26 lasserix no, they just stuffed the objects in a queue Jan 10 00:56:29 I'm not a big fan of IDE's, is that essentially what everyone does for android dev? Jan 10 00:56:41 and then the service processes the queue Jan 10 00:56:50 raj since java, yeah Jan 10 00:56:54 some use vim Jan 10 00:56:56 emacs Jan 10 00:57:06 since java? Jan 10 00:57:09 the queue? Jan 10 00:57:11 what do you mean? Jan 10 00:57:17 I have just tested my app on a nexus and the keyboard covers some of my buttons which doesn't happen with my galaxy s3.. how can i avoid this? Jan 10 00:57:33 lasserix look at AsyncQueryService Jan 10 00:57:37 k Jan 10 00:57:38 thanks Jan 10 00:58:07 why doesn't TimePicker have an `init` method like DatePicker?] Jan 10 01:02:14 basically yeah it aint bare innit? Jan 10 01:02:56 CocoStorm: put it in a scroll view perhaps? Jan 10 01:03:29 i've implemented an extremely simple webview following these instructions: http://developer.android.com/guide/webapps/webview.html Jan 10 01:03:39 arcode, I guess, so there is no standardised way of dealing with different screen sizes? Jan 10 01:03:44 but when i open the app in the emulator, i get the default browser controls Jan 10 01:04:19 arcode, so that every app as seen on the device being tested on will look exactly the same Jan 10 01:04:28 on other devices too Jan 10 01:06:11 like this: http://i.imgur.com/G7ySgIq.png Jan 10 01:06:29 how can i get rid of the browser controls? Jan 10 01:06:35 and why are they showing up? Jan 10 01:07:58 Cocostorm: that's the sad thing about android, it doesn't work exactly the same on all hardware Jan 10 01:08:10 they called it fragment Jan 10 01:09:03 CocoStorm: how could it possibly look the same? Jan 10 01:09:18 with different screen sizes/resolutions/ratios? Jan 10 01:09:18 android fragmenation or something Jan 10 01:09:25 magic numbers! Jan 10 01:09:27 ok so basically what happens is you start my app, and the web view invokes the browser app with its URL? Jan 10 01:09:39 i thought the webview was supposed to show the URL within itself Jan 10 01:09:50 not just launch a browser with that website Jan 10 01:09:57 JesusFreke, I dunno but how could I possibly create an app that fits all sizes/resolutions/ratios? :P Jan 10 01:10:06 XXCoder, aren't fragments just for tablets? Jan 10 01:10:16 http://developer.android.com/guide/practices/screens_support.html Jan 10 01:10:21 no different meaning, not programming Jan 10 01:10:37 meaning too many variants of android Jan 10 01:10:45 PDilyard: have a look at webView.getSettings()... probably something in there you can set Jan 10 01:10:52 thansk Jan 10 01:10:54 thanks* Jan 10 01:11:58 you can layout the components and their size using x percent of the screen width//height. then design for the smallest screen size. but that is a lot of work Jan 10 01:12:48 it is a lot of work :D Jan 10 01:13:11 easier way is too have special cases for differen resolutions etc Jan 10 01:14:15 good luck :p Jan 10 01:15:44 still a lot of work but yeah I'll give it a shot Jan 10 01:15:49 thanks guys Jan 10 01:28:34 anyone know what the default calender/events color is (if the user does not set it)? Jan 10 01:56:07 I'm trying to write the constructor for my parcelable object, so I'm having to use Parcel in as the parameter but I'm passing in a LatLong object and there is no in.readLatLong() method. What must I do? :S Jan 10 02:01:03 CocoStorm: LatLng latlng = in.readParcelable(getClassLoader()) Jan 10 02:03:15 evanc, it says the method getClassLoader() is undefined Jan 10 02:03:26 right, you have to supply that Jan 10 02:03:47 I left it as an exercise to the reader :) (because I didn't remember the incantation off the top of my head) Jan 10 02:04:03 getClass().getClassLoader() Jan 10 02:05:19 Ahh that solved it, thanks :) so how does it know which parameter to use when they get passed in Jan 10 02:07:49 evanc, and for the writeToParcel method , I should use dest.writeParcelable(currentLocation, parcelableFlags) Jan 10 02:07:49 ? parcelableFlags should be an int but I'm not sure what int to put and what it's about Jan 10 02:21:29 what does the javadoc say about it? Jan 10 02:25:32 hey, is there a good way to get both the info about media + thumbnails on one cursor? Jan 10 02:25:48 I don't completely understand how that content resolver works, at the moment Jan 10 02:26:04 JakeWharton, Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Jan 10 02:27:04 can I actually ask for a projection that has MediaStore.MediaColumns.DATA and MediaStore.Video.Thumbnails.DATA on one cursor? Jan 10 02:27:57 CocoStorm: boom. 0 sounds safe then. Jan 10 02:28:07 I see Jan 10 02:28:09 :) Jan 10 02:29:06 JakeWharton, Also, if I have an ArrayList with parcelable objects, can I add that ArrayList to the intent? Jan 10 02:29:25 or do I have to make something else parcelable Jan 10 02:29:28 has anybody else had issues getting an AVD to load in OSX? Jan 10 02:29:37 i just get a black screen... i installed those intel patches Jan 10 02:29:38 Fragments are the fucking best. Jan 10 02:29:44 I'm using the new gradle 0.7.3 plugin to build NDK source files, but I am getting error conflicts with stlport that I do not get when using ndk-build. Anyone tried this? Jan 10 02:31:55 @coco you should be able to call putParcelableArrayListExtra() Jan 10 02:32:10 why does gradle even exist. it seems to me like every time someone comes out with a new java build system it just makes things more and more and more OVERLY stupidly complex Jan 10 02:32:15 jayd16, ahh, awesome, thanks :) Jan 10 02:32:31 CocoStorm: yes you can do that Jan 10 02:32:38 sweet cheers Jan 10 02:32:43 *phew* Jan 10 02:32:49 ahhhh use host GPU! Jan 10 02:33:30 Hey guys, any idea how I can turn off the overscroll the Kindles use? Its breaking our pull to refresh lib. Dont say 'set overscroll to never' that doesn't seem to work. Jan 10 02:33:42 I440r, It exists so that I can just write 1 line inmy build.gradle and add an android support libary Jan 10 02:34:42 so for the sake of having mommy hold your hand and do everything for you you will gladly accept a more complex system Jan 10 02:34:57 I440r: go use make and leave us enlightened folk alone then Jan 10 02:35:16 i think MAKE is just as bad as ant is just as bad as gradle Jan 10 02:35:23 bash Jan 10 02:35:37 or just hand-roll your javac and -cp Jan 10 02:35:44 so hipster Jan 10 02:36:03 I compile all my bytecode with a pencil! Jan 10 02:36:50 click. drag. drop. click. drag. drop. look ma! im a computer programmer! Jan 10 02:37:26 * palithius is no fan of gradle, or more precisely, groovy Jan 10 02:37:54 This groovy syntax is the worst ever. It has so many implicit rules that it makes the entire thing really hard to read. Jan 10 02:41:06 i agree. the underlying build system is boss though. fully incremental plugins are a lot of fun Jan 10 02:41:15 plus the plugins are easy to write Jan 10 02:44:48 hmm, when I have a custom view, and my view contains child views (in xml) which api does the inflater call on my view? Jan 10 02:45:02 addView(view) or with layoutparams? Jan 10 02:45:53 Awww Jan 10 02:46:05 getChildFragmentManager() only available in 4.2+? Dumb. Jan 10 02:48:42 Guess I'm using support fragments Jan 10 02:48:42 D: Jan 10 02:49:27 oh how lame they added new features in a new android version, so stupid Jan 10 02:49:39 <|0xD34D|> if you want pre 4.2 then http://developer.android.com/reference/android/support/v4/app/Fragment.html#getChildFragmentManager() is what you gotta use Jan 10 02:52:20 lol Jan 10 02:52:38 Yeah, I know, it's a dumb thing to complain about Jan 10 02:52:48 But thats the only reason I'd need v17 Jan 10 02:52:49 :P Jan 10 02:52:59 stick w/ API level 1 imho Jan 10 02:54:43 lul Jan 10 02:56:03 zinx, Why restrict yourself to positive integers? Jan 10 02:56:07 Let's go for version -0.69 Jan 10 02:56:10 Brian|CS: you should always use support fragments, even if you are API 14+ Jan 10 02:56:24 Brian|CS: 'cause that was the first official API number, though i'm pretty sure that was a retroactive naming Jan 10 02:56:41 JakeWharton, Whats your logic for that? Jan 10 02:56:44 Just curious Jan 10 02:56:47 this will result in consistent behavior across all API levels and also allow you to take advantages of bug fixes in newer revisions of the support library **** ENDING LOGGING AT Fri Jan 10 02:59:59 2014