**** BEGIN LOGGING AT Tue Sep 16 02:59:58 2014 Sep 16 03:02:44 if i wantede to align 3 butons horizontally in the middle Sep 16 03:03:00 would i give each one a layout_width in dips or is there a better way Sep 16 03:03:10 because one screen may have more dp than other Sep 16 03:03:52 "in the middle" has little to do with display density Sep 16 03:04:17 the middle of one screen 1000px wide is the same as the middle of a screen 400px wide Sep 16 03:04:25 it's in the "middle" :) Sep 16 03:04:26 middle is relative Sep 16 03:05:02 yeah but i want the 3 buttons to scale depending on display width Sep 16 03:05:18 so that there’s not much space to the left or to the right Sep 16 03:05:20 you can do use linearlayout and weights Sep 16 03:05:25 i think i’m thinking at it the wrong way Sep 16 03:05:29 yeah i was using a relative layout Sep 16 03:06:36 well, to do with Gravity Sep 16 03:06:54 LinearLayout that is Vertical with Gravity.CENTER on the child views Sep 16 03:07:12 and what weight should i assign to the buttons Sep 16 03:07:18 dont Sep 16 03:07:20 sorry i just started learning android Sep 16 03:07:22 irrelevant Sep 16 03:07:38 and what width should i put then Sep 16 03:07:51 depends on the style and design of the button Sep 16 03:07:55 some value in DP Sep 16 03:08:59 are dps in any way % of the screen size? Sep 16 03:09:06 the best kitkat is the dark kitkat with 70% cacao Sep 16 03:09:15 i want to make the width something like 30% Sep 16 03:09:33 delgiudices they you start having to nest layouts and use weight to do that Sep 16 03:09:33 to get 30% of screen width Sep 16 03:09:39 but better to choose a dimension Sep 16 03:09:57 you can do weightsum as 10, and the child view as 3 Sep 16 03:10:02 30% that is a variable 30% is an odd design choice, what about orientation ? Sep 16 03:10:22 what do you mean with orientation Sep 16 03:10:40 device orientation Sep 16 03:10:46 i turn it 90 degrees Sep 16 03:10:48 :) Sep 16 03:10:57 the application doesn’t allow it ;p Sep 16 03:11:04 uhh Sep 16 03:11:05 why not? Sep 16 03:11:19 because my client wants it like that Sep 16 03:11:23 fucking clients. Sep 16 03:11:32 dont think a client would want that Sep 16 03:11:47 not if you explain that users dont like to be told how to hold a device Sep 16 03:12:14 most devs sell that cause they dont know how to handle orientation … i was the same when I started Sep 16 03:12:37 isn't that what apple did? "you're holding it wrong" *ducks* Sep 16 03:12:54 delgiudices: android:layout_width="0.3" Sep 16 03:13:25 oops Sep 16 03:13:31 delgiudices: android:layout_weight="0.3" Sep 16 03:14:06 meh thanks alot for the info Sep 16 03:14:13 schmooz StingRay_ Sep 16 03:16:05 ok so the weight problem fixed the width Sep 16 03:16:14 but now how do i make that the height is the same as the width Sep 16 03:16:18 so i can keep the image proportions Sep 16 03:19:30 you stop using % Sep 16 03:19:36 yeah Sep 16 03:19:46 % != constants on any devices Sep 16 03:20:41 as in wdith/heigh is not the same … oh and not even the same on the same device based on whats happening Sep 16 03:21:07 i use it for even spacing Sep 16 03:22:57 so how can i have 3 image buttons fille the width >< Sep 16 03:23:16 without % Sep 16 03:27:00 delgiudices not a great question Sep 16 03:27:07 g00s_: typhoon is done... Sep 16 03:27:17 layout weight = 1 for all buttons is fine Sep 16 03:27:31 you don't have to split it up so that it sums 1 Sep 16 03:27:58 shmooz, no reason to go 0.3 Sep 16 03:34:27 Hello. How can I get new data from server to android (without using GCM)? I'm still new to android development :( Sep 16 03:34:57 why dont you want to use gcm Sep 16 03:35:22 and gcm would be used to tell it to get new data, not really for the data itself, unless it's like tiny :) Sep 16 03:35:38 desmin88: can I use GCM to populate listview or other widget etc..? Sep 16 03:35:47 yes you can Sep 16 03:36:03 as StingRay_ said, you use GCM to tell the app to pull new data Sep 16 03:36:06 that's like asking if you can use a steering wheel to get from point A to point B Sep 16 03:36:33 Leeds no it's like asking if you can use the keys to go from a to b Sep 16 03:36:34 :) Sep 16 03:36:58 I want to implement realtime comments (like facebook) Sep 16 03:37:30 .. and I dont know how to implement :( Sep 16 03:37:45 lnoskhen http://en.wikipedia.org/wiki/XMPP Sep 16 03:37:53 could be an option Sep 16 03:38:22 implementing your own XMPP is probably not a good idea Sep 16 03:39:20 lnoskhen: you're comparing different conceptual layers - GCM is a tool for either transferring small-ish amounts of data, or poking your app to go download data... what you do with that data depends entirely on you and your needs Sep 16 03:43:55 lnoskhen fb uses mqtt Sep 16 03:44:56 but they also have the resources to scale it out on their servers Sep 16 03:47:59 Does GCM is capable from pulling 2 different data at the same time? Sep 16 03:48:45 lnoskhen I think maybe you should read up a bit more…. then when you have a better understanding come back to ask questions Sep 16 03:49:15 StingRay_: yeah :D Sep 16 03:52:06 Hey guys Sep 16 03:52:16 so I'm using Retrofit with the default GSON Sep 16 03:52:22 I thought I'd read that whatsapp was using GCM Sep 16 03:52:31 and there's a wrong type somewhere deep in my object Sep 16 03:52:42 com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected an int but was BOOLEAN at line 1 column 432 Sep 16 03:52:49 is there a better way of handling this? Sep 16 03:52:56 i.e. actually knowing what it refers to? Sep 16 03:53:07 redwraith: Use Gson 2.3 Sep 16 03:53:16 Got it. Sep 16 03:53:30 I'm trying to use the SignInButton.class in com.google.android.gms.common and android stdio is saying that the sources are not found, when I click attach sources it finds the right class but nothing happens after I attach it Sep 16 03:53:40 It will give you a JsonPath to the offending field. Sep 16 03:53:56 Like $.user[3].age Sep 16 03:54:45 Mrono: Play Services are closed source. Sep 16 03:54:46 Alright. Sep 16 03:55:04 Is there a converter I can just load in or do I need to grab a separate library? Sep 16 03:55:22 JakeWharton: this is coming from the prebuilt activity, and it worked fine a few days ago. Sep 16 03:55:32 Just add the Gson 2.3 dependency Sep 16 03:55:39 Convenient. Sep 16 03:55:41 Thanks. Sep 16 03:55:43 JakeWharton: now I can't even run it at all Sep 16 03:57:16 You were already getting Gson 2.2.4 implicitly. Adding the explicit dependency overrides it with the newer version. Sep 16 03:57:37 how do i add an imageview from xml without loading all the memory in the vm Sep 16 03:57:52 delgiudices: rethink that question Sep 16 03:58:24 how to display an image without consuming all the phone memory Sep 16 03:58:29 better? :p Sep 16 03:58:45 that doesnt even make sense Sep 16 03:59:06 delgiudices please use google http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Sep 16 03:59:12 takes like seconds Sep 16 04:00:54 JakeWharton, thank you. New error message tells me where to go "com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected an int but was BOOLEAN at line 1 column 432 path $.friend" :) Sep 16 04:01:24 excellent. much more helpful message Sep 16 04:01:54 Exactly. Sep 16 04:09:47 whats a good article about saving activity state Sep 16 04:10:56 my main activity implements on locationchange so im getting some unnecessary activity Sep 16 04:11:25 should i use onRetainNonConfigurationInstance Sep 16 04:16:45 onRetainNonConfigurationInstance is kinda deprecated Sep 16 04:16:48 use fragment instead Sep 16 04:16:58 uhh Sep 16 04:17:02 fragment retain instance = true. Then store data in that fragment. Sep 16 04:17:05 wrong answer Sep 16 04:17:52 you can save some state in onSaveInstanceState Sep 16 04:17:58 that also can be done Sep 16 04:18:10 but if there’s too many items that wouldn’t be a good idea Sep 16 04:18:34 parcelling and unparcelling will slow down the app. Sep 16 04:18:39 dont say it like using "onSaveInstanceState" is the wrong way Sep 16 04:18:44 and fragments to hold state is the better alternative Sep 16 04:22:00 so, if something doesn't work the way it supposed to with Google Map API we are out of luck? No support? Sep 16 04:22:48 log a bug with google if it's not working properly Sep 16 04:26:12 actually not sure if it is a Android app/key issue, the documentation on that sucks Sep 16 04:35:58 capella https://news.ycombinator.com/item?id=8321185 Sep 16 04:36:33 * capella-s3 reads Sep 16 04:37:08 can anyone help me understand app/key? For example, lets say another dev registers com.example.application1, can another person register the same app with a different key? Sep 16 04:37:27 for google maps v2 api Sep 16 04:38:57 the key is tied to your account and your app -- doesn't matter about anyone else Sep 16 04:40:53 re: firefox mobile.. they say nice things :) Sep 16 04:42:21 :) Sep 16 04:45:53 this looks fun http://digg.com/video/inside-the-world-of-longsword-fighting Sep 16 04:46:09 but i think they should use sharper swords :P Sep 16 04:46:14 "just a flesh wound" Sep 16 04:46:49 bankai_: want point? http://stackoverflow.com/questions/25860812/google-api-access-for-android-apps-duplicate-app Sep 16 04:47:15 but if my app is the same as someone else's I can do that? Sep 16 04:47:16 * g00s_ needs to watch some sword fighting between bluetooth training videos Sep 16 04:48:02 you've made bluetooth sound so painful Sep 16 04:48:24 BLE is actually very nice; android apis not so much Sep 16 04:49:09 i'm thinking about building some of my own hardware, maybe like NO2 / CO sensors for around the house Sep 16 04:57:57 how to tell which app is responsible for home swipe up gesture intent? i have something called "do nothing" there and not sure what app it is: http://i.imgur.com/ptvbNxH.png Sep 16 04:58:37 if you press it, it might log out in logcat the activity you're starting Sep 16 04:58:54 also, nice 5th Element reference :) Sep 16 05:01:48 hehe Sep 16 05:02:03 ill check logcat, thanks Sep 16 05:03:10 hey is there a good way to run android apps on a PC / Mac in a web browser? Sep 16 05:03:45 like: run an android game as a web browser based game? Sep 16 05:04:04 depends if it was written in jfs/libgdx Sep 16 05:04:10 jfx* Sep 16 05:04:35 cocos2d-x Sep 16 05:05:01 bankai_ Sep 16 05:07:11 I am trying to port ICS Keyboard to my phone (my phone has target 15) and the minSdkVersion is set 11 Sep 16 05:07:40 the AOSP Ics keyboard compiles fine, but without any voice support Sep 16 05:08:50 barbs: its greenify. they added the "nothing" action to home swipe up gesture Sep 16 05:09:23 hmmm, I've not heard of greenify... Sep 16 05:09:51 greenify hibernates apps Sep 16 05:10:05 that are in background until brought to foreground Sep 16 05:10:28 things like facebook, i greenify Sep 16 05:11:45 anyway thanks for reminding me about catlog app Sep 16 05:12:34 just get a phone with tiny memory and everything gets greenified :) Sep 16 05:12:42 as stuff gets swapped out left and right :D Sep 16 05:13:09 on froyo, starting the web browser on my phone would pretty much greenify everything Sep 16 05:14:11 but seriously, WP 8 has this too :) Sep 16 05:17:44 basically, they have 2 settings. One, you say which apps are allowed to run in the bg, and which aren't. Then there is the battery saver: you set an event (battery low, until next charge, always) and after that event all apps are forced to not run in bg Sep 16 05:18:25 too bad they really screwed up their desktop / phone stores, the tech is sweet Sep 16 05:18:34 and other missteps in marketing probably Sep 16 05:19:47 i'm super curious as to how they are going to pull of the whole 'unified app' thing; maybe the info is out there i just haven't been following it Sep 16 05:38:23 g00s_ unified app ? Sep 16 05:38:58 StingRay_ yeah this thing http://thenextweb.com/microsoft/2014/04/02/microsoft-build-2014/ Sep 16 05:39:39 ugh, thats made of jizz and fairy dust and I think is on a par with great marketing like "console quality graphics on a mobile device" Sep 16 05:40:12 why is having a unified runtime across phone, desktop, xbox jizz and fairy dust? Sep 16 05:40:16 ok at all is master of none Sep 16 05:40:35 its the way things are heading , all platforms. go! Sep 16 05:40:56 hope not Sep 16 05:41:44 this is probably why they got rid of the "Windows Phone" name; its just windows now Sep 16 05:41:46 there maybe such things in the future as a unified app, but there will be platform specific that kinda make that app a little redundant Sep 16 05:42:01 so all these things run the same kernels and runtimes Sep 16 05:42:06 well, not on about simple apps Sep 16 05:42:56 you basically share the guts while making UI's for different form factors Sep 16 05:43:01 so i think its a good deal Sep 16 05:43:10 for anything simple yeah Sep 16 05:43:36 but runtime support is not often the main factor in application design is it Sep 16 05:43:50 platform capability steps in for anything but the most simple apps Sep 16 05:44:31 like I said, my run planner and facebook apps sure though.. Sep 16 05:48:28 I am able to use datepicker,timepicker. Is there any datetimepicker which gives access to both date and time Sep 16 06:32:24 niru, it's not like you're only allowed to use stock built-in dialogs Sep 16 06:39:55 do you know of an open source IR remote app? Sep 16 06:41:07 niru: looks like you might be able to find something here: http://android-arsenal.com/free . Look under Date Pickers Sep 16 06:41:46 ravilov: yes something customized for that Sep 16 06:42:12 barbs: thanks going through the link Sep 16 07:05:03 how do you do voice recognition on android? Sep 16 07:05:33 http://developer.android.com/reference/android/speech/package-summary.html i found this Sep 16 07:05:44 but it would be cool to see an example or something Sep 16 07:09:09 RustyShackleford: http://www.androidhive.info/2014/07/android-speech-to-text-tutorial/ Sep 16 07:22:03 also wondering how you could have a service that always listens for a voice command. Sep 16 07:22:24 sorta like the Google Now Launcher always listens for "Ok, Google" Sep 16 07:25:02 hello I have to let the user pick one file on the file system. I tried aFileChooser wich doesn't work very well. Do you know an alternative? Would be nice if comes with gradle Sep 16 07:42:18 hi? Sep 16 07:42:24 Anyone using robotium? Sep 16 07:43:05 Hey all, how can I remove the default expandedlist icon? I don't want any. Sep 16 07:43:12 My tests fail randomly...they always pass when run individually though Sep 16 07:43:15 RustyShackleford, good luck with having that and not killing the battery life Sep 16 07:43:46 ravilov, how does google pull it off then? Sep 16 07:43:54 RustyShackleford, you should look into Moto X hardware specs Sep 16 07:44:25 this has actually been covered yesterday, someone else asked this exact same thing (was it you?) Sep 16 07:45:50 It was him Sep 16 07:46:02 figured it was Sep 16 07:46:15 as far as I remember, he got the answer yesterday Sep 16 07:46:22 not sure why go over this yet again Sep 16 08:00:24 ravilov, i don't know, maybe some diferent people are here today Sep 16 08:00:37 IIRC the answer was that it would eat battery life Sep 16 08:05:56 there is no point in asking over and over again, you won't get a different answer just because you didn't like the first one Sep 16 08:06:29 yes, it would kill the battery life, and that answer won't change no matter how many times you ask; if you want to know WHY, there's your google Sep 16 08:13:07 well google now launcher did not kill my battery life Sep 16 08:13:40 there might be a clever way to reduce battery usage Sep 16 08:14:24 ¨Ok Google, shut down phone¨ Sep 16 08:16:27 VnM: Is that the clever way to save battery usage? ^^ Sep 16 08:20:50 but then my app work work Sep 16 08:22:03 RustyShackleford, are you google? because if not, it makes little sense to think "if google can do it, then so can I" Sep 16 08:22:46 also, what device are we talking about? Sep 16 08:23:34 phones and/or tablets Sep 16 08:23:48 no Sep 16 08:23:56 you said "it didn't kill my battery life" Sep 16 08:23:58 what device? Sep 16 08:27:09 galaxy S4 Sep 16 08:34:34 I have added a searchview, gave it a label (not visible to user by default) and a hint, however I cannot see the hint. I have configured a textcolor so I guess it's not an issue of it being there but invisble. Any ideas? Sep 16 08:35:05 unless the searchview uses a different attribute to set hintcolor? Sep 16 08:35:25 SASDOE: how did you set the hint? XML? Sep 16 08:35:35 yes Sep 16 08:35:59 can you show the file? have you tried it promatically? Sep 16 08:36:47 Haven't tried progamitically. https://gist.github.com/SASDOE/d0281b8cfb532b51c725 Sep 16 08:37:49 dumb question, @string/hint_search is not an empty string? Sep 16 08:38:10 we had someone with the exact same problem here a few days back.. Sep 16 08:38:32 and it was some kind of stupid bug in the android framework itself, but I cant remember Sep 16 08:39:17 No it used to be an edittext and worked fine Sep 16 08:39:34 oh wait! Sep 16 08:39:49 http://developer.android.com/reference/android/widget/SearchView.html Sep 16 08:40:05 xml attribute for searchview is android:queryHint, not android:hint Sep 16 08:40:07 hi, can somebody point me to some examples on using intent template in a RemoteViewsFactory? I want to send the id of the item with the intent, i just cant seem to get it to work (and don't really understand how the template and the getViewat work together) Sep 16 08:40:10 Ah it's a queryhint Sep 16 08:40:18 Ok thanks! Sep 16 08:40:45 http://developer.android.com/guide/topics/search/search-dialog.html this should be updated then Sep 16 08:43:03 And I guess that the API wont let me see the hint before I select the search bar? I have the hint, but only once I can type in the search bar. Sep 16 08:43:46 So I've just got an odd looking magnifying glass by itself. Sep 16 08:45:27 if you dont collapse it, youll see the hint the whole time. Sep 16 08:46:35 How do I not collapse it? Sep 16 08:47:03 iconifiedByDefault="false", thanks! Sep 16 08:47:34 integration tests are sooooooo fun to refactor Sep 16 08:47:42 so unbelievably fun! Sep 16 08:48:49 lasserix: some day.. ill write tests Sep 16 08:49:06 that become some kind of a life motto for me ^^' Sep 16 08:49:08 they are actually incredibly useful Sep 16 08:49:18 but man android test framework kinda blows Sep 16 08:49:22 I agree and I usually do it. Sep 16 08:49:24 but not for android Sep 16 08:49:29 and the key is to make sure you really set up your architecture well Sep 16 08:49:31 for the testing Sep 16 08:49:37 so when you go change something fundemental Sep 16 08:49:43 i acttually write test methods for the logical part in android Sep 16 08:49:54 it is easy to reflect those chages it he framework, ie you dont have to manually edit a 1000 lines Sep 16 08:49:54 but no integration tests or tests on views.. Sep 16 08:59:59 its not too hard Sep 16 09:00:02 just tedious Sep 16 09:00:38 hi all, how can I import something like "com.android.internal.policy.impl.GlobalActions" to my project? Sep 16 09:04:23 is that internal to the android sdk?> Sep 16 09:05:08 I guess so Sep 16 09:05:14 hmm Sep 16 09:05:18 does not look lieke it Sep 16 09:05:20 com.android.internal Sep 16 09:05:26 can you import it?> Sep 16 09:05:41 i mean are you having a problem? looks like it would be inaccessable Sep 16 09:05:48 no Sep 16 09:06:00 so what's the problem? Sep 16 09:07:54 The problem is that I need to use it, but it's inaccessible Sep 16 09:07:58 meital: i dont belive you can't Sep 16 09:08:03 because it is inaccessable Sep 16 09:08:07 so use grep online Sep 16 09:08:12 and copy into your project manually Sep 16 09:08:17 tis the only way Sep 16 09:08:24 https://android.googlesource.com/platform/frameworks/base/+/742a67127366c376fdf188ff99ba30b27d3bf90c/policy/src/com/android/internal/policy/impl/GlobalActions.java Sep 16 09:08:44 Can Activity have 2 parent Activities? Sep 16 09:08:54 though i dont you'll be able to use it as is because they'll be a lot of SYSTEM_SERVICES that are only accessable by the system Sep 16 09:09:57 kamol: do you mean parents like "class parents" or in a navigation context Sep 16 09:10:15 danijoo: in navigation context Sep 16 09:10:45 not my manifest definition. but you can work arround it and define your own backstack Sep 16 09:11:12 meital: so basically copy that into a class file in your project, try and fix any inaccessable dependencies by removing them / editing them to something that is useful and accessable and voila you have it Sep 16 09:13:00 lasserix: thanks, I'll try that! Sep 16 09:13:09 danijoo: clear, thank you Sep 16 09:16:18 hi Sep 16 09:16:28 im trying to fit a webpage into a WebView Sep 16 09:16:56 of course i already found the 10000 SO-threads about it -- but still i have no luck, the website is always wider then the screen-width Sep 16 09:17:37 for me it looks like as it was the correct width in case the side is displayed in landscape mode, but i want it to fit in portrait oriantation. any ideas? Sep 16 09:21:04 thana: can you share your layout where you use webview? Sep 16 09:21:59 danijoo: do you have how to send bundle data into parent activty? Sep 16 09:22:02 kamol: layout is a good point. i just remembered i use the webview without any layout (its a fullscren app, so i though i dont need one). i will have a look how it looks like if i embed it into a layout Sep 16 09:22:05 I suspect it´s not much to do with WebView, more with the javascript/html, have you tried opening the page in your stockbrowser if you´re running Android versions below KitKat and otherwise in Chrome Sep 16 09:22:33 kamol: you cant send bundles backwards unless you use openActivityForResult Sep 16 09:24:22 danijoo: Activity B is parent of A, when I close A, I need to open B with some bundle… so you recommend openActivityForResult? Sep 16 09:24:40 no Sep 16 09:25:24 what about onPause() { if(isFinishing) // do your stuff to open B } Sep 16 09:26:50 danijoo: oh, it is intersting Sep 16 09:27:33 danijoo: let me try Sep 16 09:33:48 danijoo: hahaha, it works, but… in my case I have A, B, C… so C is not there… Should I do onPause() {isFinishing} in B too? :) Sep 16 09:34:08 I think what you are doing is bad Sep 16 09:34:35 what do you actually want? if your workflow is A -> B -> C and user presses back in C, he will land at B and you have to do nothing Sep 16 09:35:25 kamol just use a singleton Sep 16 09:35:35 subclass application class Sep 16 09:35:40 put a hashmap Sep 16 09:35:49 key is the activity name, value is whatever bundle you need Sep 16 09:36:44 danijoo: yeah it is bad Sep 16 09:36:55 Im having issues to get GoogleMap from a fragment, Im using Fragment gMapsFragment = getFragmentManager().findFragmentById(R.id.map); casting that to GoogleMap and then trying to call .getMap() is not working Sep 16 09:37:05 any ideas what I'm doing wrong? Sep 16 09:37:15 kamol: http://paste.debian.net/121123/ still no luck with this layout :( Sep 16 09:37:38 lasserix: let me think how to use it, I am still processing your suggesion Sep 16 09:38:18 kamol, basically each of your activity has access to this singleton (initialize it in application class) Sep 16 09:38:25 thana, have you opened your webpage in the browser on the phone/emulator you're testing on, does the webpage scale properly there? Sep 16 09:38:39 when a transition happens, ie a->b a dumps bundle into the hashmap with key of b and value of the bundle Sep 16 09:38:46 VnM: i did it: no it looks pretty much the same Sep 16 09:38:53 then when b starts, it grabs the bundle out of the hashmap Sep 16 09:39:13 rinse and repeat for the rest Sep 16 09:39:24 thana, then I doubt your issue will be resolved by changing things natively, you will probably have to alter the html/css if you have access to that Sep 16 09:39:30 thana: can you share your URL? Sep 16 09:40:45 VnM: i already tried several different viewport-settings (html wise). it always resulted in either far too wide rendering, or a much too small one Sep 16 09:41:04 lasserix: what you are saying, I can do with EvenBus or it will be overkill? Sep 16 09:41:25 kamol: why dont you use the default activity flow of android ? Sep 16 09:42:13 kamol: im sorry i cant Sep 16 09:42:34 danijoo: becasaue, I am idiot. I have notification widget which need to open Chat Acitivty (C). However, C’s parent B and B’s parent is A. Sep 16 09:42:58 kamol if you already have event bus sure that's what its for Sep 16 09:43:06 thana: I suspect something to do with your JS/HTML Sep 16 09:43:14 kamol add activity B as native parent to C in manifest, same for A as prent of B Sep 16 09:43:18 and android will do the rest Sep 16 09:43:35 read http://developer.android.com/training/implementing-navigation/ancestral.html Sep 16 09:43:39 I'm not familiar enough with html/js scaling to help you out with that, there are probably some stackoverflow threads to be found about scaling your website for mobile apps thana , otherwise maybe people in ##javascript or #html5 can help you out Sep 16 09:43:57 danijoo: I did, but I still need pass some parameters with bundle (or whatever) Sep 16 09:44:03 VnM: kamol: OK thank you :) Sep 16 09:44:27 kamol Sep 16 09:44:32 you can also use sharedprefences Sep 16 09:44:39 makes itmuch easier Sep 16 09:44:58 you can add bundles with taskstackbuilder Sep 16 09:44:59 just dump your bundle into shared preferences with the name as the thing Sep 16 09:45:11 read the documentation on that class (which is mentioned in my link) Sep 16 09:45:25 it has a function to add intents (with bundles) manually Sep 16 09:46:29 lasserix: I might go with EventBus, thus shareprefrances can be very slow on my old android phone due to the disk speed Sep 16 09:46:41 kamol: ahh yeah Sep 16 09:47:07 eventbus might be overkill if you are not already using it Sep 16 09:47:23 danijoo: thank you for your suggestion, I will go with lasserix: suggestion with EventBus, more modulo I guess Sep 16 09:47:45 in your face danijoo! Sep 16 09:47:46 ;p Sep 16 09:47:57 (even tho you make the better advice) Sep 16 09:48:02 lasserix: yeah, but I am already using it anyway. thank you guys Sep 16 09:48:08 if you think its easier to impement a library and make a workaround instead of using the native tools android is giving you .. :) good luck! Sep 16 09:48:15 ^^ Sep 16 09:51:54 i’m trying to make a gear icon with drawing code… how can i shift the position of a rect to a position around the perimeter of a circle? Sep 16 09:52:00 danijoo: I think it is more flexible (modulo). It doesn’t matter how deep can go (A->B->C->D) no matter it is activity or fragment. Let me try I will be back to you with my feedback. I really appreciate your advices btw. Thank you! Sep 16 09:52:07 i figured out canvas.save, rotate, and restore Sep 16 09:52:57 translate Sep 16 09:53:08 i thought so, i’ve been kind of looking into that Sep 16 09:53:24 as pointless as this whole concept sounds like Sep 16 09:53:46 I would just use a PNG or at least construct an XML drawable Sep 16 10:10:42 got it :D Sep 16 10:11:12 any one can recommend some GUI software for Android app software design? So, just looking at drawing you can recall your entire app design and structure? Sep 16 10:11:49 im using pen and paper :) Sep 16 10:11:57 code, here Sep 16 10:15:26 danijoo: hahaha :) me too, but loosing my notes :( Sep 16 10:16:04 kamol: have a look at pencil (software) Sep 16 10:16:32 http://developer.android.com/training/implementing-navigation/ancestral.html Sep 16 10:16:38 ups wrong link Sep 16 10:16:49 http://pencil.evolus.vn/ Sep 16 10:19:53 danijoo: hm… nice :) Sep 16 10:21:14 danijoo: thank you! Sep 16 10:58:15 hello Sep 16 10:58:26 anybody have worked on report generation Sep 16 10:58:54 as i need to generate .doc report through my mobile is it possible using some opensource library Sep 16 11:00:26 isnt .doc a licensed format of microsoft and cant be used without you paying them? Sep 16 11:02:25 jasper reports can generate doc files i believe but you probably have to make a service Sep 16 11:52:16 is there something like Phonegap but that allows me to write the app in c#? Sep 16 11:55:57 Donguston: https://duckduckgo.com/?q=can+I+write+my+android+app+in+c%23 Sep 16 11:56:42 Xamarin Sep 16 11:58:43 sorry for this newbie question but is it normal for eclipse or android avd to crash too often on Linux? Sep 16 12:05:11 no Sep 16 12:08:41 danijoo: I get java error even though I have openjdk 7 installed Sep 16 12:10:16 sandman13: you shoud use oracleJDK. There are often problems with openjdk and AS Sep 16 12:10:59 when I set my viewpager .setOffScreenPageLimit(x) does it load those pages when the activity holding the viewpager is cfreated? Sep 16 12:11:54 danijoo: hmm let me try it :D Sep 16 12:17:21 rgr, why do you use duck duck go? Sep 16 12:17:35 rofl Sep 16 12:17:38 emacs Sep 16 12:17:39 as well Sep 16 12:17:50 do you spend a lot of money on tin foil? Sep 16 12:18:25 lol Sep 16 12:20:27 Donguston: you know how expensive tin foil is now that the aluminum order has taken over!? Sep 16 12:24:31 what is a ZoomButton supposed to do? Sep 16 12:25:13 Donguston: Duck Duck go is actually pretty good Sep 16 12:27:32 hi all, I 'm trying to build a test project not from eclipse (until now I built it only with eclipse) - but I can't find any build.xml file in the project...How did eclipse built it? Sep 16 12:28:26 #eclipse ? Sep 16 12:32:51 Hello guys, I have a list adapter and there I download an image when needed using AsyncTask. The problem is, what technique to use if adapter is cleaned up because of configurarion change and AsyncTask wants to report back that it has finished downloading an image? Thank you. Sep 16 12:33:50 i read a pretty good article about that: http://www.androiddesignpatterns.com/2013/04/retaining-objects-across-config-changes.html Sep 16 12:33:58 i have not tried it myself though, but it seems clear Sep 16 12:34:34 now can you tell me what a typical use-case of a ZoomButton is? :P Sep 16 12:35:43 hihihi Sep 16 12:38:04 I've used Zoombutton in a map application where I used static map. So using the zoombutton I could send to the server that I want to zoom in or zoom out. Off course I could use Google maps or other map tools, but this particular client provides its own map because of security stuff. Sep 16 12:38:29 so what is the behavior supposed to be when you tap the button vs holding it down? Sep 16 12:38:39 By static map I mean map as images and not dynamic like the Google maps. Sep 16 12:39:50 holding down is not really a button propperty, holding down is more kind of selecting a text or something. So to my experience you better don't use holding down on a button. Sep 16 12:40:21 although you have that onLongClick thing callback Sep 16 12:40:37 k well i am just trying to figure out what to do with the long-press event Sep 16 12:40:53 I never used it and I can't remember I've seen someone used longclick on a button. Sep 16 12:41:23 is the user able to choose whether they are zooming in or out, or does only the programmer do that with setZoomInEnabled/setZoomOutEnabled? Sep 16 12:41:40 the longpress is more like trigger a context menu or something Sep 16 12:41:53 hmm that makes sense Sep 16 12:42:24 cool thanks Number5 :) Sep 16 12:43:07 piratejon, no problem, by the way I already read that link you provided, it's a very good one, but not what I'm looking for. thanks anyway :) Sep 16 12:44:32 Donguston: I use duckduckgo so that google dont get my every consumer search. And I use emacs because its one of the best editors ever made : consistency across editing sessions. I use it for erc and note taking using orgmode as well as for html/css work - NOT for java. It's a crap Java editor ;) Sep 16 12:44:45 (erc being a superb irc client) Sep 16 12:46:50 so i've tried so many ways and it seems like android doesn't allow for this. can someone provide me a working way to handle clicks on a menu item? ...one that won't throw an inflaterexception? Sep 16 12:49:43 I want a quote for you to make games like Pacman and Candy Crush in an hour Sep 16 12:50:06 You're fired Estel Sep 16 12:50:51 so there is no way? Sep 16 12:50:54 interesting Sep 16 12:53:00 lol...fuckin android Sep 16 12:53:34 rgr, I use a Vim plugin Vrapper in Eclipse, so I can use Vim for Java code development :P Sep 16 12:53:38 s'got a ways to go to develop APIs like for windows phone Sep 16 12:53:44 goodluck android Sep 16 12:55:00 MartialLaw, maybe you should start reading some 101 Android development books :) Sep 16 12:55:24 Using vim for Java borders on nuts IMO. Very 1337 but no thanks. Even with all the plugins the drop in efficiency compared to using something IntelliJ is huge. Better not to discuss that :) Sep 16 12:55:34 (Java for android especially) Sep 16 12:56:20 At least, Vim is a little better than Emacs :P Sep 16 12:59:56 * lewellyn notes that ecliipse has both vrapper and emacs+ to satisfy both sides of the holy war. ;) Sep 16 13:00:35 * lewellyn notes that neither vrapper nor emacs+ pulls in an external dependency, either. Sep 16 13:18:58 i am using a vim plugin with eclipse and i like it Sep 16 13:23:21 I haven't tried to understand vim yet. Looks pretty cozy though Sep 16 13:23:28 any way to make javaw.exe take less than the RAM it currently takes (536 MB)? Sep 16 13:23:56 MY PC has just 2 GB RAM so eclipse+ emulator makes it very sluggish Sep 16 13:24:09 yuk Sep 16 13:24:29 i have 32GB RAM and i still feel like eclipse is a bit sluggish Sep 16 13:24:34 hahahaha Sep 16 13:24:58 to make eclipse smooth you need quantum computer Sep 16 13:25:05 but hey DDR4 maybe i can afford enough RAM to make it quick? Sep 16 13:25:19 ahhh ... a quantum computer, noted, thanks! Sep 16 13:25:44 Hi, Sep 16 13:25:55 sometimes it just inexplicably stalls when i click on a property in the layout editor, boo, comes back in a minute :-/ Sep 16 13:26:22 i thought the vim plugin was slowing it down a bit since it's not stock or anything but i turned it off and still the same lag between typing and character display. IDGI Sep 16 13:26:51 is there a way to test the GeofenceApi ? Sep 16 13:58:06 hmm. why the hell am I getting an ambiguous resolution for for getClass? It seems intellij/AS is seeing sdk/sources as well as sdk/platforms. How to clean this? Sep 16 14:00:39 oh. Its a bug. RTSO.... http://stackoverflow.com/questions/18505973/android-studio-ambiguous-method-call-getclass#18506329 Sep 16 14:06:33 sounds like a bad answer Sep 16 14:06:53 usually reason is you have java rt and android library Sep 16 14:08:39 java rt? not sure what that is. Both versions in the ambiguous statement are in the sdk. this solves it : ((Object) this).getClass() Sep 16 14:09:32 never seen that in my projects... Sep 16 14:11:20 well, seen something similar, but it was fixed by adjusting libraries Sep 16 14:11:48 just go back to emacs, it works better Sep 16 14:14:02 heh Sep 16 14:14:19 That issue has been in intellij forever, happens with android maven projects as well Sep 16 14:14:33 but it seems that its quite commonplace so I guess you're lucky. Sep 16 14:14:40 or dont use AS/Intellij Sep 16 14:25:46 How can I make the keyboard not hiding the layout, but make it shrink? Sep 16 14:27:09 i can not set a custom font at all. it is in my assets folder and i tried everything...file is not corrupt as i tried many different ttf files. i just keep getting a 'native typeface cannot be made' Sep 16 14:29:02 ? Sep 16 14:35:19 you provide no code so how can people help you? A simple google shows lots of SO answers. https://www.google.com/search?ie=utf-8&oe=utf-8&q=native%20typeface%20cannot%20be%20made Sep 16 14:35:59 this looks promising since its simple : http://androidresearch.wordpress.com/2012/12/20/using-custom-fonts-in-android/ Sep 16 14:39:12 A Sep 16 14:49:13 hi all Sep 16 14:49:50 hello Alfreda Sep 16 14:50:01 in my app that is a simple google map viewever Sep 16 14:50:04 i have this error: Sep 16 14:50:05 http://pastebin.com/qBr5bEhF Sep 16 14:50:24 Good morning everyone Sep 16 14:50:33 my code is this: http://pastebin.com/CeH1uRyL Sep 16 14:50:37 is there any docs on the NDK methods? Sep 16 14:50:59 Hi everyone Sep 16 14:51:06 I'm still having a problem with MediaController and hiding the navigation. The full question description is in the pastebin : http://pastebin.com/GfnMsqXq Sep 16 14:51:16 is anyone familiar with android volley? Sep 16 14:51:23 someone can hel me pls? Sep 16 14:51:25 thanks Sep 16 14:51:33 Alfreda: looks like location is null Sep 16 14:51:49 and why location is null? Sep 16 14:52:46 i must enable Google Maps Coordinate API ? Sep 16 14:53:41 Alfreda, RTFM : http://developer.android.com/reference/android/location/LocationManager.html#getLastKnownLocation(java.lang.String) Sep 16 14:54:57 i dont use this function Sep 16 14:54:58 i use Sep 16 14:55:10 ahh okok Sep 16 14:55:17 so i must enable which service? Sep 16 14:56:43 fine_location Sep 16 14:56:50 and something else, i forget Sep 16 14:57:05 i have enable: Google Maps Android API v2 Sep 16 14:57:12 Google Maps Geolocation API Sep 16 14:57:17 Google Maps JavaScript API v3 Sep 16 14:57:18 ohh that Sep 16 14:57:21 * xximjasonxx backs away Sep 16 14:57:26 MikeWallaceDev: ? Sep 16 14:57:29 Maps integration is definitely an area Google could improve Sep 16 14:57:56 xximjasonxx: i must enable another service? Sep 16 14:58:13 no, i thought you were referring to the service/perms on the device Sep 16 14:58:21 Alfreda, null is a normal return value. Sep 16 14:58:39 so service is enabled? Sep 16 14:59:00 on https://code.google.com/apis/ Sep 16 14:59:07 and why i have null value? Sep 16 14:59:38 hmm. following that Q about ttf fonts I thought Id use one for my debugging pane. took all of one minute to download a ttf, stick it in the assests folder and then create a TypeFace field in my main engine later to apply it to a fragment text view. Another thing that SO provides so well ;) lmgtfy.... Sep 16 14:59:39 Because there no last known position Sep 16 14:59:45 It's explicitly documented that it can return null Sep 16 14:59:52 You should handle it appropriately Sep 16 15:00:03 I think a null result means you are not on the surface of the Earth Sep 16 15:00:22 can anyone advise on the best way to format paragraphs of text, including bullet points, in the strings file? Sep 16 15:00:25 Means you are George Clooney in Gravity :) Sep 16 15:00:36 the_fog: HTML? Sep 16 15:00:58 SimonVT: If the provider is currently disabled, null is returned. Sep 16 15:01:03 no, for an expandable list view Sep 16 15:01:06 http://developer.android.com/reference/android/location/LocationManager.html#getLastKnownLocation(java.lang.String) Sep 16 15:01:15 i must enable gps? Sep 16 15:01:22 on phone? Sep 16 15:01:35 Alfreda: depends on what you want to do Sep 16 15:01:51 i think if you just want to show a map and drop things in the layers Sep 16 15:01:54 i want view my position on a google map Sep 16 15:01:54 you shouldnt need the GPS Sep 16 15:02:00 then yes you need the GPS Sep 16 15:02:03 is only a test for use google map Sep 16 15:02:16 and you will have to get permission from Android to ask for it Sep 16 15:02:16 getLastKnownPosition is meant as a temporary position until your location listener starts firing Sep 16 15:02:25 xximjasonxx: the groups are questions and the children are long answers Sep 16 15:02:39 If there is one, great.. If there is none, default to something Sep 16 15:02:41 kind of an FAQ Sep 16 15:03:22 the_fog: http://stackoverflow.com/questions/3429546/how-do-i-add-a-bullet-symbol-in-textview Sep 16 15:03:35 so i must resolve my problem? Sep 16 15:03:40 how? Sep 16 15:03:54 of not having a location initially? Sep 16 15:04:19 yes Sep 16 15:04:23 Don't call methods on null variables Sep 16 15:04:25 is a first time that i run my app Sep 16 15:04:26 Problem solved Sep 16 15:04:48 xximjasonxx : yeah, i read that. thought there might be something more graceful :) thanks Sep 16 15:05:01 the_fog: graceful? on Android? :) Sep 16 15:05:05 lol Sep 16 15:05:13 SimonVT: how? Sep 16 15:05:23 Alfreda: err, check for null.. Sep 16 15:05:39 Alfreda: like SimonVT said, dont call methods on a null object Sep 16 15:05:40 k i test Sep 16 15:05:46 default to something saying "turn gps on and wait".... Sep 16 15:05:59 so i edit my code Sep 16 15:06:10 * xximjasonxx feels like this is becoming hand holding Sep 16 15:07:15 Alfreda: I mean this with all seriousness and sincerity, go read about this first: http://stackoverflow.com/questions/1513485/how-do-i-get-the-current-gps-location-programmatically-in-android Sep 16 15:07:16 xximjasonxx: http://pastebin.com/wgyw54NR is correct? Sep 16 15:07:31 Is there a way to essentially say "if anything is clicked other than this View, do something", without having to go the seemingly naive route of adding click events to everything but Sep 16 15:07:47 neither myself, SimonVT or rgr want to walk you through step by step how to write a location aware app Sep 16 15:08:35 i dont want use gps.. i want use localization from network Sep 16 15:08:45 i want open gps in my phone Sep 16 15:08:55 Alfreda: if you read up you will understand that its all the same thing Sep 16 15:08:59 then do so. But dont assume you have a locked in position at the start. Sep 16 15:09:07 with varying degrees of accuracy Sep 16 15:09:44 though having tried to use my nexus 4 in Berlin this weekend I have to say its GPS and mapping is total crap.... but thats another story..... Sep 16 15:09:48 mattblang: that would be the way to do it, but how you do it can differ Sep 16 15:10:38 xximjasonxx: your link http://stackoverflow.com/questions/1513485/how-do-i-get-the-current-gps-location-programmatically-in-android use gps for location Sep 16 15:11:13 is correct my modify http://pastebin.com/wgyw54NR ? Sep 16 15:11:23 rgr: how i do this? Sep 16 15:11:27 is first time for me? Sep 16 15:11:44 alexfu to be more specific, im trying to achieve the gmail toast behavior if "no internet connection". Any touch or gesture anywhere but the "Retry" button will dismiss the Toast. Was hoping I coudl do this some way without having to handle a ton of different touch events Sep 16 15:12:03 there is an example? Sep 16 15:12:43 or a tutorial? Sep 16 15:14:05 mattblang: oh.. thats much different Sep 16 15:15:10 If you are unable to google an example and expect me and others to do it for you then I suspect you wont have much luck. You were already provided a link which has links to examples. Sep 16 15:15:14 I've resigned to SO... Sep 16 15:15:15 public class MySwankyVideoView extends FrameLayout implements MySwankyViewBase Sep 16 15:15:15 { Sep 16 15:15:19 oops :D Sep 16 15:15:28 http://stackoverflow.com/questions/25872486/why-does-a-mediacontroller-affect-hiding-the-navigation-bar Sep 16 15:15:36 alexfu like maybe if there was some way to figureo out if the toast was being touched in onInterceptTouchEvent or something Sep 16 15:15:52 rgr: which? Sep 16 15:16:26 mattblang: one way that comes to mind is to listen for touch events somewhere and then see if that x,y is in the bounds of the toast or not Sep 16 15:16:44 Now you're taking the piss. Read it. Check the upvotes. Sep 16 15:18:07 * xximjasonxx smells a troll Sep 16 15:19:02 he's not s troll, but he does have a pattern Sep 16 15:19:14 * MikeWallaceDev smells a wanker, that's why I avoided the question :) Sep 16 15:19:22 he may well be a wanker Sep 16 15:19:26 well he is gone now Sep 16 15:19:50 Leeds, Jinx? :D Sep 16 15:20:03 MikeWallaceDev: no, I was agreeing with you :) Sep 16 15:20:23 :) Sep 16 15:23:16 rgr: I was in NYC over the weekend, turn by turn got confused because of the tall buildings. Thankfully, Dad taught me how to read a map Sep 16 15:23:36 GPS in general sucks in the big city, unless you are driving. Seems to be better then Sep 16 15:31:48 is there any way to detect touch on the action bar? Sep 16 15:33:29 i assume you dont mean an option clikc Sep 16 15:33:32 just a touch in general Sep 16 15:33:36 yeah Sep 16 15:33:47 hrmm, well a custom action bar perhaps Sep 16 15:33:56 not sure if the default one registers touch events in the way you need Sep 16 15:34:53 yeah... dang it. I want to emulate the gmail app "no internet" toast, which dismisses if anything but the "Retry" button is clicked. all my options so far I am not liking Sep 16 15:35:12 the "Retry" button in the toast itself Sep 16 15:35:33 i can not set a custom font at all. it is in my assets folder and i tried everything...file is not corrupt as i tried many different ttf files. i just keep getting a 'native typeface cannot be made' Sep 16 15:35:46 is it even possible in android? Sep 16 15:35:59 yes Sep 16 15:36:13 sounds like the font isnt loading actually Sep 16 15:36:39 this help: v Sep 16 15:36:40 http://stackoverflow.com/questions/12766930/native-typeface-cannot-be-made-only-for-some-people Sep 16 15:37:24 or this: http://stackoverflow.com/questions/20049643/runtimeexception-native-typeface-cannot-be-made Sep 16 15:38:11 MartialLaw: looks like if you move the Asset folder you should be fine Sep 16 15:38:39 not using android studio tho Sep 16 15:38:48 Eclipse? Sep 16 15:38:52 my assets folder is not in src folder Sep 16 15:38:54 yea Sep 16 15:38:58 dont know then Sep 16 15:39:04 i havent touched Eclipse in 5yrs Sep 16 15:39:40 hm ok... well even 5 years ago people were using custom fonts so how did they manage? Sep 16 15:39:53 Asset folder Sep 16 15:39:55 Eclipse is like an ex girlfriend that I broke it off with, and I really hate when I see her Sep 16 15:39:56 android studio has too many bugs Sep 16 15:40:04 understandable its Beta Sep 16 15:40:06 what do you use? Sep 16 15:40:15 Android Studio Sep 16 15:40:21 or IntelliJ Sep 16 15:40:23 and you don't have many problems with it? Sep 16 15:40:26 but mostly Studio these days Sep 16 15:40:28 IntelliJ is ok Sep 16 15:40:30 MartialLaw heck no, Android Studio rocks Sep 16 15:40:37 no, the last few releases have really solidified it Sep 16 15:40:55 gradle integration still needs work, but aside from that it works very well for me Sep 16 15:41:09 MartialLaw been using it full time at my company since about March / April. I started a fresh project though, so maybe the export / import could be more buggy I don't know Sep 16 15:41:11 guess i should make the switch. i have it and used it occasionally but never got deep Sep 16 15:41:18 although, I tend to think doing native Android and iOS for the same project is like burning cash Sep 16 15:41:24 but that is another conversation Sep 16 15:41:26 :) Sep 16 15:41:37 why is that? Sep 16 15:41:54 i mean...care to elaborate? Sep 16 15:42:01 cause what business in their right mind A) wants to pay someone to develop the same app twice and B) wants to maintain two disparate code bases? Sep 16 15:42:22 and C) what developer actually enjoys going between the two :) Sep 16 15:42:29 indeed Sep 16 15:42:30 xximjasonxx a business that wants the quality of a native app? Sep 16 15:42:41 mattblang: indeed, hence why I am moving to Xamarin Sep 16 15:42:41 that would be the argument Sep 16 15:42:49 Native experience, shared code base Sep 16 15:42:53 the best of both worlds Sep 16 15:43:28 xximjasonxx someone linked me this the other day. will have to check it out Sep 16 15:43:35 xximjasonxx Xamarin that is Sep 16 15:43:46 mattblang: it is my hope that Xamarin adoption really picks up Sep 16 15:44:01 because a) i dislike Objective-C/Swift Sep 16 15:44:05 and b) I dislike Java Sep 16 15:44:19 xximjasonxx im assuming you like C# :P Sep 16 15:44:23 mattblang: I do Sep 16 15:44:35 xximjasonxx I haven't used it myself, but would definitely be open to doing so Sep 16 15:44:49 xximjasonxx: "Write once, crash everywhere" mantra Sep 16 15:45:02 indeed, if that is what Xamarin was Sep 16 15:45:16 but i also know what its like to maintain Objective-C and Android projects together Sep 16 15:45:48 Mrdarknezz: that mantra is certainly true for tools like PhoneGap, SenchaTouch, Appcelerator, etc Sep 16 15:46:03 but Xamarin still require you to write the UI portions for each platform Sep 16 15:46:05 xximjasonxx then your client decides they want the app to work on Surfaces too Sep 16 15:46:23 xximjasonxx because the boss got some free ones from IBM or something Sep 16 15:46:24 mattblang: and it takes me 2-3wks to add that in Sep 16 15:46:33 xximjasonxx: If you’re smart you can minimize the amount of platform-dependent code in your application. Sep 16 15:46:33 as opposed to a whole new development effort Sep 16 15:46:47 Then it’s pretty simple to have an Objective-C and a Java frontend. Sep 16 15:46:54 Xamarin looks nice Sep 16 15:46:57 jfpoole: so, you are speaking to a proxy based approach where you have the service do the majority of the heavy lifting Sep 16 15:47:36 Your UI code should just implement the UI. Any actual logic would be in the cross-platform code (C, C++, what have you). Sep 16 15:47:47 jfpoole: exactly what Xamarin promotes Sep 16 15:48:08 I don’t have any experience with Xamarin. Sep 16 15:48:12 i assume you are talking about loading c/c++ code into Java and Objective-C Sep 16 15:48:15 I’m generally skeptical of cross-platform toolkits. Sep 16 15:48:25 jfpoole: as am I Sep 16 15:48:57 xximjasonxx: If it works as well as your are portraying then it's quite amazing Sep 16 15:49:05 xximjasonxx: But do you still need OSX to build IOS apps? Sep 16 15:49:13 yes and no Sep 16 15:49:23 you can build the iOS code in Visual Studion (its in C#) Sep 16 15:49:33 however, to actually build and deploy it, yes you will need OSX somewhere Sep 16 15:49:39 xximjasonxx: I see Sep 16 15:50:04 just as you cant build Windows Phone on Mac (not that anyone really cares) :) Sep 16 15:50:42 Mrdarknezz: I dont often get impressed by things, I have seen too much crap in my career. But what they have managed to pull off at Xamarin is nothing short of a phenomenal piece of software engineering Sep 16 15:50:50 xximjasonxx: Well yeah but windows phone doesn't have a significant demography for my client so thats not really a bother Sep 16 15:50:59 clients* Sep 16 15:51:09 Mrdarknezz: hence why I said "not that anyone really cares" :) Sep 16 15:51:14 Does Windows Phone have significant numbers for anyone? :-) Sep 16 15:51:27 jfpoole: ahead of iPhone in 24 markets in europe Sep 16 15:51:43 xximjasonxx: Which markets? Sep 16 15:51:44 Mostly scandanavian countries, italy as well Sep 16 15:51:48 xximjasonxx: What? Sep 16 15:51:52 xximjasonxx: I live in Sweden Sep 16 15:52:02 xximjasonxx: Haven't seen a windows phone in a year Sep 16 15:52:12 Mrdarknezz: Nokia Sep 16 15:52:26 xximjasonxx: I think you got your stats wrong Sep 16 15:52:33 could be Sep 16 15:52:40 give me a second Sep 16 15:52:49 xximjasonxx: Sweden is one of the population with the highest iphone density Sep 16 15:52:51 Interesting. Sep 16 15:52:52 http://bgr.com/2014/07/01/windows-phone-market-share-3/ Sep 16 15:52:59 “All of that helped give Windows Phone 3% to 5% slice of the smartphone market. And now that pitiful toehold is already eroding, washed away by the flood of $100 Android smartphones." Sep 16 15:53:05 http://www.forbes.com/sites/gordonkelly/2014/01/21/here-are-24-countries-where-windows-phone-outsells-the-iphone-and-why-it-does/ Sep 16 15:53:08 xximjasonxx: Atleast thats what my Applefanboy boss tells me Sep 16 15:54:17 xximjasonxx: That is worldwide not europe Sep 16 15:54:26 apologies Sep 16 15:55:04 Where Finland( Where Nokia was founded) was the only Scandinavian country Sep 16 15:55:22 Mrdarknezz: yeah, I misread the stats when I first saw the article Sep 16 15:55:38 and I actually assumed it was the Scandavian countries, because of Nokia Sep 16 15:55:46 It sounds like in 22 of the 24 countries the iPhone is extremely expensive3. Sep 16 15:56:03 jfpoole: well to be fair, that is also where Android has seen its biggest gains as well Sep 16 15:56:32 the low cost smartphone has long been the domain of Android Sep 16 15:56:47 as Apple found out with their "cheap" C version, which wasnt cheap Sep 16 15:57:36 anyway, i am not here to defend Windows Phone, I used one for a year before I went back to Android Sep 16 15:58:03 had MartialLaw not asked I would not have even brought up Xamarin :) Sep 16 15:58:22 xximjasonxx: I like the new Microsoft that is actually starting to produce useful stuff again Sep 16 15:58:42 * xximjasonxx is not a Microsoft fan boy Sep 16 15:58:47 Me neither Sep 16 15:58:56 honestly, I think the Surface is shit Sep 16 15:59:01 i have had nothing but problems with it Sep 16 15:59:09 I like the ideas they have behind the "One" OS Sep 16 15:59:16 Well yeah I mean software wise, Azure is pretty neat Sep 16 15:59:19 or Sep 16 15:59:23 as to whether they can execute successfully, well you know Sep 16 15:59:23 that is mainly hardware based Sep 16 15:59:31 ohh I love Azure Sep 16 15:59:39 that I will be a fanboy about :) Sep 16 15:59:55 I have no problem with Microsoft, but I can't stand Windows anymore... Sep 16 16:00:06 so I have heard before MikeWallaceDev Sep 16 16:00:08 :) Sep 16 16:00:08 Microsoft came up with a great idea, a Start menu! Sep 16 16:00:20 * xximjasonxx cried when he saw the Windows 9 start menu Sep 16 16:00:22 hoping everyone forgot we had them Sep 16 16:00:48 but i guess if Apple will bow to consumer pressure and produce a bigger screen Sep 16 16:01:12 Microsoft should also, although they way they are going with the start menu really seems like a big "fuck you" to everyone Sep 16 16:01:32 incidentally, if MS have 2.5 billion dollars for a block game, why haven't they bought xamarin yet? Sep 16 16:01:47 Leeds: no idea, perhaps they like buying worthless things Sep 16 16:02:32 although that question has come up more than once. My best guess is, since they want to be cross platform, Xamarin would probably prefer to avoid being the property of a company like Microsoft, or Google or Apple Sep 16 16:03:07 but they do work closely with all three. The PCL support Microsoft introduced which allows you to share your C# class library code between Windows, iOS, and Android was really neat Sep 16 16:03:59 Does anyone at Apple or Google actually work with Xamarin? Sep 16 16:04:14 I can’t imagine anyone at either company looking too favorably on a cross-platform toolkit like that. Sep 16 16:04:36 they must, Xamarin already support iOS8 and Android L support is already in their unstable branch Sep 16 16:04:42 *supports Sep 16 16:04:48 jfpoole: It will all come down to end product quality and the time you save Sep 16 16:05:07 iOS 8 beta has been out since June. Sep 16 16:05:20 jfpoole: I am aware Sep 16 16:05:27 If Xamarin had launched iOS 8 support in June then, yeah, I’d say that they’re working with Apple. Sep 16 16:05:38 Launching iOS 8 support now-ish just means they had access to the beeta. Sep 16 16:05:40 er, beta. Sep 16 16:05:46 Mrdarknezz: and that is why I tend to be so favorable of Xamarin cause I save time by sharing code and using the same langauge but you can still use the same native UI components and idioms that end users are accustomed to Sep 16 16:05:49 jfpoole: fair point Sep 16 16:06:39 jfpoole: actually, its doubtful with Apple because around iOS4 there was a huge debate of whether MonoTouch would even be allowed in the AppStore Sep 16 16:07:25 but because of the way they compile the code, it becomes a native binary, so it was permitted Sep 16 16:07:52 xximjasonxx: So what are the downsides? Sep 16 16:08:13 Mrdarknezz: so if you want to do something really really really crazy and rare Sep 16 16:08:19 its harder in Xamarin Sep 16 16:08:22 xximjasonxx: Yeah.. Sep 16 16:08:25 for obvious reasons Sep 16 16:08:43 for example, apparently the Good binary does some crazy stuff to the AppDelegate in native Objective-C Sep 16 16:08:44 xximjasonxx: If I want to implement thirdparty libs how does that work Sep 16 16:08:56 Mrdarknezz: either use the jar or nuget Sep 16 16:09:02 wow just like that? Sep 16 16:09:18 Good apparently replaces the entire AppDelegate in your application with something custom Sep 16 16:09:28 I see Sep 16 16:09:31 so you have to modify the linker if you use Xamarin Sep 16 16:09:42 its something that you would rarely do if you were doing straight objective-c Sep 16 16:10:08 its supported by Xamarin, but not overly easy to implement. Like I said, its very rare, I had never seen anything like it before I came to my current company Sep 16 16:10:32 the other downside is you do have to pay for Xamarin. However, I tend to feel that you save more money that you spend Sep 16 16:10:36 My two sense on Xamarin, was that is seemed like a awesome idea, but when it came down to it I was debugging everywhere and ran into so many issues. Sep 16 16:10:40 cents* Sep 16 16:10:59 pieces029: see i have had that experience Sep 16 16:11:16 certainly is a learning curve, but the nice thing is, since the wrapper is 1:1 with the native libs Sep 16 16:11:21 you get double the documentation :) Sep 16 16:12:00 Mrdarknezz: so aside from price and some obtuse corner cases, the only other downside i can see is it would be a new language if your organization is not already doing .NET Sep 16 16:12:31 I liked the idea of being able to use native android libs, but then you can't have it be cross platform. It was some wierd stuff. It's like a hour glass shape of code. The UI is not shared, the middle stuff can be, and if you try really really hard, the lower level services can be too. But at the end of the day I would say it's not worth it. Sep 16 16:12:37 xximjasonxx: Yeah ok Sep 16 16:12:41 disclaimer: I do not work for Xamarin, but I do work for a Xamarin partner Sep 16 16:12:51 Well Im off for today Sep 16 16:12:53 bye Sep 16 16:13:09 how do you reference designer-created buttons from the Java code in the Eclipse ADK Sep 16 16:13:15 pieces029: to each their own Sep 16 16:13:20 jimmt: findViewById Sep 16 16:13:44 pieces029: I would ask if you understand the purpose of cross platform, based on that statement Sep 16 16:13:49 xximjasonxx: Yup. Don't get me wrong, I think C# is a great lang. Sep 16 16:14:12 understand that Xamarin is not about creating cross platform UIs, like Appcelerator or Sencha Sep 16 16:14:36 because, then you go down the rabbit hole of mobile web (although Xamarin forms attempts to do this, that is a different conversation) Sep 16 16:14:38 xximjasonxx: I found that even a lot of the backend stuff wasn't cross platform. Sep 16 16:14:47 pieces029: such as? Sep 16 16:15:24 Oh my favorite being AES encryption. When I contacted Xamarin about that they said, oh yeah we don't support that at all, but you can implement it. Sep 16 16:15:36 That's it works on Windows desktops and that's it. Sep 16 16:15:55 why does this take an integer but the id is defined as a string in the xml Sep 16 16:16:07 jimmt: R.id. Sep 16 16:16:23 jimmt: sounds like you need an intro to Android link :) Sep 16 16:16:23 xximjasonxx: but databases and the like, I felt like I was writing interfaces for everything abstract it out. Sep 16 16:16:35 pieces029: i imagine you would be Sep 16 16:16:51 that is the entire premise of cross platform Sep 16 16:17:08 something like MVVMCross exemplifies that perfectly Sep 16 16:17:22 Xamarin is about giving you the ability to target the platform, HOW you do it is up to you Sep 16 16:17:34 which gives you the flexibility that is essential in good mobile app development Sep 16 16:18:14 their latest innovation, Xamarin Forms, is pretty neat, but certainly is contrary to the principles which I have found positive about the plaform Sep 16 16:18:52 pieces029: as you describe your concerns, I think you are looking for something more like AppCelerator, that enables a one and done approach. That is not what Xamarin is about Sep 16 16:19:55 xximjasonxx: I mean if that's not what Xamarin is about, but rather write for each platform what is the point? Sep 16 16:20:17 It by no means made android better, the 100's of libs that already work for Android did that. Sep 16 16:20:22 Xamarin enables you to share code between the platforms while still being able to take advantage of native platform components Sep 16 16:21:05 But what's the point in sharing it if in each section I have custom code for each platform or preprocessor statements everywhere? Sep 16 16:21:10 hi, does someone here have experience with the new Geofence api? Sep 16 16:21:24 byt89: There is a new one? Sep 16 16:21:52 pieces029: if you do it right, you dont Sep 16 16:22:12 for example, MVVMCross allows you to use IoC to inject those dependant libraries into the core Sep 16 16:22:30 but Android and iOS are always going to interact with SQLite differently Sep 16 16:22:40 with their bevy of sensors differently Sep 16 16:22:46 with secure storage different Sep 16 16:22:49 *differently Sep 16 16:23:06 so those modules stay in the platform specific project Sep 16 16:23:32 they can, however, sit behind common interfaces Sep 16 16:24:07 but no, Xamarin doesnt teach you how to architect a cross platform app effectively, just gives you the means to do so Sep 16 16:24:33 ok Sep 16 16:24:57 pieces029: the relative new one. LocationServices.GeofenceApi Sep 16 16:25:24 lol sorry pieces029, talked your ear off :) Sep 16 16:26:20 np Sep 16 16:27:29 xximjasonxx, I was just trying to get a quick hello world-button type thing set up, I'm leading some app development side project of a compsci club thing Sep 16 16:27:40 now that I see what the structure's like I'll be able to just go from there mostly Sep 16 16:27:50 this is a lot less nice to work with than Visual Studio Sep 16 16:28:02 jimmt: if you take all of the defaults in Android Studio, it will set that up for you and give a good idea Sep 16 16:28:11 jimmt: very much less nice :) Sep 16 16:28:19 what's Android Studio Sep 16 16:28:38 Google's Android IDE Sep 16 16:29:20 I'll try that Sep 16 16:33:37 ok I've got basic sound playback with ogg-vorbis and OpenSL Sep 16 16:33:53 byt89: Yeah I have been using that. Sep 16 16:34:48 pieces029: is it working for you in the backgroind, when the device is in standby? Sep 16 16:36:56 is there a way I can load asset files and read buffered instead of just reading the entire file to memory? https://bpaste.net/show/0937d4e2f9f7 Sep 16 16:41:35 hmmm copying to std::vector is inefficient there Sep 16 16:42:39 ah found it in the ndk: int AAsset_read(AAsset* asset, void* buf, size_t count); Sep 16 16:42:56 hey everyone Sep 16 16:42:56 should i use android:alwaysRetainTaskState="true" on my manifest to retain my main activity state Sep 16 16:43:12 what are your thoughts on message.obtain() vs message.obtainMessage() ? Sep 16 16:44:20 my thoughts are I hate java and do everything in c++ Sep 16 16:44:45 even android programming? Sep 16 16:44:56 yes I need it to be portable Sep 16 16:45:22 I think NDK can handle C++ Sep 16 16:45:24 I was calling my own java code from c++ but I threw that out eventually Sep 16 16:45:51 message.obtain < message.obtainMessage? Sep 16 16:46:13 now I still need to get basic stuff like file assets en-classed Sep 16 16:46:22 obtainMessage gets from recycled messages IIRC.. so does that mean my app will perform better if I’m passing along lots of message? Sep 16 16:46:38 michaelmath, doing everything in C++ on Android is a shortcut to instanity and frustration Sep 16 16:46:42 don't be "that guy" Sep 16 16:46:49 I'm insane Sep 16 16:47:05 also it's not that hard since it's fullscreen GL Sep 16 16:47:06 I suggest you do the stream reading part in Java and then pass those DirectBuffers to C++ Sep 16 16:47:16 that'll give you all the control with the speed you need Sep 16 16:47:37 asset_manager.h in ndk gives me what I need Sep 16 16:48:09 it's just loading a 5mb .ogg file freezes everything right now until I implement this Sep 16 16:48:52 I can see why google wants everything unportable their way. So they can control CONTROL Sep 16 16:49:17 and harvest all your data. ok not the place for this discussion Sep 16 16:51:22 I've already got freetype jpeg, png, oggvorbis in C, might as well continue native app. Adding java code adds like 25MB to the apk Sep 16 16:52:17 O.o Sep 16 16:52:26 o.O Sep 16 16:52:50 yeah, that goes to the "dumbest things I've heard this week" list Sep 16 16:54:39 no I'm not writing an android interface for all that stuff... Sep 16 16:54:53 I want portability Sep 16 16:55:03 dumb is getting sucked into google Sep 16 16:56:47 and as I said it's fullscreen GL so I don't need android UI. anyway who cares if it works Sep 16 16:59:49 wait, java is not portable while c++ is?? Sep 16 16:59:53 now that's a new one Sep 16 17:00:27 michaelmath, if you're so disgusted by google, why touch android at all? Sep 16 17:01:30 because so many other people buy their phones Sep 16 17:01:38 maybe you want duck duck go OS enterprise edition a.k.a. duckduckgoOSe Sep 16 17:01:49 (I also don't care for iOS but it's much easier to work with) Sep 16 17:02:19 I've got a stack trace that I can't for the life of me figure out. I think it's in an animation, but I'm unsure about where. http://pastie.org/9559292 Sep 16 17:02:25 Hello Sep 16 17:03:01 Is there a good library to do something like the Facebook tabs? Sep 16 17:03:02 ravilov: java everywhere else is owned by oracle, I don't know which disgusts me more Sep 16 17:05:10 a programming language by itself should be platform neutral Sep 16 17:05:35 good luck getting java on apple devices Sep 16 17:06:00 i think thats what robovm does Sep 16 17:07:10 RoboVM Sep 16 17:07:12 Damn Sep 16 17:07:49 LibGDX uses it and Ingress is an example Sep 16 17:08:06 everything's faster in native code as well, despite the troubles c/c++ can bring Sep 16 17:08:16 http://games.slashdot.org/story/14/09/05/2128219/carmack-on-mobile-vr-development Sep 16 17:08:57 piratejon: google search is fine if you use a proxy so they don't record your IP Sep 16 17:08:57 michaelmath so anyhow, its the end of 2014 and pretty much every ange of this vs that has been analyzed in mobile operating systems Sep 16 17:09:27 I know native is always going to be faster, but what you're talking about is just pure insanity Sep 16 17:09:28 i hate the phrase "it is what it is" but ... Sep 16 17:09:58 anyone have an idea how Google does this http://stackoverflow.com/q/25874016/1747491 Sep 16 17:10:02 I would suggest inventing your own platform and language... also seeing a specialist, lol Sep 16 17:10:26 Hi ! quick question, I got this "ImageSwitcher" widget in my layout, and i want the image to be strecthed to fit the screen, how to do that ? Sep 16 17:10:44 there aren't any "scaletype" Sep 16 17:11:34 ravilov: pray to your google overlords Sep 16 17:12:48 found it, it's on the factory :) Sep 16 17:13:29 oh, don't get me wrong, I very much dislike google, but infinitely more than that I dislike fanatics, extremists and hate talk Sep 16 17:14:04 you sound like you've been brainwashed, michaelmath Sep 16 17:14:29 I don't get it. VR app development is mostly just some crafty OpenGL stuff Sep 16 17:16:12 like calling someone "insane"? for adding freetype code in their app? Sep 16 17:17:18 yes, since your target platform already contains freetype, as well as all the other libs you mentioned Sep 16 17:17:27 add to that that Carmack's VR stuff is only built to run on one specific device so far, so it's a little early for him to cry about fragmentation Sep 16 17:17:54 * g00s wonders if michaelmath == dogarhea Sep 16 17:18:06 too many crazies ! Sep 16 17:19:18 michaelmath, also your own words from earlier: "I'm insane" Sep 16 17:19:38 it's not me, it's you, lol Sep 16 17:19:53 ravilov: that would require more android calls. and I said that in response to someone's definition Sep 16 17:20:02 g00s, interestimg theory Sep 16 17:20:25 michaelmath, ok, sure Sep 16 17:22:01 well it's working just fine for font rendering http://image.bayimg.com/fd7a3c7b25c6937f6543b2fbd806adad7bb6b69c.jpg Sep 16 17:22:19 and I have no idea who dogarhea is Sep 16 17:25:49 i had two pretty good ideas for apps, but both of them turn out to be more work than it's worth Sep 16 17:25:58 damn, back to the drawing board i guess Sep 16 17:27:17 anyone have any good tips for theming the SearchView (in particular the text hint color) ?? I've got something working programmatically, but it seems so hacky! :) Sep 16 17:27:24 byt89: yeah it is Sep 16 17:28:51 pieces029: k thank you. how do you test it? i tried it with mock locations but no transition was triggered Sep 16 17:34:22 RustyShackleford if you use the wrong api, "hello world" can be more trouble than its worth :P Sep 16 17:34:27 * g00s looks at ble apis Sep 16 17:34:52 well tell me if you think this is possible: an app that listens to voice in the background Sep 16 17:35:08 if you misplace your phone, you say something like "Hey, where's my phone?" Sep 16 17:35:14 and it will start ringing Sep 16 17:35:37 issues there are proximity to the phone and eating battery life Sep 16 17:36:10 just put some iBeacons in your house :) Sep 16 17:36:59 my other idea was an IR remote that doesn't suck Sep 16 17:37:15 i guess the hard part is gathering the codes for a ton of different devices Sep 16 17:37:47 so why not just write it, then measure the battery impact and audio sensitivity yourself? Sep 16 17:38:17 I read this article http://pete.akeo.ie/2013/10/compiling-and-running-your-own-android.html if I only want a functional kernel do I also need the 16gb aosp? Sep 16 17:45:56 I have little lags in my games, could this be garbagecollection? My collision handler creates quite a lot of points... Sep 16 17:46:17 it is a simple maze game, could it really be a problem with gc? Sep 16 17:46:43 troned only one way to find out Sep 16 17:46:49 measure it Sep 16 17:47:18 how? Sep 16 17:47:38 well for GC, AS 0.8.10 has a new memory view that may be helpful Sep 16 17:47:58 I am redoing it now, cleaning it up so I guess I can see a difference if it is the problem but is there a way to measure Sep 16 17:47:59 ah Sep 16 17:48:16 aslo you will probably want to try http://developer.android.com/tools/debugging/systrace.html Sep 16 17:48:27 0.8.6 here Sep 16 17:48:35 yeah they added it in 0.8.10 Sep 16 17:49:08 In there a good starting point for learning android for people that already know Java ? Sep 16 17:49:22 GhettoJava, just dig in, come up with a project. Sep 16 17:49:36 maybe even a github repo of a fully formed Android L app ? Sep 16 17:49:40 what are your interests? Sep 16 17:49:54 GhettoJava you could try http://www.reddit.com/r/androiddev/comments/1xdj3p/new_to_android_development_looking_for_help/ Sep 16 17:49:59 ha, my interest are to get my feet wet Sep 16 17:50:12 have been developing Java for over 10 years Sep 16 17:50:25 but have never touched the mobile space Sep 16 17:50:37 Swing always confused me :) Sep 16 17:50:48 but I want to take a serious stab at it Sep 16 17:51:06 and I guess definiting a usage for an app is a good first step Sep 16 17:51:46 will Android ever support newer than java 1.6? Sep 16 17:51:58 ok, I think I just came up with something Sep 16 17:52:04 fbistoner its 1.7-ish Sep 16 17:52:35 maybe an app that interacts with Amz s3 Sep 16 17:52:42 fbistoner almost every year at i/o fireside, people ask that ... and google doesn't give any satisfactory answer Sep 16 17:53:45 this room is so much more fun than #iphonedev Sep 16 17:54:11 xximjasonxx :: have you found iphone dev to be more profitable? Sep 16 17:55:58 i dont find irc profitable in general Sep 16 17:55:59 :) Sep 16 17:56:55 GhettoJava, it may be cool to check out Google iosched2014 on github. I found that pretty informative. Sep 16 17:57:55 "TunnelBear VPN For Android Gets A Big Redesign With 232% More Cartoon Bears" ... thats what i need to do, add more cartoon bears Sep 16 17:58:16 * xximjasonxx is reminded of a line from anime he watches about racoons Sep 16 17:59:44 * genii sips his coffee and ponders poor Booboo the bear Sep 16 18:00:30 * xximjasonxx leaves to go do a code review Sep 16 18:00:55 thx, pmarino ! Sep 16 18:02:23 pmarino, this may be just what I need Sep 16 18:04:06 GhettoJava, right on! I found checking out those IO apps to be super useful. Sep 16 18:04:26 sigh Sep 16 18:04:54 * ravilov goes back into battle with darn stubborn rounded corners on widgets Sep 16 18:04:59 (yep, still on it) Sep 16 18:05:06 g00s with explosions Sep 16 18:05:17 ravilov shape drawable? Sep 16 18:05:50 lasserix, already have it and it kinda works; my problem is, I want to be able to programatically change its color Sep 16 18:05:52 do you love raviolli? Sep 16 18:06:07 change which color? Sep 16 18:06:12 of the drawable Sep 16 18:06:28 which is assigned to a view Sep 16 18:06:35 which I can only access through RemoteViews Sep 16 18:07:03 ahhh Sep 16 18:07:05 this is a remote view Sep 16 18:07:07 no wonder Sep 16 18:07:08 yep Sep 16 18:07:12 do you want to change bg color you mean? Sep 16 18:07:15 apparently that's how widgets work, sadly Sep 16 18:07:23 *app widgert Sep 16 18:07:28 *appwidget is the correct term Sep 16 18:07:33 widget is any extends view Sep 16 18:07:35 yeah yeah Sep 16 18:07:36 that Sep 16 18:07:44 what color did you want to change? Sep 16 18:07:51 the stroke? the background? Sep 16 18:08:04 bg Sep 16 18:08:25 but it needs to be through the view it is assigned to Sep 16 18:09:25 cant you just use a stack and do it that way? Sep 16 18:09:47 lasserix, this is what I have so far http://pastebin.com/axRF6Gth - I want to be able to programatically change the color Sep 16 18:09:47 ie framelayout whateverwidget then change the framelayout background Sep 16 18:10:37 currently I have an imageview that acts as the backdrop, with the drawable set as its background, and then a bunch of linearlayouts on top Sep 16 18:10:48 how many colors do you need to toggle between? Sep 16 18:10:56 see, that's the problem Sep 16 18:11:12 the user is supposed to be able to have full control over both color and alpha Sep 16 18:11:34 there is the color selector in options for it Sep 16 18:12:08 umm Sep 16 18:13:07 ahh Sep 16 18:13:09 yeah Sep 16 18:13:10 yeah i know this pain Sep 16 18:13:24 i was making a quote app and wanted to make FULL control of the app widget appearance Sep 16 18:13:27 it was pure hell Sep 16 18:13:33 literally Sep 16 18:13:38 yep Sep 16 18:13:40 that's where I am now Sep 16 18:13:45 have been for a while Sep 16 18:13:46 okay so again Sep 16 18:13:47 can you do Sep 16 18:13:54 framelayout image view rest of views Sep 16 18:14:07 let the framelayout be the color changeing Sep 16 18:14:13 let the imageview be the shape drawable Sep 16 18:14:20 ahh but you want to change the color of the shape drawable Sep 16 18:14:25 yes Sep 16 18:14:30 so if i remember correctly Sep 16 18:14:32 adding more layers won't really help :) Sep 16 18:14:34 it is easier to do something like Sep 16 18:14:38 http://stackoverflow.com/questions/14338091/setting-a-bitmap-using-remoteview-not-working Sep 16 18:14:41 use a paint Sep 16 18:14:50 and draw to the canvas Sep 16 18:15:02 no can do Sep 16 18:15:06 I don't know the final size of the widget Sep 16 18:15:45 ahh Sep 16 18:15:48 that fucking problem yeah Sep 16 18:15:58 yeah I've already googled it extensivelly Sep 16 18:16:08 i had to do measure text to break up my quotes Sep 16 18:16:14 since the multiline didn't work Sep 16 18:16:17 hmm Sep 16 18:19:54 exactly, that's where I am now Sep 16 18:20:09 in the "hmm" phase Sep 16 18:23:00 afaik there is no way to determine the size of a widget Sep 16 18:23:11 I initialize a variable in my constructor and in another method in my class it says "variable might not have been initialized" and it is an error not a warning. how could this be? Sep 16 18:23:32 ravilov tho it would suck Sep 16 18:23:34 theoretically Sep 16 18:23:39 you could draw to canvas Sep 16 18:23:43 nm Sep 16 18:23:49 in an activity Sep 16 18:23:53 generate a nine patch Sep 16 18:23:55 then use that Sep 16 18:24:10 oh lord Sep 16 18:24:26 right? because they set it in the app widget preference activity Sep 16 18:24:34 y'know, I'm about ready to call it quits and just set it to some nice semi-transparent neutral color :) Sep 16 18:24:47 yes they set the color in preferences Sep 16 18:24:48 well just give them a few options? Sep 16 18:25:03 dunno, might Sep 16 18:25:05 generate like 64 shape drawables with different colors Sep 16 18:25:13 or 32 Sep 16 18:25:15 or soemthing Sep 16 18:25:18 compromise ;p Sep 16 18:25:20 16? 8? 4? Sep 16 18:25:20 :p Sep 16 18:25:25 4 to few Sep 16 18:25:28 16 might work Sep 16 18:25:38 I'll see Sep 16 18:25:44 but 32 is enough they have plenty of choice /wo being overwhlemed Sep 16 18:25:48 but that's only after I give up, which isn't quite yet Sep 16 18:25:49 just close Sep 16 18:26:07 seriousily the only way to do it is generate a ninepatch using a canvas Sep 16 18:26:31 most of all I just can't believe this is so ridiculously complicated Sep 16 18:26:36 this is not my code and not my widget Sep 16 18:26:38 yeah seriousily Sep 16 18:26:44 it was supposed to be a quick patch or something Sep 16 18:26:58 well for instance what blows espicially is you can't scroll text in an app widget prior to 4.0 Sep 16 18:27:25 yeah luckily I haven't hit that yet :) Sep 16 18:27:39 and then make text scroll Sep 16 18:27:46 you have to do a whole fucking list view app widget thingy Sep 16 18:27:49 with just one row Sep 16 18:28:00 lol Sep 16 18:28:33 you guys realizing android is a big hack :) Sep 16 18:30:08 not like it's going to stop anybody :) Sep 16 18:30:25 no, you have to fight hacks with hacks Sep 16 18:30:35 I see Sep 16 18:30:42 well I'm on the right track then Sep 16 18:46:01 Does anyone know why the IOCTL BLKRRPART doesn't really work even when run as root on an unmounted partition? Sep 16 18:48:24 indeswerk, -> #android-root Sep 16 18:48:42 ta Sep 16 18:48:58 these channels really need to be renamed somehow Sep 16 18:49:05 what's up people?! Sep 16 18:49:18 #android-dev -> #android-apps, #android-root -> #android-hacking Sep 16 18:49:31 or something Sep 16 18:49:36 ravilov, #android-dev != #android-apps Sep 16 18:49:54 android-dev is for development discussions, not to advertise and show your apps Sep 16 18:50:03 er Sep 16 18:50:05 hello to you too Sep 16 18:50:56 ravilov: to be fair, it is an application .. just not in java. :) Sep 16 18:51:15 hi guy's ! I am watching for make an app for see my calendar. (A simple ics file to parse) but i am watching for the good UI component to show him ! Because i can't use something like "tables" because with that you can't put "boxes" in the midle for exemple. (if you have a row / hours, for exemple if you have something at 8h15 to 9:45 you can't realy show it properly with a tableview or something like that. Sep 16 18:51:19 indeswerk, right, you'll still have more luck in #android-root Sep 16 18:51:57 I feel I'll end up redirected to a kernel room, which will bounce me back to an android room, etc. :\ Sep 16 18:51:59 indeswerk, he's right. This channel is for android development discussions, not hacking your way around the OS :) Sep 16 18:52:17 I am developing, ... Sep 16 18:52:20 So did someone have an idea about a good component for do it ? (like the google calendar). If i doesn't find component's maybe i will draw my planing myself (exempe in a jpg file) and show it. Sep 16 18:52:30 I work for an auto OEM .. :) Sep 16 18:53:10 When morons resize partitions and then decide they should be block updatable ... and ... I Can't write blocks because the kernel says they're not even part of that partition ..... arghh! Sep 16 18:53:23 http://developer.android.com/reference/android/widget/CalendarView.html Sep 16 18:53:28 thanks google Sep 16 18:53:29 I'm trying to work around reboot rediculousness. Sep 16 18:53:37 indeswerk, yup, go to the fdisk channel lol. Sep 16 18:53:59 I'm using parted! :D Sep 16 18:54:08 maybe the GNU channel then? haha. argh. Sep 16 18:54:21 who parted Sep 16 18:54:29 GNU parted! Sep 16 18:54:37 don't ask me where it went. please. :) Sep 16 18:54:40 yes, this is spefically android hacking-related Sep 16 18:54:50 or linux hacking related Sep 16 18:55:17 hacking is far too generic a term. Sep 16 18:55:34 indeswerk, yes it is, because I have no idea what you want to do by running IOCTL BLKRRPART Sep 16 18:55:50 man, I miss googlers in this channel :( Sep 16 18:56:35 we probably need a separate NDK channel or something Sep 16 18:56:39 re-read the partition table. thats what the ioctl does. Sep 16 18:57:05 partition is 50mb, resize it to 100mb. use dd on it. dd still says 50mb. force a re-read of the table.. STILL 50mb... reboot.. its now 100mb. Sep 16 18:58:12 codereview.stackexchange.com maybe? Sep 16 18:59:09 they point at a tool, which just calls the ioctl .. Sep 16 18:59:11 partprobe Sep 16 18:59:43 did calendarview work in days or only months ? Sep 16 19:01:57 indeswerk: partprobe doesn't work ? Sep 16 19:02:26 haven't seen it get built Sep 16 19:02:51 oh yeah, that takes like hours Sep 16 19:03:16 if I know where it was, I could mm it Sep 16 19:03:27 not a huge deal, I just wrote my own wrapper around the ioctl Sep 16 19:03:39 If I knew which one to call, it should be fairly easy and I wouldn't need a special app Sep 16 19:17:40 is /dev/block/platform/msm-sdcc.1/by-name/boot the boot partition of my device? Sep 16 19:19:53 xdaimon: try #android-root Sep 16 19:20:13 I would assume so, but since it's device specific and apps don't have any reason to know it, I'd check #android-root Sep 16 19:20:25 oh ok, thank you Sep 16 19:23:31 Here's the link to the question, http://answers.opencv.org/question/42133/android-app-works-on-43-and-above-only/ Sep 16 19:23:38 summarizing it, opencv-android app works for 4.3 and abover versions, for others its not able to find libopencv_java.so and libopencv_info.so Sep 16 19:23:46 hough the same apk works on the specified android versions Sep 16 19:23:53 OpenCV guys couldn't help me out. So trying out help from Android ppl Sep 16 19:24:05 are button clicks more work when you have buttons inside a fragment? Sep 16 19:24:25 where does the onClick method have to be defined? In the parent activity, or in the fragment? Sep 16 19:25:28 Set an OnClickListener Sep 16 19:26:31 SimonVT, is that really easier than declaring it in xml? Sep 16 19:26:40 RustyShackleford: don’t declare click handlers in XML Sep 16 19:27:01 You get some compile time safety Sep 16 19:27:02 they make refactoring, and finding references hard, since they’re not compiled constants Sep 16 19:27:18 okay, although it's the first thing they show you in the docs Sep 16 19:27:32 RustyShackleford: it makes it easier for beginners to get samples working Sep 16 19:27:33 i see your point though Sep 16 19:27:37 but it makes your code hard to maintain Sep 16 19:28:00 RustyShackleford: most of us use tools to define click handlers with annotations these days Sep 16 19:28:22 but i would recommend doing it the old fashioned way if you’re a beginner Sep 16 19:28:30 +1 Sep 16 19:29:10 also, if your UI elements are in a fragment, don’t touch them from your activity Sep 16 19:29:20 I was going to make a Rick Roll app, bah there's already 6 of them :( Sep 16 19:31:52 sumitshining: are you sure it’s android version that causes your app to break, or could it be cpu architecture? Sep 16 19:32:35 JacobTabak: yes, its the Android version. I verified the arch Sep 16 19:32:44 its all armeabi-v7a Sep 16 19:33:56 are you including the .so files in your apk ? Sep 16 19:34:34 JacobTabak: yes. I can the .so files in the apk on unzipping it Sep 16 19:34:39 Are there any limits set by the OS on how much internal storage an app can use? Sep 16 19:34:54 are you loading the libraries or is some other library loading them? Sep 16 19:35:24 qt5 bindings are i see Sep 16 19:36:33 JacobTabak: I am specifying them as libs in my .pro file. The ndk builds the Activity class where the code to load these libs is located. The libs are needed as they are core OpenCV libs Sep 16 19:36:38 qt looks like a royal pain on android Sep 16 19:37:08 sorry i have nothing for you sumitshining Sep 16 19:37:15 gl Sep 16 19:37:25 JacobTabak: no issues. Thanks for your time Sep 16 19:38:41 RustyShackleford: yes it is. Unfortunately the person I am developing the app for has asked specifically for Qt. And the Android version thing is really frustrating Sep 16 19:39:10 i remember trying to port something that used the boost library Sep 16 19:39:32 what eventually fixed it was a different compiler. In the end I gave up on the app though Sep 16 19:41:37 RustyShackleford: Just hoping that is not the issue. The only thing that's strange is, same app works on Android 4.3 and 4.4 but fails on 4.1, 4.2 Sep 16 19:42:03 on the same device? Sep 16 19:42:05 RustyShackleford: Moreover, when I open the apk I can see the libs in the folder. Sep 16 19:42:23 No, different devices as well as emulators Sep 16 19:42:29 maybe ask the folks in #qt Sep 16 19:42:38 that could be a problem with qt and not you Sep 16 19:43:23 hello. what is the correct android play services version to put in the build path? Sep 16 19:44:18 RustyShackleford: But the code that fails is System.loadLibrary(). It's not able to find the libs. Certainly some path issue. Does 4.2 and below version have something diff with this path thing? Sep 16 19:44:25 s/android/google Sep 16 19:45:43 RustyShackleford: This is system call, java specific code generated by ndk. Suppose this were a native code, similar code would have been generated. What might have been problem in that case? Sep 16 19:46:19 sorry, I'm by no means an expert at this. I've only done one project/experiment with ndk Sep 16 19:46:48 System is part of java, right? Not android Sep 16 19:46:53 RustyShackleford: ohk. No issues. Thanks for your time. Sep 16 19:47:03 yes Sep 16 19:47:11 so I think it's more likely that the issue is with your native code Sep 16 19:47:41 perhaps it expects a library compiled with a different version Sep 16 19:48:12 RustyShackleford: yes but here the behavior of System.loadLibrary is pretty much associated with the platform. Isn't it? Sep 16 19:49:25 sumitshining: unsatisfiedlinkerror Sep 16 19:49:42 so basically if you link to system libraries different devices can have different names for the same system library Sep 16 19:50:04 lasserix: yes, but am packaging the libraries with the apk Sep 16 19:50:22 no i mean Sep 16 19:50:29 the library itself references a system library Sep 16 19:50:45 say the math library responsible for float division Sep 16 19:50:56 this can have a different name on different devices Sep 16 19:51:09 lasserix: not really, am using OpenCV. So, the associated libs are being packaged with the apk Sep 16 19:51:38 yes but if those libs rely on a system library Sep 16 19:51:44 that's what i am trying to say Sep 16 19:51:50 i don't know that that's whats going on ehre Sep 16 19:51:56 but this is very similar to a problem i had a while back Sep 16 19:51:59 which was the case Sep 16 19:52:08 you don't get a native dump? Sep 16 19:54:38 lasserix: Just a min. I have something. Will update my question on the forum in a while and let you know. See if that's what you are looking for Sep 16 20:00:58 lasserix: before that, is it mandatory to define arch in Android.mk or Application.mk? Sep 16 20:02:57 not sure just debugged the problem coworker set it up Sep 16 20:03:15 but my guess would be yes Sep 16 20:04:26 ohk Sep 16 20:04:30 trying it out Sep 16 20:10:34 ok guys, I'm getting error "MyMainClass cannot be cast to android.app.application" upon running my android project. I've triple checked the manifest file and I have the right class name in my application and activity tags. What else could be causing the problem? Sep 16 20:11:57 I'd imagine that MyMainClass does not extend Application Sep 16 20:13:22 it extends Activity Sep 16 20:13:37 lasserix: meanwhile I have update the stacktrace i my question, http://answers.opencv.org/question/42133/android-app-works-on-43-and-above-only/ Sep 16 20:13:56 THen don't set it as the Application/don't try to cast it to Application Sep 16 20:16:15 ...good point. Thanks. I need coffee Sep 16 20:17:51 sumitshining: yeah idk does not look like the problem i was facing Sep 16 20:20:47 lasserix: no issues. Will try out other things. Thanks for your time. Sep 16 20:21:54 I am setting up a laptop for Android development. Do you guys install all SDK platforms or just for the API levels that you are going to build against which will be most like the latest stable that is API 19. Is that correct? Sep 16 20:22:44 sumitshining: it shouldbe possible since many people do run opencv on android Sep 16 20:23:03 donniezazen: only those you need so like 14+ is usually good Sep 16 20:23:16 probably overkill to do 14 even but... Sep 16 20:23:55 lasserix: yes, trying to locate such ppl :) Sep 16 20:25:20 lasserix: If I am supporting apps from API 10 to latest will I need all SDK platforms starting from API 10? Sep 16 20:26:22 donniezazen: you should get the apis that you set as minimum and buildSDK Sep 16 20:26:30 so 2 would be enough in theory Sep 16 20:27:01 1! Sep 16 20:27:37 if you need sdk's for the emulator (im not sure if you need cause i dont use them), you might want to get all major versions in between for testing Sep 16 20:27:49 If I am building against API 19 then technically I only need SDK platform from that API 19. Is that correct? Sep 16 20:28:09 yes Sep 16 20:28:48 danijoo: I will eventually end up installing all SDK platforms, Google APIs, and Emulators but I don't want to do that right now. Sep 16 20:29:05 thats what i did on a lazy evening Sep 16 20:29:08 :) Sep 16 20:29:11 Hi all Sep 16 20:29:27 I have a MediaPlayer that seems to play no sound when I call .start() Sep 16 20:29:49 I've got some example code yet when I move it into my project it doesn't work any longer Sep 16 20:29:56 Does a MediaPlayer still make sound if no-one is around to hear it? Sep 16 20:29:58 * JesusFreke ponders Sep 16 20:30:09 there's no errors and I can get the duration of the sound file correctly Sep 16 20:30:17 JesusFreke, very good question Sep 16 20:30:22 but I'm around to hear it :) Sep 16 20:32:17 mediaplayers dont make sound, speakers do Sep 16 20:32:29 Does MediaPlayer come with a warning you may catch an STD ? Sep 16 20:32:50 giga there are lots of reason cut and paste coding fails... Sep 16 20:32:54 perhaps you should post your code Sep 16 20:42:14 lasserix, http://pastebin.sabayon.org/pastie/17041 Sep 16 20:42:41 is there any way to make an imageview's both width and height to 75% of Layout width ? Sep 16 20:42:50 it's only in its own method (called by playSound(1)) because originally I had it in the main function for that class Sep 16 20:42:56 and I wanted to rule it out Sep 16 20:46:17 I'd assume reset() stops playback as well Sep 16 20:46:50 blusky: layout weights Sep 16 20:47:19 lasserix, any thoughts? Sep 16 20:53:03 GiGa: Have you tried not resetting and releasing the mediaplayer right after calling start? Sep 16 20:53:25 I'm spawning a web browser chooser to handle a url from my application. I'd like to know how much time elapsed since the browser activity was launched. How can I do this without defining a custom browser activity? Sep 16 20:54:18 SimonVT, nope, I haven't and that's a difference Sep 16 20:54:28 between the working and the not, I'll try that, thanks Sep 16 20:55:55 SimonVT, Thanks, I was being dim it seems! Sep 16 20:56:04 when should I call those then? Sep 16 20:56:28 When you're done with the mediaplayer object Sep 16 20:56:38 So presumably some time after it's done playing Sep 16 20:56:40 hey Sep 16 20:57:10 do i need a server with couchdb for acralyzer or there is a way to use just cloudant Sep 16 20:57:46 no server right now :( Sep 16 20:58:39 SimonVT, so I could just check to see if the sound is done playing and reset it then Sep 16 20:58:51 thanks for the help folks and sorry for the dumb question Sep 16 20:58:54 * GiGa is tired Sep 16 20:59:10 Maybe there are callbacks that notifies you of that Sep 16 20:59:23 cliffreich: Have you tried googling "acralyzer cloudant" ? Sep 16 21:02:07 ok, new question, how to make an imageview width, parent's width minus Xdp ? Sep 16 21:02:45 blusky: calculate parents px in java and set imageviews width to that - X px Sep 16 21:02:53 match_parent and a margin Sep 16 21:02:57 or margins Sep 16 21:03:14 yes just use a margin :P Sep 16 21:03:26 wow dont know why I first came up with java.. oO Sep 16 21:03:37 too much worked today Sep 16 21:03:43 that would be funny Sep 16 21:03:50 if we had a troll that always proposed the most complex solutions Sep 16 21:03:56 every time Sep 16 21:04:16 ok, in fact, i think i'll do it in java Sep 16 21:04:22 cause i need to make width = height Sep 16 21:04:28 >.< Sep 16 21:04:33 please dont use the java method :D Sep 16 21:04:34 unless i can make height = parent's width minus X ? Sep 16 21:05:09 blusky: do you want height = width = parent-X ? Sep 16 21:06:18 because if its a png where width=height you can still use margin for width and adjustviewbounds to set height=width Sep 16 21:06:52 danijoo yup Sep 16 21:13:01 hey, can bundle.getData() ever be null? Sep 16 21:13:17 it doesnt say on the docs what the return is if there is no bundle in the intent. Sep 16 21:13:27 or data in a message, rather Sep 16 21:14:07 I assume you meant Intent#getData.. The docs say "The URI of the data this intent is targeting or null." Sep 16 21:14:25 yay thanks Sep 16 21:14:30 where is that? Sep 16 21:14:40 https://developer.android.com/reference/android/content/Intent.html#getData() Sep 16 21:14:56 ok i was refering to http://developer.android.com/reference/android/os/Message.html Sep 16 21:16:31 Check the source if you're unsure Sep 16 21:32:27 Have I done this right? I have no-dpi, layout and then the only difference between screens are values,values-small,values-large Sep 16 21:33:00 if a file like colors.xml is not available for xlrage it will look in normal right? because it works on simulator... Sep 16 21:36:15 hi Sep 16 21:36:28 troned are cllo Sep 16 21:36:38 ? Sep 16 21:36:42 ugh, troned are colors screen size dependant ? Sep 16 21:36:53 no but i have them in that folder Sep 16 21:37:04 I updated my android, and i can't see my program where show a map with my position :S Sep 16 21:37:07 if they are not, there is no need Sep 16 21:37:30 and I was really racking my brains for a valid size dependant color use :) Sep 16 21:37:31 does anybody knows what to do? Sep 16 21:38:03 dam, I thought of a few Sep 16 21:45:18 I never got to finish my argument. Anyway if you wanted to port your java/android 'app' to ios, desktop, consoles. what would you do? Sep 16 21:47:17 start Sep 16 21:47:28 you'd probably end up just putting a java interpreter and associated libraries you packaged right in there Sep 16 21:47:51 and people calling me crazy for putting C libraries directly in my native app? Sep 16 21:48:32 *libraries you used Sep 16 21:48:45 so really it's no different, just look at minecraft Sep 16 21:49:53 g00s: ravilov: I win the argument. qed bitches Sep 16 21:50:03 and stop giving all your email to google Sep 16 21:50:23 anyway I'll go /away if you have a rebuttal Sep 16 21:50:43 do what you have to do Sep 16 21:56:08 I am a bit unsure about the following: My sensor gets an event, processes some stuff and then calls runOnUiThread where it invalidates the view. But when is the invalidation called? immediately? or could I get another sensor event before? Sep 16 21:56:20 yay, just did my first shopping express order Sep 16 22:00:53 troned: its called immediatly but since the sensor fires off at like 120 hz it's likely to fire twice before the invaliation completes Sep 16 22:01:24 lasserix, so then what happens, are the invalidations queued? Sep 16 22:01:31 yeah Sep 16 22:01:39 hmm but forever then... Sep 16 22:01:41 threads with handler have a looper Sep 16 22:01:55 which is backed by a synchronized message queue Sep 16 22:02:01 so anytime you do post unless you remove it Sep 16 22:02:02 the invalidations will never catch up... Sep 16 22:02:13 it'll quueue till executed or interrupted Sep 16 22:02:23 troned well you should be using a game loop Sep 16 22:02:36 how do I do that? Sep 16 22:02:49 do you use a surfaceview? Sep 16 22:02:51 I have been thinking in that direction Sep 16 22:03:09 here's a good explanation: http://blorb.tumblr.com/post/236799414/simple-java-android-game-loop Sep 16 22:03:14 no but I guess I should Sep 16 22:03:25 what type of game is it? Sep 16 22:03:32 i mean are you moving things constantly? Sep 16 22:03:47 if its like a card game you don't necessarily have to use a surface view Sep 16 22:04:07 but if you are doing things that are constantly moving (ie you have a steady invalidation going on) you should use a surfaceview Sep 16 22:04:55 ugh Sep 16 22:05:12 main problem is most surfaceview tutorials stop their threads using thread.join which is deprecated Sep 16 22:05:58 this is slightly better: http://www.javacodegeeks.com/2011/07/android-game-development-game-loop.html Sep 16 22:06:43 ok, is there any way to make an imageview draggable without playing with "ontouchlisten" and dynamic margin ? Sep 16 22:08:37 http://www.mysecretroom.com/www/programming-and-software/android-game-loops or here (at the bottom) Sep 16 22:09:01 troned: this will give you a good idea of types of game loops http://www.koonsolo.com/news/dewitters-gameloop/ Sep 16 22:09:23 and this is fairly advanced game loop in c++ but if you end up going down that avenue it's good to read also just to understand http://gafferongames.com/game-physics/fix-your-timestep/ Sep 16 22:09:41 (basically the last game loop explained in dewitter's tutorial is fully explained in that one) Sep 16 22:10:06 don't try and port fix your timestep code to java... its a nightmare unless you know java fairly well Sep 16 22:10:50 finally if you want to keep it really simple and somewhere close to what you already are doing you might be able to get away with: http://aubykhan.wordpress.com/2010/04/25/android-game-programming-the-game-loop/ Sep 16 22:12:18 lasserix, ty, looking at it Sep 16 22:13:54 lasserix, yeah I have a TiltSensor which continously posts events and then I do some collision handling and move the bal and invalidate the view. So I need to do it on a constant rate which is why i only invalidated after a certain time has passed. but i need something more rigorous Sep 16 22:14:14 well forget about the accel for a moment Sep 16 22:14:31 you need to switch to surfaceview if you are calling invalidate more than 10 times a second continosuily Sep 16 22:14:42 well you don't need tobut it's standard practice to do, that's what it is for Sep 16 22:15:02 anyone know how to escape ( ) in {@code } in javadoc? Sep 16 22:16:07 wow, that guy is really crazy Sep 16 22:16:30 ravilov ? Sep 16 22:16:43 ok, new probleme (as always, is there any way to let an imageview get outside of an relativelayout ? (ie: outside the screen) Sep 16 22:16:46 michael_math (avoiding highlight ;) ) Sep 16 22:17:23 oh is that not the same person who just keeps coming in saying this channel is useless and attempting to start arguments ? Sep 16 22:17:42 no idea, but if he is, he's just extra crazy right now Sep 16 22:17:54 apparently his point is not only being all-round paranoid, but also winning arguments on the internet, lol Sep 16 22:19:25 lasserix, what about openGL? i dont know it so it would be (to) much work to learn now. but then it is posible to speed things up even more? or is it unecessary in this case? Sep 16 22:20:20 do you know linear algebra? Sep 16 22:20:25 if you dont opengl will kick your ass Sep 16 22:20:33 but what do you mean "speed things up"? Sep 16 22:20:55 the accelerometer on GAME_DELAY fires at like 120HZ the best framerate you can get with opengl is 60HZ Sep 16 22:21:20 if you use surfaceview you can get higher FPS, but beyond 50-60FPS the human eye looses ability to tell the difference Sep 16 22:21:42 or i should say it does not matter as much Sep 16 22:21:56 after 60 its visibily continuous, that is the target rate of most games Sep 16 22:22:49 after 60Hz you fall into vsync anyway Sep 16 22:22:54 what you want to do i believe is take the accelerometer data, use it to do your physics integration, but let your physics integration happen however fast it happens, just feeding it the accelerometer data as it comes Sep 16 22:22:58 most of the device screens will tear badlz Sep 16 22:23:01 *badly Sep 16 22:33:17 lasserix, I aced linear algebra Sep 16 22:33:36 I have 4 views initially all set to Gone. I move them ( translate over x axis ) from 0 to 480f ( thats the end of my device's screenwidth ) Sep 16 22:34:12 why making a marginRight <0 will make an imageview out of the view, but a marginLeft < 0 (or a marginLeft > screen width) won't ? Sep 16 22:34:18 troned: ahh well if you understand how to do, say, rotate something in three dimensions using matricies opengl will be pretty easy since it's all built on matrix operations Sep 16 22:34:36 lasserix, I see. But how come SurfaceView is faster? Sep 16 22:34:49 opengl buffer is limited to switching at 60 hz Sep 16 22:34:56 But this is 2D so there is no point in using OpenGL then I guess Sep 16 22:35:00 err is hould sleep it necessarily sleeps for 16 ms Sep 16 22:35:03 no way Sep 16 22:35:08 opengl can be used for 2d Sep 16 22:35:11 yes Sep 16 22:35:15 just apply textures as your sprites Sep 16 22:35:18 when the animation on the 2nd view ends I want to start animating again the 1st and etc for every other view. Sep 16 22:35:20 but there would not be an advantage? Sep 16 22:35:27 guys, you do know that pretty much all drawing operations on Android translate to OpenGL calls right? Sep 16 22:35:29 no it's faster Sep 16 22:35:32 chromecast doesn't work on 5ghz? Sep 16 22:35:33 at drawing Sep 16 22:35:41 blusky cause it's layout origin is 0,0 Sep 16 22:35:48 Mavrik: that's besides the point, Sep 16 22:35:54 and that actual Canvas rendering (with the exception of non-supported operations) is done in OpenGL anyway? :) Sep 16 22:36:02 pfn, no, it has no 5GHz radio Sep 16 22:36:06 Do I need a custom TimeInterpolator ? When times = end then reset it or smthing like that?? Sep 16 22:36:14 that's annoying Sep 16 22:36:18 StingRay_: any workaround to let an imageview out of the view (on left side) Sep 16 22:37:08 or a custom Evaluator? I'm totally confused here :S Sep 16 22:37:36 blusky have a layout parent that weights or gravitates, or simply make the left magin (screen width -item width) - how much off screen Sep 16 22:42:16 StingRay_: what about absolute layout ? Sep 16 22:42:37 what about it ? Sep 16 22:42:38 oh, seems deprectated Sep 16 22:42:54 making a left margin from my layout will screw my other views :/ Sep 16 22:43:54 on if that type of viewGroup considers other children in layout Sep 16 22:44:03 maybe you should look at all the layout types Sep 16 22:44:59 as in all xxxLayout classes that extend viewGroup Sep 16 22:45:11 see what fits your ideas best Sep 16 22:47:12 blusky: what do you want to do with the imageview? Sep 16 22:52:11 lasserix move it outside the bounds of the screen on the right Sep 16 22:55:46 hi guys playing with databases.. I did a public Cursor getAll(); .. method that does a rawQuery and selects all ... if I want to handle each row in that Cursor... how do I get the value? .: I'm trying to iterate through it but I can't seem to find a 'getRow, getValue .. something Sep 16 22:56:18 a row has columns Sep 16 22:56:38 you give a cursor moveTo* Sep 16 22:57:24 I can loop it and use 'moveToNext' .. ? Sep 16 22:57:27 is that what you mean? Sep 16 22:57:32 yeah Sep 16 22:57:45 any way you want Sep 16 22:58:05 the cursor is yours to play with when it's populated by a query Sep 16 22:58:48 I'm missing some fundemental understanding here it seems.. the Cursor contains all my table data now, correct? .. considering I did the getAll(), Sep 16 22:59:00 so if I do a 'moveToNext' .. what do I do then.. I use getColumn? Sep 16 22:59:05 it contains the result of the query yes Sep 16 22:59:11 oh wiat I get it Sep 16 22:59:25 String name = cursor.getColumn("name) Sep 16 22:59:26 ? Sep 16 22:59:37 parse ofc Sep 16 23:00:10 are there no basic tuts on this, but yes, other than you need a column index Sep 16 23:00:25 lasserix, those were some great links. will look at it and redo my game slightly Sep 16 23:00:28 should be some nice intro stuff on d.android.com Sep 16 23:00:35 I've been reading tutorials for 45 minutes actually .. Sep 16 23:00:43 first of all.. they ALL do it different.. very differently :( Sep 16 23:01:00 secondly.. 99% of them stop with 'and now you got your cursor with your data' .. Sep 16 23:01:04 I switched to SurfaceView, might actually be some improvement already but hard to say Sep 16 23:01:05 "okay.. then what" Sep 16 23:01:55 pennywise there are three ways to get a specific column Sep 16 23:02:04 c.getColumnIndex("name"); Sep 16 23:02:38 oh a specific.. I see I could get that in the SQL statement.. in this case I just want all the rows Sep 16 23:02:49 by index of projection argument ie cursor.get(0) where o is PROJECT = new String[] { "zerothcolumn", "firstcolumn" ... } or by using cursor.getColumnIndex("nameofIndex") Sep 16 23:02:52 select "specific" .. instead of select * right ? Sep 16 23:03:05 hmm Sep 16 23:03:10 it actually takes get(i) Sep 16 23:03:11 thx Sep 16 23:03:43 if you use rawQuery you do rawQuery("SELECT COLUMNONE AND COLUMNTWO FROM table) Sep 16 23:04:02 what if there are only those 2 columns ? Sep 16 23:04:05 and I want both´+ Sep 16 23:04:49 ahh Sep 16 23:04:51 its Sep 16 23:05:02 select columnanefirst, columnnamesecond from tablename Sep 16 23:05:15 I need to add the columns Sep 16 23:05:17 even though I want them all `? Sep 16 23:05:18 then you can do cursor.get(o) cursor.get(1) Sep 16 23:05:21 no Sep 16 23:05:24 you can use * for all Sep 16 23:05:40 ok thx.. I'm at a point were I just wanna see it work now, and then I will make it 'smarter' :P Sep 16 23:05:55 troned: its definatly better ;p Sep 16 23:06:06 surfaceview is specifically for repeated calls to invalidate Sep 16 23:06:13 yeah, effenciency .-. only get what you need right ? Sep 16 23:06:20 ehh kinda o Sep 16 23:06:57 I got 111 Nokia Lumia 930 on my bed... just felt like sharing that info Sep 16 23:08:29 P3nnyw1se: also you want to use try/ finally Sep 16 23:08:29 http://pastebin.com/yh5Srctq Sep 16 23:08:36 so you guarentee you close the cursor Sep 16 23:09:08 for garbage collection? just wondering whats the downside to keeping it open Sep 16 23:09:19 you leak memory Sep 16 23:09:36 so it persists if I don't close it? Sep 16 23:09:43 you will leak it yeah Sep 16 23:09:55 bad programming practice Sep 16 23:11:00 I'm starting to learn how important memoryleak is in android.. considering everything I do.. if its loading pictures or reading from SQL.. seems to be causing Sep 16 23:11:00 out of memory Sep 16 23:13:11 think of it as leaving your fly down Sep 16 23:13:26 srch2webs Sep 16 23:13:37 oops wrong channel Sep 16 23:14:19 P3nnyw1se: if you get adventerous you can set upa content provider Sep 16 23:14:28 or use simonvts nifty library to do it for your (schematic) Sep 16 23:24:12 guys got a weird issue.. with mediaPlayer when reloading an activity .. it might or might not be playing a melody when I reload an activity... its a dynamic choice Sep 16 23:24:37 but if it does.. I want the music to stop.. so I did .. mediaplayer.stop(); .. and mediaplayer.release(); Sep 16 23:24:44 right at the beginning of the activity.. hope you are with me so far Sep 16 23:25:22 Now.. if a music number is playing when the activity reloads, its all good.. if not the activity crashes.. Sep 16 23:25:33 so I put it in an if statement (if mediaplayer.isplaying();) Sep 16 23:25:41 and thought that might do the trick.. but it doesn't help Sep 16 23:27:43 what's the crash? Sep 16 23:28:24 java.lang.RuntimeException: Unable to start activity ComponentInfo{chris.allan.awesome/chris.allan.awesome.GameColorActivity}: java.lang.IllegalStateException Sep 16 23:28:31 eyah Sep 16 23:28:33 what line? Sep 16 23:28:40 post the whole thing in a pastbin Sep 16 23:28:42 if (HomeActivity.mediaPlayer.isPlaying()) Sep 16 23:28:43 ok Sep 16 23:29:00 it says its the 'isPlaying(); thats an illegal state though Sep 16 23:29:57 http://pastebin.com/8KTLrVjA Sep 16 23:30:11 thats the error. . code coming up Sep 16 23:30:52 http://pastebin.com/qJXN186h Sep 16 23:30:55 the mediaplayer is static Sep 16 23:31:24 errors on the if statement Sep 16 23:31:25 yeah thats why Sep 16 23:31:33 why ? Sep 16 23:32:01 static reference is not cleared Sep 16 23:32:05 unless you explicitly clear it Sep 16 23:32:11 well not necessarily cleared anyways Sep 16 23:32:15 why are you doing this in oncreate Sep 16 23:32:18 do it in onpause Sep 16 23:32:38 okay, but if a tune is playing..a ny tune.. even one created in the activity I recreate Sep 16 23:32:40 it doesn't error out Sep 16 23:32:45 how does that make sense ? Sep 16 23:32:45 right Sep 16 23:32:50 because its initialized Sep 16 23:32:59 illegalstate means the native player is not initialized Sep 16 23:33:28 so... even though its held somewhere else. it gets what.. recreated aswell ? Sep 16 23:33:28 when you reload it it is either losing the references hence the mediaplayer is no longer the previous media player or something else, either way its not in a valid state Sep 16 23:33:36 not necessarily, that's the problem Sep 16 23:33:40 you should stop playing in onpause Sep 16 23:33:46 and not do this code in oncreate Sep 16 23:33:57 ok in onpause Sep 16 23:34:04 why ? :P Sep 16 23:34:06 sorry about the why Sep 16 23:34:09 or you can do something kinda hackky and just go try { the code } catch (IllegalStateException e) { //ignore } Sep 16 23:34:19 why? Sep 16 23:34:26 because onpause is always called Sep 16 23:34:37 so it's probably a good time to stop playing the music Sep 16 23:34:38 was just wondering why there specifically and nto somewhere else Sep 16 23:34:45 because onpause is always called Sep 16 23:35:27 hmmm makes sense will try it out thx Sep 16 23:37:44 mmmm lol Sep 16 23:38:12 so it crashes on an 'unable to pause activity' .. Sep 16 23:38:19 and then it.. actually does reload the activity Sep 16 23:38:23 after the crash' Sep 16 23:38:33 are you calling super.onpause Sep 16 23:38:42 yes Sep 16 23:39:16 should probably abandon all hope Sep 16 23:39:23 :( Sep 16 23:40:42 ooooooooooook, so my "draggable" work :D Sep 16 23:41:03 but i got this little icon, with a "layout_toRightOf" Sep 16 23:41:12 next to my draggable view Sep 16 23:41:24 but when i drag the imageview, the icon won't follow Sep 16 23:41:35 is it possible to force the "layout_toRightOf" over time ? Sep 16 23:41:55 humm, what happens if two apps almost the same function (maybe one has more function) and similar UI, are you able to invoke copyright? Sep 16 23:42:11 P3nnyw1se: why the static? Sep 16 23:42:42 cliffreich not unless you can prove loss through your own "specific and unique" methods Sep 16 23:43:03 but speaking generally here not up on US copyright, you guys seem… odd sometimes Sep 16 23:43:06 oh Sep 16 23:43:10 to be honest because I used it cross many activities, like I wanted music to keep going, and I read a few guides, some of them talked about creating a service... and I couldn't figure it out.. then some suggested I just made it static so I could reach it anywhere Sep 16 23:43:27 P3nnyw1se: a service is the proper way to do it Sep 16 23:43:42 I have no doubth I just didn't manage to do one from the 2 guides I tried Sep 16 23:43:43 making it static will cause many many problems if you dont know what that means Sep 16 23:44:11 well since you are doing what you are doing Sep 16 23:44:26 i suggest you wrap the pause in a try catch catch the illegal exception and ignore it for now Sep 16 23:44:33 until you figure out how to use a service Sep 16 23:44:44 ok, i guess you can tolerate similar designs Sep 16 23:45:18 I know what a static is, I just had no idea that activities being reloaded would mean it lost its references Sep 16 23:45:19 cliffreich well if you were to follow googles guidelines your gonna end up with the same almost as 100,000 others Sep 16 23:45:40 P3nnyw1se: it is not guarenteed to happen but it looks like something like that is happening Sep 16 23:45:54 cliffreich the only true different ones are the ones the have been "designed" not "guidelined" :) Sep 16 23:47:20 mmmmmmmmmmmmmmmmmmmmm Sep 16 23:48:28 P3nnyw1se: http://android-arsenal.com/details/3/649 Sep 16 23:49:06 okay so I made it work now... by completely removing the 'stop(); and the if(mediaplayer.isplaying(); Sep 16 23:49:14 dont get it Sep 16 23:49:36 How do i set the icon that is displayed whenver I receive a push notification for my app ? Sep 16 23:50:06 Agro are you asking on how to set an icon on a notification ? Sep 16 23:50:12 yea Sep 16 23:50:21 THERE ARE SO MANY THINGS I DONT KNOW Sep 16 23:50:34 cause google search will show you instantly if you …search Sep 16 23:50:49 ive been googling wrong thing i guess Sep 16 23:50:50 P3nnyw1se: you are getting the illegalstateexception because you are trying to alter the mediaplayer when it is an an invalid state Sep 16 23:51:17 okay... so, it destroys the reference and then it tries to alter something it has no reference to Sep 16 23:51:19 StingRay_: well I'm receiving push notifications from Parse Sep 16 23:51:20 ie when you recreate your activity you probably lose reference to the media player you originally created so calling isPlaying throws an error because there is no media player Sep 16 23:51:23 P3nnyw1se: welcome to conscious incompetence Sep 16 23:51:47 Agro does parse not use android notifications ? Sep 16 23:52:04 lasserix so check out the messed up part of it... Sep 16 23:52:05 my guess would be the java layer references holds but on recreating the activity it loses the native reference Sep 16 23:52:31 lets say I recreate ... after the onCreate(); .. I'm more than able to use the same reference again.. Sep 16 23:52:39 I'm doing it right now.. I just can't use it in onCreate(); Sep 16 23:52:58 if you recreate it its not the same reference Sep 16 23:53:10 I mean recreate the activity Sep 16 23:53:11 = new ... = new that's different reference Sep 16 23:53:11 StingRay_: i got it thanks Sep 16 23:53:16 I never do that Sep 16 23:53:19 Agro cool Sep 16 23:53:30 I continue on the Class.mediaplayer... the static reference.. after the onCreate(); .. and it works Sep 16 23:53:36 and this is after the activity has been recreated Sep 16 23:54:05 probably because while the activity is being created the mediaplayer is being initialized or what have you hence illegalstateexception to call isplaying Sep 16 23:54:11 nevermind lets not try and get deeper into this.. we both know I should have done a service. Sep 16 23:54:15 I just couldn't figure it out Sep 16 23:55:20 what time is it where you guys live Sep 16 23:57:33 time to go home Sep 16 23:57:42 its 02:00 here Sep 16 23:57:51 almost 1am :) Sep 16 23:58:04 hmmm Sep 16 23:58:08 you're british? Sep 16 23:58:50 indeed Sep 16 23:59:16 there is a way to add a view item (like a seekbar) below the ListView in the drawer Sep 16 23:59:40 or i have to setup that in the adapter Sep 16 23:59:52 like another item Sep 17 00:00:24 cliffreich maybe just me needing coffee, but that question seems all over the place Sep 17 00:00:49 and may require huge steps fuelled by assumption :) Sep 17 00:01:11 ohh Sep 17 00:02:04 can object x that has nothing to do with y be used with x in something neither relevant to z Sep 17 00:02:50 assumptions, you have a listView in a drawer ? Sep 17 00:03:12 Is there a way to disable automatic locking while usb debugging is active? It’s a pain to have to unlock it every time I run Sep 17 00:03:18 you want a kind of footer at the bottom, that is not a view of "seekbar" but a search field ? Sep 17 00:03:22 but funny designers actually do that http://stackoverflow.com/questions/18400910/seekbar-in-a-navigationdrawer Sep 17 00:03:24 heh Sep 17 00:03:37 well Sep 17 00:03:48 maybe ill use a header or footer instead the drawer Sep 17 00:03:53 if requires less work Sep 17 00:03:56 oh, see, least 1 assumption wrong, you do mean a seekbar view :) Sep 17 00:04:43 so on something requiring lateral drag you want a ui component that….wait for it….well you guessed it ;) Sep 17 00:04:57 (I know it’s possible to keep the screen on while plugged in, but I only want it to do so when plugged into a computer, not a power adapter) Sep 17 00:05:00 yes that would be a problem Sep 17 00:05:02 seems iffy but yeah should be possible Sep 17 00:05:11 I question the design choice though Sep 17 00:27:13 http://pastebin.com/RbV2BDS1 Sep 17 00:27:33 do you see something wrong here?. . I've been going over and over.. but when I try and insert it tells me I have no column called 'score' Sep 17 00:27:45 but I do.. :P Sep 17 00:30:44 how are you inserting? you're onUpgrade is always going to fail coz that drop table statement is wrong Sep 17 00:30:54 P3nnyw1se: did you add that column after you created the table? Sep 17 00:30:56 he’s on version 1 Sep 17 00:31:11 ffs use ormlite lol Sep 17 00:31:43 its a guide I'm following Sep 17 00:32:08 99% of guides are written by n00bs Sep 17 00:32:13 this is how I'm inserting Sep 17 00:32:14 http://pastebin.com/PjFU2mcE Sep 17 00:34:35 I dont get it Sep 17 00:35:34 sql.createRecords("Allan", "512"); Sep 17 00:35:43 this is what fails, the using of createRecords Sep 17 00:35:50 tells me the score column doesn't exist Sep 17 00:36:07 well... does it exist ? Sep 17 00:36:30 I like to think so... it doesn't whine about the "name" column Sep 17 00:36:37 but probably not.. logs dont lie Sep 17 00:36:39 so why doesn't it exist? Sep 17 00:36:44 check it then Sep 17 00:36:46 ... Sep 17 00:36:50 cause it wasn't created :) Sep 17 00:37:00 http://pastebin.com/RbV2BDS1 Sep 17 00:37:03 why isn't it created? Sep 17 00:37:14 you asking really odd questions Sep 17 00:37:16 check the database Sep 17 00:37:36 yeah do what bankai_ says either view it with an app or get a cursor and getAllColums Sep 17 00:37:40 or whatever it is Sep 17 00:37:52 oh come on... man .. you hate when people get in here saying 'how do I do a database' .. I've actually been following a guide here, Sep 17 00:38:13 we cant check that for you Sep 17 00:38:16 Hey guys, is it possible/practical/efficient to develop for Android using Netbeans IDE? (rather than Eclipse)? Sep 17 00:38:16 thats the point Sep 17 00:38:21 you have the database there Sep 17 00:38:25 I'm familiar with Netbeans and would much rather use it. but dont want to if it's going to be a constant battle Sep 17 00:38:28 you can at least look at the create_database string and tell me if it looks off Sep 17 00:38:43 P3nnyw1se no but please just check the database Sep 17 00:38:48 then you will know Sep 17 00:38:56 and can track the error Sep 17 00:38:57 EoN: makes me cringe to open this can of worms, but android studio Sep 17 00:39:31 oooooh. wow. ok! do you use this JacobTabak ? good experience so far? Sep 17 00:39:56 it has saved me from typing 200,000 characters since 6/28/14 Sep 17 00:40:09 that is a good thing. Sep 17 00:42:07 i wonder why onBindViewHolder() is in the adapter rather than the viewholder Sep 17 00:44:50 its not there.. there are 2 columns being created.. _id.. and name.. the third one 'score' is not being created.. so I'm back here with the same question Sep 17 00:44:54 whats wrong with my onCreate(); Sep 17 00:45:14 cause to me the creating of column_name and column_score Sep 17 00:45:19 look identical Sep 17 00:45:25 P3nnyw1se: have you tried uninstalling your app Sep 17 00:45:34 oncreate is only called the first time you install the app Sep 17 00:45:40 if you screwed it up when testing earlier, it wont overwrite it Sep 17 00:45:45 why do users whine that not /everything/ is free in an app that provides lots of free content? Sep 17 00:45:46 no I haven't. .will do that now Sep 17 00:45:47 P3nnyw1se increment the version Sep 17 00:45:50 2 Sep 17 00:45:53 https://play.google.com/store/apps/details?id=com.vmn.android.comedycentral Sep 17 00:45:57 just looking at reviews for that Sep 17 00:46:07 and users are so bitchy that they need a cable provider for access to /everything/ Sep 17 00:46:43 if you wanna see annoying bitchy comments, look at the facebook messenger reviews -- people just like to bitch Sep 17 00:47:15 yeah, they're pretty whiny, too Sep 17 00:47:19 not happy with shit you get for free... Sep 17 00:47:23 pfn sad thing is probably 50:1 people who are bitchy tit faces post reviews more than people who are relevant Sep 17 00:47:33 * P3nnyw1se shoots himself ...... ___\o/__/|___ <--- A SHARK! Sep 17 00:47:48 I think I'll have to give messenger 5* just because so many people give it 1* Sep 17 00:47:53 I gave the main facebook app 1*, though Sep 17 00:47:53 haha Sep 17 00:48:48 1* on facebook app because of no contact sync and it spams me "do you know this person" notifications for no reason Sep 17 00:49:04 Hello guys Sep 17 00:49:09 where do you take icons from? Sep 17 00:49:13 draw them Sep 17 00:49:14 aosp Sep 17 00:49:17 icon packs online Sep 17 00:49:18 etc. Sep 17 00:49:24 I just need a few standard icons such as home, settings, etc Sep 17 00:49:34 I was expecting to find them on the official icon package Sep 17 00:49:35 to be fair.. facebook forcing upon us to have 2 different apps for the same purpose Sep 17 00:49:35 those are all in aosp Sep 17 00:49:37 is **** idiotic Sep 17 00:49:37 and come with your sdk Sep 17 00:49:42 but I'm baffled there's no "home" icon :S Sep 17 00:49:43 P3nnyw1se, they're not the same purpose Sep 17 00:49:53 P3nnyw1se, facebook app is news feed and posting bullshit Sep 17 00:49:56 messenger is chat Sep 17 00:50:15 you know.. there are .. hundreds.. of apps that somehow magically manages to keep a main purpose and a chat packed into the same app Sep 17 00:50:22 hundreds? Sep 17 00:50:28 none that are very good Sep 17 00:50:31 pfn, come with the sdk? I don't have a @android:drawable/ic_menu_home, do you? Sep 17 00:50:44 can you show me any other app that forces you to install a second one ? Sep 17 00:50:52 Matip, they come with the sdk doesn't mean they're in /framework/ Sep 17 00:50:58 where are they? Sep 17 00:51:04 data/res/drawable-* Sep 17 00:51:23 P3nnyw1se, google+ Sep 17 00:51:24 hangouts Sep 17 00:51:36 now don't you feel dumb Sep 17 00:51:44 I feel like giving a bad review Sep 17 00:52:21 do it Sep 17 00:52:27 the thing is, messenger is a part of facebook.. I click on a guy ..I text him. I even get notifications that he is writing me.. in the other app... Sep 17 00:52:34 I can understand why people think its stupid they are forced 2 apps Sep 17 00:52:47 not forced, just don't use it -- simple Sep 17 00:52:56 pretty much, if you don't want messenger, don't install it Sep 17 00:52:59 pretty straightforward Sep 17 00:53:03 forced into two if you wanna use facebook Sep 17 00:53:18 yea i didnt install it Sep 17 00:53:18 no, if you /wanna chat/ Sep 17 00:53:25 and now im having problems communicating with ppl Sep 17 00:53:29 i used to be able to communicate with Sep 17 00:53:29 you don't have to have messenger if you want to use facebook Sep 17 00:53:30 :O Sep 17 00:53:57 pfn, I'm sorry I'm not following you. should I copy the icons from data/ to my drwawable folder or there is a way to make reference to them using @foo:bar/.../? Sep 17 00:54:11 Matip, you copy them if they're not in framework Sep 17 00:54:13 you make it sound like its so natural to keep communicating in messages apart from comunicating on walls .... that you feel like a third app just for pictures would be a good idea... and maybe a fourth for your upcoming events. Sep 17 00:54:19 alright, excellent Sep 17 00:54:34 P3nnyw1se, oh wait, there's "calendar" Sep 17 00:54:37 and there's "email" Sep 17 00:54:40 which are separate apps Sep 17 00:54:49 and oh wait, there's "google+ photos" Sep 17 00:54:54 which is a separate launcher if not separate apk Sep 17 00:55:02 these are things.. created seperately.. and later put together.. Sep 17 00:55:09 facebook and messenger is the same program split into 2 Sep 17 00:55:17 yeah, because it makes no sense as 1 program Sep 17 00:55:42 yeah like when I play wordfeud if I wanna say 'nice move man' .. it makes no sense I can do it in there.. should have a 'wordfeud chat' Sep 17 00:56:01 that's because chat would be an integral part of the facebook experience Sep 17 00:56:12 s/facebook/wordfeud Sep 17 00:56:15 and chat isn't ? Sep 17 00:56:19 but chat isn't an integral part of the facebook experience Sep 17 00:56:27 it's not Sep 17 00:56:33 I use facebook, I almost never use chat Sep 17 00:56:56 so if its not the main purpose its hould have its own app. ... uploading pictures is not an integral part anymore than chatting Sep 17 00:57:02 why shouldn't it have it own app `? Sep 17 00:57:09 why are you stupid Sep 17 00:57:19 and instagram has its own app Sep 17 00:57:22 I think its a pretty fair question .. if you take out the chat you can take out multiple elements Sep 17 00:57:25 instagram is owned by facebook, you know Sep 17 00:57:41 you dont get instragram notifications in your facebook app Sep 17 00:57:43 you do with messenger Sep 17 00:57:55 then it's a bug that you should report Sep 17 00:58:01 I don't get messenger notifications in facebook Sep 17 00:58:05 oh you dont? Sep 17 00:58:14 I get messenger notifications in messenger Sep 17 00:58:19 so when someone writes you.. you dont get a white speech bubble with a red number on ? Sep 17 00:58:27 a what where? Sep 17 00:58:27 and when you click it .. it leads you do messenger ? Sep 17 00:58:31 lol Sep 17 00:58:41 that's the messenger app... Sep 17 00:58:43 not facebook Sep 17 00:58:51 you mean the chatheads? Sep 17 00:58:54 that's the messenger app Sep 17 00:59:15 http://cdn2.business2community.com/wp-content/uploads/2013/02/Facebook-Buttons.png Sep 17 00:59:20 you see the top of that screen ? Sep 17 00:59:33 that will be highlighted in your facebook app... if someone writes you .. on messenger Sep 17 01:00:09 then ask facebook to remove it Sep 17 01:00:11 whats the annotation to hint an int parameter is a layout res id Sep 17 01:00:38 P3nnyw1se, anyway, if you know better, write the next great thing Sep 17 01:00:51 you clearly know how to do it better Sep 17 01:01:04 ahh.... 'if you dont like it... make it better, or shut up ..' Sep 17 01:01:13 remember that whenever you say that transformers 4 sucks Sep 17 01:01:15 How do I set the supported languages for app project? Sep 17 01:01:24 already gave you a ton of good reasons Sep 17 01:01:37 you just want to be hardheaded about it Sep 17 01:01:43 not worth the discussion Sep 17 01:02:01 fact is you were just plain wrong on some things.. like facebook highliting stuff from messenger Sep 17 01:02:07 and then you fall to the 'if you dont like it.. make it yourself' Sep 17 01:02:17 wrong? Sep 17 01:02:17 on what Sep 17 01:02:18 Lint is blaming me but I don't want to disable the locale check Sep 17 01:02:24 you're the one being wrong Sep 17 01:02:29 you said that it was a bug.. if messenger highlited anything in facebook Sep 17 01:02:37 and fact is.. if someone writes you in messenger.. you get highlighted in facebook Sep 17 01:02:40 yeah, if it gave a notification Sep 17 01:02:40 carbon_monoxide: you can typically disable inspections on a per-line or per-method or per-class basis Sep 17 01:02:43 you don't get a /notification/ Sep 17 01:02:49 you get a mark inside of the facebook app Sep 17 01:02:50 so what Sep 17 01:02:55 having a button turn bright with a red sticker on is not a notification ? Sep 17 01:03:07 not in context of android development Sep 17 01:03:08 that's called integration Sep 17 01:03:11 which is what this channel is about Sep 17 01:03:12 and yes, not in android Sep 17 01:03:12 lol Sep 17 01:03:14 not facebook arguments Sep 17 01:03:42 JacobTabak: Thanks! Do you mean disabling on Lint, or adding translatable="false"? Sep 17 01:04:07 thats just bull .. a notification in programming is the delivering of a message to a recipiant.. it says nothing about how its delivered Sep 17 01:04:08 lol Sep 17 01:04:16 in the case of xml resources you could add translatable = false to the strings xml file Sep 17 01:04:40 P3nnyw1se: you guys are obviously getting to the point in your argument where you’re bickering about technicalities, so maybe time to just drop it Sep 17 01:04:59 anyway, another person to go on my ignore list Sep 17 01:05:11 what a threat Sep 17 01:05:17 feels like imdb chat boards :) Sep 17 01:06:02 JacobTabak: Thanks again but this is not my solution. Because I just want to define which locale I'm going to support in my app. But the Lint is blaming me for Afrikaans, Amharic, ... which I'm not going to support those. Sep 17 01:06:27 carbon_monoxide: it should only warn you for resource directories that you have in your project Sep 17 01:06:46 for example if you have values and values-es, it should only warn you if you’re missing spanish strings Sep 17 01:07:07 not afrikaans Sep 17 01:07:52 "Agile Android Software Development" hmm Sep 17 01:07:55 I don't have other values directories in my res/ Sep 17 01:08:15 how is Agile different for android than any other tech O.o Sep 17 01:08:24 There are some values-v11, values-v14, values-w820dp generated along with the project init Sep 17 01:08:40 carbon not sure what to tell you, i don’t have that problem Sep 17 01:08:48 i only get warnings for languages in my project Sep 17 01:09:18 it's not allow me to export an unsigned ape Sep 17 01:09:21 apk Sep 17 01:09:22 g00s I just see production assistants and producers creating new ways to absolve them of their decisions by creating all these wonderful methods of nothingness Sep 17 01:09:41 carbon_monoxide: what ide are you using? Sep 17 01:09:51 im guessing not AS/gradle Sep 17 01:10:06 not allowing me export an unsigned apk, because the lint has warning about locale Sep 17 01:10:10 I'm using Eclipse Sep 17 01:10:26 ok well i know in android studio you can specify in your build config to not abort on lint failure Sep 17 01:10:30 so im sure you can on eclipse but glhf Sep 17 01:11:09 man, I need a new receiver, picked up a chromecast finally Sep 17 01:11:22 but I don't have anything to use it with... Sep 17 01:11:49 I have it plugged into my monitor for testing Sep 17 01:11:58 cast your devices pfn Sep 17 01:12:14 nothing like 50+ inches of clashes with clans Sep 17 01:12:14 ? Sep 17 01:12:33 you have kk devices ? Sep 17 01:12:56 is there any way to construct an object that has a 1-arg constructor w/o reflection? guessing no? Sep 17 01:12:59 yeah, but I mean I don't have anything with hdmi other than my pc monitor Sep 17 01:13:28 pfn oh, yeah …wtf does your tv have ? Sep 17 01:13:50 I don't have a tv Sep 17 01:13:57 I'm poor Sep 17 01:14:13 wanna buy me one? 😀 Sep 17 01:14:35 JacobTabak: Thanks! So the only way to tell Android which locale I'm going to support is to create locale folder in res/values-? Sep 17 01:15:08 that’s my understanding carbon_monoxide, if you have secondary resource directories lint checks to make sure all your strings are translated Sep 17 01:16:09 JacobTabak: So my lint is really crazy than. Thanks! Sep 17 01:16:30 carbon_monoxide: you can configure ant to not die on lint failures though Sep 17 01:16:37 but not sure how without googling it Sep 17 01:17:22 JacobTabak: That is easy to suppress stopping on lint. Thanks Sep 17 01:30:46 where should I put the items for a drawer menu? I've seen a tutorial with in strings.xml, but I don't think it's a good idea to create another independent array for the icons, there must be a better way... Sep 17 01:31:58 like this: Sep 17 01:32:00 Home... @drawable/home... Sep 17 01:32:45 you can either do that, or define them in code, or define them in json and deserialize the Sep 17 01:32:46 them Sep 17 01:34:29 really? Sep 17 01:34:36 I thought I could use or something else Sep 17 01:35:05 ... Sep 17 01:35:09 something like this ^ Sep 17 01:35:50 JesusFreke you did a penrose app ? Sep 17 01:41:17 JacobTabak: I think I got the reason why lint blames about locale now. Because I have appcompat_v7 included into my project lib. Sep 17 01:41:34 makes sense Sep 17 01:41:40 because it has all those res dirs Sep 17 01:42:33 wow, the verge gave the iPhone 6 a score of 9.0 Sep 17 01:42:53 out of ? Sep 17 01:43:56 android.app.fragment = least used class ever Sep 17 01:45:27 The generated appcompat_v7 project has error itself! Sep 17 01:47:03 Haven't been working on Android app for 2 years. How come Android SDK goes to such a stupid way? Sep 17 01:56:11 because you use eclu Sep 17 01:56:15 Eclipse Sep 17 01:58:02 pfn: Me? Sep 17 01:58:09 yes Sep 17 02:00:13 pfn: So I'm going to be burnt by external fire from Eclipse? Sep 17 02:00:23 s/external/eternal Sep 17 02:00:47 The appcompat_v7 thing is stupid and causing me trouble Sep 17 02:01:45 Now I cannot suppress the locale warning by lint and can't export apk because the appcompat project has collided @+id Sep 17 02:02:39 bankai_ 9 out of 10 Sep 17 02:02:43 what is in Android SDK research team's heads? Sep 17 02:07:27 https://code.google.com/p/android/issues/detail?id=72760 - the #3 response told people to stop lint errors failing an export. epic solution! Sep 17 02:07:27 carbon_monoxide: what id collission? Sep 17 02:07:33 they stopped using eclipse 2 years ago Sep 17 02:07:44 and stop using lint Sep 17 02:07:54 it's only valuable for warnings Sep 17 02:08:02 I've never used lint once... Sep 17 02:08:18 wat pfn? Sep 17 02:08:25 it’s built into the IDE :O Sep 17 02:08:32 what ide Sep 17 02:08:37 eclipse/android studio Sep 17 02:08:44 pfn: That's their own preferences! They started Eclipse as the default dev tool on day one and now they are not making thing smooth in transition THAT IS THIER FAULT Sep 17 02:09:13 it is smooth in transition, stop using g eclipse Sep 17 02:09:24 ^^ Sep 17 02:09:28 Anyway they release Eclipse ADT and they should make it work Sep 17 02:09:30 I never even used eclipse on day 1... Sep 17 02:09:36 And they have to make it work Sep 17 02:09:37 and it does work Sep 17 02:09:42 it does work Sep 17 02:09:48 apparently eclipse ADT is no longer being developed... Sep 17 02:10:13 good riddance I say Sep 17 02:10:14 Android Studio is still in BETA Sep 17 02:10:14 Android Studio is still stated as beta Sep 17 02:10:36 everything google makes is eternally in beta Sep 17 02:10:42 remember gmail? Sep 17 02:10:52 Google dev are rude Sep 17 02:11:54 barbs i guess there is a new project called proteus Sep 17 02:12:12 Except GoLang, I'd spit on them. They are talented but the project managers seems crazy. Sep 17 02:12:23 http://jaxenter.com/eclipse-to-get-android-injection-with-proteus-51116.html Sep 17 02:12:58 if eclipse had top notch gradle support like AS does, i'd still be using it. workspaces are awesome if you like that sort of thing Sep 17 02:13:18 nice to flitter between projects Sep 17 02:13:29 pfn: This is how Eclipse works! https://code.google.com/p/android/issues/detail?id=72760 Sep 17 02:13:53 dont’ care about eclipse :O Sep 17 02:14:24 g00s: interesting. Though it doesn't look like it's google's project? Sep 17 02:14:40 barbs not sure Sep 17 02:15:00 I don't know. But I don't think the official dev team recommend Android Studio 2 years before. I was still in the dev of Android and I didn't see any sign that they were moving away from Eclipse. Sep 17 02:15:17 yeah, Android Studio was only announced last year from memory Sep 17 02:16:21 carbon_monoxide: at I/O this year they announced “beta” and they will start being friendly to developers Sep 17 02:16:22 pfn said they stopped using Eclipse 2 years ago... Oh yeah, they use IntelliJ? Sep 17 02:16:34 hey canadiancow , congrats 2 years :) Sep 17 02:16:35 yeah you could use IntelliJ back then Sep 17 02:16:50 I remember a fellow dev swearing by it, but I stuck with Eclipse cos I was used to it Sep 17 02:16:53 JacobTabak: They had never been friendly to developers Sep 17 02:17:02 only really made the transition at the beginning of this year Sep 17 02:17:06 releasing AS was the friendliest thing Sep 17 02:17:31 carbon_monoxide: i have been filing bugs in AS since I/O last year, they are very fast about triaging, assigning, and providing workarounds Sep 17 02:17:51 But what about the legacy? Sep 17 02:18:13 they've still been working on ADT, it seems only recently that they stopped Sep 17 02:18:32 I only really noticed when I looked at this site: http://developer.android.com/sdk/index.html Sep 17 02:18:41 "If you're a new Android developer, you should consider starting with Android Studio, because the ADT plugin for Eclipse is no longer in active development." Sep 17 02:19:12 do i need to use a tabelview if I want to have 5 columns that are auto sized based on their content? Sep 17 02:19:26 that combined match_parent Sep 17 02:19:34 tablelayout* Sep 17 02:21:24 barbs: Like any other projects, they make any thing beta forever. And then shut it down in neatly. Sep 17 02:21:39 carbon - for example abotu their responsiveness Sep 17 02:21:45 i filed this bug 9 hrs ago Sep 17 02:21:46 https://code.google.com/p/android/issues/detail?id=76241 Sep 17 02:21:58 its already been assigned to someone and placed at high priority Sep 17 02:23:01 OK. But then they can shift to a new successor tomorrow when they found they don't like AS much anymore Sep 17 02:23:37 Yeah, they have great passion on the new things they make Sep 17 02:23:40 carbon_monoxide: do you seriously think that's going to happen? Sep 17 02:23:53 barbs: yes I really do Sep 17 02:24:06 they did it in many other projects Sep 17 02:24:14 but I have no choice Sep 17 02:24:41 eclipse is like 20 yrs old Sep 17 02:24:55 they invested a sh8tton of time and effort into AS Sep 17 02:25:01 not a light decision Sep 17 02:25:11 I can tell my boss to suck his own with old Eclipse, or I have to follow the chain of Google. Sep 17 02:30:29 tell your boss to suck his own! Sep 17 02:41:54 it may surprise people here, but eclipse is still hugely popular ;) Sep 17 02:42:05 well, one wouldn't think listening to the channel anyhow Sep 17 02:48:09 Why would I be getting this error in the preview screen http://hastebin.com/zobagixohi.avrasm, When that same library works fine in the sample app given Sep 17 02:50:50 so this is interesting. "Android’s new Material Design language has been slowly rolling out to Google services and 3rd-party apps." from what I gather; if you try to do this yourself its going to be pure hackery - so if google is releasing things looking like L (presumably using a library) why aren't they sharing it with everyone else ? Sep 17 02:51:41 do we really have to wait for the official release before we get an L-appcompat ? Sep 17 02:52:48 g00s: im trying to use this library to solve that problem https://github.com/twotoasters/RecyclerViewLib Sep 17 02:54:24 How much faster does an app perform using native development in java for android vs phonegap/angular/ionic? Are we talking - dramatically? Sep 17 02:54:38 for something like a simple notes app (with a twist). but i want it to be ultra snappy/performant. Sep 17 02:56:00 silver program http://www.androidpolice.com/2014/09/16/the-information-android-silver-is-maybe-probably-dead-which-is-good-news-for-nexus-phones/ Sep 17 02:56:28 not sure if this is good or bad, but the silver lining (hoho) is the nexus line isn't going anywhere Sep 17 02:57:23 EoN ok, stop right there. there are no "note apps" that haven't been done. there are no "new twists" in that area **** ENDING LOGGING AT Wed Sep 17 02:59:58 2014