**** BEGIN LOGGING AT Wed Jun 25 02:59:58 2014 Jun 25 03:01:13 therue you've exceeded your lolcount for the day Jun 25 03:03:30 T_T Jun 25 03:04:02 you can learn both you know ;) Jun 25 03:04:20 one of the more lucrative areas of mobile dev is enterprise - i think ios is doing pretty well there Jun 25 03:04:42 forget about consumer facing crap :) Jun 25 03:16:25 is it possible to have a LinearLayout which is larger than it's parent? Everything I find online just ends with 'use a ScrollView as a container' Jun 25 03:17:25 kevc: what do you think it would mean to have it be larger than its parent? Jun 25 03:18:11 Leeds: that it would display the elements inside clipped to the parent region Jun 25 03:18:32 so it just wouldn't display some of your UI? Jun 25 03:18:38 yes Jun 25 03:19:16 that doesn't sound like a good plan to me Jun 25 03:20:14 the scrollview is the correct way to go, my issue is that I have some code I want to repair, and changing to a scrollview would be a huge refactor Jun 25 03:20:46 and it seems that the clipped approach sort of worked, but can't tell if it's supposed to, or just fluke Jun 25 03:29:41 hello! Jun 25 03:30:14 anyone using sonar for code quality scanning with android ? Jun 25 03:30:27 does it work fine or gives some strange results Jun 25 04:08:02 Hey so I'm having a bit of a problem and thought I'd ask if anyone knows a solution Jun 25 04:08:16 no one knows, sorry :( Jun 25 04:08:32 Sorry accidentally hit enter before I finished explaining Jun 25 04:10:12 So I have a SimpleCursorAdapter on my list view that I use to display my sql table now the difficulty is I want to sort it in a way that is not by default supported by sqlite. I need to sort my strings as such "1,2,3a,3b,3c,4ab,4b,4df,5,5a,etc" now I don't know how to sort SQLite data with a custom sort function Jun 25 04:11:51 used pmd, not perfect but not bad Jun 25 04:13:46 zymaster mm, by default i think sqlite sorts lexicographically Jun 25 04:14:26 so that should work. also, SimpleCursorAdapter, like ArrayAdapter are lame Jun 25 04:16:07 but maybe i am wrong; zymaster you can also try #sqlite if its just a matter of query Jun 25 04:16:53 g00s: alright thanks I'll experiment and you say SimpleCursorAdapter is bad what should I use? Jun 25 04:17:10 just extend CursorAdapter Jun 25 04:17:39 g00s: What extra feature will that add? Jun 25 04:18:06 none; the other 2 are helpers that more often get in the way than anything Jun 25 04:18:42 CursorAdapter isn't much more work; its more flexible; and you'll need it when you have something more interesting that a result of string Jun 25 04:19:52 g00s: alright thanks my setup is pretty basic now but if I add more complex data I'll definitely do that. Thanks gonna open up #sqlite see what they say Jun 25 04:20:38 ;) Jun 25 04:24:19 what type of apps are you guys more keen on developing? Jun 25 04:24:45 porn, malware, that sort of thing Jun 25 04:24:48 it's where the money is Jun 25 04:25:06 I like to work on apps. that I actually want touse Jun 25 04:26:42 Leeds pom ? Jun 25 04:26:50 g00s: yes please Jun 25 04:26:59 <.< Jun 25 04:27:01 >.> Jun 25 04:27:11 I didn't know you were Australian Jun 25 04:28:36 oh ha, my font sucks. porn looked like pom Jun 25 04:29:12 and there I thought you were making a kerning pun ;) Jun 25 04:29:22 heh Jun 25 04:29:43 (and in case you don't know, pom is Aussie slang for Brit) Jun 25 04:29:55 wesome XD Jun 25 04:29:59 ugh Jun 25 04:33:36 if google previews L tomorrow, hopefully they release betas to dev to test Jun 25 04:33:43 like apple does Jun 25 04:34:05 otherwise, we're all going to forget what it was about by fall, nm when we can actually use its features like1 year from now ;) Jun 25 04:34:25 Hi, can anyone help me understand some basics of Android? What's a TUN driver, who creates it, and how does it usually get installed on devices? Jun 25 04:34:25 Why is it missing sometimes? Jun 25 04:35:42 dck28: that's Linux, not really Android - and not hugely relevant in this channel, which is for app development Jun 25 04:35:54 presumably you're asking in the context of a VPN Jun 25 04:36:08 yeah... for VPN Jun 25 04:39:50 i get excited by stuff i can use right away - i'm hoping they add that (supposedly) new native help Api to the support library Jun 25 04:40:14 that would stink if its an L feature Jun 25 04:42:08 as if google ever releases betas... Jun 25 04:42:21 they have, a couple of times in the past... Jun 25 04:42:24 pfn apparently they may start Jun 25 04:42:33 maybe not tomorrow though Jun 25 04:42:41 everything google does is already beta Jun 25 04:42:46 he Jun 25 04:42:53 ok, release alphas / canary :D Jun 25 04:42:56 Leeds, when, the best you get is an emulator image until device images ship Jun 25 04:43:06 of course, that's what I meant Jun 25 04:43:27 it's not a beta, it's a full on release image Jun 25 04:43:29 although I don't think it took long before people hacked the emulator images onto hardware last time Jun 25 04:44:06 and if there's an image, a Nexus device will get it toute suite Jun 25 04:44:24 anyone lucky enough to get a ticket to the I/O event? Jun 25 04:44:33 and then *lots* of people get to break their phones in new and interesting ways Jun 25 04:44:52 considering the. constant evolution of software, everything is in a perpetual state of beta these days Jun 25 04:45:01 dck28, duck IO Jun 25 04:45:06 fuck Jun 25 04:45:16 goddamn SwiftKey Jun 25 04:45:30 quack Jun 25 04:45:30 always forgets my dictionary on every install Jun 25 04:46:04 goddamn google, too, I tickets are a joke Jun 25 04:46:14 IO Jun 25 04:46:59 if I lived anywhere near SF, I'd make a serious effort to get a ticket... Jun 25 04:47:16 I make an effort every year without reward Jun 25 04:47:51 but it's not worth flying half-way around the world, paying for SF accommodation (or finding a friend with a spare bed/sofa), dealing with US immigration - and then potentially being told "sorry, this is only for US residents" Jun 25 04:47:52 it's like I've been blacklisted from the stupid event Jun 25 04:50:08 I'm having difficulty justifying the use of phonegap for a web app I want to make for android, the phonegap guys are saying that it's fantastic (naturally), however if I have to create a plugin for it, then it isn't giving me any advantages is it? Jun 25 04:50:23 It seems simplest to create a regualr app and give it a webview myself? Jun 25 04:50:27 teh i/o sandboxes looked most interesting to me, too bad they will not be recorded Jun 25 04:50:37 like ART and GC Jank Jun 25 04:50:45 and all of the performance tooling sandboxes Jun 25 04:50:56 Arahael, use phone gap Jun 25 04:51:54 pfn: Why? Jun 25 04:52:06 I registered for both wwdc and io, got into wwdc :p Jun 25 04:52:38 wabz how many days was wwdc ? Jun 25 04:52:42 5 Jun 25 04:52:52 thats awesome Jun 25 04:52:59 pfn: In the Android SDK, all I have to do to bind a method to javascritp is to give it a particular @javascript attribute. Jun 25 04:53:02 the first day has keynote and other big talks, and the friday is half a day (rest of the day labs continue though) Jun 25 04:53:09 and it still didn't seem like enough Jun 25 04:53:11 i heard the general tone was very positive, devs think apple is doing a good job Jun 25 04:53:19 yeah it was pretty good Jun 25 04:53:34 fucking 2 days … Jun 25 04:53:46 they should just make it one and tell all of use to start using html Jun 25 04:54:03 the labs are really good but it's not enough time ot come up with intelligent questions on the new stuff Jun 25 04:54:03 & Polymer Jun 25 04:54:06 haha Jun 25 04:54:20 I attended 22 sessions all up Jun 25 04:54:26 so it was all a bit overwhelming heh Jun 25 04:54:41 man i would love that Jun 25 04:54:46 someday Jun 25 04:55:46 I've never been to a technical event of that size - only 1/2-day things... I've been to a residential non-tech conference that big, and it took everyone a week to come down afterwards Jun 25 04:57:04 how many people go to google io? Jun 25 04:59:13 dont know Jun 25 04:59:30 but... somehow it seems interesting this year Jun 25 05:01:14 pfn: I'm being serious. What advantage does phonegap give me? Yes, I could use the same 'code' everywhere, but I already can using html+js Jun 25 05:02:53 heh io is at the moscone centre too Jun 25 05:04:08 wabz: there aren't many venues which are suitable for that sort of event Jun 25 05:04:13 yeah Jun 25 05:04:27 Arahael: phonegap is slow Jun 25 05:05:19 Arahael write a Chrome app, you'll be ahead of us all probably Jun 25 05:05:35 g00s: I am infact intending to use Chrome. Jun 25 05:05:42 g00s: Most likely CEF. Jun 25 05:07:04 gordon_: That's one concern, however I hope to be able to optimise the application when proven neccessary, even if that means ultimately avoiding html5. Jun 25 05:07:57 wait a little Jun 25 05:08:14 maybe they google will introduce polymer today ;) Jun 25 05:08:20 * capella soooooooooooo many Os upgrades ... Jun 25 05:08:36 * g00s grabs one from capella Jun 25 05:08:54 Doing the N7 4.4.2 -> 4.4.3 dance right now Jun 25 05:08:55 g00s: and new android seems to be there Jun 25 05:09:10 there is a session 'whats new in android' Jun 25 05:09:22 i can't believe they would talk about 4.4 Jun 25 05:09:23 g00s: http://www.xda-developers.com/android/google-to-unveil-android-l-at-io-2014-in-advance-of-fall-release/ Jun 25 05:09:44 gordon_: I've yet to become aware of polymer. Jun 25 05:10:27 "This year’s conference is likely to reveal much about how the character of Android will shift under Pichai. " Jun 25 05:10:32 yeah, thats why i find this interesting :) Jun 25 05:11:20 gordon_: From what I can see, it's purely used within HTML5, I don't think it helps with custom apps. Jun 25 05:11:30 I did hear one comment on a podcast this week... saying that they have a gut feel that there's something which hasn't leaked, something which will surprise us Jun 25 05:11:31 gordon_: And isn't useful for binding to platform libraries. Jun 25 05:12:36 Leeds well bankai_au is in AU, and its tomorrow for him already … so i bet he knows Jun 25 05:12:55 g00s: it's Wednesday lunchtime here :P Jun 25 05:13:07 Leeds i'm betting its merger of Chrome / Android somehow Jun 25 05:13:23 or some html-y web framework for Android running in Chrome Jun 25 05:13:24 you could be right about that Jun 25 05:13:25 i'm from the future Jun 25 05:13:42 bankai_au: I'm from the future, and you're from *my* future! Jun 25 05:14:15 bankai_au nothing will make a person go insane faster than researching flea/tick meds for their dog, holy crap Jun 25 05:15:04 hahaha you got me wondering, actually Jun 25 05:15:22 i always thought it was quite harmless and never really considered keeping away from them after applying Jun 25 05:16:42 bankai_au http://www.cbc.ca/news/technology/pesticides-linked-to-bee-deaths-must-be-banned-scientists-say-1.2685492 Jun 25 05:16:45 this is from today ! Jun 25 05:17:02 fipronil is in Frontline, one of the best selling meds over here Jun 25 05:17:26 this kinda talk about bees has been around for years, nothing new Jun 25 05:17:38 ahh yeah i know frontline, very popular here too Jun 25 05:20:00 bankai_au the new hot one is called NexGard; little too new though http://www.nexgardfordogs.com/Pages/index.aspx Jun 25 05:20:09 oral not spot-on Jun 25 05:22:45 \o/ ... that wasn't so painful Jun 25 05:23:43 capella: you didn't do it right then Jun 25 05:24:13 :p I did it "right" for my recent GS3 -> 4.4.2 update and lost 5 hours recovering it Jun 25 05:24:33 o/ shakes fist @ SeLinux Jun 25 05:24:37 :( Jun 25 05:25:05 heh - now I just rinse and repeat on the N7 when 4.4.4 gets here :D Jun 25 05:25:29 Then I can stop hacking the OS and start coding again like the cosmos intended Jun 25 05:31:47 hey the gradle thing is 0.12.0 Jun 25 05:32:06 who wants to test it and let me know how it worked out ? Jun 25 05:32:18 XD Jun 25 05:32:53 i tested it, it works, go ahead, upgrade :) Jun 25 05:33:09 of course, no changelog Jun 25 05:33:19 bankai_au ok Jun 25 05:35:04 seems to work :) Jun 25 05:35:07 told you Jun 25 05:35:25 of course, i have no idea why i did that with no release notes Jun 25 05:35:42 it was just a few bug fixes and minor performance enhancements Jun 25 05:35:51 0.12.0 ? Jun 25 05:35:54 hm, ok Jun 25 05:35:59 apparently that's the reason why 90% of my applications are updated on my phone Jun 25 05:36:07 oh, hah Jun 25 05:36:14 yeah, the catchall Jun 25 05:37:44 bankai_au it gave a warning that there was no javascript directory Jun 25 05:38:01 under src/js Jun 25 05:38:06 no no that's just a warning, keep going you're fine Jun 25 05:38:38 it says all my java codes are deprecated Jun 25 05:38:48 that's one of the enhancements ? Jun 25 05:39:02 apparently :) Jun 25 05:39:24 compiles things so much faster when it doesn't compile things Jun 25 05:40:30 bankai_au gradle installDebug starts Chrome Jun 25 05:40:54 i think you're holding it wrong Jun 25 06:03:28 Simple question: how can I easily log the time between two function calls Jun 25 06:03:48 i.e. every time a function f() is called, I want it to log the time since the last time it was called Jun 25 06:04:22 amomchilov: Frankly I wouldn't bother. Jun 25 06:04:39 It has to do with animation, so it's kinda important Jun 25 06:04:42 amomchilov: Instead, I'd investigate either profiling, and/or logging. Jun 25 06:04:54 amomchilov: Which should give the same information. Jun 25 06:05:03 logging prints time stamps, but it's more annoying Jun 25 06:05:16 having the subtraction automatically done would be handy Jun 25 06:05:26 perhaps System.nanotime Jun 25 06:05:41 oh.. automatically? Jun 25 06:06:08 amomchilov: You could post process the logs. Jun 25 06:06:21 that would be even more painful lol Jun 25 06:06:23 amomchilov jake has a library called Hugo Jun 25 06:06:29 https://github.com/JakeWharton/hugo Jun 25 06:06:36 System.nanotime should be easy enough Jun 25 06:06:38 it logs the time Jun 25 06:06:40 that guy has a library for everything Jun 25 06:06:49 amomchilov: Still, I'd suggest learning profiling. Jun 25 06:07:13 Hugo seems pretty cool :o Jun 25 06:07:14 http://developer.android.com/tools/debugging/debugging-tracing.html Jun 25 06:07:14 thanks Jun 25 06:07:20 ok thx Jun 25 06:08:01 the new profiling stuff in xcode 6 looks amazing Jun 25 06:08:22 google is soooo far behind in that area Jun 25 06:08:24 yeah Jun 25 06:09:12 amomchilov there is also https://code.google.com/p/caliper/ Jun 25 06:09:17 in your tests you can tell it what parts to profile and set failures for them Jun 25 06:09:31 and it shows you standard deviation between tests, changes per commit etc Jun 25 06:09:55 <3 Xcode Jun 25 06:09:58 don't even get me started Jun 25 06:10:31 Meh. xcode apps are a PITA to merge. (IB, I'm looking at you!) Jun 25 06:14:55 Yeah that's true Jun 25 06:15:04 but IB is fucking gorgeous. Jun 25 06:16:02 it's ok but I think auto-layout/constraints/size classes are overly complicated Jun 25 06:16:53 anyway this is an android channel :p Jun 25 06:17:40 constants are tricky at first, but they're much more intuitive than all the android XML alternatives Jun 25 06:30:01 I prefer the android layout stuff actually Jun 25 06:35:29 It's so cumbersome Jun 25 06:35:39 how much time do you waste changing between tables and relative layouts? Jun 25 06:35:47 and nesting shit just to get it to fit right Jun 25 07:27:02 42 Jun 25 07:27:15 JakeWharton: the answer!!! Jun 25 07:27:22 do you know where your towel is? Jun 25 07:27:40 hate to burst your bubble but Jun 25 07:28:28 good morning everyone Jun 25 07:28:38 3:28am here Jun 25 07:28:40 Good night :) Jun 25 07:28:45 9:28 am here Jun 25 07:28:55 JakeWharton doesn't sleep, cuz sleep is the cousin of death. Jun 25 07:29:13 JakeWharton, doesn't get tired .. tired gets JakeWharton Jun 25 07:29:14 hehe Jun 25 07:35:21 damn I still feel like I only know like 2% of android programming and I've been looking at it for about a year Jun 25 07:35:50 its too much crap Jun 25 07:37:26 lol shmooz Jun 25 07:37:30 it nevers gets any better Jun 25 07:37:36 been at it for almost 3 years Jun 25 07:37:44 it gets better though Jun 25 07:37:47 i am at about 3% Jun 25 07:38:06 anyone going to I/O? Jun 25 07:38:25 the lady that works with me is there allready for I/O Jun 25 07:38:34 I'll collect all the interesting videos from I/O Jun 25 07:38:47 whell what i mean with is there allready, in america Jun 25 07:38:54 we are from south africa Jun 25 07:38:55 lemonxah: doesn't it start in 8 hours? Jun 25 07:39:08 she went last week Jun 25 07:39:40 yeah thepoosh but what i mean is she left for the states last week so she will be there Jun 25 07:39:55 i couldn't afford to go :( too much of the monies Jun 25 07:40:03 Hi Jun 25 07:40:07 I am getting Jun 25 07:40:08 Unable to instantiate application com.example.gpstracker.MainActivity Jun 25 07:40:25 Do i need to do something in Manifest file? Jun 25 07:40:34 that means nothing without stacktrace Jun 25 07:40:54 could you pastebin the error and the manifest please Jun 25 07:41:05 lemonxah, yes sure Jun 25 07:41:25 lemonxah, could you please elaborate on what is nothing without stacktrace Jun 25 07:42:00 someone saying they have error X without context means nothing Jun 25 07:42:13 its like trying to trace a bug without a stacktrace Jun 25 07:42:20 we need more context to be able to assist Jun 25 07:42:29 http://pastebin.com/MpuuwpN7 Jun 25 07:43:12 its like phoning a nail salon and saying .. i bought nail polish but now my nails are bright orange .. could someone please help me Jun 25 07:43:13 http://pastebin.com/hDg1EqxB Jun 25 07:43:44 niru: your mainActivity doesn't extend Activity Jun 25 07:43:52 yes Jun 25 07:43:56 "com.example.gpstracker.MainActivity cannot be cast to android.app.Application" Jun 25 07:44:11 sorry Jun 25 07:44:11 thepoosh, extends Service implements LocationListener Jun 25 07:44:28 how can you launch an app without an activity? Jun 25 07:44:30 then you have to specify it as a service in the manifest Jun 25 07:45:00 but you wont be able to do anything with it cause there is nothing that is going to start the service Jun 25 07:45:00 niru: Jun 25 07:45:02 android:allowBackup="true" Jun 25 07:45:03 android:icon="@drawable/ic_launcher" Jun 25 07:45:05 android:label="@string/app_name" Jun 25 07:45:07 android:theme="@style/AppTheme" Jun 25 07:45:09 android:name="com.example.gpstracker.MainActivity"> Jun 25 07:45:11 that is messed up Jun 25 07:45:12 remove the name field Jun 25 07:46:00 thepoosh, removed Jun 25 07:46:01 that's more pasting that would generally be considered ok... Jun 25 07:46:01 the manifest says mainactivity is an activity the name of your class even says its an activity Jun 25 07:46:42 just bad practice not going to fix it but just saying .. naming the class a service cause that is what it is would be more appropriate Jun 25 07:46:58 but still if you have no activity how are you going to run your app niru ? Jun 25 07:47:12 is it a service that needs to startup with the phone? Jun 25 07:47:28 yes gps service Jun 25 07:47:36 but what should it do niru ? Jun 25 07:47:44 what is your expectations of this app Jun 25 07:47:52 what is its intended purpose Jun 25 07:48:04 the gps service should give the lat log details of my present location Jun 25 07:48:30 to whom? and when Jun 25 07:48:31 Leeds: sorry Jun 25 07:48:48 lemonxah, http://www.androidhive.info/2012/07/android-gps-location-manager-tutorial/ Jun 25 07:48:57 lemonxah, I just tried to follow that Jun 25 07:49:26 niru: you're probably not finished typing all the code to make it run Jun 25 07:50:18 wow I should be a fortune teller Jun 25 07:50:45 I used that tutorial once but it is unnecessarily complicated Jun 25 07:50:57 just implement location listener and register it with a location manager, done xD Jun 25 07:50:58 niru i would suggest starting fresh cause you have made your activity a service and they are making a GPSTracker service Jun 25 07:52:15 ok Jun 25 07:53:49 well. I can't get a Date from DatePicker -.- . I use set method of Calendar wich accept an int for the month but it must be Calendar.JANUARY (wich is an int) Jun 25 07:54:55 gdrc: what do you mean by "must" Jun 25 07:54:56 ? Jun 25 07:56:31 I get the int month = datePicker.getMonth(); then calendar.set(ints..,month,ints..). Get an error referred to moth: must be one of Calendar.JANUARY, Calendar.FEBRUARY Jun 25 08:01:41 Hi guys, I have a custom menu with three icons, but one of them have an odd size on some devices… It's normal on some devices, very small on the others. I've got one version in drawable hdpi, mdpi, ldpi, xhdpi, and xxhdpi. The only thing different is that that icon is slightly wider than the others Jun 25 09:12:04 Hi thepoosh lemonxah shmooz Jun 25 09:12:13 I actually missed the code in that tutorial Jun 25 09:12:21 the activity code Jun 25 09:12:21 :( Jun 25 09:12:44 I inlcuded only the service part not the activity part Jun 25 09:12:57 you forgot about g00s ! Jun 25 09:13:53 ? Jun 25 09:15:03 nvm. just joking :) Jun 25 09:16:00 :) Jun 25 09:19:01 the shape XML is so damn hard Jun 25 09:19:38 then make it softer Jun 25 09:19:43 softer shapes looks nicer :) Jun 25 09:19:46 * lemonxah troll Jun 25 09:27:10 Hi all, I have a fragment (not in backstack), when app goes in background and clear memory, then reopen the app, the fragment is back visible (good) but the events aren't working? (click inside list adapter item), how can I fix this? Jun 25 09:27:38 menu items (actionbar) are working fine Jun 25 09:29:16 where did you set the click event? Jun 25 09:29:31 does the fragment set this or the adapter? Jun 25 09:30:33 adapter items contains a button, event is inside adapter getView and sends the event to the Fragment Jun 25 09:31:06 code? Jun 25 09:31:24 how do you init the adapter? in onCreate or via XML? Jun 25 09:31:44 create adapter in oncreate Jun 25 09:32:07 code :) Jun 25 09:32:58 danijoo: good if I pass full fragment & adapter? Jun 25 09:33:34 as long as it dont have 1k line of other code arround it, i will look into it Jun 25 09:34:23 danijoo: thanks! Fragment: http://pastebin.com/2uifjKdu adapter:http://pastebin.com/9pLS2uLR Jun 25 09:38:10 I know the code isn't clear / nice, project must be done in one day! Jun 25 09:38:35 can you show me how you add the fragment to your activity? Jun 25 09:49:48 how come nobody is talking about LollyPop like they did Key Lime Pie ? Jun 25 09:52:03 hey guys, is there a library available to read barcodes? Jun 25 09:53:11 onats: https://github.com/zxing/zxing used to be popular Jun 25 09:53:27 might still be the best one to try Jun 25 09:59:05 hey guys Jun 25 09:59:12 does android studio not use android 2.1 and higher stuff? Jun 25 09:59:19 or only android 3.0+? Jun 25 09:59:40 it should work with all Jun 25 10:00:35 did you seelct the correct minSDK ? Jun 25 10:00:38 danijoo: sorry for waiting, just using an FragmentTransaction an add it to my FrameLayout Jun 25 10:02:46 time ago there was a online tool when you paste your java class and it implements the serializable interface. does anyone remember its name? Jun 25 10:03:27 *parcelable interface Jun 25 10:03:54 I found it! http://www.parcelabler.com/ Jun 25 10:04:14 gdrc: There's an IntelliJ plugin for that, I think. Might be even more comfortable. Jun 25 10:04:52 that website is ok thanks Jun 25 10:05:30 * flan3002 rants silently about the need to implement Parcelable. Jun 25 10:09:33 hey can someone help me out im trying to follow this gude to learn to style the top panel of the app Jun 25 10:09:33 https://developer.android.com/training/basics/actionbar/styling.html Jun 25 10:09:51 i am trying to do it for android 2.1 and higher, i added the libraries i need from android package installer Jun 25 10:09:56 but i cannot get that code to work i keep getting Jun 25 10:10:05 Psil0Cybin: Error? Jun 25 10:10:48 yes Jun 25 10:11:37 cannot resolve symbole '@style/Widget.AppCompact.Light.ActionBar.SolidInverse Jun 25 10:11:39 cannot resolve symbol Jun 25 10:11:42 and it goes on Jun 25 10:13:04 was foillowing this part For Android 2.1 and higher Jun 25 10:13:05 When using the Support Library, the same theme as above must instead look like this: Jun 25 10:13:05 res/values/themes.xml Jun 25 10:14:04 Error:Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Light.DarkActionBar'. Jun 25 10:14:39 Psil0Cybin: Can you use parts of the support library in code? Just making sure you compile against it... Jun 25 10:15:04 how do i find out sorry i am new.. Jun 25 10:15:14 i have it installed on the package manager, because i followed the guide to install it Jun 25 10:15:21 b ecause the only option i get is to remove it Jun 25 10:15:40 Psil0Cybin: Are you using an IDE? Which? Jun 25 10:16:13 Android Studio Jun 25 10:16:16 i have Android Support Repository installed Jun 25 10:16:20 and Android Support Library Jun 25 10:16:39 i tried to add this in build.griddle or what ever Jun 25 10:16:39 compile "com.android.support:support-v4:18.0.+" Jun 25 10:16:45 but it also has an error, under dependencies Jun 25 10:17:10 Psil0Cybin: Well, without that error resolved you shouldn't wonder if it doesn't work. :) Jun 25 10:19:16 oh okay :P Jun 25 10:19:21 so one second ill give you the error i get Jun 25 10:21:12 flan3002, the error says i do not have the support resources installed Jun 25 10:21:15 so i uninstall them and reinstall them? Jun 25 10:22:27 Psil0Cybin: Well, verify they exist. Mine are at ~/app/android/sdk/extras/android/support/v4. Jun 25 10:23:00 yes flan3002 it is there Jun 25 10:23:09 all the files/folders are indeed there Jun 25 10:23:13 Psil0Cybin: Have you tried manually adding them? Jun 25 10:23:19 how would i do that? Jun 25 10:23:25 sorry i am semi new was following the tutorial Jun 25 10:24:14 There should be an android-support-v4.jar in that directory. You add that as a project library and add a dependency of your project on that library. Jun 25 10:24:35 flan3002, the file i am writting in is in Jun 25 10:24:35 // NOTE: Do not place your application dependencies here; they belong Jun 25 10:24:35 // in the individual module build.gradle files Jun 25 10:24:41 says and is in gradle -> build.gradle Jun 25 10:24:43 is that the wrong file? Jun 25 10:25:13 Sorry, I'm not using Gradle... :/ Jun 25 10:26:04 flan3002, okay Jun 25 10:26:07 i may have used the wrong file Jun 25 10:26:09 oh my god Jun 25 10:26:12 let me check Jun 25 10:26:23 Psil0Cybin: Well, it says it's the wrong file... Jun 25 10:27:08 okay flan3002 now i get this error sorry for spamming you "this support library should not use a lower version (18) than the target SDkVersion(19) Jun 25 10:27:16 is this because i am using android studio? and need to stick to 3.0? instead of 2.1? Jun 25 10:27:33 hey o/ Jun 25 10:27:45 okay Jun 25 10:28:18 flan3002, i changed it to compile "com.android.support:support-v4:19.0.+ Jun 25 10:28:21 Psil0Cybin: Update your SDK? Jun 25 10:28:33 Oh that might do as well... Jun 25 10:28:58 and now i get a newer version of com.android.support(support-v4 than 19.0+ is available: 19.1.0 Jun 25 10:29:02 is that what i should change it to lol!! Jun 25 10:30:50 k it worked but i still get "Error:Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Light.DarkActionBar'." Jun 25 10:30:53 this is awful loll Jun 25 10:31:09 i can assume i guess in eed to stick to android 3.0 +? Jun 25 10:31:58 Psil0Cybin: You should not have to. Jun 25 10:32:27 i am so confused >.< something is off Jun 25 10:35:40 for styles and themes, when do I use the @ syntax and when do I use the ? syntax (e.g. ?android:attr/buttonBarButtonStyle)? Jun 25 10:39:35 flan3002, okay i got it working except now the only warning i get is Jun 25 10:39:45 Cannot resolve symbol @drawable/actionbar_background Jun 25 10:40:05 Psil0Cybin: Well... Does that one exist? Jun 25 10:42:02 it should would it not all i did was copy and paste the code " parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse"> Jun 25 10:42:02 @drawable/actionbar_background" Jun 25 10:44:00 Psil0Cybin: But did you also cp the actual resource? Jun 25 10:44:22 oh no i probably did not do thatm how would i do that :( sorry the tutorail does not mention these things Jun 25 10:44:27 i thought it would be a step by step guide loll Jun 25 10:44:39 What was the URL? Jun 25 10:47:32 I am selecting rows with SQLitedatabase, query method. It accepts string[] of columns-to-select, can i somehow select only 1 column with a string? Or should i just use rawQuery? Jun 25 10:48:50 flan3002, Jun 25 10:48:50 https://developer.android.com/guide/topics/ui/actionbar.html#Style Jun 25 10:48:51 and Jun 25 10:48:58 https://developer.android.com/training/basics/actionbar/styling.html Jun 25 10:49:12 Yeah, I'm loading the latter... Jun 25 10:50:43 Psil0Cybin: Delete that line. Jun 25 10:50:55 which line exactly Jun 25 10:50:59 the two causing problems? Jun 25 10:51:06 @drawable/actionbar_background Jun 25 10:51:10 The background line. Yeah. Jun 25 10:51:58 okay, i did, but ill just explain my main goal for my leason atm that i am teaching my self or trying too Jun 25 10:52:05 is to change the color of the top bar, where the title is located Jun 25 10:52:16 i dont really want to theme it just learn to color it kind of like thw twitter app how it is blue Jun 25 10:52:32 flan3002, i removed the two lines and now it is fine, but i want to learn what i was doing wrong and how to properly set up themes Jun 25 10:52:48 * flan3002 hates XML themes. Jun 25 10:53:07 Psil0Cybin: Get a drawable of the correct color and set is as the background, using the line you just deleted. Jun 25 10:53:58 can someone tell me how the where command should look like in sqlite if i have a combination of 2 keys for primary key? for one key it is: KEY_ID + " = ?" what is it for two keys? Jun 25 10:54:17 flan3002, sorry what would you mean get a drawable of the correct color? Jun 25 10:54:56 flan3002, Jun 25 10:54:57 like this Jun 25 10:54:57 http://jgilfelt.github.io/android-actionbarstylegenerator/ Jun 25 10:54:58 ? Jun 25 10:55:05 Psil0Cybin: Nah, wait a second. Jun 25 10:55:06 i used that and it gave me a .zip of erverything i would want Jun 25 10:55:12 okay Jun 25 10:55:19 i would like to learn how to do it manually lol that is why i am being a pain sorry Jun 25 10:55:25 That will work as well, but you don't have to use it. Jun 25 10:56:02 F/libc ( 2225): Fatal signal 11 (SIGSEGV) at 0x6d726f64 (code=1), thread 2317 (droid.wallpaper) Jun 25 10:57:03 okay flan3002 Jun 25 10:57:10 so do i need those images to theme my app? Jun 25 10:57:37 Psil0Cybin: You can use #ANYHEX in your style to color your bar. Jun 25 10:57:47 Psil0Cybin: Or @color/sup_dark_gray Jun 25 10:57:56 Or reference it. Jun 25 10:58:01 yes :D! Jun 25 10:58:05 okay one second let me try this Jun 25 10:58:31 socrat1234: Is this all? Jun 25 11:00:54 flan3002, where would i apply changes so apply theme to my main window, in ANdroidManifest.xml? Jun 25 11:01:07 change the android:theme=@style/ to what i want Jun 25 11:01:11 or do i need to change it to @theme Jun 25 11:01:15 if my xml was theme.xml? Jun 25 11:01:33 android:theme="@style/Theme.SuP" Jun 25 11:01:41 In your application tag. Jun 25 11:05:50 Jun 25 11:05:51 #0D7CD1 Jun 25 11:05:51 Jun 25 11:05:51