**** BEGIN LOGGING AT Sat Nov 09 02:59:58 2013 Nov 09 03:00:11 i'll have to go back, but i did see a wallmart - brand pouch for like $5 that looked better than the nexus one Nov 09 03:00:33 it was generic Nov 09 03:00:49 i was looking for something like an otter defender though Nov 09 03:40:28 ok time for some android poetry Nov 09 03:40:46 And so it begins... Nov 09 03:40:53 with onCreate Nov 09 03:46:09 greetings guys, I was wondering if anyone has any tips for making the emulator load up faster and respond a bit quicker Nov 09 03:46:17 i am on a laptop with 12GB of RAM and an SSD Nov 09 03:46:22 i thought that would be enough Nov 09 03:46:44 use x86 image; haxm + gpu acceleration Nov 09 03:46:48 or genymotion Nov 09 03:47:00 genymotion? Nov 09 03:47:11 and what do you mean by, x86 image? Nov 09 03:48:16 if using official goog emu; there are ARM and x86 images Nov 09 03:48:26 dont think there is one for api 19 yet Nov 09 03:49:05 thats fine, i just hate the experience. Windows and iPhone are both really snappy Nov 09 03:49:23 those are sims; yeah Nov 09 03:49:32 iPhone is Nov 09 03:49:39 Windows Phone is emulator Nov 09 03:49:44 x86 and gpu accel is as fast as real devices Nov 09 03:49:44 oh Nov 09 03:49:56 SimonVT, I like the sound of that Nov 09 03:50:44 g00s, where can i find these images, I never saw a selection in any of the dialogs Nov 09 03:50:48 AVD Manager? Nov 09 03:51:00 in the android tool Nov 09 03:51:08 In sdk manager Nov 09 03:51:13 mmm Nov 09 03:51:16 sdk? Nov 09 03:51:18 checking Nov 09 03:51:41 And yeah, no api19 x86 image yet Nov 09 03:51:44 ahh i think see it Nov 09 03:51:49 x86 atom? Nov 09 03:53:41 yes Nov 09 03:54:50 xximjasonxx the x86 images will actually show up here a few weeks before google posts them http://software.intel.com/en-us/android Nov 09 03:55:05 g00s, excellent that is good to know Nov 09 03:55:08 but they require more legwork to install Nov 09 03:55:23 really? you mean before they appear in the SDK manager? Nov 09 03:55:29 yeah Nov 09 03:55:33 * xximjasonxx is still curious to see if this is faster Nov 09 03:55:41 Jelly Bean x86 image with 2GB of RAM Nov 09 03:55:54 Without gpu accel, no Nov 09 03:55:58 With gpu accel, yes Nov 09 03:56:08 SimonVT, how do I enable that? Nov 09 03:56:20 this laptop has a pretty kick ass video card (its designed for gaming) Nov 09 03:56:26 When you create it there's a checkbox Nov 09 03:56:37 i assume i can edit that in Nov 09 03:56:46 use host gpu or something Nov 09 03:56:53 yup, just saw it Nov 09 03:56:56 Yeah, just open avd manager and click edit :p Nov 09 03:57:40 My old laptop didn't support it.. Ever since I got a laptop that did, it's just so much more convenient to use the emulator Nov 09 03:57:42 Open HAX failed Nov 09 03:57:49 osx? Nov 09 03:57:56 windows 8.1 Nov 09 03:58:03 Yeah, it's broken Nov 09 03:58:13 Google it, they released a patch that's not yet in sdk manager Nov 09 03:58:38 http://developer.android.com/tools/devices/emulator.html#accel-vm Nov 09 03:58:58 (they being intel) Nov 09 04:00:34 I haven't downloaded the patch.. I've just found it takes a bit longer to react to touches, but animations etc are just as fast Nov 09 04:01:41 hrmm that link references an extra that is not in the SDK manager Nov 09 04:03:16 gaj Nov 09 04:03:35 i guess its not supported, or was that the reason why you said I needed a patch SimonVT Nov 09 04:03:37 ? Nov 09 04:04:13 haxm (what is required for x86 images) is fucked on osx and windows 8.1 Nov 09 04:04:28 Intel released a patch for it that's available somewhere on their website Nov 09 04:04:35 looking Nov 09 04:04:40 I've not bothered, just waiting for it to reach sdk manager Nov 09 04:04:47 gpu accel still works Nov 09 04:04:55 well if skimming these links is any indication Nov 09 04:05:00 it causes a BSOD on WIndows Nov 09 04:05:23 In my experience, gpu accel makes animations smooth.. x86 makes interaction smooth Nov 09 04:05:55 So I'm putting up with slow touch events until it's in sdk manager Nov 09 04:06:14 well it sounds like i need this patch to get gpu acceleration at all Nov 09 04:06:53 No, x86 and gpu accel is two different things Nov 09 04:07:13 yes, i was referring specifically to gpu Nov 09 04:07:42 found it: http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement-windows-hotfix Nov 09 04:08:58 i find it hard to believe the i5 doesnt support this Nov 09 04:09:43 but that appears to be the case Nov 09 04:11:06 quite unfortunate Nov 09 04:12:14 guess i will have to try it on my Mac later Nov 09 04:12:30 * xximjasonxx wonders how easy it is to pave a max Nov 09 04:12:31 *mac Nov 09 04:12:54 i wont use haxm on my mac; after it hung my machine it damaged HFS Nov 09 04:14:05 Haven't had any issues (until it broke with mavericks) Nov 09 04:14:14 Of course, I've only had a mac for half a year.. Nov 09 04:15:00 well SimonVT there is the answer Nov 09 04:15:15 for whatever reason the i5 I have does not support virutalization Nov 09 04:15:21 its not 8.1 in my case Nov 09 04:15:23 i am disappointed Nov 09 04:18:37 xximjasonxx huh? no VT-x on the i5 ? Nov 09 04:18:41 apparently Nov 09 04:18:51 i even downloaded the Intel Processor Utility Nov 09 04:18:54 O.o are you sure, that sounds weird Nov 09 04:19:26 that means you can't practically run genymotion either; since it uses vbox with VT-x enabled Nov 09 04:19:45 g00s, I havent given up hope, but I am quite perplexed at the moment Nov 09 04:22:04 SimonVT, definintely is snappier Nov 09 04:22:08 inputs are still slow as shit Nov 09 04:22:11 but its better Nov 09 04:22:38 http://en.wikipedia.org/wiki/List_of_Intel_Core_i5_microprocessors Nov 09 04:22:49 almost everything supports VT-x Nov 09 04:23:13 where do you see that Nov 09 04:23:34 some dont support VT-d , not sure what that is Nov 09 04:24:30 http://screencast.com/t/GZbchQNR Nov 09 04:24:32 all the way back to 45nm lynnfield Nov 09 04:25:06 so mine is a haswell Nov 09 04:25:35 ok this wiki says it is supported Nov 09 04:25:37 what the hll Nov 09 04:26:05 let me reboot and check the BIOS Nov 09 04:27:22 ARK says yes http://ark.intel.com/products/76348 Nov 09 04:27:29 i5-4200M Nov 09 04:28:14 so VT-X virtualization is enabled in the BIOS Nov 09 04:28:46 but the footnote in ARK says "This feature may not be available on all computing systems. Please check with the system vendor to determine if your system delivers this feature" Nov 09 04:28:54 xximjasonxx what machine do you have ? Nov 09 04:29:11 toshiba qosmio Nov 09 04:29:15 let me get the model number Nov 09 04:29:18 oh Nov 09 04:29:21 fuck, toshiba Nov 09 04:29:45 x75 a7298 Nov 09 04:29:55 my first toshiba, good specs though Nov 09 04:29:58 i'd never suspect in 2013 buying a machine without vt-x though Nov 09 04:30:03 i agree Nov 09 04:30:11 like, wtf, i wouldn't even check Nov 09 04:30:22 well the BIOS seems to think its there Nov 09 04:30:33 granted it did say "if available" Nov 09 04:31:08 i dont know; hope you work things out Nov 09 04:31:42 ask says it has it Nov 09 04:31:48 ark Nov 09 04:39:07 hm, i'm very tempted to have several product flavors; one for legacy (GB / appcompat) and the other for 'current', sharing a core and library-projects which are basically OK with sdk 8 Nov 09 04:39:50 this probably isn't a good idea Nov 09 05:45:42 thanks JrRobo for inviting me to ##blackhats, so kind of you Nov 09 05:46:31 for the lulz Nov 09 05:55:18 yeah... Nov 09 05:55:42 hey BullShark whats going on these days ? Nov 09 05:56:53 looks like you took a few months off from working on JRobo Nov 09 06:02:16 I just managed to rip the old Color class out of my app and replace it with one that's less fundamentally stupid. Feeling pretty good about that. Nov 09 06:05:35 Nilium: color selector? Nov 09 06:06:08 No, a color class. I haven't bothered rewriting my color selector. Nov 09 06:06:22 oh Nov 09 06:06:40 I'm still unsure how to allow user select a color Nov 09 06:06:41 i.e., it's a class whose instances represent colors. Nov 09 06:06:44 In (currently) two color spaces. Nov 09 06:07:38 ok Nov 09 06:08:21 Aside from that, I just use more or less the same color selector UI I made ages ago. Nov 09 06:11:58 cool Nov 09 06:20:28 I have a question about the shared preferences Nov 09 06:20:41 according to the docs here (http://developer.android.com/training/basics/data-storage/shared-preferences.html) you can save prefs to multiple files Nov 09 06:20:50 or you can use the default pref service Nov 09 06:21:16 under what circumstances might one want to use multiple pref files? Nov 09 06:21:42 If it's just a persistent key-value store, what's the value of having multiple stores? Nov 09 06:24:52 nomnomdeguerre: i've done it before where i had a larger app&i took sections from it&split them into seperate apps. so kept the seperate preferences only to keep it easy to copy/paste into seperate apps :) Nov 09 06:27:15 interesting, okay thanks Nov 09 06:28:10 otherwise i have no idea :) Nov 09 06:28:50 On the topic of large apps, can you give me some direction regarding how to separate out the business logic and maintain state? Nov 09 06:29:15 I am used to writing server-side java, and am finding android to be quite another thing Nov 09 06:29:16 Gotta give alittle more detail Nov 09 06:29:40 sure. So I'm writing a chat app Nov 09 06:29:42 i was saying large app as in if i have a navigation drawer i have 10 items haha Nov 09 06:30:12 if you are saying how to keep persistant data, then there are ways :) Nov 09 06:30:26 no, I'm aware of that Nov 09 06:30:50 I'm looking at some projects, and some of them subclass the android Application Nov 09 06:30:58 then inject that into some other things Nov 09 06:31:35 wondering if there's some sort of organizational structure to an app, some convention, that separates the business logic from the applications Nov 09 06:31:42 sorry, not applciations, activities Nov 09 06:32:20 because having business logic spread over so many activities and fragments seems like kind of a bad idea, and rather hard to test Nov 09 06:32:42 give me a tad bit more detail. Business as in data, and keeping that business current with active activities? Nov 09 06:34:07 i'm no expert, but if I have Business(data) that is gonna be used across multiple fragments/activites, i keep a static resource for that data to be retrieved by whomever needs it Nov 09 06:35:57 hm Nov 09 06:35:59 just really depends on how you are displaying your app. my main activity is always accessible, so I have my fragments get their persistant data from it. once i start creating other apps i'll adjust my methods based on how my app flows Nov 09 06:36:53 nomnomdeguerre a challenge with android is that your process lives forever, until it gets killed :) so if you go from an activity to Home, for example, you had better commit changes to the model somewhere; like db, file, provider, etc Nov 09 06:37:44 I've discovered that too, yes Nov 09 06:38:26 so what i typically use is something like CQRS; where ad hoc queries happen in Loaders, etc but the model lives in a service, which may need to outlive an activity to save state in say db, web service, etc Nov 09 06:39:02 not saying i follow CQRS to the 't', but similar Nov 09 06:39:27 So for that service -- is it just a singleton? Nov 09 06:39:34 since the service is a singleton, the model (or parts) can be too. Nov 09 06:40:56 But from activity to home doesn't neccesarily(sp?) destroy your activity. So if app goes to pause/stop do what you need, if destroy then kill all threads etc... so learn the cycle, then go with that Nov 09 06:41:30 it doesn't necessarily destroy it, but industrial strength app will assume so Nov 09 06:41:40 depends Nov 09 06:41:52 threads can keep going if they aren't doing anything important, like reads Nov 09 06:42:06 i have an app that keeps logs of details, so pause/stop i don't kill threads,destroy i clean up Nov 09 06:42:07 but commits or changes that need to happen must be within a service lifecycle Nov 09 06:42:25 basically just learn the life cycle&apply needs Nov 09 06:42:57 nomnomdeguerre in your device, do to dev settings, "Destroy activities on close" and make sure your app works ;) Nov 09 06:43:23 but that doesn't mean the process would be killed - Nov 09 06:43:34 back in froyo days, i could start the browser and my app process would be killed Nov 09 06:45:01 moral of story: persist it. Nov 09 06:45:34 moral of story: find your needs, figure out how to keep your needs :) Nov 09 06:45:53 For small stateful things, like a temporary authentication token, or a last message received, would you put those in the shared prefs? Nov 09 06:46:12 and if so, might you put a cache in front of it, or is shared prefs fast enough Nov 09 06:46:13 ? Nov 09 06:46:25 put them anywhere you want that is best for you&is efficent and clean Nov 09 06:47:10 nomnomdeguerre shared prefs is cached; but id only use it for a small # of primitives; you can't iterate over the keys for example Nov 09 06:47:11 same question, posed a different way: what do you rely on for your basic key-value store of stateful information? Nov 09 06:47:30 for a nice k/v store i use H2 MVStore Nov 09 06:48:05 nomnomdeguerre: there are multiple ways to need to keep data. Rotation change/app killed in background/Phone sleep,wake/etc....you just have to take it all into account based on all scenarios Nov 09 06:48:59 learn the life cycles! :) then you'll know how&when to save what you need Nov 09 06:50:47 nomnomdeguerre also, shared prefs is stored in xml; so updates serialize to xml which is - really not right for high frequency mutation Nov 09 06:51:10 now that's a very useful tidbit Nov 09 06:51:33 okay, so for a higher-frequency persisted key-value store, H2 is an option Nov 09 06:51:43 mvstore specifically Nov 09 06:51:56 its in the h2 distribution Nov 09 06:52:09 excellent, I'll check it out Nov 09 06:52:11 another option is MapDb, but i haven't used it in a while Nov 09 06:52:24 http://www.mapdb.org/ Nov 09 06:52:45 they share some code, but the h2 author is one of those brilliant types Nov 09 06:52:48 nomnomdeguerre: sharedpreferences are more for visual on/offs i think. any unique data should be stored accordingly, passwords encrypted, urls to images can be db etc...just find your needs Nov 09 06:53:10 mvstore can encrypt Nov 09 06:53:34 g00s is selling the mvstore pretty hard Nov 09 06:53:42 nomnomdeguerre remember; a main pattern on IPC is using content providers Nov 09 06:53:54 and for that, practically speaking, you would use SQLite Nov 09 06:54:19 nomnomdeguerre you asked for k/v ;) Nov 09 06:54:27 you can grab leveldb and use ndk for that Nov 09 06:54:30 lots of options Nov 09 06:55:10 it won't be easy putting a provider 'ontop' of mvstore , etc Nov 09 06:55:50 sqlite is awesome too though ;) Nov 09 06:56:43 sqlite v4 will be more optimized for k/v Nov 09 06:57:12 but forget about that showing up in android any time soon :D Nov 09 06:57:18 nomnomdeguerre: basically, find how detailed you need your saved data. If just A-B then make your details A-B, if A-B-C-D-E-F-G..-Y-Z then break down your data saving needs :) Nov 09 06:57:37 That'll be interesting to see, but yeah, probably won't be able to use it without shipping it yourself. Nov 09 06:58:18 wow, lots of options. Thanks for the input Nov 09 06:59:12 On a different topic: how many of you have switched to the gradle build system and/or are using the new android studio? Nov 09 06:59:41 Hi, I got actionbar with setting menu, how can i give option to users to change the font color for entire app (all activity, not actionbar or titlebar) and save it until user changes it again ? Nov 09 07:00:11 I was trying to get robolectric up, but could only do so using maven and intellij in any usable fashion Nov 09 07:00:48 rabbi1: I think that's a use case for shared preferences Nov 09 07:00:51 see discussion above! Nov 09 07:01:36 nomnomdeguerre i use gradle / as, but don't use robo. i run all my tests on genymotion which is very fast Nov 09 07:01:36 nomnomdeguerre: android studio is still buggy i guess. may take some time more …. Nov 09 07:03:04 nomnomdeguerre: discussion above ? Nov 09 07:07:43 * Nilium uses IntelliJ and SBT because he likes being special. Nov 09 07:08:18 Nilium you are a unique snowflake , indeed Nov 09 07:08:24 I will cut you. Nov 09 07:08:25 :) Nov 09 07:08:49 Also, it started snowing here recently. Nov 09 07:08:49 I hate everything now. Nov 09 07:22:23 should i use a color picker ? again i want to give option of fontsize to users as well ? any help ? Nov 09 07:35:18 hm, AS doesn't let me choose a lot of fonts; an no specific weights either Nov 09 07:36:42 eclipse was fine here, so it can't be the jvm. Nov 09 07:37:15 * g00s fav font: Source Code Pro Light Nov 09 07:37:36 even vim got this right :| Nov 09 07:53:39 There is a 20lb snowpaw siamese cat laying on my chest. Nov 09 08:00:07 Hey, qq: for a view that contains an EditText element, how can I make it such that the soft keyboard does not pop up automatically? Nov 09 08:00:23 ie require the user to click the edit field Nov 09 08:04:46 Anybody can spare some time to see my question? http://stackoverflow.com/questions/19850282/re-use-the-androidmanifest-xml-in-library-project-in-android-studio Nov 09 08:39:10 When using a gridview that gets inflated from a fragment I should still set the list adapter on the fragment.onCreateView method correct? I'm having the problem where my grid items aren't showing up. Nov 09 08:42:38 hello Nov 09 08:42:58 is there any open source library to style UI like Pixate for iOS? Nov 09 09:19:21 studio 0.3.4 is out 9 hours ago Nov 09 09:42:43 what up! Nov 09 10:07:01 why I my app crashes when I do this: char symbols[] = line.toCharArray(); String newLine = new String(symbols); Nov 09 10:31:10 Denel? Nov 09 10:31:24 yes Nov 09 10:32:05 Did you have a question? Nov 09 10:33:25 yeah, but I'm doing a different approach now. I have another question. how to write to console or logcat? System.out.println(); doesn't seem to write me anything Nov 09 10:36:38 nvm, works now Nov 09 10:55:13 There's no console in Dalvik apps Nov 09 10:55:31 To write to logcat, use android.util.Log Nov 09 10:55:38 http://developer.android.com/reference/android/util/Log.html Nov 09 11:32:00 hi, from the security development perspective why the app shall check if it is runnin on rooted/jailbroken device ? i mean what are the consequences on android ? just malicious application from 3rd party stores ? Nov 09 13:07:29 hey Nov 09 13:07:43 http://developer.android.com/reference/android/os/UserManager.html#isUserAGoat() is this an easter-egg or what? Nov 09 13:18:57 I'm using a preferencesfragment and when it auto-saves the preference it saves the key/ selected entry value. the problem is that the item selected from entries string array is "human" readable, I would like to use another value, perhaps something i can specify as an xml element in the array.xml Nov 09 13:19:37 i apologise for using the wrong terminology, however maybe this is how its done and i'd need to got to a lot of trouble to ensure that save/load worked for these widgets Nov 09 13:22:42 Jackneill: no, it is a precheck call before you initialize teleportation Nov 09 13:23:12 icedp, teleportation? Nov 09 13:23:49 new 4.5 feature ? Nov 09 13:25:46 yes you can teleport, but only if user is a gou Nov 09 13:25:48 t Nov 09 13:26:49 * wmealing_ knew he shouldnt have rolled human Nov 09 13:29:19 opposable thumbs though, hard to beat that. Nov 09 13:29:44 how to make sure only one instance of CountDownTimer exists? and if one exists how to destroy it? because I need to start timer, if something happens, I want to start a new one and I dont't care about the previous one Nov 09 13:30:17 keep a track of it ? Nov 09 13:30:26 and then instantiate over the top ? Nov 09 13:32:23 if I start a new timer then they both are working Nov 09 13:35:43 Denel: .cancel() the previous one? Nov 09 13:38:20 You could hook up an atomic clock to your device and use that! Nov 09 13:38:47 hm Nov 09 13:38:51 youre right Nov 09 13:39:05 brb gonna steal one Nov 09 13:40:27 atomic clock is obviously the easiest solution Nov 09 13:40:41 not sure why i didnt think of that Nov 09 13:53:36 my gps gave me coordinates of 20m is this the best I can do? Nov 09 13:54:12 can I get a more accurate location, I dont know if this accuracy is the best or if I should do more research and try to be more accurate Nov 09 14:16:41 zquad: depends on a bunch of factors Nov 09 14:27:25 on Nov 09 14:27:45 such as Nov 09 15:07:37 Anyone having "troubles" (aka issues) with eclipse not really listening to paste/cut/copy commands? Nov 09 15:08:17 Takes around three to five button press for it to "go through" Nov 09 15:13:00 do you guys do android dev with rooted android devices or production devices? Nov 09 15:13:05 Zooklubba: Have you tried turning it off and on again? :D Nov 09 15:13:14 Haha Miklas Nov 09 15:13:50 rkz: In my case, anything that I want to do just runs on a production device. Creating something that requires root will significantly lower your possible users. Nov 09 15:13:55 It's more of an annoying thing, especially with the pasting since it might not have properly copied so it pastes something old. Nov 09 15:14:41 Zooklubba: I had similar issues a while back; wouldn't listen to the commands at all. Restarting it did actually help in my case. Nov 09 15:15:06 I've had it for years I guess, or at least over 1 year. Nov 09 15:15:23 Not really tried just restarting it when I find it tho Nov 09 15:15:38 I just have created a habbit of pressing the buttons like 10 times Nov 09 15:16:14 That's not really optimal, is it? I guess Google is your best chance here. Nov 09 15:17:58 True, but hey. I'm just glad I don't get angry about it anymore Nov 09 15:19:12 Miklas, I love it: https://bugs.eclipse.org/bugs/show_bug.cgi?id=368354 Especially this bit "Reproducible: Sometimes" Nov 09 15:26:35 hello, I'm looking for a pointer on where to start programming an andriod app. First question is java or html5 ... I want to make a small todo app just to get my feet wet, cross platform (linux, win, ios) would be a bonus Nov 09 15:32:49 CQ: Depends on whether you want to learn how to program for android, or just make an app. Also depends on whether you will be using anything that requires access to anything platform-specific, like sensors. Nov 09 15:34:51 Thorbear: so far nothing planned that should be platform specific... are openfl, sencha, or Phonegap useful? Nov 09 15:36:38 or are they overkill for a simple todo app Nov 09 15:38:18 I haven't tried out any of the crossplatform stuff, so which solution to use I don't know, but if you have no interest in android specifically, and don't need sensors, one of the crossplatform solutions is what you want =) Nov 09 15:39:13 that's why I was thinking html5 Nov 09 15:41:03 I want to render multiple thumbnails of a video, at given times. Is working with the Mediaplayer an option (set it to the specfic time, render one frame to a SurfaceTexture, set to another time, render another frame...)? Nov 09 15:41:20 Or is there a way to do it faster as I want to have them created at runtime? Nov 09 15:41:57 how to make android studio default for opening android project files? Nov 09 15:43:06 ItsPriyank: (never worked with Android Studio) but I'm guessing either it makes its own specific files and associates it with them or you need to import existing Eclipse ones. Nov 09 15:44:11 keep in mind that the Android Studio is still in a "preview" phase and not all functions work perfectly yet. Nov 09 15:44:37 My suggestion would be to use Eclipse ADT and swap when it is released as a stable. Nov 09 15:44:55 Except if you really want one specific feature from the studio. Nov 09 15:44:57 Miklas: I did created my project with android studio and all files were associated with it but recently something happened (don't know what) and all file associations were removed! Nov 09 15:45:31 Android Studio has better preview which I really like and also its UI Nov 09 15:45:57 ItsPriyank: Using Windows? Right mouse click on the project file, open with, select Android Studio executable and check "always open with this program". Nov 09 15:46:41 Like all applications have something like make this default (like in browsers), is there any such feature in android studio Nov 09 15:47:08 because making so many right clicks and make it default it tedious Nov 09 15:48:33 and how to use bitbucket private repo with android studio Nov 09 15:55:34 How do you check avd manager logs? Because none my avd's are launching ever! Nov 09 15:57:00 I created many avds but none seem to launch Nov 09 15:57:27 ItsPriyank: I can only refer you to Google and their troubleshooting? http://developer.android.com/sdk/installing/studio.html#Troubleshooting Nov 09 15:58:25 I have seen that and android studio known issues too. But I think AVD not launching is something else Nov 09 15:58:56 For a repo on bitbucket, assuming GIT, you can just use your regular git tools outside of Android Studio. (see the BitBucket 101: https://confluence.atlassian.com/display/BITBUCKET/Bitbucket+101) Nov 09 15:59:42 Otherwise, Android Studio has some built in version control, check out this topic: http://stackoverflow.com/questions/16644946/how-do-you-sync-projects-to-github-with-android-studio Nov 09 15:59:57 yes GIT Nov 09 16:00:53 thanks! Nov 09 16:06:01 "android project files"? Nov 09 16:06:03 wtf are those Nov 09 16:06:11 build.gradle is not an android project file Nov 09 16:07:53 android studio has git built in Nov 09 16:07:59 so just git clone once and you're done Nov 09 16:12:46 Nobody happens to know a way to generate fast thumbnails? Nov 09 16:17:25 done! git is working. from within Nov 09 16:21:59 Where my JAVA_HOME should point ? Nov 09 16:23:25 bluesm: to the JDK folder, usually somehwere in C:/program files/java/JDK_version_numbers/ Nov 09 16:23:42 Miklas: Where on linux ? Nov 09 16:25:19 bluesm: I'm not sure, so Google to the rescue. First hit: http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/ Nov 09 17:13:28 w/4.4 seems like there's not translucent with an action bar. is that the case ? Nov 09 17:14:48 I'm using a MediaPlayer object to render a movie into a SurfaceTexture and then I use it in OpenGL. However, the movie is 720p content while the part I'm showing onscreen is nothing more then 100 (or so) pixels; so a bit of a waste of precious space. Is there a way to let MediaPlayer provide lower quality output? Nov 09 17:16:09 can someone explain me how matches specific MIME type ? does it look ito the header of the data and checks some values agains known MIME types or does it only check for a callers MIME-type value passed with the intent ? Nov 09 17:16:48 (I've checked both MediaPlayer and Surface texture, the latter points that it has a setDefaultBufferSize but that one is overwritten by the content provider. However, I can't find any setting in the MediaPlayer arsenal?) Nov 09 17:32:03 have any of y'all converted a maven project to gradle? any templates? Nov 09 17:32:41 greetings guys, i have a quick question Nov 09 17:33:09 trying to get the emulator to run better, i am told x86 + gpu host will do the trick. I got the first one easy enough, but trying to enable the second and I get that my chip doesnt support VT x Nov 09 17:33:26 now this is a brand new laptop, i5 4200m, everything online says it does support it. Ive checked the Bios Nov 09 17:33:42 its got virtualization enabling options which i have done Nov 09 17:34:11 but it still does not work. THere is some thought that 8.1 might be an issue, and when I attempt to apply the patch I get a message indicating HAXM isnt supported Nov 09 17:34:22 is there a way to know for sure, or should I just give up at this point Nov 09 17:34:37 xximjasonxx: get genymotion Nov 09 17:35:41 funkbox, someone mentioned that last night. ill give it a try Nov 09 17:36:03 xximjasonxx: just be careful. it's faster than an actual device so make sure to test on a low-end device too Nov 09 17:36:16 funkbox, too funny :) Nov 09 17:36:29 long as it as snappy as the WIndows Phone Emulator, I will be happy Nov 09 17:36:45 the use of the x86 images definitely helped for the experience, but i hate the input lag Nov 09 17:40:57 gah need virtual box for genymotion Nov 09 17:40:59 blek Nov 09 18:40:41 howdy - having issues with a SimpleCursorAdapter I'm using Nov 09 18:40:41 http://hastebin.com/pekukisudi.hs Nov 09 18:40:55 this happens on most boots Nov 09 18:41:31 the workflow is that the cursor is generated on a worker thread in an executorservice managed by the application object Nov 09 18:42:16 and passed back to the CursorAdapter in a Runnable run on the ui thread Nov 09 18:43:11 I swap cursors in with swapCursor Nov 09 18:49:52 AndroidManifest.xml It determines which processes will host application components Nov 09 18:50:01 What does it mean? Nov 09 18:56:05 it defines your set of activities and what classes corespond to them Nov 09 19:03:18 What does it mean, double rainbow Nov 09 19:03:27 yes, but what does it meeeeeeeean Nov 09 19:07:38 is there a way to get hte size of the actionbar+statusbar in 4.4 accounting for windowTranslucentStatus ? Nov 09 19:09:11 whatcha doin with it? Nov 09 19:09:48 Rager: setting up a background for the action bar Nov 09 19:10:26 i also need the view to be the height of the actionbar since i ocasionally hide the action bar to reveal some controls Nov 09 19:30:16 Rager: to me? Nov 09 19:37:10 hi. I just read this article about activity indicators and it seems like there are nice indeterminate activity indicators in the holo theme. I want to use the indeterminate progress bar... does anynone how I can do so? Nov 09 19:37:32 I don't want to display the indeterminate circle Nov 09 19:44:05 Does android stops support xhdpi and similar folders ? Nov 09 19:44:23 I mean other way is suggested? Nov 09 19:58:11 Hey Guys Nov 09 19:58:18 Can anyone help me debug java.lang.NullPointerException at addCurrency.onCreate(addCurrency.java:27) in http://pastebin.com/0kViid3p Nov 09 19:58:52 any gl programmers here? I can't seem to get any info from glGet*iv functions.. the integers I give it are never changed and glGetError just gives 0 Nov 09 20:05:13 strange thing is I can draw primitives just fine, no shaders though Nov 09 20:09:55 what's to debug, that's obvious, line 27 references a null pointer Nov 09 20:10:58 look for periods on line 27 Nov 09 20:11:10 now look at the letters to the left of the periods - one of those is your problem. Nov 09 20:11:31 mostly works, except for autoboxing Nov 09 20:13:53 true Nov 09 20:13:58 all the letters are suspect Nov 09 20:14:17 but from what I see, dbClass isn't set Nov 09 20:14:32 blernghdsf Nov 09 20:14:37 this cursor is destroying me Nov 09 20:15:12 I keep getting an error "java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow" Nov 09 20:15:28 what's *really* obnoxious is that I make sure that the count of rows > 0 before passing the cursor in Nov 09 20:22:05 can I make a dialog box from a native-activity or do I need to make java callbacks? Nov 09 20:35:11 hey, How to copy ArrayList> currencyList;? copy/clone Nov 09 20:36:03 no copy constructors? Nov 09 20:37:16 http://developer.android.com/reference/java/util/ArrayList.html Nov 09 20:38:01 clone returns object Nov 09 20:38:14 then i am getting object to arraylist error Nov 09 20:39:08 shoudl I be using eglGetError or glGetError?? my book only says glGetError Nov 09 20:39:09 new ArrayList(currencyList), with the appropriate types of course Nov 09 20:40:10 f2prateek, testing. :) Nov 09 20:40:14 but looks like it works.. Nov 09 20:40:22 #android-dev Nov 09 20:40:54 and now i understood what michaelmath was trying to say with copy constructor Nov 09 20:43:01 hmm I guess I'll use eglGetError for egl funcs and glGetError or gl Nov 09 20:49:12 why http://pastebin.com/YkS2UGBx only updates the list after i close keypad? Nov 09 20:49:19 and is there any way around? Nov 09 20:56:24 why should that update a list? Nov 09 21:03:04 pdf, adapter Nov 09 21:03:47 are you notifying data set changed Nov 09 21:03:58 after you add/remove/whatever to your list data Nov 09 21:04:09 desmin88, armm. if i hide the keypad, it works.. Nov 09 21:04:29 ok Nov 09 21:04:30 do i need to write this? setListAdapter(adapter); Nov 09 21:04:38 are you notifying data set changed Nov 09 21:04:38 after you add/remove/whatever to your list data Nov 09 21:05:20 okay.. I am not sure, we both are on same page.. but if i have to do it, how can i do it? Nov 09 21:05:33 please paste more code Nov 09 21:05:38 that pastebin doesnt really show much Nov 09 21:06:36 http://pastebin.com/2grwp3it Nov 09 21:06:38 here :) Nov 09 21:06:38 whole file Nov 09 21:07:22 What is your expected behavior, what happens instead Nov 09 21:09:05 my expected behaviour, the list should be filtered as soon as i type in something. Nov 09 21:09:17 what happens is, list gets filtered only when i close the keyboard Nov 09 21:09:24 close/hide Nov 09 21:09:40 ok Nov 09 21:10:20 you should be telling your adapter that the list data has changed Nov 09 21:10:34 okay. How can i tell that? adapter.notify()? Nov 09 21:10:43 no Nov 09 21:10:48 adapter.notifydatasetchanged() Nov 09 21:11:21 "cannot resolve method" Nov 09 21:11:45 well the method does exist Nov 09 21:12:40 hi guys, im pretty new to android programming Nov 09 21:12:42 :) dont know what to tell you Nov 09 21:13:06 then neither do i :) Nov 09 21:13:06 and i was wondering how do you get a new window? Like in Java, i know i can just make a new class and declare it Nov 09 21:13:23 i mean make an instance of that class Nov 09 21:13:43 http://developer.android.com/reference/android/widget/SimpleAdapter.html Nov 09 21:13:50 Dragonya: http://developer.android.com/training/basics/firstapp/index.html Nov 09 21:13:51 can see it in inherited methods.. Nov 09 21:14:19 Xtreme: your getting warmer Nov 09 21:14:34 yea yea i've seen that and i've setup eclipse developement kit and everything Nov 09 21:14:41 i was just wondering if this is done via activities? Nov 09 21:14:49 or the same way as java? Nov 09 21:14:49 desmin88, warmer?? Nov 09 21:15:11 Hi, could someone please help me with this? http://stackoverflow.com/questions/19882593/error-in-sending-post-in-android Thanks a ton. :) Nov 09 21:15:52 Dragonya: activities, although if you didnt gather that from the android dev training you should re look at it\ Nov 09 21:16:02 desmin88, means? please explain :) Nov 09 21:16:18 desmin88 thanks :D Nov 09 21:16:50 Xtreme: you've never heard of getting warmer / colder Nov 09 21:17:29 it means your closer to the answer Nov 09 21:17:47 :) not related to this. :) Thanks. Nov 09 21:18:12 if anyone is into deep/complex games such as Tycoon-style, I have just released a game on that genre today after 5-6 months of dev... please check it out :) Nov 09 21:18:19 https://play.google.com/store/apps/details?id=co.rottz.bigbosstv Nov 09 21:21:03 Xtreme :) Nov 09 21:21:24 Hi, could someone please help me with this? http://stackoverflow.com/questions/19882593/error-in-sending-post-in-android Thanks a ton. :) Nov 09 21:21:57 cant find anything. :( Nov 09 21:22:39 Nikhar, i think you should start by replying to "Could you post the stack trace ? I'm sure you're getting a NetworkOnMainThread exception. Try to wrap your HTTP stuff in an AsyncTask. – ZouZou 1 hour ago" Nov 09 21:22:57 Nikhar, nevermind Nov 09 21:23:01 dint see you already did that Nov 09 21:23:11 np :) Nov 09 21:24:12 Nikhar, 1: you are not doing it from async data. Nov 09 21:24:32 async task sorry Nov 09 21:24:39 please ignore the typos and all, its almost 3 am. Nov 09 21:24:54 Oh... India? Nov 09 21:24:59 2: what is your minimum sdk version. Nov 09 21:25:48 minimum sdk version =8 Nov 09 21:26:04 Yes, Nov 09 21:26:17 armm. 8 should allow you do to posting from mainActivity. Nov 09 21:26:45 anyways Nov 09 21:26:53 few points. Nov 09 21:27:31 if you are doing async task, then you cant communicate with UI from it. you need to do it in protected void onPostExecute() Nov 09 21:27:35 i had a similar problem Nov 09 21:28:00 my issue was, i was trying to communicate with ui in background process Nov 09 21:28:07 Our async code -> http://pastebin.com/3Azyap0W Nov 09 21:29:13 my async code. http://pastebin.com/hLJ142uF Nov 09 21:30:11 Guys, anyone using SDL2 on Android? Just wondering if you could use SDL_opengl.h (insted of SDL_opengles.h) and use glBegin and funcs like that ? Nov 09 21:30:40 Xtreme: ListAdapter adapter = new SimpleAdapter(...); Nov 09 21:30:43 think about that Nov 09 21:31:31 :) desmin88 you can kill me whenever you want. :) But first, THANKS!!!!! Nov 09 21:31:59 added the code, and testing :) Nov 09 21:32:22 Thanks a lot.. it was seriously getting on my nerve. and plus, yes, i should have been more focused.. hey wait.. Nov 09 21:32:36 :( Nov 09 21:32:46 the tutorial i was reffering had that way. Nov 09 21:32:46 ListAdapter adapter = new SimpleAdapter( MainActivity.this,contactList, R.layout.contact_entry, new String[] { "contactId","lastName", "firstName"}, new int[] {R.id.contactId, R.id.lastName, R.id.firstName}); Nov 09 21:32:47 Nov 09 21:32:58 :( wrong tutorial Nov 09 21:33:00 Hmm.... we aren't really communicating with UI at this point are we (sorry if I'm sounding stupid I'm really new to this)? I'm just trying to connect to the server... it's not doing eveen that Nov 09 21:33:37 get rid of Toast.makeText(getApplicationContext(), "Perfect", Nov 09 21:33:38 Toast.LENGTH_LONG).show(); Nov 09 21:33:47 thats ui Nov 09 21:34:17 desmin88, works :) Nov 09 21:36:03 Ok... thanks... I'll try your suggestions :) Nov 09 21:39:16 Nikhar, np. Nov 09 21:46:57 guys is there something which is not that heaveweight as eclipse. eclipse is so clunky and slow these days pain to ass to work with Nov 09 21:47:04 i guess android studio wont be much better Nov 09 21:47:06 intellij Nov 09 21:47:12 get a better pc Nov 09 21:47:20 I experience no lag in eclipse or intellij Nov 09 21:47:24 and my pc is about 5 years old now Nov 09 21:47:26 a little less Nov 09 21:48:18 i have good enough pc Nov 09 21:49:21 problem with eclipse is that it has tons of stuff unfortunatelly you dont need to use most of them. I would like to be able to do the 80 percent is something like sublime and open eclipse if I need to something more advance. Nov 09 21:49:24 advanced Nov 09 21:50:06 you can use intellij or android studio Nov 09 21:50:43 yeah I guess i heard that intellij is bit faster but still same IDE , i thinkk I will check some setup for sublime hopefully someone done something Nov 09 22:12:37 Whats the best way to handle multiple activites that do basically the same thing. Right now I 4 activities that have essentially the same code in each of them. Should I make an abstract class that each activity can extend and modify? Or is that not good practice for android Nov 09 22:17:58 Why would my ArrayAdapter keep getting position 0 for getView()? I've made sure that it has the data properly. Nov 09 22:26:21 holy shit nvm... Nov 09 22:26:28 I was replacing fragments improperly Nov 09 22:32:30 There are so many useful libraries for android. OkHttp cut my code down by 80% basically lol Nov 09 23:06:18 desmin88: of course use classes Nov 09 23:06:30 .. Wow, I'm now getting spam for freakin' chatroom services through my Google Play address. Nov 09 23:06:30 They must be desperate. Nov 09 23:10:26 icedp: yeah just started doing that now Nov 09 23:11:52 Got a question about theming an app on android.. Nov 09 23:12:14 shoot. Nov 09 23:13:25 Well, I am trying to theme the Kik Messenger app, I have it 90% done. I want it all blacked out. So I have everything inverted (black backgrounds, white text) but tfor some reason the text box is black but the TEXT I input is also black. I've changed every instance of android:textColor that I could find in the res folder. I am stumped. Nov 09 23:16:08 Exleh: if its got a text hint for entry thats a seperate color android:textColorHint.. also if your android:textColor is a ColorStateList/selector then it could be possible another state is being used to get the black Nov 09 23:16:39 Anyone with a Nexus 5 who can tell me why this app crashes when it's started on Nexus 5? https://play.google.com/store/apps/details?id=com.triposo.droidguide.world&hl=en Thanks! Nov 09 23:16:49 Alright Napalm lemme give that a try. Nov 09 23:19:28 Okay Napalm android:textColorHint pulled up nothing in Notepad++ Can you explain the "slate" thing to me? I am new to theming. Nov 09 23:19:46 state Nov 09 23:19:52 lol. Nov 09 23:19:53 OOps Nov 09 23:20:07 God damn it. Nov 09 23:20:15 Okay anyway, could you explain that please? Nov 09 23:20:47 not really Nov 09 23:20:54 im busy, check http://developer.android.com/reference/android/R.attr.html#textColor Nov 09 23:21:05 see the attribute and the others related to textColor Nov 09 23:21:28 Alright thanks, Napalm. Nov 09 23:24:10 i referenced a class in another gradle sub-project; AS asked if i wanted to create a dependency on that module - but it did not not change my gradle file dependencies. am i missing something ? Nov 09 23:27:10 any tips/api/form to do the welcome-view like gdrive,quickoffice at first run? Nov 09 23:39:13 Searched through there, and looked in the app, none of them show, Nov 09 23:39:29 I can get to the text fields themselves by searching android:input Nov 09 23:39:39 but there is nothing about text or colors there Napalm. Nov 09 23:51:50 Hi all, there is get, post, and put to implement a json rpc, I want to do a put Nov 10 00:03:33 Did anyone compile SDL_image under NDK for Android ? Nov 10 00:06:17 <|0xD34D|> I did, over a year ago Nov 10 00:07:02 ANN-TechCoder, I am on my wait out, but yes - https://github.com/pelya/commandergenius Nov 10 00:07:11 I have used that code to access SDL-image Nov 10 00:07:17 bbl.. Nov 10 00:07:22 Damn! spend like all day compiling Nov 10 00:07:24 still can't Nov 10 00:07:41 ok how do I do a PUT with HttpClient? Nov 10 00:07:54 I've gots a guinea pig on my floor. Nov 10 00:16:04 Ologn, r u still here ? Nov 10 00:16:12 I have a very quick question if you can please ? Nov 10 00:20:31 <|0xD34D|> ANN-TechCoder: what's the question, I may be able to help since I've built SDL_Image into a game I ported. Nov 10 00:20:34 <|0xD34D|> no promises though Nov 10 00:21:20 Cool. Thanks man. Nov 10 00:21:33 Wasted all day trying to run SDL2 on Android. Nov 10 00:22:10 Made the core stuff run, not having a little issue with SDL_image. It seems it has compiled it ok, be in the end I have only 1 error: Nov 10 00:22:17 <|0xD34D|> :o, well when I worked with it I was using pre SDL 2 Nov 10 00:22:41 http://pastebin.com/b1tgyisw Nov 10 00:22:55 But the error is generic. But I am kind new to that stuff Nov 10 00:23:46 <|0xD34D|> sounds like you are not including SDL_android_main.c in the source files for building Nov 10 00:24:32 if I do not use SDL_image it compiles and runs fine Nov 10 00:24:41 as soon as I try adding SDL_image I get this error Nov 10 00:25:05 <|0xD34D|> what's your Android.mk look like for SDL_Image? Nov 10 00:25:15 I did not change it at all Nov 10 00:26:18 http://pastebin.com/VWZJER9W Nov 10 00:26:42 Did not change it, only added SDL_image to my src/Android.mk Nov 10 00:28:34 <|0xD34D|> do you have SDL_android_main.c in SDL_Image/src/main/android/ ? Nov 10 00:29:06 1 sec Nov 10 00:29:38 <|0xD34D|> I would think that would be in the main SDL source and if that's the case then something is going on with the paths you are using Nov 10 00:30:52 yes. .c file is in SDL2 folder Nov 10 00:31:01 Damn! Spent all day makind just SDL2 work Nov 10 00:31:17 now just can't add SDL_image to it. and there is no info on the net about it :( Nov 10 00:31:22 ANN-TechCoder, oh yaa your code is for SDL 2, right... Nov 10 00:31:33 Well, pelya ported sdl_image for sdl1.... Nov 10 00:32:10 <|0xD34D|> you should look over your .mk files because it should not be looking for SDL_android_main.c in SDL_Image Nov 10 00:32:46 hmm... ok Nov 10 00:34:27 anyone here??? Nov 10 00:35:29 yes Nov 10 00:35:40 trying to build android from source Nov 10 00:36:04 I've followed the steps in several guides and built successfully but.... Nov 10 00:36:37 <|0xD34D|> well if you were trying to build it and it built successfully then you succeeded Nov 10 00:36:41 <|0xD34D|> right? Nov 10 00:36:59 I built CM 10.2 for l900 Nov 10 00:37:26 what would be different if I were to build for say PAC rom Nov 10 00:37:46 <|0xD34D|> you'd sync with their sources instead of CM Nov 10 00:37:48 what would be different if I built for L710 Nov 10 00:38:05 <|0xD34D|> different device means different device and vendor trees Nov 10 00:38:22 yes.... that is what I'm a little unclear about Nov 10 00:39:14 when I browse github it seems to be quite the collage of "trees?" and I'm not sure exactly what is going on in the backend to understand it thoroughly Nov 10 00:41:32 shave999: repo is going on Nov 10 00:43:02 what would I "change" or "add" to build for the not yet built sprint note 3...... that's what I'm getting at Nov 10 00:59:20 Guys! Thanks a lot! Nov 10 00:59:36 ???? Nov 10 00:59:42 I have managed to compile just fine! My mistake was in SDL_PATH := ../SDL Nov 10 00:59:51 I also included SDL_PATH := ../SDL_image Nov 10 01:00:01 and it broke it Nov 10 01:00:17 So I removed the second one and now it compiles - thanks for you help again ! Nov 10 01:01:20 <|0xD34D|> nice Nov 10 01:01:43 <|0xD34D|> sounded like a path issue based on that error message and knowing you didn't have SDL_android_main.c in SDL_Image Nov 10 01:02:17 Will keep testing it tomorrow. Wasted all day but now I have my Engine running on Android as well. Nov 10 01:21:27 Black text in a black text box when theming an app... Nov 10 01:21:28 help Nov 10 01:47:40 Booyah, huge milestone nearly complete **** ENDING LOGGING AT Sun Nov 10 02:59:58 2013