**** BEGIN LOGGING AT Thu Mar 05 02:59:59 2015 Mar 05 03:00:21 danijoo_: what does that suppose to mean? Mar 05 03:06:27 im kinda an idiot Mar 05 03:06:42 i just converted my project to gradle without even knowing what gradle is/how to use it Mar 05 03:06:52 im just trying to add dependencies Mar 05 03:06:58 someone helppp Mar 05 03:10:04 learn what gradle is first, then proceed from there Mar 05 03:14:17 https://github.com/pfn/android-sdk-plugin/blob/master/README.md#new-features-in-13x Mar 05 03:14:37 finally, a published version with flavor support Mar 05 03:16:29 interesting https://github.com/nextopio/nextop-client/blob/master/docs/03.02.2015_FAST_IMAGE_LOADING_EASY_INTEGRATION.md Mar 05 03:16:39 now with 100% more flavor flav Mar 05 03:17:28 JesusFreke flavor of love Mar 05 03:17:29 a spinner input control, is there a way to associate key->value in every item? Mar 05 03:18:12 yes Mar 05 03:20:50 and how ? Mar 05 03:26:17 oh god help me http://stackoverflow.com/questions/28869444/how-to-convert-a-gradle-project-back-to-normal-android-project Mar 05 03:26:28 i done fucked up Mar 05 03:27:20 a gradle project is a normal android project ... Mar 05 03:27:22 lol Mar 05 03:27:48 g00s: in eclipse? the file system looks completely different and it fucked with my jars Mar 05 03:28:42 Android studio has different views as well Mar 05 03:29:13 anyway read the question.... i fucked up a lot more than jsut converting it to gradle... Mar 05 03:29:14 DadFoundMy git reset --hard Mar 05 03:29:27 im kinda embaressed to admit what i did Mar 05 03:29:33 g00s: even if i didn't use git? Mar 05 03:29:44 * g00s headdesk Mar 05 03:29:55 g00s: i understand. i goof'd Mar 05 03:30:09 this is not my proudest moment Mar 05 03:31:49 may be the easiest method "now" will be to copy paste individual files across to a new AS project. Mar 05 03:32:43 napster: i think i might do that Mar 05 03:46:04 hello Mar 05 03:48:00 just stop using eclipse Mar 05 03:48:16 vi it up! Mar 05 03:55:52 real developers use notepad! Mar 05 03:56:56 and butterflies Mar 05 03:58:58 The AVD is proof that the devil is alive and well, imho. Mar 05 04:01:34 new emulators are fast on my machine Mar 05 04:02:15 I use genymotion Mar 05 04:05:29 does geny come with play services yet ? Mar 05 04:07:53 bankai_ another good one "i'm going on an adventure" http://i.imgur.com/rCDSypk.gif Mar 05 04:08:24 gotta be japan Mar 05 04:11:25 well i just spent the last hour manually importing all my code fromt he project i fucked into a new one Mar 05 04:11:29 No g00s, but I managed to get it working enough to interact with the games with google services Mar 05 04:11:35 i think/hope there arent any hidden issues i dont see Mar 05 05:02:07 anyone know of anything like antlr stringtemplate - which is template engine for formatted text - but binary instead ? like creating protocol packets Mar 05 05:05:47 nio bytebuffer it is then :( Mar 05 05:06:29 this keeps happening to me; i have one representation to read / parse the protocol and another for stuffing the packets Mar 05 05:06:44 has to be a better way Mar 05 05:11:29 CedricBeust_ back in the day, with the android team, was it difficult for anyone to change the public facing web site? i don't understand why release notes come so late, if ever for certain things Mar 05 05:12:13 g00s: Whatever I would have to say about this would have little bearing on the situation today... Mar 05 05:19:01 cool the kotlin guys have a single pdf for the reference - wow didn't realize it was 123 pages :) Mar 05 05:19:09 is there a R.java with android studio i can't locate it? Mar 05 05:20:06 g00s: Yeah I saw that, nice Mar 05 05:20:16 btw sorry I disconnected, my Internet drops whenever the microwave runs :) Mar 05 05:27:17 g00s, groxx, tacticaljoke, MikeWallaceDev, tricknology: I owe you guys for your help. You guys are like the professor I wish I had paid for. Mar 05 06:17:10 capella around ? Mar 05 06:17:59 g00s: slightly :) Mar 05 06:18:07 capella is there a new version of js coming out ? Mar 05 06:18:15 ES 6 or something ? Mar 05 06:18:37 EcmaScript, yes, afaik "what you said" Mar 05 06:18:43 wondering if my existing JS books just became obsolete Mar 05 06:19:01 i've been meaning to learn JS for a while now, keep procrastinating Mar 05 06:19:06 * g00s hopes it goes away Mar 05 06:19:42 https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_6_support_in_Mozilla Mar 05 06:20:11 and of course, https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_7_support_in_Mozilla Mar 05 06:22:17 capella does anyone care about ES 7 except JS compiler / interpreter / tooling guys atm ? Mar 05 06:23:31 if ES6 is just coming now, ES 7 would be some time in the future? Mar 05 06:34:49 backend js users get much more benefit except if they're using "ISOMORPHIC!!!1" js and the client needs to run the same code :-/ Mar 05 06:35:54 what I don't get about compiling js is why use anything like js if js is basically a bytecode target in the end? Mar 05 06:36:26 o/ Mar 05 06:37:01 It's a bytecode that is universally understood by all browsers and that goes pretty fast overall Mar 05 06:37:32 I find asm.js fascinating personally Mar 05 06:38:17 is there any way to make an EditText ONLY let you backspace, but not any other keys? Mar 05 06:39:28 drinfernoo http://www.quickmeme.com/Surprised-Koala/page/2/ Mar 05 06:39:51 g00s thanks lol Mar 05 06:40:18 even better - an IME that only has a backspace key. Mar 05 06:40:38 why Mar 05 06:40:49 amusement Mar 05 06:50:27 pfn you pressed backspace too many times Mar 05 06:50:42 and got disconnected Mar 05 06:51:42 * pfn shrugs Mar 05 06:51:51 irc connections are transparent to me Mar 05 06:52:31 I only care about my bnc connection Mar 05 07:23:06 JesusFreke, do it Mar 05 07:23:07 lol Mar 05 07:36:38 good morning all. im creating and external database with this code http://paste.ubuntu.com/10536172/ Mar 05 07:36:49 and getting that warning :W/FileUtils﹕ Failed to chmod(/storage/emulated/0/PhotoClub/data.db): android.system.ErrnoException: chmod failed: EPERM (Operation not permitted) Mar 05 07:37:15 but everything works ok(reading,writing from/to database) except this warning Mar 05 07:37:18 any idea ? Mar 05 08:00:51 Hi. Anyone here work with Hybrid Mobile apps? Mar 05 08:02:46 indn1234: What do you mean by "hybrid" ? Mar 05 08:03:00 bluesm: you dont know what hybrid apps are? Mar 05 08:03:15 Basically, web app wrapped in shell. Mar 05 08:03:19 hey bluesm ; did you say earlier that you moved mostly to iOS ? Mar 05 08:05:10 Any way to change the background color of the action bar menu overflow ? Mar 05 08:05:24 Or the settings menu, or whatver it's called. xD Mar 05 08:06:37 How can I detect whether a ViewPager.OnPageChangeListener onPageSelected was called from a click or a swipe event? Mar 05 08:06:54 g00s: Yeah. Mar 05 08:07:10 bluesm how do you like the newer stuff like swift Mar 05 08:07:28 Tthe ViewPager.OnPageChangeListener onPageScrolled gets called for both tab clicks and swipe events Mar 05 08:08:08 g00s: It still have some rough edges. Especially when you are dealing with external libraries. Mar 05 08:08:10 g00s: But it Mar 05 08:08:16 g00s: But it's amazing thing Mar 05 08:08:50 g00s: By the way, I'm not anyhow expert on that, thing, I've just released one big app: http://twigit.pl (written in ObjC) Mar 05 08:09:39 i can't read that but it looks nice :D Mar 05 08:19:15 does anyone else here do their android dev in vim? Mar 05 08:23:20 teasp00n Leeds Mar 05 08:23:48 g00s: thanks man Mar 05 08:24:30 hi, i want to modify the background of some of my preferences to indicate that they are only available after unlocking the app, like nova launcher does, what is the best way to achive this? do i need to extend each preference or can i just override something? Mar 05 08:26:34 guys im having some trouble getting "up" pattern to work with navigation drawer, for some reason when i add a fragment to the back stack clicking the up arrow does nothing. and ive implemented the optionsmenu without it being hit Mar 05 08:29:58 Leeds: what do you use for autocompletion in vim? if anything? i've been rocking eclim for a while but im getting pretty tired of having to maintain eclipse project files as well as gradle ones Mar 05 08:32:18 is setWidgetLayoutResource a way to go? Mar 05 08:32:53 asperon i guess instead you coud just disable them and set their summary Mar 05 08:33:05 that would be easiest Mar 05 08:33:26 g00s, thats an option, but i would prefer to trigger a "buy the premium" message when they are tapped if the user haven't Mar 05 08:35:09 How do i change the background color of the settings menu from black to white ? Mar 05 08:35:26 Nightwalkerkg, settings menu? Mar 05 08:35:29 maybe put 'Buy Premium' in options menu ? Mar 05 08:35:35 toolbar / etc Mar 05 08:35:39 g00s, i have that as well ;) Mar 05 08:35:44 ugh Mar 05 08:35:45 asperon, actionOverflow, whatever the name is. Mar 05 08:36:01 Nightwalkerkg, in the action bar? just change the theme Mar 05 08:36:11 asperon, yeah, and i am using a custom theme. Mar 05 08:37:09 if you change your custom theme to be based on the Theme.Holo to Theme.Holo.Light it should change Mar 05 08:37:32 Nightwalkerkg, have a look here: https://developer.android.com/training/basics/actionbar/styling.html Mar 05 08:38:42 https://github.com/tskulbru/android-navdrawer-up-pattern-example <- ive made a demo project which shows my problem with the up arrow. Can someone assist me? im going mad. Mar 05 08:45:24 Hey guys I'm just starting to get into android development a bit for fun, and I'd like to know if there's a way to sent a friend of mine an app I wrote so he can try it out, without putting it on the market and without him installing the devkit on his pc? Mar 05 08:45:36 send* Mar 05 08:48:32 yongyung http://developer.android.com/distribute/tools/open-distribution.html Mar 05 08:48:41 "Distributing Your Apps by Email" Mar 05 08:48:53 g00s: Sounds good, thanks! :) Mar 05 08:49:03 yw Mar 05 09:05:56 hi... Mar 05 09:06:17 is some one here that already worked with asmack xmpp in android ? Mar 05 09:08:58 Helloooooooooooo Mar 05 09:09:10 is some one here??? Mar 05 09:10:21 * Bahador need help Mar 05 09:10:55 ask the quesiton Mar 05 09:11:03 Bahador, Mar 05 09:11:33 i work with asmack .. Mar 05 09:11:40 i just want to my delivery messages Mar 05 09:11:47 but i can't Mar 05 09:13:29 ChatManager chatManager = Holder.getConnection().getChatManager(); Mar 05 09:13:29 newChat = chatManager.createChat(NumberWhitSeprator,new MessageListener() { Mar 05 09:13:29 Mar 05 09:13:29 @Override Mar 05 09:13:29 public void processMessage(Chat arg0, Message arg1) { Mar 05 09:28:56 * Bahador help me about asmack. Mar 05 09:32:57 So I'm trying to send myself my app to try it out (per email), but when I try to save the app-debug.apk it tells me "parse error: There is a problem parsing the package.". Can I not send the debug package and need to build a release package, or is this some other error? Mar 05 09:35:20 i need some helps about asmack library .. Mar 05 09:39:55 is it possible to include a default layout (in my case the preference.xml) in your own custom layout, using the include function? if so, how do i address it? Mar 05 09:47:46 Morning All Mar 05 09:48:44 you too Mar 05 09:50:03 when I do activity.startActivity(intent); is there then a way to get the reference to the new activity before leaving the old one? Mar 05 09:54:03 ie, can i reference these layouts from my code within the current os instead of saving them and shipping them with my app? https://github.com/android/platform_frameworks_base/tree/master/core/res/res/layout Mar 05 10:01:34 asperon, android.R.layout.layout_name Mar 05 10:01:48 danijoo_, thanks, can i reach that from xml as well? Mar 05 10:02:03 yes Mar 05 10:02:44 the only layout i see in R.layout that begins with preference is preference_category? Mar 05 10:03:02 asperon, android.R.layout, not R.layout Mar 05 10:03:08 aha Mar 05 10:03:25 danijoo_, same result? Mar 05 10:03:33 R.layout are your files, android.R.layout are the ones from andorid Mar 05 10:04:00 it contains about 26 layouts Mar 05 10:04:03 if you want to do if from xml it would look like danijoo_, it tells me that the resource isn't public Mar 05 10:05:21 well. there are public ones and others Mar 05 10:05:29 you can only use the public ones Mar 05 10:05:45 ok, so preference.xml isn't for some reason, ill just include it on my own, even if that feels wrong Mar 05 10:06:05 yeah it feels wrong. and u usually dont need it Mar 05 10:07:15 danijoo_, but, as in this case, wouldn't the logical way to implement a custom preference layout be to start with the default one? since i just want to add an item and keep everything else the same Mar 05 10:08:10 asperon, preferences dont require a layout file. Mar 05 10:08:31 with the default preference.xml set via setPreferenceLayout the labels are bigger then when letting android load it, strange Mar 05 10:08:53 danijoo_, if i want to add to them they do, or? i am trying to draw to the background of a couple of them Mar 05 10:09:12 a bit like nova launcher does, to indicate which preferences aren't "unlocked" Mar 05 10:09:53 asperon, you can create custom preference views and add them to your preferences Mar 05 10:10:14 you just do a file defining your preferences and android creates a layout from that Mar 05 10:10:16 see the docs Mar 05 10:11:28 danijoo_, but i just want to change the way its drawn, nothing else, and i would prefer not to extend all the different preferences i am using Mar 05 10:11:47 what kind of draw? Mar 05 10:11:51 just a background? Mar 05 10:11:54 yes Mar 05 10:12:06 like, draw a bar or a ribbon or a star or whatever Mar 05 10:12:20 to give the user a visual indication what will happen when they try to use it Mar 05 10:13:38 im pretty sure you can do that too, but i never did it, sorry Mar 05 10:34:38 Is anyone using hockey or a similar service for crash tracking? I noticed a weird recurring pattern of about 60 crashes from the same (but unknown) source within less than half an hour. Mar 05 10:37:16 to me it seems like an automated test (always about 4 nexus4 crashes, then 10-15 nexus 5 crashes from 3 obscure crash locations. within 30 minutes. yesterday it even happened accross two app versions), but no matter what i try i can not reproduce it. Mar 05 10:38:08 Syzygy, is it possible that people are hacking your app on an emulator? Mar 05 10:38:21 That's where usually I get those really strange crash reports Mar 05 10:38:27 so if i create a handlerthread (which works on a different thread) and then create ahandler to which I pass handlerthread.getLooper() as the first argument, does that handler get bound to the handlerthread? which means the handleMessage also gets called on that different thread of handlerthread? Mar 05 10:39:10 Mavrik, I guess, but it has been happening in that pattern for months now. Mar 05 10:40:30 in the play store i made my app available for all countries (and till this day it's only in beta-channel). is there a reason why a guy in hong kong is not able to download it (while I am in Germany)? Mar 05 10:44:33 it's just weird to me that I got about 120 crash reports across two versions within 30 minutes all in the same area, with the same phones (and ratio of phones) Mar 05 10:44:40 on the same 3 crashes Mar 05 10:45:07 shmoon, yes, that's the whole point Mar 05 10:45:19 shmoon, Handler will receive messages on the Looper you pass it in constructor Mar 05 10:45:32 shmoon, and if you pass it a Looper from another HandlerThread, it'll execute on that thread Mar 05 10:56:11 Mavrik: then bow am I able to modify UI in that? Mar 05 10:56:19 how* Mar 05 10:56:33 I don't understand the question. Mar 05 10:56:39 You can only modify UI on main thread. Mar 05 10:56:43 So you don't. Mar 05 10:57:33 i called this inside that Mar 05 10:57:34 mAdapter.notifyDataSetChanged(); Mar 05 10:57:37 it works fine Mar 05 10:57:59 i am also able to show a toast, i will pastebin my code Mar 05 10:58:57 http://pastie.org/10001702 Mar 05 10:59:53 so Toast works, notifyDataSetChanged works, according to what you said handleMessage should not be called on main thread, so they shouldn't work Mar 05 11:01:17 So you're either meeting the case where Android will let you do dumb stuff like calling UI on background thread Mar 05 11:01:24 or your handler isn't running on background thread. Mar 05 11:01:39 Either way, "it works therefore it's ok" it a very bad mindset to have when writing code. Mar 05 11:02:05 can anybody think of a reason why the titles on my default preferences in 5.0.1 aren't textAppearanceLarge anymore? Mar 05 11:02:26 from what i can tell the xml in the source code hasn't changed Mar 05 11:02:48 android letting me do dumb stuff like calling Ui on background thread is not possible Mar 05 11:03:05 handler isn't running on background thread, hm let me test that. but afaiknew handleMessage will atleast run on main thread Mar 05 11:03:19 Uh, of course it's possible. Mar 05 11:03:46 later i am doing mThreadHandler.postDelayed(new Runnable() {}) Mar 05 11:03:53 how is it possible, you're saying android has a bug then? Mar 05 11:04:00 Not all views/calls have thread checks and they will randomly fail depending on race conditions if you don't watch out for it. Mar 05 11:04:16 in that toast doesn't work Mar 05 11:06:07 so ya toast is not happening in the runnable i pass to postDelayed Mar 05 11:06:11 so my code is executing in background Mar 05 11:06:25 and iirc handleMessage is supposed tor un on the thread on which the handler is declared/initialized Mar 05 11:06:45 so the main thread in this case, only problem is, my ifelse check says otherwise, which is not happening on main thread Mar 05 11:08:45 basically this could be a bug in what Looper.getMainLooper().getThread() or Thread.currentThrad() returns in that context, i.e., inside handleMessage Mar 05 11:17:10 so, there was a seperate xml for material, does this mean that we'll see 5+ devices without it? Mar 05 11:41:16 hi Mar 05 11:41:40 need some help in custom adapter Mar 05 11:42:06 extending ArrayList> Mar 05 11:42:53 that makes no sense manzar Mar 05 11:43:00 an adapter cannot extend a list Mar 05 12:00:23 manza Mar 05 12:00:26 r Mar 05 12:00:28 manzar * Mar 05 12:01:09 how about, MyAdapter extends ArrayAdapter> Mar 05 12:01:28 or just extend BaseAdapter and roll your own goodies Mar 05 12:04:36 hi Mar 05 12:04:55 sorry, for not my presence Mar 05 12:09:10 below is my link, please check it once Mar 05 12:09:12 http://stackoverflow.com/questions/28876710/listview-customadapter-getview-is-not-calling/28876928#28876928 Mar 05 12:09:27 Hello everybody Mar 05 12:11:55 i am getting list data, but it is not inflating in view(getView is not calling) Mar 05 12:13:10 manzar, i wont read that stuff. its not formatted and a pain to decrypt Mar 05 12:15:16 u r right it is not formatted, sorry for the pain Mar 05 12:16:07 danijoo, i am getting all data in constructor, but getView is not calling, what might be the problem... Mar 05 12:16:42 without reading your code, if getView is not called, getCount() might return 0 Mar 05 12:18:04 ok Mar 05 12:18:31 have you tried ataching a debugger and check whats going on ? Mar 05 12:19:58 i am extending ArrayAdapter> Mar 05 12:20:47 have you tried ataching a debugger and check whats going on ? Mar 05 12:20:52 now, i have all data !! i want to inflate this data in listView Mar 05 12:20:57 yno Mar 05 12:21:00 *no Mar 05 12:21:04 why not Mar 05 12:21:34 my phone turns out blank Mar 05 12:21:47 when i choose debug mode Mar 05 12:22:34 I doubt arrayadapters can work with hashs Mar 05 12:22:43 they are for arrays/lists, not hashes Mar 05 12:23:06 if you want to implement an adapter with a hash, i think you need to extend BaseAdapter Mar 05 12:23:40 okay fine Mar 05 12:23:55 how do i inflate data in listview Mar 05 12:25:08 manzar, in getView(..), you inflate the layout you want to show (bunch of textviews and so on), set the values on that layout and return it Mar 05 12:30:41 Someone suggest me a latex rendering lib... Mar 05 12:30:45 come on come on... Mar 05 12:31:14 napster, rendering tex on android? Mar 05 12:31:20 yep Mar 05 12:31:24 come on Mar 05 12:31:55 dont know one but its an interessting idea Mar 05 12:32:01 how do you use RecyclerView with GridLayoutManager and make the coumns autofit like in gridview? Mar 05 12:32:09 :S Mar 05 12:32:20 columns Mar 05 12:32:31 napster, what about this? http://sourceforge.net/projects/jlatex/ Mar 05 12:32:36 the google is strong with me Mar 05 12:32:44 ah, no thats not good enough Mar 05 12:33:00 ok, thanks anyway Mar 05 12:43:48 i'm asked to review the security of an app (from source code). Is there some guide lines some where ? I heard there some security issue with webview, what should I check ? Mar 05 12:46:23 blusky, only thing I can think of quickly is if they're using a JavascriptInterface to communicate with JS and for JS to communicate with native, thats something that will raise security flags with most checks anyway Mar 05 12:47:28 thx for the information :) Mar 05 12:48:44 danijoo, i tried with baseAdapter but it shows the same problem Mar 05 12:49:12 manzar, i cant help you if you dont show the code of what you are trying to do Mar 05 12:49:27 list is not inflating, and i am not getting error also.. Mar 05 12:49:53 hi everyone! Mar 05 12:50:43 my app is crashing randomly with the eror " java.lang.IllegalStateException: Parcel has been finalized! " Mar 05 12:50:52 how do you use RecyclerView with GridLayoutManager and make the columns autofit like in gridview? Mar 05 12:51:15 this happens when i'm trying to start an intent service Mar 05 12:52:17 and the error started appearing after 5.0 got out Mar 05 12:53:03 and I also get a segmentation fault Mar 05 12:53:05 F/libc (32125): Fatal signal 11 (SIGSEGV), code 1 Mar 05 12:53:25 johnny_and1, maybe you are trying to modify the parcel when you shoudnt Mar 05 12:54:31 i'm not modifying any parcel Mar 05 12:54:41 that's how the system actually starts an intent service Mar 05 12:56:09 E/AndroidRuntime(14640): java.lang.IllegalStateException: Parcel has been finalized! at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(Binder.java:496) at android.app.ActivityManagerProxy.stopServiceToken(ActivityManagerNative.java:3473) Mar 05 12:56:11 johnny_and1, if a parcel is finalized, it means that it is marked to be garbage collected Mar 05 12:56:24 for example here the intent service was finished Mar 05 12:56:33 http://developer.android.com/reference/android/os/Parcel.html#finalize() Mar 05 12:56:40 danijoo_, yes, i know this Mar 05 12:56:53 i'm not interacting with any parcel Mar 05 12:57:00 the problem is a jni method Mar 05 12:57:02 this shoudnt happen if all you do is parceling and sending to service to unparcel there Mar 05 12:57:13 oh.. cant help with jni sorry :( Mar 05 12:57:21 and this thing started once android 5.0 got out Mar 05 12:57:31 can this be related to art? Mar 05 12:58:05 does it only happen on 5.0 devices? Mar 05 13:00:07 yes Mar 05 13:00:15 5.0 , 5.0.1 and 5.0.2 Mar 05 13:00:16 then i dont think its art related Mar 05 13:00:31 yeah but art was made default after 5.0 Mar 05 13:00:34 maybe some other change in 5.0 Mar 05 13:01:00 yeah but there are also 4.x devices using art ;) so if its excusivly a 5.x error, its not art Mar 05 13:01:29 yes, but maybe my app wasn't installed on those devices Mar 05 13:01:34 java.lang.IllegalStateException: Parcel has been finalized! at *.utils.AppUtils.recordUsage(AppUtils.java:112) Mar 05 13:01:42 context.startService(mIntent); Mar 05 13:01:43 good point Mar 05 13:01:47 that's what i have on that line Mar 05 13:02:02 show some context arround it Mar 05 13:02:13 i'm creating an intent Mar 05 13:02:19 code Mar 05 13:02:20 with some extras in it Mar 05 13:03:25 mIntent = new Intent(context, EventQueueIntentService.class); mIntent.putExtra("command", EventQueue.SEND); mIntent.putExtra("sender",fragmentName); mIntent.putExtra("priority", EventQueue.Priority.LOW); context.startService(mIntent); Mar 05 13:04:46 pastebin the whole activity Mar 05 13:05:00 or at least the parts where this is happening Mar 05 13:05:17 that's the part where this is happening :) Mar 05 13:05:39 it's a method that will start a service, in this case an Intent Service Mar 05 13:06:10 cant see a parcel there Mar 05 13:06:42 :) there is a parcel Mar 05 13:06:50 in the Android OS Mar 05 13:06:55 when it tries to start the service Mar 05 13:07:10 why is this so complicated :| Mar 05 13:07:40 public boolean transact(int code, Parcel data, Parcel reply, int flags) throws RemoteException { Binder.checkParcel(this, code, data, "Unreasonably large binder buffer"); return transactNative(code, data, reply, flags); } Mar 05 13:07:49 this is the method in Android Mar 05 13:08:28 nvm. i give up on you. if you dont want to show me your code .. Mar 05 13:09:52 damn, i'm an idiot :| Mar 05 13:10:20 http://pastebin.com/Arf7AyzM Mar 05 13:10:39 is this better? Mar 05 13:10:43 danijoo_: Mar 05 13:14:37 cant see anything in there that could cause that error .. Mar 05 13:14:38 mh Mar 05 13:14:46 maybe a bug in aosp Mar 05 13:14:59 have you checked the issue tracker? Mar 05 13:18:41 yes, couldn't find anything Mar 05 13:18:59 this is already my 3rd tackling this and I'm going crazy Mar 05 13:20:06 and the problem is that i can't replicate it consistently .. Mar 05 13:21:01 is it often occuring? Mar 05 13:21:06 out of 3000 users with android 5+ , 10% encountered this bug Mar 05 13:21:13 oh oO Mar 05 13:22:04 EventQueue.SEND and EventQueue.Priority.LOW are enums, right? Mar 05 13:23:20 no, just some constant string Mar 05 13:23:35 wait a sec Mar 05 13:24:08 thing is i really cant see a parcel in there Mar 05 13:24:38 priority is a static class Mar 05 13:24:44 so theres nothing that could be finalized or called after finalization. but i dont know enough about how itnents work internaly :/ Mar 05 13:24:47 i use it as a struct Mar 05 13:24:56 johnny_and1, its a parcelable Mar 05 13:24:57 ? Mar 05 13:25:01 better than enums on android Mar 05 13:25:02 no Mar 05 13:25:26 serializeable? Mar 05 13:25:27 the parcel is from the android os Mar 05 13:25:44 public static final class Priority { public static final int HIGH = 1; public static final int MEDIUM = 2; public static final int LOW = 3; } Mar 05 13:25:54 so its an int Mar 05 13:26:16 cant help you then, sorry Mar 05 13:26:23 :( Mar 05 13:26:26 looks like an issue in aosp to me Mar 05 13:26:28 thank you for your help Mar 05 13:26:35 maybe you should fill out an issue Mar 05 13:26:40 and see what the google guys say to it Mar 05 13:27:08 yeah, maybe that's the right way to go Mar 05 13:58:00 Hi, if anyone needs help on their project, PM ME! will work for free! Mar 05 13:58:28 lol Mar 05 13:59:14 danijoo_ you have something? Mar 05 13:59:38 i have a lot of somethings Mar 05 14:00:04 let me help! Mar 05 14:00:16 closed source ;) Mar 05 14:00:22 I'll give you a pass code for a secret website Mar 05 14:00:28 PLEASE! LET ME HELP YOU! Mar 05 14:00:49 AndroidNewb, read the topic of the channel Mar 05 14:01:39 danijoo_ ok! Mar 05 14:29:49 hi Mar 05 14:33:21 https://www.youtube.com/watch?v=71fWtJXEI0Q < OMG! that looks awesome! Mar 05 14:33:27 quit Mar 05 14:37:54 if i finish an activitiy or noHistory="true" in manifest, a triggered asynctask with application context or base context will continue to work ? Mar 05 14:38:19 i mean before activitiy finished or changed via intent Mar 05 14:38:35 triggered async task before activity finished or changed via intent :D Mar 05 14:39:37 in nineoldandroids, there's the playTogether method which I can't figure out what to feed Mar 05 14:39:44 I cannot feed it Animator[] Mar 05 14:40:12 while there's the docs that say one of the playTogether methods does take (Animator...) Mar 05 14:40:58 dont the 3 dots mean an array? Mar 05 14:41:47 Odaym: its Animation[] Mar 05 14:41:56 tion? Mar 05 14:42:09 Im pretty sure you're mistaken Mar 05 14:42:15 nineoldandroid is the compat library Mar 05 14:42:19 yea Mar 05 14:42:19 so it doesnt use Animator Mar 05 14:42:23 i believe Mar 05 14:42:23 but the docs.. Mar 05 14:42:30 https://github.com/JakeWharton/NineOldAndroids/blob/master/library/src/com/nineoldandroids/animation/AnimatorSet.java Mar 05 14:42:30 unless it has its own class called Animator Mar 05 14:42:32 line 124 Mar 05 14:42:37 ahhh Mar 05 14:42:41 ahhh Mar 05 14:42:43 :P Mar 05 14:42:46 no you ahhh Mar 05 14:42:52 yup Mar 05 14:42:52 it might have its own class, but see the source Mar 05 14:43:10 yea Mar 05 14:43:12 i see iut Mar 05 14:43:13 it Mar 05 14:43:17 whats the problem? Mar 05 14:43:20 even tried giving it a Collection but wasn't sure why my instantiation of Collection wanted me to override all of the methods Mar 05 14:43:20 so when will sailfish os be adopted by google Mar 05 14:43:25 the 3 dots Mar 05 14:43:30 is an ellipsis Mar 05 14:43:41 also called vararg Mar 05 14:43:44 well you make an array of Animator, and give it to it, it doesn't accept, says there's no such method taking what you've given Mar 05 14:43:45 or "variable arguments" Mar 05 14:43:54 you can give it an array or many paramters Mar 05 14:44:04 playTogether(first, second, third); Mar 05 14:44:14 or playTogether(array); Mar 05 14:44:14 let me see Mar 05 14:44:20 yea zero or more Mar 05 14:44:29 read about it here http://stackoverflow.com/questions/3158730/java-3-dots-in-parameters Mar 05 14:44:38 so varargs, ok, cool Mar 05 14:45:13 Odaym: https://docs.oracle.com/javase/1.5.0/docs/guide/language/varargs.html Mar 05 14:45:35 http://docs.oracle.com/javase/8/docs/technotes/guides/language/varargs.html Mar 05 14:45:40 8 docs look nicer Mar 05 14:46:01 Be careful with using 8 docs, though. They'll document things that you can't use on android Mar 05 14:46:12 ofc Mar 05 14:46:49 yea my bad Mar 05 14:46:59 looked at the title of the doc of that method, it was from Android Mar 05 14:47:04 not from jakeland Mar 05 14:48:12 im a newbie, im using a viewPager with FragmentStatePagerAdapter , inside the mainlayout i have 2 buttons, when i click on the button, i want to update the views, i have tried this http://pastebin.com/E088T55m but the adapter doesnt update the view, this is the code the adapter http://pastebin.com/SF4hGJsx Mar 05 14:52:08 I see you've resolved the database issue john? Mar 05 14:53:23 Odaym: yeah, Mar 05 14:53:28 good on you mate Mar 05 14:53:39 spent like 3 days on it yea? Mar 05 14:53:44 lel Mar 05 14:54:26 Odaym: yeah, but a new problem again Mar 05 14:54:32 always Mar 05 14:54:36 until you die Mar 05 14:54:42 then there are no more problems Mar 05 14:55:01 lol Mar 05 14:57:20 searching for how to update the views with FragmentStatePagerAdapter Mar 05 14:58:28 if it's an adapter, then probably there's a notifyDataSetChanged offered from that adapter Mar 05 14:58:44 if you call that, it updates the view after reading the dataset that it was given when it was first used to create that view Mar 05 14:58:55 if you've made any changes to that dataset, you will see a change Mar 05 14:59:01 john67: you need to use childfragments Mar 05 15:00:50 Napalm: childfragments? never heard of , will google it Mar 05 15:01:40 Odaym: is not solution, will try napalm solution to see Mar 05 15:01:58 yea I never worked with what you have, I just know that expected functionality by virtue of using any adapter Mar 05 15:02:20 oki,thnx Mar 05 15:02:55 where do you work at, Napalm Mar 05 15:08:12 how do you create a horizontal listview? Mar 05 15:08:20 there's no such thing Mar 05 15:08:36 cross that, I dont know Mar 05 15:09:13 :) Mar 05 15:11:40 never used it before but i think twowayview might support something like that joroci Mar 05 15:11:44 https://github.com/lucasr/twoway-view Mar 05 15:11:54 http://www.dev-smart.com/archives/34 Mar 05 15:12:19 i tried dev-smart it doesn't work Mar 05 15:12:25 doesn't work? Mar 05 15:12:30 what's that Mar 05 15:12:36 i mean it's building the view but nothing appears Mar 05 15:15:28 Hey what do I need to start kernel compiling ,I've cross-compiler ,source etc. ,done that before ,but I've reinstalled my building envorment Mar 05 15:15:49 and when I want to google search what packages are needed Mar 05 15:15:58 I get some bs results like "windows NT" Mar 05 15:16:46 kubast2: https://source.android.com/source/building.html Mar 05 15:45:22 back Mar 05 15:47:50 whats a good way to instantly put my .apk from my pc to android? Mar 05 15:49:04 KingMe: put the .apk in folder and install it on your phone Mar 05 15:49:06 thats all Mar 05 15:49:29 wirelessly Mar 05 15:49:33 hey guys, I'm trying to use doesFileExist(), apparently part of Helpers Mar 05 15:49:36 What’s the size limit when passing a Parcelable in Intent? Mar 05 15:49:40 KingMe, bluetooth? Mar 05 15:49:42 but it doesn't seem to be recognized Mar 05 15:49:59 I prefer lan Mar 05 15:50:08 lan transfer so its instant Mar 05 15:50:11 ah part of the expansion files? Mar 05 15:50:14 jacres, um, there's no such class in Android API. Mar 05 15:50:36 cezium: like a MB or something.. Put as little as possible Mar 05 15:50:54 I tried airdroid and it works but it kept bugging me to buy there plan and stopped working Mar 05 15:51:05 KingMe, https://play.google.com/store/apps/details?id=com.ttxapps.wifiadb&hl=en Mar 05 15:51:11 you can also debug your apps Mar 05 15:51:21 Mavrik: http://my.fit.edu/~vkepuska/ece5570/adt-bundle-windows-x86_64/sdk/extras/google/play_apk_expansion/downloader_sample/src/src/com/example/expansion/downloader/SampleDownloaderActivity.java Mar 05 15:51:31 use airdroid KingMe Mar 05 15:51:35 Mavrik: I think it's part of the play expansion lib? Mar 05 15:51:40 you dont have to buy.. Mar 05 15:51:46 I use it all the time Mar 05 15:51:59 they stopped my syncing and said to upload to there cloud Mar 05 15:52:30 they keep saying sync failed upload to cloud for $$$$ Mar 05 15:53:36 * pfn ponders using keepassdroid as the basis for a java version of keepass on the desktop Mar 05 15:54:43 hi, I've created my custom view following the guide here http://developer.android.com/training/custom-views/index.html Mar 05 15:54:53 what I need though is to programmatically crate it Mar 05 15:55:16 linearLayout.add(new MyView(this, XXX)) Mar 05 15:55:26 the XXX part is where I'm confused Mar 05 15:55:31 do I have to override all of those methods? Mar 05 15:56:11 XXX being an AttributeSet Mar 05 15:56:30 bel3atar, no. MyView(Context) will suffice in code. Mar 05 15:57:10 you'll want to override the overloaded ones if you're initializing your view in XML though. Mar 05 15:59:25 quinnjn: but how can I set the attributes? Mar 05 16:00:50 bel3atar, public methods. I.E. MyView extends TextView {}, myView.setTextColor(...); myView.setText(...); etc Mar 05 16:02:09 quinnjn: so I guess I'll have to create setters for custom attrs. Is that it? Mar 05 16:02:30 give me an example of a custom attr you want to set. Mar 05 16:03:39 quinnjn: class MyView extends View { private int ATTR; } Mar 05 16:04:32 what are you going to eventually do with ATTR? Mar 05 16:05:57 quinnjn: use it in onDraw() Mar 05 16:06:42 looking at the link you sent, They make a PieChart view and in the attributes they expect a "showText" boolean. So yeah you're right. class PieChart extends View { private boolean showText; public void setShowText(boolean showText){...} Mar 05 16:06:56 then you'd use showText eventually Mar 05 16:07:21 quinnjn: got it thanks =) Mar 05 16:08:00 I think you're diving too deep though. Depends on what you want to do with MyView. You probably want to extend a View that already exists: TextView, ImageView, ProgressBar, EditText, etc Mar 05 16:09:48 Hi! I'm trying to develop a map with sliding menu. I have followed the android hive tutorial (http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/#) and it works great. Only a problem: the examples of menu itens (fragments) in tutorial is all only icon images in center...then the problem doesn't occurs. But when the fragment is a Mar 05 16:09:48 screen like a map...it occurs: when I swipe the menu, the menu stay under the map...and appears only when the animation finishes. How can I do to bring menu to front while I`m swipping the menu? Mar 05 16:25:51 How can I get the source of an ImageView? Mar 05 16:25:57 not finding an API for it Mar 05 16:30:15 knapper_tech: http://developer.android.com/reference/android/widget/ImageView.html is the api Mar 05 16:32:11 didn't see the method first time around Mar 05 16:36:54 how do I trigger a layout re-measure on a view? Mar 05 16:37:24 requestLayout Mar 05 16:37:56 http://developer.android.com/reference/android/view/View.html#requestLayout() Mar 05 16:41:03 hello Mar 05 16:41:28 can I use setText() on a final EditText? Mar 05 16:41:55 as far as I know final means it can't be changed. Mar 05 16:42:43 does the android eclipse puglin have support for gradle? Mar 05 16:43:45 can i get a contacts created time ? i made some research but couldnt find a exact answer ? Mar 05 16:50:00 MDTech-us_MAN, yes Mar 05 16:51:06 final does not mean immutable Mar 05 16:51:11 DadFoundMy, you mean using gradle libs in eclipse? yeah with plugins afaik Mar 05 16:51:24 DadFoundMy, no Mar 05 16:53:16 so i cant use this lib in eclipse? https://github.com/makovkastar/FloatingActionButton Mar 05 16:53:52 DadFoundMy: Why aren't you using Android Studio? Just curious. Mar 05 16:54:31 TacticalJoke: i know i should switch, but i have eclipse set up soo perfectly right now, and i dont think i will be able to get AS to the level of it Mar 05 16:55:23 MDTech-us_MAN: 'final' applies to the variable only (and not to the object being referenced). Mar 05 16:55:53 ahh. I see Mar 05 16:57:02 so you can run functions inside it but you cant do something like "fileTXT = somethingElse" Mar 05 16:57:14 Yeah. Mar 05 16:57:19 ok Mar 05 16:58:02 DadFoundMy, read what I said, lol Mar 05 16:58:18 googling gradle eclipse already shows something on the eclipse site Mar 05 16:58:29 DadFoundMy: Android Studio is the better bet now, to be honest. Mar 05 16:58:40 The Android-tools team is focusing all its effort there. Mar 05 16:59:35 Moter8: im currently trying to google trying to figure if thats what i want haha Mar 05 16:59:59 is this considered a gradle lib? https://github.com/makovkastar/FloatingActionButton Mar 05 17:00:22 yeah Mar 05 17:00:38 in AS you can also clone the repo manually and mark it as dependency of your project -- without gradle at all Mar 05 17:00:44 prob. in eclipse too Mar 05 17:00:52 but using gradle is easier than that Mar 05 17:00:59 Moter8: neato, ill try to use a plugin then Mar 05 17:01:23 just dont tell everyone in #r/go im this dumb k? Mar 05 17:01:25 in AS it's just copypasting the line and clicking on sync Mar 05 17:01:28 :D np Mar 05 17:01:32 not like im a pro Mar 05 17:01:36 (im a noob too) Mar 05 17:01:40 DadFoundMy, I used that lib, compile 'com.melnykov:floatingactionbutton:1.1.0' Mar 05 17:01:50 quinnjn, but hes using eclipse Mar 05 17:02:04 Moter8, ah Mar 05 17:02:08 im a global elite android dev Mar 05 17:02:40 first im going to try AS, but if i still dont like it im going to try to use a plugin to get gradle libs into eclipse Mar 05 17:02:57 I have an image view on screen, which should be able to take form of 5 possible images of the same size, and quickly switch between them. Mar 05 17:03:01 Does Eclipse even allow building with Gradle? Mar 05 17:03:05 How can I switch the image efficiently, both in terms of memory and time? Mar 05 17:03:07 DadFoundMy, I went AS and never looked back. Mar 05 17:03:08 Gradle is a whole new way of building. Mar 05 17:03:18 there is no good eclipse plugin for using gradle libraries Mar 05 17:03:18 I don't see how that'd be compatible with what Eclipse does. Mar 05 17:03:33 TacticalJoke: well i have a button that allows me to convert to gradle so i think so Mar 05 17:03:52 What button? Mar 05 17:04:13 can I test IAP, Ads using genymotion? Mar 05 17:04:21 "configure > convert to gradle project" Mar 05 17:04:40 DadFoundMy, that's for migration to AS Mar 05 17:04:44 it's a one-way trip Mar 05 17:04:51 oh. Mar 05 17:05:02 use AS or gtfo Mar 05 17:05:04 well i guess that means im moving to as Mar 05 17:05:17 DadFoundMy: Nobody really has a choice. lol Mar 05 17:05:26 We are basically forced to use Android Studio. Mar 05 17:05:35 Well, 99% forced. Mar 05 17:05:35 I don't use AS but tht's besides the point Mar 05 17:05:36 AS rock Mar 05 17:05:38 I'm a non-noob Mar 05 17:05:49 pfn: how do you use libs? Mar 05 17:05:59 by using a tool that understands libs Mar 05 17:06:06 and you can use gradle with morethan just AS Mar 05 17:06:12 and you can use libs with more than just gradle Mar 05 17:06:17 soo not possible for a noob like me? Mar 05 17:06:52 nope Mar 05 17:08:19 Any response to my question above? Mar 05 17:09:40 NightRa, on image processing efficiently? Use picasso Mar 05 17:09:46 choose one, memory or speed Mar 05 17:09:53 NightRa: what is determining the image? Mar 05 17:09:56 is it just random? Mar 05 17:10:15 DadFoundMy: I tell it every set amount of time, say Mar 05 17:10:33 I'm interested in how to switch between the states Mar 05 17:11:12 NightRa: sounds like picasso would be your best bet. im pretty sure square develops it Mar 05 17:11:16 => Store all the 5 images loaded in memory, and set them to the image view when appropriate Mar 05 17:11:16 flip between 2 views, load the next while showing current Mar 05 17:11:23 use a viewflipper Mar 05 17:11:36 As I have a grid of alot of these images, each in a different state Mar 05 17:11:49 define when appropriate? on click? after time period? Mar 05 17:12:16 quinnjn: The interesting part is the switch. When is irrelevant Mar 05 17:12:47 switching is easy.. how you want to trigger the switch is interesting Mar 05 17:12:51 has anyone tried out ideavim in AS? Mar 05 17:13:03 DadFoundMy, works fine Mar 05 17:13:06 Maybe I should store bitmaps in memory and draw on a canvas? Mar 05 17:13:19 pfn: just as well as vrapper in eclipse? Mar 05 17:13:30 far superior Mar 05 17:13:34 Picasso will be your best bet for (re)setting the view. Mar 05 17:13:43 well i might like AS then :D Mar 05 17:13:44 It will handle the mem management for you Mar 05 17:14:32 Context: It's supposed to be a board game Mar 05 17:17:26 so on imageview click, change the picture. Mar 05 17:17:40 if its a time based thing, set a runnable to change the picture Mar 05 17:18:05 quinnjn: .. How to change the picture. This is my question. Mar 05 17:18:27 how is it hard Mar 05 17:18:31 Picasso.with(context).load(...) Mar 05 17:18:33 set image Mar 05 17:18:38 flip view Mar 05 17:18:41 choose one Mar 05 17:18:50 Alright. Thanks. Mar 05 17:18:58 NightRa, http://square.github.io/picasso/ Mar 05 17:19:09 quinnjn: Yeah, I'm looking into it now Mar 05 17:19:14 using picasso is pretty irrelevant here Mar 05 17:21:32 something else with android studio, it requires admin permisions to use, which kinda screws me up at school Mar 05 17:21:52 no, it doesn't Mar 05 17:22:12 yea I can confirm it doesnt Mar 05 17:22:28 really? i tried it a few weeks ago and it did, but i was probably doing something wrong Mar 05 17:22:41 I have a listview and I`m inserting fragments ....its a menu....I`m trying to align center vertical the itens of menu....but my code doesn't work Mar 05 17:22:48 i can just have it downloaded on a flashdrive and open it on any windows pc? like eclipse? Mar 05 17:22:56 perhaps to instsll Mar 05 17:22:57 https://www.irccloud.com/pastebin/OUNn4vMD/activity_main.xml Mar 05 17:23:03 just copy it Mar 05 17:23:14 https://www.irccloud.com/pastebin/BvvE45Eh/fragment.xml Mar 05 17:24:10 sorry, this is the code of fragment.xml https://www.irccloud.com/pastebin/WGc363GM/fragment.xml Mar 05 17:24:43 The answer is to load Drawables into memory, and switch with setImageDrawable. That won't reload each time. Mar 05 17:25:02 NightRa, thats what i said Mar 05 17:25:02 https://www.irccloud.com/pastebin/X8YcxAeg/And+finally%2C+the+itens+...which+I%60m+trying+to+align Mar 05 17:27:03 is there a way to test IAP, ads and google play leaderboards without a Android device? Mar 05 17:27:33 KingMe, test it on an emulator/simulator? Mar 05 17:27:40 what fonts are avaliable as standard for websites on android? Mar 05 17:28:15 danijoo I can test ads/IAP and leaderboard on the google android emulator? Mar 05 17:29:36 Setting a drawable in an Image view mutates the drawable. ~face palm~ Mar 05 17:29:46 you just need to install play store, play services and that stuff Mar 05 17:30:03 have never done it on the official emulator but it should be possible Mar 05 17:30:08 at least it is with genymotion Mar 05 17:30:49 okay so u confirm ads/iap and leaderboards work with genymotion? Mar 05 17:31:37 ads do Mar 05 17:32:05 and i can not imagine a reason why iap or leaderboards shoudnt Mar 05 17:32:50 maybe the emulator cant interact with google servers? Mar 05 17:32:52 NightRa, load the bitmap into memory, and create a bitmapdrawable per imageview Mar 05 17:33:06 KingMe, why should it Mar 05 17:33:30 <_genuser_> man, I"m so lazy and this cache object soudns so boring, I don't even wanna code it. Mar 05 17:33:41 <_genuser_> but if I can finish this, I can move on to nicer aspects. Mar 05 17:34:02 NightRa, drawable instances should not be used on android Mar 05 17:34:16 s/used/re-used/ Mar 05 17:35:11 pfn: Makes sense given it's mutated. Mar 05 17:35:50 Then there's the comment in ImageView that says setting a bitmap has an overhead because it creates an intermediate BitmapDrawable Mar 05 17:36:16 doesn't matter Mar 05 17:36:32 a bitmap drawable is relatively lightweight Mar 05 17:37:02 pfn: Alright. Thanks Mar 05 17:41:58 Does the pause/resume functionality relate to pausing/resuming actual downloads? Or just the request queue? (As far as I can see, it's the latter, but I could be missing something.) Mar 05 17:42:04 In Picasso, that is. Mar 05 17:43:23 Also, won't creating a new BitmapDrawable each time and resizing it have a huge overhead? Mar 05 17:43:44 NightRa, then create your bitmap in your final size Mar 05 17:43:50 and resize only once Mar 05 17:45:20 hey everyone i'm following a tutorial to create a login screen, but i'm getting a "can't resolve symbol" on anything after - R.string. - http://pastebin.com/EYYeH7d7 i thought those were automatically define the R class like in the tutorial one but my R class doesn't have them Mar 05 17:46:05 they are automatically defined Mar 05 17:46:13 you should never need to open up the R class Mar 05 17:47:15 Click on Build->Clean Project Mar 05 17:48:16 i cleaned it multiple time closed android studio even restarted the machine no change Mar 05 17:48:43 trisme: What can't it resolve? 'error_intro' or 'R'? Mar 05 17:48:58 error_intro Mar 05 17:49:23 Do you have error_intro in /res/values/strings.xml? Mar 05 17:49:48 no Mar 05 17:50:03 You can't resolve something that doesn't exist Mar 05 17:50:05 So how would it know about error_intro? :) Mar 05 17:50:52 It wasn't in the tutorial strings.xml so i did not put it in mine Mar 05 17:51:15 how'st working on the original if not defined in strings.xml? Mar 05 17:51:22 it's not Mar 05 17:52:27 it's not??? Mar 05 17:53:49 oh god i hate android studio but i know i have to use it :( Mar 05 17:54:11 DadFoundMy: Wai? Mar 05 17:55:06 well i guess i should say i hate the default behaivor. For example i only want sugestions to come up with "ctrl + space", and it doesn't move through parentheses with tab and stuff like that Mar 05 17:55:08 trisme: Were you hoping the compiler could read your mind? Mar 05 17:55:21 also does it now show errors next to line numbers? Mar 05 17:55:24 Yeah, it doesn't suggest parameters and stuff. That's one place Eclipse is better. Mar 05 17:56:00 Nope, the error reporting is also inferior to Eclipse's. Mar 05 17:56:04 i mean it kind of does, but not as much as i would prefer Mar 05 17:56:07 But it's better than Eclipse in a few ways. Mar 05 17:56:19 Those two you mention are among IntelliJ's biggest weaknesses, IMO. Mar 05 17:56:48 Its debugger is better than Eclipse's. Also, Gradle is a more powerful build system than Eclipse's. Mar 05 17:57:20 so how am i supposed to move through parentheses when i select a suggestion? Mar 05 17:57:40 You mean "show parameters"? Mar 05 17:57:55 https://www.jetbrains.com/idea/help/navigating-to-braces.html Mar 05 17:58:02 no like when i start typing a method, select one of their suggestions and move through the parameters Mar 05 17:58:23 You mean "autosuggest parameters"? Mar 05 17:59:17 or wait i was wrong. Lets say I start typing Toast.makeT then select makeText(). It brings up the second parenthese, but is there anyway to go past that second parenthese? Mar 05 17:59:36 yes Mar 05 17:59:36 in eclipse you could just press tab Mar 05 17:59:52 yiati: your link? Mar 05 17:59:57 I think you can press Enter for that. I have it set so that I just type a symbol (e.g., ';'). Mar 05 18:00:28 TacticalJoke: ahh typing the symbol works, thats fine i guess Mar 05 18:00:33 DadFoundMy just type the paren and it won't retype it, it will go past it Mar 05 18:00:40 yep Mar 05 18:01:27 There's definitely different key strokes to get used to, but Intellij/AS have every feature Eclipse has and then far more, and way better support, and way better build system hook ups Mar 05 18:01:30 alright now i just need to make errors show next to the line number, and not show syntax errors right away and we're good to go Mar 05 18:02:19 yiati: Hmm, Android Studio lacks a few features that Eclipse has. Mar 05 18:02:36 Such as what DadFoundMy is (I think) talking about: decent syntax-error reporting. Mar 05 18:03:25 If you miss a semicolon in Android Studio you get the tiniest red line. It's hard to see. Mar 05 18:03:27 I would argue the exact opposite Mar 05 18:03:32 Eclipse makes it blatant that you've made an error. Mar 05 18:04:06 TacticalJoke: there is no way to make to set it like eclipse? Mar 05 18:04:08 yiati: They both lack features that the other has. Mar 05 18:04:40 DadFoundMy: As far as I know, there isn't. Mar 05 18:04:47 https://www.jetbrains.com/idea/help/navigating-to-next-previous-error.html Mar 05 18:04:51 you can configure how to show error Mar 05 18:04:52 DadFoundMy: Eclipse's error display is way better than IntelliJ's. Mar 05 18:04:55 then alt+enter Mar 05 18:05:05 adq: how? Mar 05 18:05:10 in the settings Mar 05 18:05:46 editor > colors & fonts > general >>> Error Mar 05 18:06:13 the color, strip mark, effect like underwaved, whatever Mar 05 18:06:22 f2 + alt-enter, and you also tend to get much clearer suggested actions that you would actually want to make Mar 05 18:07:22 adq: Unfortunately, that's nowhere near the level of what Eclipse shows you. Mar 05 18:07:38 Eclipse gives you the exact line. It's very clear. Mar 05 18:07:46 IntelliJ gives you a vague marker somewhere on the right. Mar 05 18:07:50 you have the exact line too Mar 05 18:07:58 in messages window i think Mar 05 18:08:06 adq: http://www.techiesafari.com/tech/tutorial/tutorial_9/syntx_1.png Mar 05 18:08:28 You get it in the message view only after a (potentially slow) build. Mar 05 18:08:42 hum i see Mar 05 18:08:51 on the right there is this little red rectangle though Mar 05 18:08:57 but not explicit line number Mar 05 18:09:03 Yeah. Mar 05 18:09:06 Hi guys Mar 05 18:09:23 but clicking on it directly go to it Mar 05 18:09:31 I have a simple/complex question about a listview. I'm populating a simple listview using ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, android.R.id.text1, values); Mar 05 18:09:42 hey TacticalJoke did you see the gifdrawable library? Mar 05 18:09:45 With f2 you don't need to aim at anything or look at any line number Mar 05 18:09:47 then assigning the adapter to the listview lsvChapters.setAdapter(adapter); Mar 05 18:09:48 Nah, lasserix. Mar 05 18:09:57 yeah f2 jump from the cursor to the next error Mar 05 18:10:01 I would like to color the background color of the first listview item red Mar 05 18:10:03 gives you an imageview that uses giflib (native c) to decode/play gifs with mediacontroller options Mar 05 18:10:13 is there an easy way to achieve this? Mar 05 18:10:17 lasserix: Is it good? Mar 05 18:10:23 TacticalJoke: haven't tried it but i imagine it is Mar 05 18:10:26 i'm more concerned by the popup window disappearing because logcat is outputing... Mar 05 18:10:27 *better than alternatives Mar 05 18:10:29 Thanks. Mar 05 18:10:33 i've submitted a bug monthhhessss ago Mar 05 18:10:36 still not fixed lol Mar 05 18:10:36 I'll check it out. Mar 05 18:11:14 freaking fragmentss! ugh! Mar 05 18:11:33 mantas322: You'll have to customise the adapter's behaviour. It's probably easiest to subclass BaseAdapter. Then return a red-background TextView if 'position' is 0. Mar 05 18:11:56 lasserix: This? https://github.com/koral--/android-gif-drawable Mar 05 18:12:24 I want to start a Fragment (with an Image in it basically) with a button inside an Fragment. Is this nesting fragments? Mar 05 18:13:35 example code I found on d.android and via google return errors Mar 05 18:14:27 TacticalJoke: yeah think so Mar 05 18:14:57 TacticalJoke, is there a hacky way of achieving this AFTER its been drawn? Mar 05 18:15:01 which it would support dumping frames to an array Mar 05 18:15:09 mantas322: use an overlay Mar 05 18:15:10 like get the view from the listview and set the background color AFTER the fact? Mar 05 18:15:35 mantas322: if its always the top most row, you can just make a dummy header Mar 05 18:15:47 linear dummyheader listview /linear Mar 05 18:15:48 Someone from docs team? https://developer.android.com/guide/components/intents-common.html#Now All the links to fitness intents ends with 404. Mar 05 18:16:33 mantas322: Never tried it, but I guess "listView.getChildAt(0)" would work. Mar 05 18:16:41 mantas322: But why not do things correctly? :D Mar 05 18:16:48 TacticalJoke: think that will faily when you scroll down Mar 05 18:16:54 Pitel, i doubt there are any officials in here Mar 05 18:16:55 the first child will be off Mar 05 18:17:00 overwritting the base adapter seems scary Mar 05 18:17:00 Oh, true. Yeah, scratch that. Mar 05 18:17:10 mantas322: It's easy. Mar 05 18:17:24 mantas322: the only way to do it is either use dummy header OR subclass base adapter Mar 05 18:17:25 maybe for some expert such as yourself Mar 05 18:17:33 ArrayAdapter is a thin subclass of BaseAdapter. Mar 05 18:17:34 im googling.. hang on Mar 05 18:17:42 mantas322, its everyday business to override base adapter Mar 05 18:17:51 wow i cant get over how shitty android studio error reporting is Mar 05 18:17:54 mantas322: its not a thing to google. these are the facts. Mar 05 18:18:01 DadFoundMy: Yeah, but you kinda get used to it after a while. Mar 05 18:18:04 Stockholm Syndrome. Mar 05 18:18:07 how do you run robolectric tests in AS? Mar 05 18:18:18 you dont :p Mar 05 18:18:24 DadFoundMy: I prefer Android Studio on the whole, even though I see clearly how bad Android Studio is in some ways. Mar 05 18:18:24 when i save in eclipse i see all compile errors instantly :( Mar 05 18:18:46 http://www.bignerdranch.com/blog/all-in-together-android-studio-gradle-and-robolectric/ Mar 05 18:18:50 Yeah, Eclipse has way better error reporting, especially relating to incremental building. Mar 05 18:19:11 DadFoundMy: On the plus side, Gradle is really powerful. (That's what I tell myself when getting annoyed with the error reporting.) Mar 05 18:19:24 I want to start a Fragment (with an Image in it basically) with a button inside an Fragment. Is this nesting fragments? Mar 05 18:19:26 lasserix, i just read it. they seem to assume gradle is being used. I'm not able to follow it Mar 05 18:19:42 Why are you using as without gradle? Mar 05 18:19:51 you can use AS without gradle> Mar 05 18:19:56 didnt even know thats possible Mar 05 18:20:00 yes you can. Mar 05 18:20:06 because my project doesn't use gradle Mar 05 18:20:14 why not? Mar 05 18:20:18 why should it? Mar 05 18:20:18 you can clone the repo, mark it as dependency of the project and it works like a usual lib Mar 05 18:20:32 [the repo] = the lib you want to use Mar 05 18:20:41 the whole point of moving to as was to use gradle because it makes some things a lot easier Mar 05 18:20:41 DadFoundMy: You'll probably prefer Android Studio after a while. Mar 05 18:20:47 bignerdranch doesn't seem to know it's possible either Mar 05 18:20:49 dang..... "Attempt to invoke virtual method 'void android.view.View.setBackgroundColor(int)' on a null object reference" listView.getChildAt(0).setBackgroundColor(Color.RED); Mar 05 18:20:49 otherwise just use intellij + maven Mar 05 18:20:51 didnt work :( Mar 05 18:20:57 I guess I have to.... learn something Mar 05 18:21:00 mantas322: yeah we told you it wouldn't Mar 05 18:21:03 Yeah, but it's not much to learn. Mar 05 18:21:04 Moter8, nesting fragments is a fragment inside a fragment, not a button in a fragment (unless your button is a fragment too!) Mar 05 18:21:07 you have two options: dummy header or base adapter Mar 05 18:21:07 AS can of course load and use either IntelliJ or Maven projects Mar 05 18:21:08 at the top they say they went gradle because they went AS. and i can't see how that's a reason Mar 05 18:21:23 it just won't create those project types Mar 05 18:21:49 danijoo, Actually it's a ListFragment; a tap should open the fragment with the image Mar 05 18:21:51 norrin just use intellij with maven and then you can do roboelectric testing easily Mar 05 18:22:07 I remember the horrible days of the ant build system Mar 05 18:22:12 lasserix, again, my project doesn't use gradle. so how to run robolectric tests in "intellij"(if they helps you grok)? Mar 05 18:22:28 yiati in my day we had to code one finger at a time, both ways! Mar 05 18:22:39 Norrin dont be a jerk, use maven. Mar 05 18:23:02 I thought everyone was gonna stop using Robolectric now that we have JVM unit testing and a mockable android.jar. Mar 05 18:23:11 can't debug in maven. how do you run robolectirc tests in intellij? Mar 05 18:23:12 ^^ Mar 05 18:23:13 I guess Robolectric still has some benefits though. Mar 05 18:23:34 Norrin what are you talking about? You can use maven to bring roboelectric into your project and debug with intellij's debugger Mar 05 18:23:41 shoudnt adding this dependency be as easy as add the line "compile 'com.google.code.gson:gson:1.7.2' Mar 05 18:23:46 Norrin: you can define a maven test target in intellij, iirc. Mar 05 18:23:48 lasserix, exactly. how? Mar 05 18:23:51 which would allow you to debug Mar 05 18:23:54 DadFoundMy, it should Mar 05 18:23:58 this lib http://mvnrepository.com/artifact/com.google.code.gson/gson/1.7.2 Mar 05 18:24:05 I have that line in one of my projects and its working Mar 05 18:24:06 compile 'com.google.code.gson:gson:2.3.1' Mar 05 18:24:22 mantas322: Do you want a really simple example? Mar 05 18:24:28 it's been a while since I've used maven though, so I don't recall the details :) Mar 05 18:24:31 if it fails just use the browser/search function and add it via the wizard/dialog Mar 05 18:24:32 but 1.7.2 is a bit outdated.. Mar 05 18:24:33 :p Mar 05 18:24:39 JesusFreke, yeah that's what i'm trying to figure out Mar 05 18:24:49 sure tacticaljoke Mar 05 18:24:54 i mean im going to figure it out eventually Mar 05 18:25:10 but I tend to just smash my head into a wall untill i do :) Mar 05 18:25:28 i am getting an error on "import com.google.gson.Gson;" do i need to import it differently? Mar 05 18:25:45 DadFoundMy, have you synced gradle Mar 05 18:25:46 DadFoundMy: Is it in Maven central or some other repository? Mar 05 18:25:54 http://chariotsolutions.com/blog/post/integrating-robolectric-with-intellij/ Mar 05 18:26:03 yiati: http://mvnrepository.com/artifact/com.google.code.gson/gson/2.3.1 Mar 05 18:26:07 https://github.com/robolectric/deckard-maven Mar 05 18:26:11 like google you know/ Mar 05 18:26:14 danijoo: idk Mar 05 18:26:18 :D Mar 05 18:26:19 yeah it is Mar 05 18:26:22 that repo solves nothing Mar 05 18:26:27 DadFoundMy, -_- Mar 05 18:26:39 Norrin: its an example, the first link will take you through it Mar 05 18:26:46 has nothing to do with how to run the tests in AS Mar 05 18:26:54 danijoo: you can just use the Brose Repo's search for gson and let the wizard import it for you should work Mar 05 18:26:56 reading the first one now Mar 05 18:27:00 yeah I said use intellij Mar 05 18:27:13 duh i said how Mar 05 18:27:21 DadFoundMy: Make sure you are listing whatever repo it should pull from in the build.gradle, i.e. mavenCentral or something else Mar 05 18:27:23 if its working with Intellij, it should also work with AS though Mar 05 18:27:34 Also this website is nice, http://gradleplease.appspot.com/#gson Mar 05 18:27:45 for maven central Mar 05 18:28:01 yiati, of course, it's also wrong Mar 05 18:28:01 http://www.element84.com/easy-testing-with-android-studio.html Mar 05 18:28:03 mantas322: I think this is right (didn't compile as I don't have AS open): http://pastebin.com/tbycaAMd Mar 05 18:28:10 Norrin: iirc, there should be a maven thingy on the right side. You can expand that and see all your maven targets. there should be one for the tests, and you should be able to execute and/or debug it. Mar 05 18:28:14 yiati, e.g. that gson line Mar 05 18:28:16 should i be putting this line in the app build.gradle or the project build.gradle? Mar 05 18:28:19 Oops, forgot a TextView cast. ;o Mar 05 18:28:21 [10:23:02] I thought everyone was gonna stop using Robolectric now that we have JVM unit testing and a mockable android.jar. Mar 05 18:28:21 something like that at least Mar 05 18:28:24 TacticalJoke, what? Mar 05 18:28:38 Norrin: https://sites.google.com/a/android.com/tools/tech-docs/unit-testing-support Mar 05 18:29:04 TacticalJoke, looks gradle dependent Mar 05 18:29:30 thansk tacticaljoke Mar 05 18:29:31 Norrin, its time to realize that you should migrate to gradle :p Mar 05 18:29:34 I appreciate it Mar 05 18:29:40 Norrin: Yeah. Mar 05 18:29:46 but unfortunately I have to go to lunch now, so I'll thank you later. Mar 05 18:29:47 mantas322: Needs one more case. Mar 05 18:29:56 Is there any way to trigger activity destruction (to test onRestoreInstanceState implementation) Mar 05 18:29:59 how to build a rom from AOSP for a none nexus device? Mar 05 18:30:05 mantas322: Might be easier to say "View view = ...; TextView textView = (TextView) view;". Mar 05 18:30:13 miketo, developer options -> dont keep activities Mar 05 18:30:16 So that the casting happens only once. Mar 05 18:30:24 danijoo, i tried once and there seems to be no straightforward way to convert a maven project to gradle Mar 05 18:30:29 ice9, #android-root Mar 05 18:30:29 danijoo, woo thanks :D Mar 05 18:30:40 why any of this ish would be built so that its dependent on gradle i have no idea Mar 05 18:30:55 Oh, and "CommentListingAdapter()" should be "MantasAdapter()". Mar 05 18:31:10 And so on. I'm half-asleep. lol Mar 05 18:31:24 Norrin, its not dependent on gradle, but since most of the devs use gradle, its hard to find information for not-gradle Mar 05 18:31:57 danijoo, some of it seems like it is. look at the bottom of the page Mar 05 18:32:04 unitTests.returnDefaultValues = true Mar 05 18:32:11 there seems to be no way to do that w/o gradle Mar 05 18:32:30 therefore no way to run android.jar outside of android Mar 05 18:32:42 I think that's Gradle-specific, yeah. Mar 05 18:32:51 Or Android-plugin-specific. Mar 05 18:33:36 yeah the new unittest feature is gradle-only Mar 05 18:33:51 thought we are still talking about robolectric Mar 05 18:33:56 :-/ robolectric it is Mar 05 18:34:03 thats not gradle specific Mar 05 18:34:10 well i know. that's why i'm using it Mar 05 18:34:16 in fact I remember days when it was a pain to set it up for gradle Mar 05 18:34:22 anyone knows if there is support to convert android native app to iOS using RoboVM? Mar 05 18:34:23 TacticalJoke was asking why even use it Mar 05 18:34:24 and it was the only reason to not use gradle :p Mar 05 18:34:47 Norrin, yeah because you really should migrate to gradle + unittests :) Mar 05 18:34:51 Yeah, but my question assumed "Everyone is on Gradle anyway". :D Mar 05 18:34:57 thats what folks will do in the feature Mar 05 18:35:02 future* Mar 05 18:35:15 jump on the train and youll find all information you need Mar 05 18:35:19 i guess. just horrible how this has been handled. why is there no converter? Mar 05 18:35:32 Norrin, huh? any maven project should be directly translatable to gradle... Mar 05 18:35:32 everything i read about gradle said start from scratch. wtf Mar 05 18:35:38 and all you have to do is investing a day or so in migrating your project and reading gradle guides Mar 05 18:35:41 pff this crap with support libraries is just stupid Mar 05 18:35:52 yeah i day i don't have Mar 05 18:35:55 Norrin, android update project -g -v 1.1.2 ... Mar 05 18:35:57 no freaking code works that I find Mar 05 18:36:00 a* day i don't have Mar 05 18:36:05 Norrin, doesn't take a day Mar 05 18:36:13 Norrin, simple gradle build, maven translates directly... Mar 05 18:36:22 Norrin, if you have one day to try setup robolectric for maven, you could invest that day to gradle :p Mar 05 18:36:47 Norrin: Just join the Gradle master race. Stop resisting! Mar 05 18:37:12 resistance is futile Mar 05 18:37:13 Norrin, takes maybe 30 minutes to figure out Mar 05 18:37:26 resisiting if the case. pfn, if that works, that'll be great. everything I found had no migration process whatsoever Mar 05 18:37:34 resisting isn't* the case Mar 05 18:37:38 you could even android create project -g -v 1.1.2 ... blahblahblah, and copy the build.gradle that's generated, add your dependencies, and you're done Mar 05 18:38:36 thanks everyone. very helpful! Mar 05 18:39:14 As far as I can see, they made the mistake of making methods in android.jar throw "Stub" exceptions. The new Gradle thing patches over this. Mar 05 18:39:25 Outside of using Gradle, I have no idea how you'd avoid this without using Robolectric. Mar 05 18:40:22 roboelectric can also be dangerous. always keep in mind it cannot represent actual behaviour Mar 05 18:40:41 or better: does not always Mar 05 18:40:57 i cant figure out why the gradle wont work Mar 05 18:41:01 just use the emu :) Mar 05 18:41:04 DadFoundMy: What won't work? Mar 05 18:41:17 TacticalJoke: adding GSON Mar 05 18:41:29 Put it in the build.gradle for 'app'. Mar 05 18:41:38 what won't work Mar 05 18:41:39 it works fine Mar 05 18:41:43 Or you could select 'app' in the project view and press F4. Mar 05 18:41:43 people that say it won't work lie Mar 05 18:41:44 :p Mar 05 18:41:48 Then add the dependency via the friendly GUI. Mar 05 18:41:50 one sec im going to pastepin my build.gradle Mar 05 18:42:46 "More rumors point to Huawei being the next Nexus maker" . surprised they didn't go sony Mar 05 18:43:02 TacticalJoke: i was doing it the the project one, im going to try it in app one sec Mar 05 18:43:22 I have to scale a drawable that is used sometimes, but once scaled I'd like to cache it. Where's the best place to cache this image/ how to do so? Mar 05 18:44:12 g00s, didnt sony announce they leave smartphone market Mar 05 18:44:17 DadFoundMy, hint: select text, rightclick and create gist Mar 05 18:44:21 DadFoundMy: right click your project, goto your module, click dependencies, click add, click Library Dependency, search gson and add it Mar 05 18:44:25 danijoo orly? dunno Mar 05 18:44:40 http://www.digit.in/mobile-phones/why-sony-is-exiting-smartphone-business-25334.html Mar 05 18:44:45 got all those oems fighting for scraps Mar 05 18:45:03 right click project->Module Settings, click module->dependencies->add->library->search: gson-> select gson click add voila Mar 05 18:45:51 lasserix: yayyyy thank you Mar 05 18:46:08 lasserix, TIL, nice Mar 05 18:46:15 lasserix, the gist thing Mar 05 18:46:26 you mean me? :) Mar 05 18:46:43 just the "open on github" thing is kinda useless Mar 05 18:46:43 Moter8: before i add it, what does it do? Mar 05 18:46:53 if you've changed the lines, heh Mar 05 18:46:57 danijoo, I'm sure they're also exiting the featurephone business Mar 05 18:46:58 DadFoundMy, what do you mean Mar 05 18:47:05 or they did already Mar 05 18:47:09 Moter8: what is gist? is a virus? Mar 05 18:47:13 lol Mar 05 18:47:18 Gradle is so slow at reacting to a change in build.gradle. Mar 05 18:47:19 http://gist.github.com/ Mar 05 18:47:27 github's "pastebin". Mar 05 18:47:34 oh cool Mar 05 18:47:35 it has been integrated into AS. Mar 05 18:47:45 "You added whitespace? Please wait several minutes while I update." Mar 05 18:47:57 TacticalJoke, you can disable that Mar 05 18:48:10 so it only syncs when you click "sync!" Mar 05 18:48:28 I've set up a Google Analytics tracker in onResume() in MainActivity that checks my viewpager for current tab with mViewPager.getCurrentItem(). I then send the screen name of that tab to GA. My problem is that in my 2nd Fragment I launch a SherlockDialogFragment. I can track that launch, but if I 'minimize' my app while being in that SherlockDialogFragment, when I start the app it will report both the SherlockDialogFragment and my 2nd Fragment. Any ideas? Mar 05 18:48:32 Yeah. Mar 05 18:48:55 You have to do it manually by default, I think. But it's so slow. Mar 05 18:49:00 Moter8: here have my R file https://gist.github.com/SkateSoft/7327b3abec98b1d4950e Mar 05 18:49:05 :D Mar 05 18:50:10 TacticalJoke, i dont change it that often that it annoys me.. Mar 05 18:50:36 its a library or small change every view days, but its not like you have to work on the build.gradle every half hour. Mar 05 18:51:20 I thought there was an option to submit a gist through AS but I can't find it now.. Mar 05 18:51:35 danijoo: It gets to me most when I slightly change build.gradle in one branch and switch between brancches. Mar 05 18:51:37 branches* Mar 05 18:51:42 Then I have to wait several minutes after every switch. Mar 05 18:52:05 several minutes? you either have a very large gradle file, or a very shitty machine Mar 05 18:52:21 Neither. :p Mar 05 18:52:26 or hm... Mar 05 18:52:37 maybe having gradle as a daemon and stuff like that make a different Mar 05 18:52:48 because for me its max 1 minute if it does not have to download new libs Mar 05 18:53:14 And I have about 20 compile dependencies Mar 05 18:57:48 i notice switching workspace when AS is running really confuses it. gradle sync doesn't always seem to heal, but i have code generator stuff Mar 05 18:58:10 errm, git working directory Mar 05 18:59:47 lol http://www.gizmag.com/samsung-high-tech-dog-house/36411/pictures#4 Mar 05 19:00:06 making dogs fat & lazy like teir humans : tv and automatic feeder Mar 05 19:03:44 I have my dogs on automatic feeders Mar 05 19:03:47 3 times a day Mar 05 19:04:13 my house has a doggie door, so I don't have to let them out, either :p Mar 05 19:04:50 https://plus.google.com/u/0/+PerryNguyen/posts/SN8rtisdbg5?pid=6011591352427899362&oid=111751695436781052143 Mar 05 19:04:51 :p Mar 05 19:05:22 What does "V/Provider/Settings: from settings cache, name = sound_effects_enabled, value = 0" mean? Mar 05 19:05:48 It's spamming my console Mar 05 19:05:55 don't care? Mar 05 19:05:57 ignore it? Mar 05 19:11:13 pfn, I added you on my g+ stream Mar 05 19:13:32 is there no setTag method for TextViews? Mar 05 19:14:40 There is. Mar 05 19:15:37 http://developer.android.com/reference/android/view/View.html#setTag(java.lang.Object) Mar 05 19:15:44 newbQ: TextView extends View and View#setTag() is shared with children Mar 05 19:15:58 I must being doing something else wrong then. I'm trying to set the tag for a TextView in an ArrayAdapter. Mar 05 19:16:14 adapter.getItem(i).setTag("test_" + i); doesnt seem to work Mar 05 19:17:13 ArrayAdapter.getItem doesn't get the TextView. Mar 05 19:17:18 getItems will return your ArrayAdapter data, not a view Mar 05 19:17:20 It returns an item in the list. Mar 05 19:18:50 but the items in the list are TextViews. what does getItem return for a list of TextViews? Mar 05 19:19:02 Where can I find the intent chooser source code? Mar 05 19:20:52 newbQ: The items in the ListView are TextViews. The items in the list you pass to ArrayAdapter's constructor are not TextViews. Mar 05 19:22:03 getItem returns an item from the list you pass to the constructor. Mar 05 19:22:11 TacticalJoke: wait, when did a ListView get involved? Mar 05 19:22:55 Well, AdapterView. Mar 05 19:22:58 Not necessarily ListView. Mar 05 19:25:41 Guys can someone help me understand the android Encoder... http://developer.android.com/reference/android/media/MediaCodec.html Mar 05 19:26:27 TacticalJoke: so how do I loop through an ArrayAdapter and set the Tags for each TextView in the adapter? Mar 05 19:26:27 Napalm|afk: you told me to use getChildFragment, did get why i use that? Mar 05 19:26:39 has anyone here done integration testing with espresso + retrofit where you wanted to mock the REST calls? Mar 05 19:27:23 newbQ: What does "every TextView in the adapter" mean? It creates Views as needed. It has only a few at a time. Mar 05 19:27:39 newbQ: The canonical answer is "do this in the Adapter.getView override". Mar 05 19:28:28 Why do you want to set tags, anyway? Mar 05 19:28:42 ^ Mar 05 19:30:23 I'm using the adapter to have a dynamic number of TextViews, all based on the same layout. I want to set tags so I can set on onClick function and have it do different things depending on which TextView was clicked Mar 05 19:30:58 getView is the best place to do that. Mar 05 19:30:59 setOnItemClickListener is probably what you want Mar 05 19:31:16 what yiati said ^ Mar 05 19:31:23 So they should all use the same onClick function, but use different data Mar 05 19:31:29 Yeah, he'll also need setTag. Mar 05 19:31:51 would't the position suffice? (prolly not) Mar 05 19:32:27 Is there much of a difference between the XML onClick and setOnItemClickListener? Mar 05 19:32:48 newbQ: Does the XML onClick even work here? Mar 05 19:32:54 tveloso: position wont work because it's dynamic. Mar 05 19:33:11 TacticalJoke: not sure. lemme test that real quick. Mar 05 19:33:15 position will still work Mar 05 19:33:19 I would not expect it to work. Mar 05 19:34:05 yiati: based on the position, I cant tell what data the TextView should be looking at. so I need a tag Mar 05 19:35:28 What type of data you are feeding your adapter? Mar 05 19:36:49 Question Mar 05 19:37:03 I can't seem to get any skus from queryInventory Mar 05 19:37:13 so I need to upload a new build to alpha every time I change my code? Mar 05 19:37:22 are these issues even related? Mar 05 19:38:11 just a textview. but each textview has data from one day of the week. the textview isnt created if the day has no data. so the position could be data for any day of the week. I need a tag to differentiate Mar 05 19:38:27 TacticalJoke: XML onClick does work in this situation Mar 05 19:39:42 can't you add a flag in your data object to set what day the data is for Mar 05 19:40:30 newbQ: Damn, you're right. I totally didn't consider that. Mar 05 19:40:45 whatitis: that's what I'm trying to do by setting the tag on the textViews Mar 05 19:41:47 hello everyone! Mar 05 19:42:27 I could just add some extra characters to the text and just have a switch case for view.getText in the onClick Mar 05 19:42:42 not the best, but that might work Mar 05 19:42:55 That's a horrible hack. Mar 05 19:42:57 anyoen know of a good way to change the bg color of the optionsmenu? Mar 05 19:43:07 found this but I can’t get it to work http://androidjug.blogspot.com/2014/06/how-to-change-background-color-of.html Mar 05 19:43:08 newbQ: If you pass the data to the adapter instead then in onItemClick you will have the data and can use the position to get it Mar 05 19:43:59 You don't have a position in a View's onClick handler. Mar 05 19:44:07 It's not always possible to use onItemClick. Mar 05 19:44:27 My app uses lots of MaterialDialogs across different activities -- how should I properly refactor these 20 Dialog builders? 1 Method per Activity/Fragment seems to work but it seems ugly. Mar 05 19:44:27 yiati: but I cant extrapolate what day the data corresponds to from it's position Mar 05 19:44:29 correct about not having position in a view's onClick listener Mar 05 19:44:54 newbQ: if hyou pass the data to the adapter then you could Mar 05 19:45:02 Moter8: Your app has 20 dialogs? Mar 05 19:45:19 lots of error dialogs I guess Mar 05 19:45:24 instead of textviews Mar 05 19:46:14 then inflate the textviews from the data Mar 05 19:46:14 yiati: I think that would get too clunky to work with. Mar 05 19:46:27 ? Mar 05 19:46:34 yiati: I don't see how that solves his problem. Mar 05 19:46:35 but then again, I don't exactly know what that would look like Mar 05 19:46:51 His problem is that he has a "TextView has been clicked" method, and he needs to query the data from it. Mar 05 19:47:02 One way is to set the position as the TextView's tag. Mar 05 19:47:36 if data is passed to the adapter say from an activity, and you have access to that data in the activity then you can use the position to get that data Mar 05 19:47:51 I think I'm gonna go with adding characters to the text. It will help me differentiate it in the code and be more stupid-proofing for the user Mar 05 19:47:54 But how do you get the position? Mar 05 19:48:30 TacticalJoke: http://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html Mar 05 19:48:38 He's not using onItemClick. Mar 05 19:48:47 but he could Mar 05 19:48:51 Not necessarily. Mar 05 19:48:53 Sometimes you can't. Mar 05 19:49:01 What if your row has three different views to click on? Mar 05 19:49:13 GridView Mar 05 19:49:45 That doesn't follow. Mar 05 19:49:59 I don't see why not Mar 05 19:53:54 that's easy Mar 05 19:53:59 just onClick for only textviews Mar 05 19:54:15 you can do TextView tv = (TextView) v; Mar 05 19:54:21 tv.getText().toString(). Mar 05 19:54:34 Plus I've found that multiple touch gets really wonky if you set the click listener on each individual view rather than using onItemClick Mar 05 19:54:35 use TacticalJoke suggestion of setting a tag if you need to differentiate Mar 05 19:54:48 yiati: It's necessary for some apps. Mar 05 19:54:49 nah its fine you just got to remember they can be recycled Mar 05 19:55:08 TacticalJoke: I cannot think of any time it would be Mar 05 19:55:13 Moter8 static factory Mar 05 19:55:48 tricknology: use toolbar Mar 05 19:55:50 yiati: Think of a reddit client. Mar 05 19:56:09 Take any app that has a listview with the onClick listener set on each individual item rather than using onItemClick, and try tapping as many items in the list as you can before any intent happens Mar 05 19:56:29 yiati: you just have a throttle mechanism Mar 05 19:56:33 I’m afraid I might be in too deep for Toolbar at this point Mar 05 19:56:51 tricknology: you can't set it at all? usually you can do it in theme Mar 05 19:57:05 if you can get it to be transparent you can use a dummy view behind it Mar 05 19:57:27 yiati: Also, RecyclerView has no onItemClick thing, by design. Mar 05 19:57:43 You have to set click-listeners on the views. Mar 05 19:58:02 the options menu Mar 05 19:58:02 Yes because RecyclerView is awesome and addressed problems with adapterview implementations such as ListView etc Mar 05 19:58:05 Ive got it working. I added some extra text to the TextViews to differentiate them. It is more info for the user, and makes the coding easier for me. They all use the same XML onClick, and I just do a switch case for the view.getText().substring() to the parts that differentiate them Mar 05 19:58:05 the popuo options Mar 05 19:58:23 tricknology: oh that? Mar 05 19:58:39 yeah that ugly grey thing with the horizontal 3 ... Mar 05 19:58:39 yiati: The onItemClick thing was always hugely limited. The idea that a whole row has to be clickable doesn't work well in a lot of cases. Mar 05 19:58:58 tricknology: did you see this? http://stackoverflow.com/questions/19659637/how-to-change-the-background-color-of-action-bars-option-menu-in-android-4-2 Mar 05 19:59:04 tricknology: that's called overflow menu Mar 05 19:59:14 yeah I did that Mar 05 19:59:20 somehow someway it’s not working Mar 05 19:59:27 You had to get hacky to work with it definitely, but things get wonky if you didn't use it. RecyclerView is definitely one of new things to make me most happy Mar 05 19:59:27 lasserix, thanks, but In what file would I create that? Mar 05 19:59:29 newbQ: That's a horrible solution, to be honest. Mar 05 19:59:34 someoen before me set up the styling and.. its a bit confusing Mar 05 19:59:43 An java class? What would it inherit from? Mar 05 19:59:53 Moter8 a new top level, just do a static method that returns the dialog, takes a context and any parameters Mar 05 19:59:56 TacticalJoke: why? Mar 05 20:00:06 Moter8 none unless you want to subclass it for some reason Mar 05 20:00:16 thanks lasserix Mar 05 20:00:21 newbQ: You're showing an implementation detail to users, right? Mar 05 20:00:59 TacticalJoke: I'm not entirely sure what you mean by that. Mar 05 20:01:12 newbQ: What text are you adding to each item to make it possible to determine which view was clicked? Mar 05 20:01:15 Something like the position? Mar 05 20:01:24 he's adding extra text that is displayed Mar 05 20:01:33 Yeah, but what exactly is he adding. Mar 05 20:01:43 newbQ try this on all your textviews of one type do setTag("TYPEONE") Mar 05 20:02:00 He could just set the position. Or some data item. Mar 05 20:02:01 then in your onclick do String tag = (String) v.getTag(); Mar 05 20:02:07 right but he is afraid Mar 05 20:02:11 so i am trying to spell it out for him ;p Mar 05 20:02:14 Okay. lol Mar 05 20:02:31 Yeah, the tag solution is way better than using part of a TextView's text as a tag. Mar 05 20:02:48 I'm adding a label that makes sense to the user. It's extra info they dont really need, but serves as extra stupid-proofing Mar 05 20:02:50 newbQe what you are doing already exists, just use setTag/getTag it is designed exactly for what you are doing plus its a neat trick to know about in other cases you might need it for Mar 05 20:03:08 newbQ, why don't you just use a custom view if you need extra data. Mar 05 20:03:31 quinnjn: No need! Like lasserix said, tagging exists. :) Mar 05 20:03:47 lasserix: I tried setTag, but I couldnt quite get it to access the TextView through the Adapter Mar 05 20:04:00 newbQ: You can do it in getView. Mar 05 20:04:07 newbQ, post your adapter to a gist Mar 05 20:04:15 http://pastebin.com/ExDzXxv3 Mar 05 20:04:27 still the overflow menu is grey Mar 05 20:04:40 ha Theme.Afro Mar 05 20:04:50 ;-) Mar 05 20:05:06 Hi there, I'm trying to deploy an app written in C++ and Qt for android. Is it Ok to use anything as the package name? It's default is "org.qtproject.example" . Mar 05 20:05:42 CtrlC, you should use a domain you own. Mar 05 20:06:19 quinnjn: Well I don't own any domain. Can I just use s.th like ctrlc.app ? Mar 05 20:06:25 you can do whatever you want Mar 05 20:06:28 just make it unique Mar 05 20:06:35 Thank you guys. Mar 05 20:06:48 yw :) Mar 05 20:06:49 tricknology: swap popup and actionbarystyle Mar 05 20:06:55 Yeah, just avoid using someone else's name if you're gonna upload to Google Play. Mar 05 20:07:11 jsut those two lines? Mar 05 20:07:12 thats weird. everything on my app works after importing it into AS except the changing things on the actionbar Mar 05 20:07:15 e.g., something like "com.facebook.myappthatusesfacebook" would be risking a takedown. Mar 05 20:07:24 tricknology: in case that actionbar style overwrites the popup? Mar 05 20:07:26 i dunno Mar 05 20:07:27 My problem with the getView is that I cant figure out what to pass as the convert view and the parent view Mar 05 20:07:32 getActionBar() is returning null Mar 05 20:07:38 hmm Mar 05 20:07:52 newbQ: You're not supposed to call getView. I'm talking about overriding it. Mar 05 20:08:26 lasserix that did not work :( Mar 05 20:08:35 at least on 5.0, ill try with an older version Mar 05 20:08:44 oh. I did not do that. But I like my other way of doing it with the extra info for the user. makes it look cleaner for the user and is simpler Mar 05 20:08:56 all my chargerts are missing :( Mar 05 20:09:03 why after importing to AS do some of my layouts look different? Mar 05 20:09:09 tricknology: you should switch to toolbar Mar 05 20:09:11 its very easy Mar 05 20:09:13 anyways read here http://www.murrayc.com/permalink/2014/10/28/android-changing-the-toolbars-text-color-and-overflow-icon-color/ Mar 05 20:09:31 I can't update the content in ViewPager with FragmentStatePagerAdapter, how can i do so? i have tried adapterClass.notifyDataSetChanged(); Mar 05 20:09:47 Mar 05 20:09:49 Mar 05 20:09:51 Mar 05 20:09:54 tricknology: since you are using appcompat : Mar 05 20:09:56 oops Mar 05 20:10:10 so appcompat background is overriding yourpopup style Mar 05 20:10:39 newbQ: http://www.vogella.com/tutorials/AndroidListView/article.html#tutorial_ownadapter Mar 05 20:10:45 I should probably just not use app compat since I uppsed the version to 14 Mar 05 20:11:02 *long sigh* Mar 05 20:11:05 think you still need app compat? Mar 05 20:11:06 I just found out what butterknife actually does. I've been living under a rock :/ Mar 05 20:11:42 lasserix, got it working with https://gist.github.com/Moter8/caa1e2117e1184c55f5f but that still takes 4 lines haha Mar 05 20:11:45 tricknology, appcompat might have some methods from api 20 that aren't available in lesser APIs. Isn't Toolbar in appcompat? Mar 05 20:12:06 yes Mar 05 20:12:06 What's MotionKit? Have you guys heard about this? Mar 05 20:12:28 Afzal, try to use butterknife with dagger Mar 05 20:12:29 Moter8: you can add a static enum to your factory class then use that as your second parameter to do a switch Mar 05 20:12:31 so kill my actionbar and use toolbar? that’s the consensus? Mar 05 20:12:37 yeah Mar 05 20:12:40 FML Mar 05 20:12:41 yeah Mar 05 20:12:42 down with the actionbar Mar 05 20:12:42 lol Mar 05 20:12:45 tveloso, I don't know what to do with Dagger yet Mar 05 20:12:46 up the actiontoolbar! Mar 05 20:12:51 alright guys, thanks Mar 05 20:12:55 dagger is for DI Mar 05 20:13:02 instead of using lazy singeltons Mar 05 20:13:10 I started a new app just recently and first time playing with Toolbar and it's oodles more flexible than ActionBar Mar 05 20:13:13 tricknology: Google as droped actionbar and went full tool bar with the appcompat Mar 05 20:13:38 lasserix, I feel like I don't know why I need it yet Mar 05 20:13:39 i know lasserix Mar 05 20:13:40 lasserix, hmm static enum? uuh Mar 05 20:13:47 what would that help with? Mar 05 20:13:51 is it better to cast a CharSequence as a String, or use the toString() method? Mar 05 20:13:54 hey all... spending a lot of time on this. I want to have a TextView followed immediately right by an ImageView within a ViewGroup. The textview's contents may be dynamic. If the textview's contents grow, I dont want it to push the imageview off screen. at same time, I want the textview's width to tightly wrap the content of the text since the textview is stylized. How can I achieve this? Mar 05 20:14:06 MaterialDialogFactory.build(context, Dialogs.SAVE_WITHOUT_CONFIRM Mar 05 20:14:27 Afzal: https://www.parleys.com/talk/529bde2ce4b0e619540cc3ae Mar 05 20:14:37 FelipeS: Compound drawables? Mar 05 20:14:41 moter8 a static inner enum--the static just makes it top level class, so it doesn't have to have an instance of the enclosing class to be accessed Mar 05 20:14:58 thanks yiati I'll check it out Mar 05 20:15:06 ah Mar 05 20:15:19 textview drawableRight Mar 05 20:15:30 ooh I get it now. Mar 05 20:15:33 might not be suited to your needs though Mar 05 20:15:44 Moter8: if you want like a shortcut Mar 05 20:15:54 lasserix, But can static stuffs even contain resources? Mar 05 20:15:57 I dont think so? Mar 05 20:16:22 FelipeS: relativelayout Mar 05 20:16:27 (Ill read up what enums are etc) Mar 05 20:17:17 newbQ: What is the context? Mar 05 20:17:42 lasserix, I am attempting with relative layout, but if textview's contents are long, imageview is pushed off screen Mar 05 20:17:57 Moter8 when static is used like this: http://pastebin.com/avgHV1j6 Mar 05 20:18:07 felipe then you are doing it wrong Mar 05 20:18:21 also put the textview in a scrollview Mar 05 20:18:24 TacticalJoke: TextView.getText() returns a charSequence and I want to work with it as a string. Or should I just leave it as a char sequence? Mar 05 20:18:26 FelipeS: put the image to the right of the parent Mar 05 20:18:44 newbq a char sequence is just an interface Mar 05 20:18:44 Mind you scrollview can only have one child Mar 05 20:18:46 then put the textview to the right of the imagiview Mar 05 20:18:54 so if you need more than a textview put it in a linearlayout Mar 05 20:19:00 with width set to match_parent Mar 05 20:19:37 FelipeS: you can do like this relative> textview (toleftofspacer) view(spacer, centerinhorizontal) imageview (torightofspacer) /relative Mar 05 20:20:18 ah. I was not aware of spacers Mar 05 20:20:28 Use "toString()" if you need a String. Mar 05 20:20:29 cool, let me give it a try Mar 05 20:20:29 spacer is just an empty view with no width or height Mar 05 20:20:40 newbQ: You should be using setTag, though. :p Mar 05 20:20:58 but if you say spacer, set in center, then you can position what left and right independently of left and right, just on the spacer Mar 05 20:21:02 lasserix: wouldn't alignParentRigt on the image view do it? Mar 05 20:21:28 tveloso: not if the textview is pushing it out of the screen Mar 05 20:21:44 but you can do both alignparentright to rightofspacer then the imageview should be fixed in place Mar 05 20:21:52 hello Mar 05 20:22:19 TacticalJoke: that makes it more complicated than it needs to be. I'll be revisiting this app when I know better though. Mar 05 20:22:38 newbQ it's not smoke and mirrors or black magic, you don't have to be afraid Mar 05 20:22:51 lasserix: if width is set to match parent instead of wrap content it cant push the iage view Mar 05 20:22:54 anyone here programs with opengles 20? Mar 05 20:23:26 lasserix: I'm not afraid. the other solution I came up with was just more simple and had the added benefit of more stupid-proofing for the user Mar 05 20:23:51 lasserix: hm, I'd like the following [TEXTVIEW][fixed with ImageView][empty space] such that if textview's contents increase then I would not have any empty space at right .. with your suggestion, is imageview being anchored right? Mar 05 20:24:23 anyone here programs with opengles 20? Mar 05 20:24:30 you could also do linearlayout textview weight = 1 imageview wrap content /linear Mar 05 20:24:37 i was wondering if there are any books about it Mar 05 20:24:46 linuxuz3r: not really Mar 05 20:24:49 i dont know where to start programming Mar 05 20:25:12 linuxuz3r: http://www.learnopengles.com/android-lesson-one-getting-started/ and ##opengles Mar 05 20:25:12 lasserix: will ogl 1.1 api work with ogl es 2 Mar 05 20:25:15 err #opengl Mar 05 20:25:28 they are different method / functions Mar 05 20:25:33 totally different Mar 05 20:25:35 what’s a good toolbar height? Mar 05 20:25:41 and do I have to supply elevation? Mar 05 20:25:42 look at the design specs Mar 05 20:25:46 cool ty Mar 05 20:25:51 tricknology: 56dp is standard small height Mar 05 20:26:02 You can use "?attr/actionBarSize". Mar 05 20:26:11 Then it'll be the < 56dp for landscape, too. Mar 05 20:26:13 I forget the size. Mar 05 20:26:25 lasserix: problem in that case is that if textview has a background. if it contains just one character, I will have a large background spanning all the way right. I would like it to tightly wrap the text. Mar 05 20:26:26 I think the contextual action bar uses "?attr/actionBarSize". Mar 05 20:26:38 that’s awesoem, thanks Tactical Mar 05 20:27:00 tricknology: i dont use elevation since there's no backward compat, instead i use this: http://pastebin.com/7eBFdnNM Mar 05 20:27:54 lasserix, hmm, the switch case would be inside the public static (factory thing) right? Mar 05 20:28:16 sure Mar 05 20:28:57 #50000000 Mar 05 20:28:58 tricknology: here's gradient start Mar 05 20:31:55 i use diverent styles for v21, that way I can set elevation for views on android 5 and a bacckground with shado for <5 Mar 05 20:31:59 thx lasserix Mar 05 20:32:52 Hi guys. I have a project to support but it was written before me. It compiles ok but on the very start it crashes with java.lang.RuntimeException: Unable to instantiate receiver com.scoreboard.receiver.GCMBroadcastReceiver: java.lang.ClassNotFoundException: Didn't find class "com.scoreboard.receiver.GCMBroadcastReceiver" on path: DexPathList... The class itself is in its place and not absent. I never faced such a problem Mar 05 20:32:52 before... any ideas why it might happen? Mar 05 20:34:07 lasserix, do you put that in all your xmls which have the actiontoolbar? Mar 05 20:34:12 I noticed layout_below Mar 05 20:34:48 or is your toolbar xml wrapped in a relative layout? Mar 05 20:35:40 it ins a relative layout Mar 05 20:35:42 but you can do Mar 05 20:35:44 include Mar 05 20:35:50 then just make toolbar_with_shadow file Mar 05 20:35:54 AlexBerdnikov, did you try clean build and rebuild? Mar 05 20:36:09 for less than v20 Mar 05 20:36:18 and toolbar for those with elevation Mar 05 20:36:24 include?.. im confused Mar 05 20:36:30 not sure I’ve used that.. Mar 05 20:36:39 AlexBerdnikov: did you put that reciever in the manifest? Mar 05 20:37:02 http://developer.android.com/training/improving-layouts/reusing-layouts.html Mar 05 20:37:11 Mar 05 20:37:38 Does https://gist.github.com/Moter8/7164dabd23925815766c look sane? Mar 05 20:37:43 Code works. Mar 05 20:37:57 in 1 line :D Mar 05 20:38:00 yes, of course. Not me, the developer who implemented the app... I've just setup it in my IDE with all the libs it requires and everything's ok except it crashes with the error I described above Mar 05 20:38:11 Moter8: sure Mar 05 20:38:31 Moter8: don't return a null dialog, just make a dialog with an easter egg ;) Mar 05 20:38:50 aaah Mar 05 20:38:54 i seee Mar 05 20:39:00 thanks so much lasserix Mar 05 20:39:03 lasserix, it shouldnt work anyway right? I read on SO that non-existing enums will get detected at compiler-time Mar 05 20:39:18 AlexBerdnikov: you have a gcm.jar in your /libs ? Mar 05 20:39:26 I have a base activity though that inflates the toolbar once (should) Mar 05 20:39:28 No I don't Mar 05 20:39:37 eg Builder(this, DOESNTEXIST) should get detected by AS Mar 05 20:39:39 Moter8: you could pass null Mar 05 20:39:49 that would work? huh Mar 05 20:39:59 lasserix, does your local pub take phone orders? Mar 05 20:40:11 tricknology: ha don't think so Mar 05 20:40:12 no, shoul I? Mar 05 20:40:18 AlexBerdnikov: probably Mar 05 20:40:19 ah you’re in cali? Mar 05 20:40:22 yeah Mar 05 20:40:27 soot, I Mar 05 20:40:45 I’ll just buy you one Mar 05 20:40:46 actully in irvine, so there are no pubs but the campus pub. Mar 05 20:41:15 ah thats a bummer. Lots in Hollywood ;-) Mar 05 20:41:22 yeah yeah Mar 05 20:41:36 haven't been up there in a while Mar 05 20:42:49 you go to UCI? Mar 05 20:43:40 took a couple classes Mar 05 20:43:47 was going to transfer before i got full time Mar 05 20:44:13 got to get some lunch later Mar 05 20:44:34 later Mar 05 20:48:46 hi, how come fragment manager is letting me add two fragments with the same tag? Mar 05 20:48:59 i had assumed there was a restriction on this Mar 05 20:50:14 i believe the newer fragment overrides the tag Mar 05 20:50:28 Ashiren: im adding dialogs and mistakenly adding two Mar 05 20:50:32 they are both there Mar 05 20:50:39 does one end up in the back stack or something? Mar 05 20:50:53 or are you saying the newer fragment causes the tag on the older one ot be cleared? Mar 05 20:51:23 so probably the older one stil exists out there somewhere but you cannot retrieve it via findFragmentByTag Mar 05 20:51:23 What was the id of the "OK" string? I keep forgetting and I cant get it to show up on google Mar 05 20:51:42 android.R.string.ok Mar 05 20:52:03 aahh thanks -.- Mar 05 20:52:32 Ashiren: hmmm, i guess ill have to hold some state in my activity until fragments are dismissed then Mar 05 21:00:13 Does anyone have an idea that why listview's OnItemClickedListen doesn't work anymore if the activity contains a edittext? The edittext is a sibling of the listview. Mar 05 21:03:16 is the edittext getting focus? Mar 05 21:03:37 I am getting NPE on setASupportActionBar Mar 05 21:03:48 findViewById(R.id.mytoolbar) is returning null Mar 05 21:04:07 I am including it in the layout but I must be doing it wrong Mar 05 21:05:06 http://pastebin.com/aeLFJ8dS Mar 05 21:06:27 Yes. The user can type in stuff anytime Mar 05 21:06:39 hey guys Mar 05 21:06:51 which swdp folders do you guys use? Mar 05 21:07:12 right now I have 360, 600 and 800, that doesn't seem right to me Mar 05 21:07:28 The strange thing is when the listview contain more than 5 items, the OnItemClickedListen is back Mar 05 21:08:58 gcm.jar in libs dir didn't help :( Mar 05 21:09:19 tricknology: android:id="@+id/afro_tool" Mar 05 21:09:22 That's not "mytoolbar". Mar 05 21:09:42 does it matter? Mar 05 21:10:55 tricknology: Why are you expecting "findViewById(R.id.mytoolbar)" to work? It's "afro_tool". Mar 05 21:11:06 oh haha i changed that Mar 05 21:11:14 btu I see the connection now Mar 05 21:12:18 hmm a couple things I’m runing into besodes the NPE is: the toolbar is underneath the other views Mar 05 21:12:29 I tried to solve this by using a LinearLayout. but that got weird Mar 05 21:12:43 I'm not sure what to use to get the behavior I want. I want to sort of get a fragment that is on top of the main activity? like a popup window? Mar 05 21:12:44 so I wrapped the etire thing in a relativelayout and used layout_below, that seemed to work Mar 05 21:13:20 is that the wayt o do it now? /> Mar 05 21:13:20 ? Mar 05 21:13:33 with viewGroup below toolbar? Mar 05 21:13:34 tricknology,make toolbar last item in layout to have it drawn ontop of all other views Mar 05 21:13:50 I try to use Mar 05 21:13:53 it's first in first drawn from layout, so last item is drawn ontop Mar 05 21:13:57 Though I guess that's not always extremely simple. Mar 05 21:14:13 in z coord or y? Mar 05 21:14:19 it's z order Mar 05 21:14:26 ah yeah i was talkign abotu .. well y and z Mar 05 21:14:36 it was on top (y dir) but under everythign else Mar 05 21:14:49 fixed now with tacticalJoke’s methos Mar 05 21:15:18 but npe still persists Mar 05 21:15:22 I guess a regular annoyance is when you want padding for everything but the Toolbar. Then it's tempting to use another ViewGroup. Mar 05 21:15:34 (Though it's not necessary.) Mar 05 21:15:52 http://pastebin.com/jRJwfxZz Mar 05 21:17:15 Is it called 'afro'? Mar 05 21:17:29 just ignore that Mar 05 21:17:41 i type weird things when I’m experimenting Mar 05 21:17:41 haha Mar 05 21:17:48 tricknology: You're saying it's returning null. Mar 05 21:17:54 Whether it's called 'afro' is central to that. Mar 05 21:18:03 maybe just use normal things and you wouldnt get confused maybe? :P Mar 05 21:18:04 TacticalJoke, yeah but think about the freedom you get over the toolbar vs actionbar :) Mar 05 21:18:07 the include is this Mar 05 21:18:13 Mar 05 21:18:35 maybe this wil help too Mar 05 21:18:48 quinnjn: Yeah. I meant "It's tempting to use a ViewGroup to set the padding for the non-Toolbar things". Mar 05 21:18:52 http://pastebin.com/y9Z46EBt Mar 05 21:18:54 Though I generally prefer a single ViewGroup container. Mar 05 21:19:42 looks great in thegraphical layout, but npe Mar 05 21:19:54 tricknology: That's astro_toolbar.xml? Mar 05 21:20:02 yes Mar 05 21:20:20 Uh, create a "huge" helper class or dont? I would need like 10 enums to get all things i need Mar 05 21:20:29 each taking 4-5 lines too Mar 05 21:20:48 Is that even worth outsourcing from an activity/fragment? Mar 05 21:21:03 depends on what else you have gooing on Mar 05 21:21:12 if your activity/fragment is already huge yeah Mar 05 21:21:17 enums are nice Mar 05 21:21:22 expceially in switch/case Mar 05 21:21:26 https://gist.github.com/Moter8/acdc29683cc28347c627 if anybody cares Mar 05 21:21:42 yeah man just make the enum Mar 05 21:21:50 or a few, if the’re distinct enough Mar 05 21:21:50 tricknology: Maybe try removing the ID from the thing-to-be-imported. Mar 05 21:21:56 in import the enums Mar 05 21:22:13 errr Mar 05 21:22:22 in or in the xml? Mar 05 21:22:24 Also, you won't be able to cast it to a Toolbar. It's gonna be a RelativeLayout. Mar 05 21:22:45 Actually, I wonder whether you'd have to look for the_astro_toolbar. Mar 05 21:23:17 once it's included, he should be able to just find it by that id Mar 05 21:23:25 the_astro one Mar 05 21:24:55 whats what I thought.. now jsut randomly tryign stuff til it works.. Mar 05 21:25:28 That's what Android programming is all about. :D Mar 05 21:30:43 Picasso doesn't use compression when disk-caching images, right? (I know it goes via OkHttp where possible.) Mar 05 21:33:02 I did something in android studio accidentally and dont know what it is Mar 05 21:33:15 I highlighted some chunk in xml layout edit. Mar 05 21:33:32 and now the highlighted region is perminently dark orange Mar 05 21:33:35 and there's a plus sign Mar 05 21:33:43 I dont know what i did, or how to undo it Mar 05 21:34:15 I musta hit some keyboard + mouse shortcut Mar 05 21:40:15 OMFG im dumb Mar 05 21:40:56 my Activity extends baseactivity, i wanted to setSupportActionBar(actionBarToolBar); nbut it was returning null Mar 05 21:40:57 ??? Mar 05 21:41:08 setSupportActionBar(actionBarToolBar); in the base activity Mar 05 21:41:14 haha Mar 05 21:41:33 ^that's^why^you^use^butterknife Mar 05 21:41:35 I was calling super.onCreate in my activity before setContentView() Mar 05 21:41:43 duh. Mar 05 21:41:55 hey guys, has anyone here worked much with ROTATION_VECTOR? I have it working well controlling a 3d camera in opengl, but I'd like to have the pitch and yaw reversed - so Y rotation affects X and vice versa Mar 05 21:41:58 any ideas? Mar 05 21:41:59 tricknology, sharing the file might just have been easier Mar 05 21:42:22 I shared the xml and the statement to load that Mar 05 21:42:26 but not the oncreate of my activity Mar 05 21:43:47 I've set up a Google Analytics tracker in onResume() in MainActivity that checks my viewpager for current tab with mViewPager.getCurrentItem(). I then send the screen name of that tab to GA. My problem is that in my 2nd Fragment I launch a SherlockDialogFragment. I can track that launch, but if I 'minimize' my app while being in that SherlockDialogFragment, when I start the app it will report both the SherlockDialogFragment and my 2nd Fragment. Any Mar 05 21:43:47 ideas? Mar 05 21:44:31 do people still use PopupWindow? or is there something better to use? Mar 05 21:45:14 it depends. popupwindow is low level and kinda pita some times; for example you can' have a popupwindow with a spinner Mar 05 21:46:05 oh. well, I knda need spinners. or time pickers. either works. Mar 05 21:47:41 newbQ, if you're trying to make a popup time picker, look at 'better pickers' Mar 05 21:48:42 dragorn: I'm trying to have a popup display a dynamic number of rows of 2 columns of time pickers. I'll look into better pickers Mar 05 21:53:01 Anyone looking into joining a drone open source project to write some Android apps? Completely volunteer work let me know @ mikecarr007@gmailDOTnet. Mar 05 21:56:38 really fun work for people that like to fly drones/uav's Mar 05 22:00:12 to display a dynamic number of rows, with 2 cols of timepickers, on a popup... I should be using a gridview? Mar 05 22:00:41 I am trying to implement this but i am kinda lost : https://github.com/ksoichiro/Android-ObservableScrollView Mar 05 22:00:49 Anyone had any experience with this ? Mar 05 22:02:20 for (int i = 0; i < 12; i++) { Mar 05 22:02:27 why doesnt AS accept this Mar 05 22:02:32 newbQ: sounds reasonable Mar 05 22:02:33 anyone have familiarity with handling device rotation in code? I'm getting this crazy behavior and I'm wondering if I'm doing something wrong / missing some explanation: http://cl.ly/text/2y1n130e3x3s (context: rotated from portrait to landscape, note the first layout's width/height oddities) Mar 05 22:02:57 hmmp: what does it tell you about not accepting it Mar 05 22:03:44 "unexpected token" under "for" Mar 05 22:04:57 hmmp: there's likely something above it that's wrong Mar 05 22:04:58 hmmp: There's nothing wrong with that line you posted, it's probably for a different line around it Mar 05 22:05:24 okay thanks i'll look into that Mar 05 22:05:31 hmmp: or, what's around it? are you in a method body, or in your class body? Mar 05 22:06:36 it's in the main class body. i declared some variables and arrays before that Mar 05 22:06:41 I got the unexpected token error too. but I pasted that line in a class, outside a method. Mar 05 22:07:17 it needs to be in a method, right? Mar 05 22:07:22 hmmp: basically, you can't (in general) "run code" in the class body. that has to be in a method of some kind. Mar 05 22:07:28 newQ: yep Mar 05 22:07:44 s/newQ/newbQ/ Mar 05 22:08:10 or in an initializer/static initializer block Mar 05 22:08:15 groxx: oh, okay. so should I put that somewhere like onCreate? Mar 05 22:08:28 what's that second line mean, yiati? Mar 05 22:08:31 hmmp: depending on what it is, either in onCreate, or in the constructor Mar 05 22:08:39 hmmp: wherever it makes sense. not sure what it's trying to do. Mar 05 22:08:57 if it doesn't require a context, or otherwise require onCreate, then do it in the constructor Mar 05 22:09:17 JesusFreke: yeah, but i really don't want to encourage initializer blocks. seems more likely to cause confusion at the beginning. Mar 05 22:09:25 groxx: yeah, agreed Mar 05 22:09:38 newbQ: regex search and replace http://www.regular-expressions.info/perl.html Mar 05 22:09:43 or if it's initializing a static field, put it in a static method, and use that method to initialize the static field Mar 05 22:10:12 newbQ: meh this links a bit better http://stackoverflow.com/questions/22836/how-do-i-perform-a-perl-substitution-on-a-string-while-keeping-the-original Mar 05 22:10:25 JesusFreke: yeah, exactly. there's always an alternative, and it's usually preferable. Mar 05 22:11:31 a view in an activity won't outlive that activity right? Mar 05 22:12:36 lasserix: depends on what you mean Mar 05 22:13:07 I have some views that need a drawable but this drawable has to be resized so i want to make a static reference to the drawable, reseting it after its been resized and then nullifying it in the parent activities onDestroy Mar 05 22:13:20 *a static reference in the activity, that the views can use Mar 05 22:13:49 should be safe, though Drawable has a .mutate() method that's probably what you're supposed to use for this Mar 05 22:14:16 the view won't be _used_ after the activity is gone. it'll stay around as long as something's referencing it though. Mar 05 22:14:49 if I declare an array like this "private int[] found = new int[12];" is it filled with nulls or something that I could check in an if clause? Mar 05 22:15:11 groxx right so if teh activity is destored the views will be too, i use getConstantState.newDrawable Mar 05 22:15:12 also, I'd just generally suggest caution around using onDestroy with anything static. the timing of when it runs can be surprising (e.g. way after you'd expect) Mar 05 22:15:21 hey guys… im download a file with this: http://paste.ofcode.org/WUzZHuuanrtKY3mPGwvXmH how can i force this file to be UTF-8? Mar 05 22:15:24 hmmp: initialize it to null, instead of initializing it with an empty array Mar 05 22:15:33 and then check for null, and initialize it properly Mar 05 22:15:52 luist you set the inputstream to utf8 as second parameter to constructor Mar 05 22:15:54 the array would be filled with 0's in that case Mar 05 22:16:20 lasserix: but i dont have a constructor Mar 05 22:16:27 hmmp: because 'int' is primitive, its default value is 0, not null. so it'll be full of zeros. Mar 05 22:17:09 okay, so I dont have to fill it with zeros in a for loop? Mar 05 22:17:56 luist fileoutputstream Mar 05 22:18:02 constructor Mar 05 22:18:20 lasserix: this?? FileOutputStream fileOutputStream = this.ctx.openFileOutput("9999feed_tmp.xml", Context.MODE_PRIVATE); Mar 05 22:18:28 yeah dont use ctx Mar 05 22:18:36 hmmp: yep. that's already handled for you. Mar 05 22:18:47 lasserix: why not? :( Mar 05 22:18:57 just do FileOutputStream(new File(ctx.getCacheDir(), "999feed_tmp.xml), "utf-8")) Mar 05 22:19:23 tho the one given to you by context may be utf8 by default Mar 05 22:19:33 hmmp: it's impossible to use an "uninitialized" value in Java, like in e.g. C. it'll always be the default (0 or null). Mar 05 22:20:04 s/value/variable/ Mar 05 22:20:08 cool Mar 05 22:20:28 lasserix: well im downloading an utf8 file and getting encode problems Mar 05 22:22:04 can anyone point me to a tutorial on adding native libraryes to a AS project? Everything i find is for older versions of AS Mar 05 22:22:05 BufferedReader input = new BufferedReader( Mar 05 22:22:05 new InputStreamReader(urlConn.getInputStream(), "UTF-8")); Mar 05 22:22:06 luist Mar 05 22:22:31 then write it down? Mar 05 22:23:26 but i dont use BufferedReader nor InputStreamReader :T Mar 05 22:23:32 yeah you can Mar 05 22:23:39 you have some aversion towards them? Mar 05 22:23:47 he fears the unknown Mar 05 22:23:48 lasserix: so ill have to rewrite the whole code Mar 05 22:23:51 no Mar 05 22:23:52 just one secon Mar 05 22:23:58 the whoooooooole code Mar 05 22:24:00 1 line Mar 05 22:24:04 lines 15-18 Mar 05 22:24:30 better call your wife you'll probably be stuck in the office all night! Mar 05 22:24:34 :) Mar 05 22:24:52 but hey you got us! Mar 05 22:24:52 that might not be too bad Mar 05 22:25:03 i do enjoy my office Mar 05 22:25:09 wine bar is on the other side of the wall Mar 05 22:25:12 groxx: how would you recomend i handle this situation? Mar 05 22:25:14 nice Mar 05 22:25:30 yeah our "hr" just stocked the fridge with like 4 different cases of beer Mar 05 22:26:10 i just unpacked a case of wine last week Mar 05 22:26:17 its fully stocked Mar 05 22:26:20 hmm Mar 05 22:26:22 lasserix: my girlfriend maybe Mar 05 22:26:24 2:30 is a bit early Mar 05 22:26:34 luist it should take you all of 10 minutes Mar 05 22:26:38 I havent had a drink 2 years Mar 05 22:26:46 lasserix: probably just store the resized image in the view. it'll get garbage-collected with everything else. but I'm not quite sure what you're trying to do, so dunno if that's appropriate. Mar 05 22:26:56 lasserix: take YOU all of 10 minutes… maybe 60 for me Mar 05 22:27:04 groxx except i have n views that all use the same thing (in a view pager) Mar 05 22:27:07 lasserix: im not very experienced with this Mar 05 22:27:30 bang your head against it, it will work Mar 05 22:27:44 lol Mar 05 22:27:53 4srs Mar 05 22:28:01 everything ends up working in the end Mar 05 22:28:07 given enough time and resources Mar 05 22:28:07 lol Mar 05 22:28:11 luist: while ( bufferedReader.readLine() != null or whatever ) { swap line 18 and you're done. Mar 05 22:28:45 lasserix: if there's always at least one in view, if any, you might be able to get away with a static weak reference. then it'll be reused if available. otherwise, this is probably a place for an explicit cache: hold onto the value in the activity, explicitly give it to the things in the viewpager / have them request the value from the activity. Mar 05 22:28:45 im confused. do floating action buttons not work in linear layouts? Mar 05 22:28:48 only relative? Mar 05 22:28:55 nah they work everywhere Mar 05 22:29:07 the thing that makes them floating has nothing to do with the layout they're sitting in Mar 05 22:29:16 groxx: why can't i just cheat and make a static reference and clear it in ondestroy? Mar 05 22:29:35 hm Mar 05 22:29:44 err do you see any problems with that? Mar 05 22:29:48 * i cant Mar 05 22:29:49 Is it impossible to code an android without an ide Mar 05 22:29:58 true Mar 05 22:29:58 YungDaVinci: nah but why? Mar 05 22:30:05 "impossible" Mar 05 22:30:08 "impractical" Mar 05 22:30:11 just curious Mar 05 22:30:13 Not impossible. Hard though. Mar 05 22:30:14 its 2015 Mar 05 22:30:18 get with it Mar 05 22:30:28 Hey guys I am going to compute these equations without a calculator! Mar 05 22:30:32 lasserix: you might be able to, depends on other details of your application. it's more that onDestroy runs surprisingly late in some situations, and it runs after the 'next' activity appears and resumes, so it's easy to get into "start new activity" -> "set static var" -> "old activity destroys, deletes var" -> "crash" Mar 05 22:30:36 yay terminal! Mar 05 22:30:38 because long division is fun Mar 05 22:31:12 I tried doing some simple POJOs with sublime once cause I didn't have a IDE installed and I had some spare time. Ended up missing a lot of stuff that IDEs generate for you, package, imports, etc. Mar 05 22:31:29 code completion.. Mar 05 22:31:34 ^ Mar 05 22:31:34 groxx ahh i see so i just have to check that its not null before using it? Mar 05 22:31:37 its the little things, you know Mar 05 22:31:47 lasserix: ill give it a try… thanks :) Mar 05 22:32:01 its odd i think in the library im using they only work in relative layouts :( Mar 05 22:32:10 kinda screws up some of my layouts a little bit Mar 05 22:32:14 dont use a library to make fab buttons, making them is too simple Mar 05 22:32:28 Odaym: how have you been making them Mar 05 22:32:36 lasserix: and/or just be careful and make sure it works. generally I prefer to make things like that crash if they occur, because otherwise you don't know what code is "alive" and what's not doing anything and is just adding confusion. Mar 05 22:32:39 elevation = "10dp" on the button Mar 05 22:32:39 i couldnt find a really simple way Mar 05 22:32:43 you have a fab button now Mar 05 22:32:55 and it's official :) http://www.droidcon.ca/speakers/36 Mar 05 22:33:08 looking forward to meeting JakeWharton :) Mar 05 22:33:13 Odaym: thats it? Mar 05 22:33:26 DadFoundMy, that gives the button its shadow Mar 05 22:33:30 and it seems as if floating Mar 05 22:33:47 Odaym: and how do you set so its on top of other elements Mar 05 22:33:49 MikeWallaceDev "With the advent of Materiel design" ... you giving us a ssneak peak at i/o 2015 :P Mar 05 22:33:50 to make it round, you apply a background on the button, a drawable background (written in XML) that has a shape element with radius 30dp Mar 05 22:34:04 you don't, the shadow gives the illusion that it's ontop of the other elements Mar 05 22:34:08 g00s, I'm in the know ;) Mar 05 22:34:30 hey Mike can you meet him for me too Mar 05 22:35:00 I will pass an extra with your intent to meet him Mar 05 22:35:03 just grab and use Mar 05 22:35:06 hehe Mar 05 22:35:23 is this going to be recorded somewhere? Mar 05 22:35:53 yes, they said it will be recorded and on the net (YouTube?) Mar 05 22:35:59 groxx: alright ill just put in the app class then Mar 05 22:36:09 good good Mar 05 22:36:22 Odaym, which is good, because you can't see everything when you are at the event. Mar 05 22:36:33 And as a speaker, I'll miss even more :-/ Mar 05 22:37:04 is there a droidcon in US or they just wait for the next IO? Mar 05 22:37:12 There are going to be some pretty cool speakers there. :) I'm looking forward to it Mar 05 22:37:19 Boston I believe Mar 05 22:37:25 ah right yea Mar 05 22:37:50 I'd say DroidCon has better content than I/O, but i/o is the biggest event Mar 05 22:37:53 is this privately hosted? Mar 05 22:38:01 who hosts these? cant I do it here in my country? Mar 05 22:38:32 oh I guess droidcon does it..lol Mar 05 22:38:34 Hmm, I don't really know. But I'm sure they won't say no if you want to host one Mar 05 22:38:39 got to learn rx and write a paper Mar 05 22:38:45 yea there's a company behind it Mar 05 22:40:34 Odaym: im having trouble using elevation to get it on top of a list. does the list have to fill_parent? Mar 05 22:41:30 nah what do you mean on top? Mar 05 22:41:39 button at the top of the page and below it the list? Mar 05 22:41:50 that's different from the visual effect of "on top of other elements" Mar 05 22:42:01 i want the button to be floating over the elements in the list Mar 05 22:42:20 then elevation does that, and you need API 20 to be able to do that Mar 05 22:42:20 is tehre a way to use use textpaint to do Hello world? Mar 05 22:42:22 20+ Mar 05 22:42:27 sorry 21 Mar 05 22:42:51 else you get a warning over that element, saying that it wont work with etc... Mar 05 22:47:22 lasserix: that's probably a span more than anything. though the simplest approach is probably to take that exact text, and Html.fromHtml() it. Mar 05 22:47:47 groxx i am using canvas / textpaint Mar 05 22:49:06 it looks like I need to inflate a layout to the PopupWindow, but then I need to set an adapter to a gridview in that inflated layout... that's possible to do, right? Mar 05 22:49:41 lasserix: then afaik two styles of text == two separate paints. or you can use a Layout (text layout, not view), give it spanned text, and have it draw for you. Mar 05 22:49:52 only with the latest technologies from the LHC Mar 05 22:50:10 groxx this is already in a custom view, damn. Mar 05 22:50:31 lasserix: eh. so make a second paint, and draw it after the first. that's pretty normal. Mar 05 22:50:43 man I want to do something and I saw someone else doing like it and now I can't think of a new way to do it Mar 05 22:50:44 lol Mar 05 22:50:44 yeah yeah just means i have to do a bunch more calculations Mar 05 22:50:46 otherwise Layout is the right way to do text Mar 05 22:51:06 e.g. http://developer.android.com/reference/android/text/StaticLayout.html Mar 05 22:51:19 groxx its already in a custom view where i have to draw everything anyways Mar 05 22:52:03 lasserix: yeah, but Layout is "the" way to draw text correctly. it'll keep word spacing between different styles (otherwise you'll have to do that yourself), will handle wrapping to a new line, line spacing, etc Mar 05 22:53:00 but its unknown to me and i fear it the code might tear my hands off! Mar 05 22:53:39 lol Mar 05 22:54:18 I'd put "correct text drawing" up there with "safe crypto" as "ludicrously difficult areas of programming". though at least you don't have to worry about side-channel attacks with text drawing. Mar 05 22:54:59 man this primaryColor from the theme is confusing me Mar 05 22:55:28 if I use it, the text in the actionbar takes after it, great. but then things you enter into edittexts that are created in the activity having that theme also take after it Mar 05 22:55:37 also, before you assume your code works, realize that different devices draw fonts differently. you'll have wonky padding on some devices unless you _really_ know what you're doing. and then people with rooted phones will change their fonts and you're screwed all over again. Mar 05 22:55:56 is there no property that is solely for the text color of the actionbar? I dont want to go around every activity and setting the color of the text in the actionbar Mar 05 22:56:03 i just use textbounds and generally it works Mar 05 22:56:10 do you know any links of using static layout? Mar 05 22:56:21 whats the best way to get a ui element to the bottom of the screen in a relativel ayout? Mar 05 22:56:41 alignParentBottom? Mar 05 22:56:43 lasserix: nope. never really looked for it, tbh - just read some of the AOSP source. Mar 05 22:56:44 http://stackoverflow.com/questions/5861661/actionbar-text-color Mar 05 23:04:10 I have a question, my method is going through all the metadata but the metadata for the gps latitude and longitude appear to be nonexistent. Line 115 should be followed by a few more tags with GPS info, like "[GPS] GPS Latitude = 54"59'22.800064" for example, right? http://pastebin.com/icvSPMUz (line 115 is the only GPS info I can find) Mar 05 23:08:02 from where is that data coming.. Mar 05 23:08:19 its from a picture i take using the camera on my phone. I am using the phone as a debugger. Mar 05 23:08:35 dont think anybody knows what that blob comes with Mar 05 23:08:48 depends the device what it stuffs in it Mar 05 23:08:55 tough task brah Mar 05 23:09:41 anyone know how i would convert Observable to Observable by stripping out the first's type and only passing on onComplete / onError ? Mar 05 23:09:52 Rx question ;) Mar 05 23:10:24 I was just wondering why the GPS information was stripped since I need it to be displayed. If it isn't stored inside the jpeg then i am kind out of luck when it comes to debugging Mar 05 23:10:26 ? Mar 05 23:12:09 gn Mar 05 23:12:57 lasserix ah, maybe filter(false) Mar 05 23:13:30 How many people run below 3.0? Mar 05 23:13:51 only those who are waiting for death Mar 05 23:15:12 So what's the lowest version I should support? Mar 05 23:15:19 14 or 16 Mar 05 23:15:53 8 Mar 05 23:15:57 3 Mar 05 23:16:03 gingerbread hard-core Mar 05 23:16:13 android 3 or apk 3? Mar 05 23:16:15 no seriously there's still a lot of gingerbread devices Mar 05 23:16:17 -1! Mar 05 23:18:17 you just need to buy the latest model, obviously Mar 05 23:23:18 this dashboard is pretty useful for targeting device APIs and screen specs https://developer.android.com/about/dashboards/index.html Mar 05 23:23:30 https://developer.android.com/about/dashboards/index.html Mar 05 23:23:35 i still try to support gingerbread to hit that 6.9% Mar 05 23:23:43 just keep in mind, gingerbread right now still has 2x the marketshare of lollipop... Mar 05 23:24:02 lollipop is up to 3% now? that's an improvement Mar 05 23:24:05 and my current phone, a droid4, is only 16 Mar 05 23:28:33 Samsung are taking ages to release a Lollipop update for the S5 :( Mar 05 23:30:20 lasserix Observable.ignoreElements() :D Mar 05 23:30:31 .skip(all the things) Mar 05 23:35:33 hey guys this is my second attempt asking can someone explain encoding PCM to AAC to me It's really unclear Mar 05 23:35:34 haha http://i.imgur.com/ag9Z8Fn.jpg Mar 05 23:36:56 Spend a day with the sorority they said, youll get laid more than a sheet they said! Mar 05 23:38:36 nursing students Mar 05 23:42:21 ginhinio: not sure what you're getting stuck on but PCM is basically raw encoding...a WAV file is (usually) just PCM with a WAV header describing it Mar 05 23:43:10 myke: yeah I already have the PCM in a byte[] but I now want to encode it to AAC Mar 05 23:45:01 ginhinio: i haven't done that but searching android encode aac turns up a lot of stuff Mar 05 23:45:09 it looks like maybe you can do it with just stock sdk Mar 05 23:45:15 but there's also a project for it Mar 05 23:45:25 https://github.com/timsu/android-aac-enc Mar 05 23:45:31 i haven't used that Mar 05 23:45:38 yeah I am trying to do it with stock sdk but I don't understand a piece of the code Mar 05 23:45:53 it's not entirely clear you can Mar 05 23:46:11 but again i haven't messed with sound at all (on android anyway) Mar 05 23:46:21 the project i linked mentions ffmpeg as its main competitor Mar 05 23:46:51 and says it extracted an encoder from android, which implies you normally can't just pass arbitrary raw files to encode Mar 05 23:46:55 but i'm a noob Mar 05 23:47:08 http://pastebin.com/BiGeVA7A Mar 05 23:47:45 line 5 and 6 make no sense to me Mar 05 23:48:02 why would you get buffers from a encoder you haven't fed with samples yet Mar 05 23:48:09 are you doing a loop that does a byte at a time? Mar 05 23:48:15 that's almost certainly wrong Mar 05 23:48:39 ginhinio, you need an external library for PCM to anotherformat conversion Mar 05 23:48:40 this is real-time audio encoding what I'm trying to achieve btw Mar 05 23:48:49 ah ok Mar 05 23:48:53 yikes well good luck with that Mar 05 23:49:02 was talking earlier to someone trying to do same on a raspi...not so much Mar 05 23:49:37 adq: why not just use mediaCodec tho Mar 05 23:49:39 in real-time performances will matter, you better do that with jni Mar 05 23:49:55 i'm not aware of mediaCodec, except for playing/decoding Mar 05 23:49:59 let me look Mar 05 23:50:25 nice Mar 05 23:50:28 http://developer.android.com/reference/android/media/MediaCodec.html Mar 05 23:51:35 yeah I dont get the lines where it says codec.getInputBuffers() tho like why would you get that from a encoder you haven't fed samples yet Mar 05 23:51:42 makes no sense to me Mar 05 23:52:41 http://developer.android.com/reference/android/media/MediaCodec.html#getInputBuffer(int) Mar 05 23:54:50 adq: I'm not too sure what they mean xD did I mention I'm 16 and my native laneauge is not english :P Mar 05 23:56:07 see it as an extrabuffer, but the getinputbuffer is used to retrieve an array which will be filled with your pcm data, and then put in queue via queueInputBuffer Mar 05 23:56:57 ah I see Mar 05 23:57:14 ByteBuffer inputBuffer << this type is not like a conventional array Mar 05 23:57:22 so you can read, seek, write in it Mar 05 23:57:48 that what you get from getinputbuffer, it's like you're asking to access to the input blocks Mar 05 23:58:02 with the bytebuffer you can then write in it, directly Mar 05 23:58:14 ah I think I understand it a bit now Mar 05 23:58:41 codec.dequeueInputBuffer(timeoutUs); what is the TimoutUs variable? Mar 05 23:58:54 what does it mean Mar 05 23:59:08 that method blocks yea? Mar 05 23:59:10 This method will return immediately if timeoutUs == 0, wait indefinitely for the availability of an input buffer if timeoutUs < 0 or wait up to "timeoutUs" microseconds if timeoutUs > 0 Mar 05 23:59:13 yeah it's for blocking Mar 05 23:59:33 like consumer vs producer model, producer can wait to produce if not entirely consumed per example Mar 05 23:59:50 and there's probably async & sync workflows for processing audio Mar 05 23:59:53 like every other model Mar 06 00:00:35 i've extensively used AudioTrack in real-time (so raw PCM), i did not know about this mediaCodec, interesting thx ginhinio :) Mar 06 00:00:59 encoding AAC realtime sounds pretty cpu-intensive Mar 06 00:01:00 adq: no thank you :D I think I get it now :D Mar 06 00:01:05 i thought ffmpeg or like was the way to encode/decode after that, since many codecs where not available before Mar 06 00:01:10 were* Mar 06 00:01:22 adq: check the readme for that project i linked Mar 06 00:01:29 it is Mar 06 00:01:59 bookmarked thx Mar 06 00:06:30 hy guys anyone here ever done work with iOS? Mar 06 00:08:33 uh Mar 06 00:08:59 are you sure that android-dev was the best place to ask about ios Mar 06 00:10:28 there's an #iosdev Mar 06 00:11:04 i wanted to know if there is way to use https://github.com/lorensiuswlt/NewQuickAction in my own project which file to import, like ppl import the .h, .m to there iOS project Mar 06 00:11:34 i'm switching from iOS to android and picking up java this week Mar 06 00:11:51 still a bit lost about the android project structure Mar 06 00:13:29 i am an idiot, i had geotagging turned off so that is why i couldnt get my gps info Mar 06 00:13:47 gg Mar 06 00:13:48 they hid the option really well inside the camera application Mar 06 00:15:22 mittens ! Mar 06 00:15:38 I'm attempting to inflate a custom view, and my attempt to extract attributes is blowing up with IndexedArrayOutOfBoundsException. I've tried debugging through the "library code", but the source the IDE shows doesn't quite match what's actually happening. Any suggestions? Mar 06 00:17:21 It's almost like the resources/meta-data are being improperly compiled or something. The index it's failing with is -100270062 for 476 byte array. Mar 06 00:19:43 dcorbin_: we'd probably need source code for this one. superficially I'd say you're probably just misusing it, e.g. using a color instead of the resource that identifies the color. Mar 06 00:19:51 (or vise versa) Mar 06 00:25:25 g00s: My geotagging is still disabled even though it is turned on in the camera app. Mar 06 00:26:03 camera api on android is a world of hurt Mar 06 00:26:11 how can I cache the files downloaded by the Android Studio SDK manager (the thing run by studio.sh)? Mar 06 00:26:36 ciupicri: is it not already cached? Mar 06 00:26:55 if it's cached where is it cached? Mar 06 00:26:56 I mean, that's kinda its purpose, to download them to a central location so tools can use them Mar 06 00:29:50 so what directory keeps the downloaded files, so if I choose to reinstall Android Studio, I don't have to redownload everything? Mar 06 00:30:00 g00s: i am going to use location manager and just grab the coordinates from there instead of exif since the picture will be taken at the gps location. I am done trying to figure out weird android issues Mar 06 00:32:21 ciupicri: not sure by default. I've always put it some abnormal place because I prefer to control stuff like that. Mar 06 00:33:12 ciupicri: i think you can see it at the top of the SDK manager though Mar 06 00:33:45 ciupicri: ah, in android studio, it's in the project structure dialog (cmd-; on a mac). Mar 06 00:37:34 groxx: maybe I wasn't clear enough. I'm installing Android Studio right now on Linux by running studio.sh. That launches some kind of wizard which will download some packages, right? I would like to keep those packages in a cache, so that if I reinstall Android Studio a bit later, I don't have to redownload everything. Mar 06 00:38:30 ciupicri: ah. there are a few things that could be. if it's downloading gradle stuff, afaik that's in ~/.m2/ and ~/.gradle/ and you can probably change that after the fact and tweak Studio settings. Mar 06 00:38:49 ok Mar 06 00:38:52 ciupicri: if it's android SDK stuff, it'll be visible at the top of the SDK manager, and you can move it + change settings as well. Mar 06 00:39:23 previously at least the SDK stuff would ask you for a location. I don't remember the gradle stuff asking though. Mar 06 00:40:12 ls: cannot access /home/ciupicri/.m2: No such file or directory Mar 06 00:40:12 ls: cannot access /home/ciupicri/.gradle: No such file or directory Mar 06 00:40:21 so it looks like some things have changed Mar 06 00:40:29 has the install completed? Mar 06 00:40:30 the sdk is the bulk of big files Mar 06 00:40:53 i usually have a separate sdk install that AS picks up Mar 06 00:41:01 I think so. I'm at the "Welcome to Android Studio" stage. Mar 06 00:41:09 me too Mar 06 00:41:20 afaik ~/.m2 is the maven cache (you probably won't have it until you have downloaded something maveny), and ~/.gradle probably won't exist until you've run a gradle build / ./gradlew Mar 06 00:41:34 since they're essentially cache folders Mar 06 00:41:48 I have downloaded both Android Studio and the SDK. I extracted the SDK then run studio.sh and pointed to the SDK. Mar 06 00:41:54 does gradlew use ~/.gradle ? Mar 06 00:42:09 myke: for me at least, yeah Mar 06 00:42:19 I suspect there's a .gradlerc file somewhere or something that's guiding that though Mar 06 00:42:20 i thought gradlew used a per-project cche Mar 06 00:42:24 ok Mar 06 00:42:45 whenever i download samples they all feel the need to get all the same packages again Mar 06 00:42:55 so i didn't think they were centralized by default Mar 06 00:43:30 groxx: well, the attributes I have, and for whichi it fails are boolean and String. Kind of hard to screw that up, I'd think. I'll try to put together gist... Mar 06 00:43:45 myke: do the samples have "compile 'blah:blah:1.+'" ? Mar 06 00:43:58 the "Android SDK Manager - Settings" seems to have a cache Mar 06 00:44:20 myke: that'll force a network request to look for a more recent version, which gives it fits unless you go into settings and enable offline mode (not sure what the equivalent is for gradlew) Mar 06 00:44:26 "Manifest Cache" which currently points to ~/.android/cache Mar 06 00:45:52 groxx: i usually just ./gradlew installDebug Mar 06 00:47:59 myke: I'd assume gradlew doesn't do a per-app download, since there's really no need if you're using maven. there's no scripting-scope oddities like you have to battle with for ruby/python/etc. Mar 06 01:06:48 groxx: Here's a gist that I think shows all the relavent parts. https://gist.github.com/anonymous/3ff2c99105767b0a4d88 Mar 06 01:11:10 errr, i was messign with my styles and now all my text is black.. Mar 06 01:12:39 aah Mar 06 01:12:51 @style/Theme.appcompat.noactionbar Mar 06 01:13:06 I was using Theme.AppCompat.Light.NoActionbar Mar 06 01:13:24 heh android studio will display hex colors Mar 06 01:13:27 thats kinda neat Mar 06 01:13:39 hi, all! i'm using the following tutorial to implement AccountManager to access a third-party API. in the tutorial's onActivityResult(...), it refers to a constant called RESULT_CANCELED. to what does that refer? i assume its value is 0 or -1 or something, but where exactly is it defined? Mar 06 01:13:54 tutorial in question: [ http://www.androiddesignpatterns.com/2013/01/google-play-services-setup.html ] Mar 06 01:15:24 same as RESULT_OK Mar 06 01:15:31 are you doing this onActivityResult() Mar 06 01:15:33 ? Mar 06 01:15:59 that comes from activity Mar 06 01:15:59 yes, it refers to int resultCode Mar 06 01:16:02 it’s inherited Mar 06 01:16:27 ahh it's because i'm doing this in a fragment, and the tutorial is in an activity. got it. thank you! Mar 06 01:16:37 aah, jsut get it from context then Mar 06 01:16:42 context.RESULT_CANCELLED Mar 06 01:16:43 yup :) thx! Mar 06 01:16:51 yeh no Mar 06 01:16:54 prob Mar 06 01:21:39 harrison ford just crashed his plane Mar 06 01:25:14 does gradle re-use ~/.m2? Mar 06 01:25:38 re-use ? Mar 06 01:25:56 yes, if you have maven and gradle running, do they share the local cache Mar 06 01:26:06 only if you add localRepo() Mar 06 01:26:20 so basically no Mar 06 01:28:10 actually its mavenLocal() Mar 06 01:30:03 the gradle samples still at 0.14.4 are still missing a swath of stuff from 0.13 ones. not sure what happened there Mar 06 01:42:41 Shouldnt android beable to resolve drawables in a custom class? Mar 06 01:44:02 As long as that class has a connection to a context it should be fine Mar 06 01:48:11 dcorbin_: sorry, have been afk. afaik, you have to use e.g. R.styleable.PlayerName_AttributeName in those `typedArray.getString()` calls. it's an index into the R.styleable.PlayerName array Mar 06 01:48:47 Yoooo Mar 06 01:49:28 Is there a way to have the action bar menu item icons change whether they are placed on the top bar or on the splitview bar? I want my split view bar to be a different color, so the same color icons dont really make sense Mar 06 01:49:48 dcorbin_: see also: http://developer.android.com/training/custom-views/create-view.html#applyattr Mar 06 01:49:54 Rather, if there is a way to see if the view is split, I could manually assign the correct icon; Mar 06 01:51:36 explodes: last I saw, no. I haven't looked too far into it, but the general feeling I got was that there was no way to know if it was split (aside from e.g. comparing your view rect with the display, which isn't a guarantee either) Mar 06 01:51:52 super uncool mannnn Mar 06 01:51:58 I'll keep digging Mar 06 01:52:11 Alright! Rendering Problems: Exception raised during rendering: Java heap space Mar 06 01:52:21 if nothing else, you could probably dive into the view hierarchy, and figure it out Mar 06 01:57:13 explodes no Mar 06 02:01:52 Hi guys, I received an ADT-1 a long time ago, i know its a little outdated but i never received the USB debugging cable and am desperate to get one. Anyone know where i could find one, if not does anyone have one they want to sell? Mar 06 02:03:05 If a method in the android source code is decorate with /** @hide */ is it impossible to call it? Mar 06 02:03:09 (w/o reflection) Mar 06 02:03:18 sitedude: developer.android.com/tv/adt-1/index.html#adb-tcp ? Mar 06 02:03:33 explodes: yup. as far as your compiler is aware, it doesn't exist. Mar 06 02:03:43 :| Mar 06 02:03:46 sitedude, not that I know anything directly about it, but it seems to just be a USB cable with a power cable in it too Mar 06 02:03:49 @hide methods aren't in the SDK packages that you build against Mar 06 02:04:06 sitedude, so i imagine if you match the polarity and voltage of the power connector you can just use a generic usb cable Mar 06 02:04:08 ya its some funky proprietary one Mar 06 02:04:14 hmm Mar 06 02:04:17 that might work Mar 06 02:04:18 im getting a CursorWindowAllocationException, but it is reporting only 2 open cursors, and ideas why this might be happening? Mar 06 02:04:28 cant root it since wifi drivers are not enabled at startup Mar 06 02:04:30 I hate funky proprietary cables Mar 06 02:04:34 yeah :/ Mar 06 02:04:38 sitedude: did you try the tcp connection? Mar 06 02:05:01 groxx, just says it's usb + barrel connector, sounds to me like a squid cable more than something really custom Mar 06 02:05:06 again,not that I know jack about it really Mar 06 02:05:26 yeah. I could check with the one at my home, but I'm at work at the moment Mar 06 02:06:10 ya groxx tried tcpip but i guess since wifi isnt enabled at startup you cant root without the debugging cable :( Mar 06 02:06:33 thanks groxx :) Mar 06 02:07:22 hm. that does make it complicated... trying to set up a custom rom or something? Mar 06 02:08:06 ya Mar 06 02:08:17 yeah dunno. looks like it may be more custom. Mar 06 02:08:22 wish they posted the specs of the cable Mar 06 02:08:23 heh Mar 06 02:08:27 would make it alot easier Mar 06 02:08:36 sitedude: since I haven't poked at it: is it a USB port that they also supply power through or something? Mar 06 02:09:35 yeah i guess one end goes to power supply, other 2 cords goto pc / adt=1 Mar 06 02:09:38 adt-1 Mar 06 02:11:08 sitedude: hm. you can get Y-shaped USB cords for higher power external things like external disk drives. you could probably do that -> micro-USB converter. or maybe just plug it into a powered USB hub, if you have one. Mar 06 02:11:22 not a bad idea Mar 06 02:11:25 worth a shot :D Mar 06 02:12:12 ha! Mar 06 02:12:14 http://www.ign.com/articles/2015/03/04/gdc-2015-hands-on-with-nvidias-shield-console Mar 06 02:13:11 sitedude, is that the same port as the power input? Mar 06 02:13:20 sitedude, look at the power brick and see what the power output is Mar 06 02:14:01 http://www.buymobius.com/products/usb-otg-power-y-cable?utm_medium=cpc&utm_source=googlepla Mar 06 02:14:06 wonder if that would work? Mar 06 02:14:18 not near it but im thinking its +5v Mar 06 02:14:49 sitedude, that's the question, is it high-draw 5v or something wacky and they're doing something crazy splitting the power off from the laptop and injecting new power Mar 06 02:15:21 not sure :( Mar 06 02:16:33 https://www.google.com/shopping/product/3998307350227314808?sclient=psy-ab&biw=1366&bih=667&q=usb+y+cable+power&oq=usb+y+cable+power&pbx=1&bav=on.2,or.r_cp.&bvm=bv.87611401,d.eXY&tch=1&ech=1&psi=JA35VKjiGIH-gwTOs4SABg.1425607963056.5&prds=paur:ClkAsKraX8DykjpOx8GVbixlNEPswjn4DNVB_HhxGehNbKO-tfAFScjEMFTBt_hqC588QL_3Q32JiaJjj9s5yAyhYJbqo8bA1VcMhyUJsDgKXFiqdGwRO4L80RIZAFPVH72z8huUlzrOINnVpOnzQwlR6IUVZA&sa=X&ei=iQ35VOHHNobUggSN3Y Mar 06 02:16:39 oops sry, didnt realize how long that was :/ Mar 06 02:16:41 lol Mar 06 02:16:50 that cable looks more like it, built for external hd's Mar 06 02:18:30 Considering I'm already using reflection hacks, what is a good way to "findViewById(com.android.internal.R.id.foo)" Mar 06 02:18:44 :I Haha this code is a mess, but it's just an experiment. Mar 06 02:19:27 sitedude: wrong micro-USB format, but yeah, that's what I was thinking of Mar 06 02:19:59 explodes: butterknife? Mar 06 02:20:04 plug that into computer + a reasonably powerful USB charger and it may work. I'd probably try to match the output amperage though (I assume it's still 5v, but it should say on the ADT wall-wart) Mar 06 02:20:24 the problem is "class com.android.internal.R" doesn't exist" Mar 06 02:20:37 Error:(74, 62) error: package com.android.internal.R does not exist Mar 06 02:20:39 explodes: you can find resources by name Mar 06 02:20:50 resource IDs* Mar 06 02:21:19 groxx: are you talking about something different that "findViewById" ? Mar 06 02:22:05 explodes: for the com.android.internal.R.id.foo part. you can get the ID value of that name, and then use it in findViewById. Mar 06 02:22:29 groxx: is that value a stable and permanent value? Mar 06 02:23:57 explodes: I wouldn't expect it to be. it's an R value, I assume it's generated to some degree. Mar 06 02:24:23 it'll be stable per device, but I wouldn't hard-code the value you find on one and expect it to work on others. Mar 06 02:24:30 device + OS version, that is Mar 06 02:27:09 yea, ok. thanks Mar 06 02:27:22 I found a better solution anyways, I was going ham trying to hack the things Mar 06 02:31:39 "better" solution is very rough here Mar 06 02:33:14 this squirrel is like an android dev trying to put a custom parcelable into a bundle http://i.imgur.com/9hRi2jN.gifv Mar 06 02:36:56 lol Mar 06 02:46:28 yep Mar 06 02:46:55 hello guys i am new to android dev. I am following tutorial and on menu's for actionbar adding-buttons section. it asks for us to add a xml and use youapp name, so i tried a few combos MyFirstApp, myfirstapp, and keep getting, this namespace is not bound. on actionbar and on xmlns says something like unexpected text found in layout. what do i do here Mar 06 02:47:16 this is the building your first app tutorial Mar 06 02:47:33 aphixe: not sure exactly what you're doing but try leaving that off Mar 06 02:47:52 you don't need to put a name in the layout, the layout file's name is enough Mar 06 02:48:03 i could link you to the tutorial page Mar 06 02:48:17 http://developer.android.com/training/basics/actionbar/adding-buttons.html Mar 06 02:48:44 i am using API 15 as min Mar 06 02:49:00 aphixe: pastebin your actual layout Mar 06 02:49:19 aphixe: did you add the xmlns:yourapp="etc" to the top first? and the use "yourapp:showAsAction" in the item attribute? Mar 06 02:49:49 http://pastebin.com/y2VNs1n0 Mar 06 02:50:10 i changed it to that as well same error Mar 06 02:50:26 aphixe: that xml is broken Mar 06 02:50:34 oh yea? Mar 06 02:50:52 ah, yeah, I see it too. remove the ">" from after the first xmlns line. Mar 06 02:50:52 take out the extra > on line 2 Mar 06 02:50:54 oh i think i see it Mar 06 02:50:58 yep Mar 06 02:51:13 was just about to say Mar 06 02:51:47 says still about the bounding thing by appbar Mar 06 02:51:54 i mean show as action Mar 06 02:52:08 myFirstApp has to be in AndroidManifest.xml? Mar 06 02:52:12 not sure about menus... Mar 06 02:52:16 oh ok Mar 06 02:52:44 that still gets me, i forget to declare my new activity in the manifest and can't figure out why my intents won't start it Mar 06 02:52:52 i will have to come back later and work on this Mar 06 02:52:56 total noob mistkae Mar 06 02:56:00 should I worry about getting a local version of gradle or can I use the android studio version for most things? Mar 06 02:59:00 If I call a method from within a class that is on another thread Mar 06 02:59:11 In order to get back to the main thread, I have to use a handler right? **** ENDING LOGGING AT Fri Mar 06 02:59:58 2015