**** BEGIN LOGGING AT Mon Jun 30 03:00:00 2014 Jun 30 03:02:09 i cant manually register a broadcast reiever thats a class like such public class NetworkChangeReceiver extends BroadcastReceiver { Jun 30 03:02:18 only in the android manifest will something like the above register Jun 30 03:02:48 ubnless i do this right Jun 30 03:02:49 this.registerReceiver(new NetworkChangeReceiver(), new IntentFilter( Jun 30 03:02:50 "android.net.conn.CONNECTIVITY_CHANGE")); Jun 30 03:03:53 and what is the outcokme if i register a broaast reciever ontop of an already registered one? Jun 30 03:44:52 no special outcome Jun 30 03:55:26 Hi, I have a problem. When I build a example, I keep getting java.io.FileNotFoundException: /opt/android-sdk-linux/tools/support/annotations.jar (No such file or directory) Jun 30 03:55:35 I check that directory and the file isnt there... Jun 30 03:55:42 anyone know why it happens? Jun 30 04:43:01 because your sdk is too old Jun 30 04:46:06 Hi guys! Is it possible to create a Notification such that future updates wouldn't trigger an update in the bar? Jun 30 04:47:20 CaptainFarrell: yes, use the same id of the original notification Jun 30 04:47:51 that would update a notification but i still get some activity on the top of the screen Jun 30 04:48:18 e.g. it briefly flashes notification text Jun 30 04:51:59 CaptainFarrell: ah right. Jun 30 04:52:15 basically, I'm trying to make a widget Jun 30 04:52:31 you want a notification without the notification stuff that comes with it ? Jun 30 04:53:23 i guess so, yes :) I want to display and update some info Jun 30 04:53:39 but don't disturb Jun 30 04:53:42 *not Jun 30 04:57:16 i think I'll need to combine several flags Jun 30 04:57:22 will report back Jun 30 05:17:57 I really would like to know if anyone of you have a solution for this question - http://stackoverflow.com/questions/24452384/actionbar-item-is-not-showing-when-s-shapedrawable-is-set-as-its-icon Jun 30 05:45:43 mmm .. todays lesson seems to be ExpandableListView's that don't Jun 30 05:47:40 capella i wonder if RecyclerView replaces that Jun 30 05:47:50 oh look he is still alive Jun 30 05:47:59 hey bankai_au :D Jun 30 05:48:30 any experience with notifydatasetchanged within an onNext() block ? Jun 30 05:49:38 bankai_au hmm … don't see any specialness about it, what happened ? Jun 30 05:50:04 make sure its on the right thread :) Jun 30 05:50:09 nothing, just thinking ... i remember last time i was doing a lot of fast onNext ops the GC went a little nuts Jun 30 05:50:21 bankai_au pre 0.19 ? Jun 30 05:50:25 yeah Jun 30 05:50:30 they did make some optimizations there, maybe try again Jun 30 05:51:17 you could of course easily throttle those :D Jun 30 05:59:23 bankai_au did you look at RecyclerView yet? i didn't follow the whole discussion, but one of the criticisms was that notifyDatasetChanged was kind of a blunt hammer Jun 30 05:59:37 with the regular old listView Jun 30 06:04:03 sigh i refactored a variable named t and now words like don't and can't changed everywhere in the project Jun 30 06:04:37 just noticed when looking at git status Jun 30 06:06:13 rdnt_: did you refactor using find-replace? Jun 30 06:06:29 no, I used shift+f6 Jun 30 06:06:31 So for some reason, android studio tells me it can't find the method putExtra(String,String), but I made sure to import android.content.Intent. Anyone know why? Jun 30 06:08:41 rdnt_: look here: http://stackoverflow.com/a/17362890/1056359 Jun 30 06:09:04 g00s: sup dudermeister? Jun 30 06:10:19 thepoosh: I already unchecked the box to look inside text, and it seems to remember the preference, so not a huge problem Jun 30 06:10:39 idk, I use eclipse and refactoring works perfectly Jun 30 06:11:32 hey thepoosh , not much up. struggling to design a simple UI. getting tired ;) Jun 30 06:11:56 getting ready for i.o 2015 XD Jun 30 06:13:20 when duarte acknowledged in that verge interview the tooling was a a bit rough; i was really hoping they would give us some new stuff in that area this I/O Jun 30 06:14:02 editor / build are fine - was hoping for revamped other stuff, like all the other stuff, hierarchyviewer, monitor, etc Jun 30 06:14:02 g00s: what UI are you working on? Jun 30 06:15:22 hmmm are you changing UI to fit the new guidelines? Jun 30 06:15:46 thepoosh oh no, not worrying about Material for quite some time Jun 30 06:16:23 mostly because it's disgusting Jun 30 06:16:25 in a nutshell, its a typical master/detail. or collection(list) / detail(item). but the user is almost always 'recording' into a detail. so i thought about some of the UIs like the garmin forerunners Jun 30 06:16:52 the only time they would pop up into the collection would be to manage, like delete a bunch Jun 30 06:17:12 so like the forerunner, you start … data gets logged .. and you can start / stop a number of times. Jun 30 06:17:30 but when you reset, that 'set' gets archived off into a list Jun 30 06:17:44 now … in that case they don't let you append data to archived stuff Jun 30 06:17:54 you are almost always in the detail part of the UI Jun 30 06:18:03 ugh, kinda confusing to describe Jun 30 06:18:57 so yeah, its kinda weird in a way :) Jun 30 06:19:03 yep Jun 30 06:19:17 about Material , its gonna be a while until i play with it Jun 30 06:19:27 i don;t like it Jun 30 06:19:42 I think MS already tried it and failed, don't know why Google would do it Jun 30 06:19:45 whatever Jun 30 06:20:36 has anyone here shared their computer resources when idle (there are projects you can support)? Jun 30 06:21:15 rdnt_: how do you mean? Jun 30 06:22:14 anybody worked with Time class? I'm trying to get current time for an arbitrary timezone with no luck Jun 30 06:22:30 i am going to search for an example right now... but like computer networks comprised of idle machines when people arent using them (with permission of course) Jun 30 06:22:31 Time now = new Time(TimeZone.getTimeZone("GMT+04:00").getID()); return UTC Jun 30 06:26:14 CaptainFarrell try this http://stackoverflow.com/questions/11093182/date-formatting-based-on-user-locale-on-android Jun 30 06:26:35 thepoosh actually for mobile, metro got very high grades. its not liked on desktop though Jun 30 06:26:36 you can lend idle time to mine coins Jun 30 06:27:29 rdnt_ why wouldn't i just mine the coins myself :| Jun 30 06:27:45 you get paid to do that Jun 30 06:27:55 i mean they pay you Jun 30 06:28:03 um Jun 30 06:28:04 rdnt_, won't help. I need to get the time for any timezone Jun 30 06:28:08 but there's also research options: http://boinc.berkeley.edu/projects.php Jun 30 06:28:09 not the local one Jun 30 06:28:24 bloody android. every other basic thing is broken Jun 30 06:28:30 how is the time zone defined? Jun 30 06:28:43 GMT... Jun 30 06:29:19 oh yeah that reminds me, i have to fix a daylight saving time bug in my code; man i hate time shit about as much as money handling code Jun 30 06:29:47 in theory, this should work: public static synchronized TimeZone getTimeZone (String id) Jun 30 06:29:53 but it doesn't seem to Jun 30 06:31:43 CaptainFarrell, have you tried http://developer.android.com/reference/java/util/TimeZone.html#getAvailableIDs() Jun 30 06:32:02 I can see that Time class uses TimeZone internally. must an issue with TimeZone Jun 30 06:33:19 do you really need TimeZone objects and not just a time that is GMT +-hours? Jun 30 06:33:52 no, all I need it to get time with a particular offset Jun 30 06:34:14 but then, daylight savings would bite me in the arse Jun 30 06:34:26 CaptainFarrell: why not Calendar objects? Jun 30 06:35:48 dunno. There's Time class which is claimed to be faster and better and it exists since api 3 Jun 30 06:36:15 i reckon the bloody timezone codes depend on the system distribution. write once run anywhere my ass Jun 30 06:36:53 Is there a mechanism to enable email sending when a crash is registered by Google Developer Console in All Applications -> My App -> Crashes & ANRs ? Jun 30 06:43:38 CaptainFarrell, fwiw I usually use the Date class Jun 30 06:45:53 so, how exactly does breakpoint debugging work? If I have hardware, do I need to do anything to it but enable devmode? Jun 30 06:48:50 CaptainFarrell: new SimpleDateFormat("Z").format(new Date()) will give you their GMT relative time zone. Jun 30 06:48:58 hi, could anyone tell me is it possible to get status of bluetooth headset (is it connected or not) without using BluetoothAdapter and getProfileProxy method? Is there any synchrous method? Jun 30 06:49:23 Hi any channel for java discussion? Jun 30 06:49:29 is it #java or #java-dev Jun 30 06:51:55 it's #java Jun 30 06:53:09 ##java actually Jun 30 06:53:26 thepoosh, therue thanks Jun 30 07:09:10 rdnt_, thanks. i'll check this method out Jun 30 07:17:33 good morning guys Jun 30 07:19:30 Anyone else unable to get Eclipse to update to the new ADT bundle? Jun 30 07:24:53 I'm not sure about it. does the new google play permission groups policy apply to all OS version & devices? Jun 30 07:32:00 StrangeBrew: it applies to all users who updated the google play app Jun 30 07:32:14 *google play services an gms in general Jun 30 07:32:39 can a user update my app without updating google play services? Jun 30 07:32:57 i thought play services updates itself automatically Jun 30 07:33:29 yes Jun 30 07:33:32 and no Jun 30 07:33:55 oh..:\ bummer Jun 30 07:33:58 thanks thepoosh Jun 30 07:34:38 updated to new AS, it asks me to import my settings, where are they stored? osx Jun 30 07:36:44 "Devices running Android 2.3 or higher that have the Google Play Store app will automatically receive updates to Google Play services". so only from 2.3 and forth:( Jun 30 07:36:55 hi guys i wrote this code (https://gist.github.com/rezamarandi/3e255c14ecfa548ae3b9) to validate my edittext , but because of long function i should return something instead of stoping code if condition is false ! how can i stop it and just show a message when condition result is false ?! Jun 30 07:37:00 I still support 2.2 Jun 30 07:41:39 Hi, i have a problem Jun 30 07:43:12 I have a service and an Activity connecting to it. I want to set teh state of UI elements according to teh conditions of the service when connecting teh activity. How can i get certain values (i.e. a boolean indicating that the service is doing something)? Jun 30 07:47:11 freiform: http://developer.android.com/guide/components/bound-services.html Jun 30 07:49:00 hi Jun 30 07:50:53 mornin. Jun 30 07:52:12 hi, is there any synchrous method to check the connection status of bluetooth headset? Jun 30 08:01:17 in a Loader (AsyncTaskLoader) instead of return an Object, is it safe to call parent's (activity) methods? Jun 30 08:03:02 it's... a rather terrible practice Jun 30 08:03:16 from the perspective of design and memory leak risk Jun 30 08:04:36 Mavrik: maybe you can tell me a better solution. I have to do a login: if login is ok, return a User object. If it fails, returns Error object Jun 30 08:04:52 didn't I tell you yesterday :P Jun 30 08:05:14 the most simple way is to grab EventBus/Otto and send a message that contains User or Error objects Jun 30 08:05:21 (EventBus will let you cross thread boundaries) Jun 30 08:05:37 then just register on the messagebus from Activity in onResume and deregister in onPause Jun 30 08:05:47 this will solve you all orientation change issues, memory leak issues and bunch of other Jun 30 08:05:57 you can also use RxJava which is even more powerful, but also harder to use Jun 30 08:06:05 oh ok thanks I try Jun 30 08:06:13 this will make your network code (stuff that loads data) decoupled from UI Jun 30 08:06:31 and you'll be able to use it in other places (e.g. other activities and fragments that will have to update UI depending on User data) Jun 30 08:07:07 smasher164: welcome Jun 30 08:07:22 pipecork: yooo Jun 30 08:12:48 smasher164: this is the life Jun 30 08:17:37 so long, friends! nice to talk to you all! Jun 30 08:27:15 thepoosh: Communication seems to work, thanks. Jun 30 08:27:31 cool Jun 30 08:29:37 Well, messaging seems to work at least. I'm trying to call some getters and setters and they don't deliver the correct booleans.. strange. Jun 30 08:34:30 Mavrik: wow, is very easy and works very good Jun 30 08:38:44 Heya. I'm a bit confused about how to design activities with lots of EditText fields. Do you know any example? Jun 30 08:39:07 Is there a mechanism to enable email sending when a crash is registered by Google Developer Console in All Applications -> My App -> Crashes & ANRs ? Jun 30 08:40:30 how not to design a mobile IDE: take up 10% of the screen with subwindow labels, 30% of screen with useless diagnostics, 20% of screen with an advertisement bar, 5% with text telling you to purchase something to remove the advertisement bar, for an app that nominally has 50% of the screen covered by a keyboard... and make sure all that stuff is on the screen; don't care about the area text is being typed in. Jun 30 08:40:41 ACRA? Jun 30 08:41:41 >coding on a phone Jun 30 08:43:39 rymate1234: Who in their right mind would ever want do that? Jun 30 08:43:40 barnslig: android People app? Jun 30 08:43:48 i dunno Jun 30 08:44:02 zinx by the sounds of it Jun 30 08:44:18 Seems a total waste of time from my point of view Jun 30 08:44:59 yup Jun 30 08:45:09 gdrc: i already looked at it, but my problem is that using only hints to indicate the purpose of each field would decrease the usability in my case Jun 30 08:45:34 I see. Jun 30 08:46:01 One moment, i take a screenshot Jun 30 08:46:40 currently it looks like this: http://i.imgur.com/yANo2fX.png Jun 30 08:46:46 obviously ugly Jun 30 08:47:32 CodePulsar: going on vacation, would prefer not to lug my laptop around, can't see any reason i /shouldn't/ write code on my phone. Jun 30 08:48:26 i'll likely just use a simple text editor though, since the IDEs all seem to be ridiculous :/ Jun 30 08:50:41 zinx: Writing code in a simple text editor on a phone, probably its fine, although I hate typing anything on a phone, but going on for an IDE on a phone I don't think is a good plan, or I don't see myself using anything remotely like that Jun 30 08:51:28 CodePulsar: oh, i'm not a fan of typing on phones Jun 30 08:51:54 that makes two of us Jun 30 08:51:58 CodePulsar: but i'm less a fan of carrying around a laptop randomly (or having it stolen when i don't), and tablets are no better for typing Jun 30 08:52:34 and sometimes i just gotta code, y'know? Jun 30 08:53:04 zinx: Do you know AIDE? http://www.android-ide.com Jun 30 08:53:33 zinx: When you have to code you open your laptop and code Jun 30 08:54:11 CodePulsar: didn't bother since it's java-targetted. guess i could use the NDK stuff but meh, i'll just use a text editor Jun 30 08:54:27 CodePulsar: you open your laptop if it hasn't been stolen. Jun 30 08:54:29 zinx: yes they support NDK http://www.android-ide.com/tutorial_androidndk.html Jun 30 08:55:22 zinx: arent people more likely to steal a phone than a laptop Jun 30 08:55:23 (not that anyone should want to steal my laptop, it's pretty ancient; but people who steal things don't know that) Jun 30 08:55:38 rymate1234: yes, but the phone is on my person at all times, the laptop is not. Jun 30 08:55:41 Hi Jun 30 08:55:45 just a small doubt Jun 30 08:56:39 zinx: so where is the laptop when youre not carrying it Jun 30 08:57:54 I have created a project. I know if I need to go on adding new class files I need to right click and add new class files Jun 30 08:57:59 rymate1234: stored safely in the hotel room that everyone and their dog has a key to :P Jun 30 08:58:15 why would everyone have a key to the hotel room Jun 30 08:58:15 But suppose I want my present program should call a page which will have some icons in grid view Jun 30 08:58:38 How can I achieve the icons page without creating a new project alltogether Jun 30 08:59:00 rymate1234: housekeeping, vulnerable keycard locks. Jun 30 08:59:07 I dont know how will I navigate between two different projects Jun 30 08:59:28 well ive never had a laptop stolen from a hotel room Jun 30 08:59:40 but YMMV Jun 30 09:00:57 I think I should do that through layout and them use the activity Jun 30 09:01:00 niru: you just create a new activity Jun 30 09:01:01 Am I going right Jun 30 09:05:11 rotation on android is very annoying Jun 30 09:06:44 why Jun 30 09:15:21 How do you change the actionbar color on Gingerbread using support v7? I changed the android:background but it didn't work on gingerbread Jun 30 09:17:39 Zharf: if you have a Dialog and rotate the screen, the Dialog dies Jun 30 09:18:10 you're doing it wrong Jun 30 09:25:29 hey. how many android devices should i get for testing? Jun 30 09:25:41 all of them Jun 30 09:25:54 at least 10 Jun 30 09:26:12 well they are classified by screen size and density Jun 30 09:26:30 so i can get one device per screen size. would that be neough? Jun 30 09:26:33 enough* Jun 30 09:27:14 small, normal, large, and extra large Jun 30 09:27:37 low, medium, high, and extra high Jun 30 09:27:45 screen size <=> density Jun 30 09:28:36 also grab a low end device Jun 30 09:29:17 rymate1234, low end you mean ldpi? Jun 30 09:29:48 low end as in slow Jun 30 09:29:57 ok Jun 30 09:34:40 It is written here (http://developer.android.com/guide/components/activities.html) that the app gets destroyed when the user presses the back button but I see that some activities show up in running processes even after pressing the back button. Jun 30 09:36:12 rudolf_: activity and process are not the same thing Jun 30 09:38:02 oh...I thought something else. So how do I differentiate between them? Jun 30 09:38:23 rudolf_: what are you trying to do? Jun 30 09:38:51 appel1: I am just trying to understand things. Jun 30 09:40:36 appel1: Every app that I run shows up in running processes. What is the difference between process and app then? I studied that an application consists of many activities working together. Jun 30 09:44:27 Zharf: well, it's a common issue. Jun 30 09:47:17 How do you change the actionbar color on Gingerbread using support v7? I changed the android:background but it didn't work on gingerbread Jun 30 09:48:18 Hi all, I uploaded my first apk on play developer and I got "Your APK is designed for tablets", but I only want to distribute the app for smartphone, where can I set this? Jun 30 09:57:56 FrancescoV, do you have a phone size screenshot? :) Jun 30 09:58:51 Zharf, yes I have, should I put those too for 7-inch and 10-inch too? is it possible to distribute only for phone ? not tablet Jun 30 09:59:23 rudolf_: The API Guide goes through all that http://developer.android.com/guide/index.html Jun 30 09:59:42 Hi guy's ! I am working for make an app for see my IP cam on my android tablet, i have just a problem for "load a jpeg image from Byte[]", i do that : Bitmap image = BitmapFactory.decodeByteArray(imageBytes,0,imageBytes.length); (it will works, but my imageBytes have a length around 40ko or 50Ko, but when i do image.getByteCount() it alway's return 1228800 bytes .. Jun 30 10:00:24 maybe the problem is that bitmap is working "by default" with an encodage, Jun 30 10:00:31 rudolf_: basically an app is an apk that consists of components like activies and services that are executed in one or more processes. Jun 30 10:00:34 And me i want to make it working with jpg Jun 30 10:01:35 cyber37: the jpg need to be decoded if you want to display it. Jun 30 10:02:10 FrancescoV, does it *actually* say "your apk is designed for tablets"? Jun 30 10:02:45 FrancescoV, do you have screen sizes defined in manifest? Jun 30 10:02:50 Zharf, I found this to set only tablet, but need only phone http://developer.android.com/guide/practices/screens-distribution.html#FilteringTabletApps Jun 30 10:03:04 nop, nothing special in manifest Jun 30 10:04:05 How to do it ? Jun 30 10:04:20 Bitmap image = BitmapFactory.decodeByteArray(imageBytes,0,imageBytes.length); --* Jun 30 10:04:25 is not decoding ? Jun 30 10:04:53 I'm not sure there's really a proper way to filtering out tablets Jun 30 10:05:21 Other question about distribution an app. In the developer console my app name is "Ieper Pronostiek", in my project, the android:label of my application is "Pronostiek", which name will be used in Play store? Jun 30 10:05:22 cyber37: what is your problem? Jun 30 10:05:31 Zharf, oké thanks Jun 30 10:07:35 imageBytes.length give me the length of image bytes (real length) (it's a jpeg image) it's around 40Ko or 50Ko, but when do Bitmap image = BitmapFactory.decodeByteArray(imageBytes,0,imageBytes.length); when i want to see the bytescount of the image "image.getByteCount()" I get something like 1228800 everytimes Jun 30 10:07:51 cyber37: yes, you already wrote that. Jun 30 10:08:06 so why ? Jun 30 10:08:17 cyber37: because you decoded the jpg into a bitmap Jun 30 10:08:42 So it make the picture in bitmap format ? Jun 30 10:09:09 And bitmap format = length x heigh x 4 Jun 30 10:10:07 cyber37: depends on bitmap format, but essentially yes Jun 30 10:10:23 Oh ! We can change bitmap format ? Jun 30 10:10:48 Hi all, i dont think this is possible yet, but just in case i missed something... is it possible to create in-app products via an API, so products can be defined in a third party admin console, then created in google play via an API call? Jun 30 10:10:56 can we put it to jpg ? i am working with a video stream, so working with 1228800 bytes than just 40Ko or 50Ko for me it's not good Jun 30 10:11:01 hey guys Jun 30 10:11:09 anyone here worked with xabber source code? Jun 30 10:11:14 it's not compiling Jun 30 10:11:17 for some reason Jun 30 10:11:19 Zharf: do you think this is the possible/working solution for phone distribution ? http://stackoverflow.com/questions/13713547/google-play-distributing-to-phones-only Jun 30 10:11:29 cyber37: no, jpg is not a bitmap format. Jun 30 10:12:48 FrancescoV, possibly Jun 30 10:13:10 The code here is trying to instantiate an abstract class Jun 30 10:13:12 is this possible? Jun 30 10:13:29 public void setTextSize(float size) : Set the default text size to the given value, interpreted as "scaled pixel" units. This size is adjusted based on the current density and user font size preference. Jun 30 10:13:38 What does it mean when i use param '20' ? Jun 30 10:13:50 will it be 20 pixels or 20dp ? Jun 30 10:14:08 pixels Jun 30 10:14:20 if you want dp you have to specify in the xml and getresource Jun 30 10:14:30 but what does 'scaled pixel' mean? Jun 30 10:15:03 appel1 what could be the better choice so for working with a jpeg video stream ? If i decode my aray in a bitmap, it make something big in storage, so did exist something else than Bitmap who could be better in my situation ? Jun 30 10:17:06 cyber37: There's no more suitable video format available to you? If not, then you have to be smart when decoding and displaying each frame ensuring not to have too many frames in memory at the same time. Jun 30 10:21:46 maybe my problem is with the bytes who come in jpg with a bytecount of 40 or 50K, converted to 1,2mo / frames because of the "Bitmap" object Jun 30 10:22:12 it make a time, so stream is bad. Jun 30 10:22:37 in "standard java program" i work with Image instead of Bitmap Jun 30 10:22:40 it's good. Jun 30 10:26:00 When I call notifyDataSetChanged in an Adapter, Will the ListView reuse the cells or will it create new cells ? Jun 30 10:43:53 Hi, how i can do for to have a Global variable? Jun 30 10:44:01 i must create a new Class? Jun 30 10:44:12 with contain a variable? Jun 30 10:58:24 so google thought it is a good idea to just move files around in android-sdk without updating gradle Jun 30 10:58:43 http://img3.wikia.nocookie.net/__cb20130523120947/pokemontowerdefense/images/thumb/8/81/Genius-meme.png/623px-Genius-meme.png Jun 30 10:59:38 lmoa Jun 30 11:01:12 in an android system server code, how can I write file to sdcard? Jun 30 11:01:44 or where should I write file to Jun 30 11:01:50 what is an android system server code? Oo Jun 30 11:02:10 i write some code in frameworks/base/services/java/com/android/server Jun 30 11:03:41 i use standard java io api to write file to sdcard, find it cause permission error Jun 30 11:06:46 no idea about framework stuff Jun 30 11:07:10 hello to everyone Jun 30 11:07:13 i want to ask something Jun 30 11:07:27 the answer is 42 Jun 30 11:07:35 xaxaaxxa Jun 30 11:08:13 i have a listview with custom layouts. Each of them has a view stub on the left and right Jun 30 11:08:28 the listview item layout is relative Jun 30 11:09:09 when i set the stubview to visible it is being overwrittern by the previous view and it doesn't inflate properly Jun 30 11:10:06 i have set the stubview to align parentleft = "true" and the second view to be on the right of this stubview Jun 30 11:14:36 show us the code Jun 30 11:19:08 how can i add a project in my libs directory to gradle? Jun 30 11:19:30 i'm using compile project (":libs:foldername") Jun 30 11:19:37 Search in build.gradle files Jun 30 12:21:07 Did you install the stuff you need with the new sdk? Jun 30 12:22:19 yes Jun 30 12:22:22 everything is up to date Jun 30 12:22:26 checked play services Jun 30 12:22:46 Was this a new -> 0.81 update? Jun 30 12:22:51 yes Jun 30 12:24:22 Restarted AS? Jun 30 12:24:42 yes Jun 30 12:28:41 hi Jun 30 12:29:34 hello. When writing android tests how can I make sure that dont break abstraction while making my test library access necessary methods Jun 30 12:29:40 i'm looking for a way to detect the eap auth method available on the device (like TTLS, SIM, ...), it is possible ? (API 14 will be better but i can manager with newer) Jun 30 12:36:18 Mavrik: I solved the camera issue, it didn't occur to me that setRequestedOrientation() would destroy the activity and recreate it again Jun 30 12:37:45 As I did that before using the camera, I thought I was fine. Removing it and setting "android:screenOrientation="landscape"" in my manifest solved it. Now to fix the rest :> Jun 30 12:39:44 when did google start a $25 registration fee for developers? Jun 30 12:40:04 ultra-: day one, if not before Jun 30 12:40:10 ah, never knew that Jun 30 12:41:03 not day one Jun 30 12:41:19 hi i have an exception RuntimeException Jun 30 12:42:46 Foxandxss: it applied when I registered in 2008... Jun 30 12:43:04 sec phone Jun 30 12:43:15 when i do:http://pastebin.com/7LdVXi4W Jun 30 12:43:23 in mainactivity.java Jun 30 12:43:30 cool, my ExpandableListView *does* now :P Jun 30 12:44:10 spent more time designing the arrow 9-patchs than coding, but meh Jun 30 12:45:32 someone tips me something? Jun 30 12:48:37 with debug this instruction give error:editText1.setText(s,TextView.BufferType.EDITABLE); Jun 30 12:50:17 any reason that a sqlite query on the device would return no results but when I backup the database and run the same query on my desktop it does return results? Jun 30 12:55:35 mmarklar: you can help me? Jun 30 12:57:14 Alfreda: maybe? what do you mean by 'give error' Jun 30 12:57:52 error on debug Jun 30 12:57:56 I have this to get all files from a specific folder in assets: String files[] = assetManager.list("routes"); what do I need to get all files from specific folder in Internal Storage? Jun 30 12:58:23 i put my code: http://pastebin.com/7LdVXi4W in protected void onCreate(Bundle savedInstanceState) { Jun 30 12:58:53 but when execute: editText1.setText(s,TextView.BufferType.EDITABLE); i have eror and my app crash Jun 30 12:58:53 ultra-: Leeds: It was free from beginning but one day google decided to charge an initial $25 to try to avoid silly app uploads. I mean, to avoid people creating fake accounts to upload bullshit Jun 30 12:59:06 Can I just copy sdk folder into the new Android Studio App Bundle ? https://dl.dropboxusercontent.com/spa/gmrijgfzisraod9/vap_2q49.png Jun 30 12:59:08 Alfreda: can you also paste the stack trace that you see in logcat to that pastebin? Jun 30 12:59:24 mmarklar: i paste all my files? Jun 30 12:59:26 (I update from 0.4 to 0.8 so I need to download new .app ) Jun 30 12:59:26 Foxandxss: well, they were charging by December 2008, because that's when I paid - 6 weeks or so after the release of Android 1.0, which is what I meant by "day one" Jun 30 12:59:33 Alfreda: Do you know what logcat is? Jun 30 12:59:41 no. Jun 30 12:59:45 yes Jun 30 12:59:47 yes yes Jun 30 12:59:53 that will give you a stack trace Jun 30 13:00:01 which will tell you why exactly it is crashing Jun 30 13:00:30 Leeds: I see. I read what I said a couple of years ago, so seems like they decided to charge some weeks after releasing it :) Jun 30 13:03:40 mmarklar: http://pastebin.com/BY9YFdVb Jun 30 13:03:45 How do I, as a developer, create something like "freeware download certificate" for my non-freeware app? Meaning, I want to give my app free to certain entities. How? Jun 30 13:04:17 mmarklar: this is MainActivity.java Jun 30 13:04:19 http://pastebin.com/utSG27Zp Jun 30 13:06:16 Alfreda: That is not a stack trace, its just part of the logcat output. You need to find the point where the app is crashing and there should be something in logcat about an exception. That is the part you need Jun 30 13:06:35 look my MainActivity.java Jun 30 13:06:36 if I had to guess it is because the EditText is null, you may have the wrong id or are using a layout you didn't mean to Jun 30 13:06:47 sorry I can't debug it for you Jun 30 13:06:53 its an essential skill to learn though Jun 30 13:07:34 hey guys Jun 30 13:07:48 doesn't notifyDataSetChanged() cause a call to the adapter's getView()? Jun 30 13:08:02 mmarklar: ok Jun 30 13:08:21 hey mmarklar, you're the guy who made the pagedgridview? Jun 30 13:08:36 Sicp: Nope not me Jun 30 13:08:37 mmarklar: http://pastebin.com/MmEXTYFm Jun 30 13:08:40 ok Jun 30 13:08:44 this is fatal error Jun 30 13:08:53 Alfreda: perfect that is what you want Jun 30 13:09:18 so I know that the notifyDataSetChanged() DOES in fact cause a call to the adapter's getView(), I've used it many times after changed the dataset, but right now I'm trying to get a click of an item inside my Drawer to do that Jun 30 13:09:27 but i dont undstand where is my error Jun 30 13:09:28 Alfreda: Can you double check that in your activity_main.xml file you have an EditText with android:id set to @+id/editText1 Jun 30 13:09:42 the dataset is changing and clicking on one of the items produces something different than it would before that call, but getView() is not called Jun 30 13:10:24 no i dont have... i have in fragment_main.xml but i dont have fragment_main.java Jun 30 13:10:43 ah, needs a call to invalidate() Jun 30 13:10:53 is included on MainActivity.java Jun 30 13:11:04 will the "Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE" error ever be fixed? Jun 30 13:11:04 look my file MainActivity.java Jun 30 13:11:21 http://pastebin.com/utSG27Zp Jun 30 13:11:33 Alfreda: That is your issue. When you call findViewById in an activity, it looks for views in the layout you pass to setContentView Jun 30 13:11:40 Jonno_FTW: what do you mean? Jun 30 13:11:51 since its not there, it returns null and you get an exception when you try to use the object Jun 30 13:11:54 this error is pretty strait forward Jun 30 13:12:37 thepoosh: I have plenty of space on my device Jun 30 13:13:00 8.79GB free Jun 30 13:13:03 are you trying to install on the external one? is your SD mounted at the moment? Jun 30 13:13:25 mmarklar: andhow i can do for to call findViewById with edittext1 on fragment_main.xml? Jun 30 13:13:49 I'm not trying to install on the external card Jun 30 13:13:57 the internet has the 8gb free Jun 30 13:14:02 *internal Jun 30 13:14:11 my god, the internet is nearly full! Jun 30 13:14:22 Leeds: LOL Jun 30 13:14:34 Jonno_FTW: is your SD mounted on the computer? Jun 30 13:14:41 yes Jun 30 13:14:47 so it's unavailable Jun 30 13:14:53 therefor you cannot install Jun 30 13:14:58 everybody stop uploading Jun 30 13:15:10 how else am I supposed to install using ADT then? Jun 30 13:15:25 ADT has nothing to do with this Jun 30 13:15:34 never mind Jun 30 13:15:40 adb devices shows your device? Jun 30 13:15:48 yes Jun 30 13:15:49 it exist a method findcontainerById ? Jun 30 13:16:38 Jonno_FTW: yes? Jun 30 13:16:55 adb shows the device Jun 30 13:18:40 Jonno_FTW: you can help me plz? Jun 30 13:18:55 Alfreda: sorry I was talking to someone else Jun 30 13:19:04 Jonno_FTW: after? Jun 30 13:20:58 Hi all. I'm looking to save some persisten data, mainly an ArrayList holding custom classes. When reading up on how to do this, I get the impression that I should be using Internal Storage and/or just deserialize the object holding the ArrayList. Are both different methods, or should I combine them, as in deserialize the object, save that to a file ? Jun 30 13:21:14 It's my first time doing this, just looking for someone to point me in the right direction Jun 30 13:22:27 Alfreda: you've not checked if your String extra exists Jun 30 13:23:28 If you're creating your activity without setting that bundle first (which seems likely if it's a MainActivity), then intent.getStringExtra("stringa") will be null. Jun 30 13:23:41 So when you set that to the edittext, you get a nullpointererror. Jun 30 13:24:02 Estel: pretty sure you can set an edit text to a null string Jun 30 13:25:03 Estel: i have read on google Jun 30 13:25:34 i must insert on public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Jun 30 13:26:02 http://pastebin.com/mPA52FJT Jun 30 13:26:43 but i must use Intent intent=getIntent(); Jun 30 13:26:58 and i have error: Cannot make a static reference to the non-static method getIntent() from the type Activity Jun 30 13:27:01 why? Jun 30 13:27:23 i have a WebView that loads a url. when i click a link it starts up a browser, instead of just following the url. How to avoid this and have it open the link itself? Jun 30 13:27:23 i must take value from intent and settext on edittext is many difficult? Jun 30 13:27:24 because getIntent is not a static function Jun 30 13:27:38 yes and how i can use getIntent? Jun 30 13:27:46 Let me get this video recording flow right: 1) Open camera 2) Lock the camera 3) Set a surface as preview display (in a callback on the holder) 4) Start the preview 5) When starting to record, stop the preview 6) unlock camera 9) Init MediaRecorder 10) Set previously used surface 11) prepare 12) start. Have I missed anything? I seem to get an exception "MediaRecorder: start failed: -19" http://pastebin.com/X51zKqFY Jun 30 13:27:51 Any ideas? Jun 30 13:27:55 Alfreda: where are you calling it? Jun 30 13:28:15 maybe try using an instantiate pattern Jun 30 13:28:19 I tried googling what -19 is but I can only find stuff related to a bug in Google Glass, which I am not using Jun 30 13:28:30 thepoosh: http://pastebin.com/vH2tQhR2 Jun 30 13:29:02 osxorgate: http://stackoverflow.com/a/2379054/1056359 Jun 30 13:29:10 edittext is on fragment_main.xml Jun 30 13:29:29 Alfreda: why is the class static? Jun 30 13:29:58 Does android tablet come with dev tools to test your app on it i mean the samsung 3 tab? Jun 30 13:30:05 yes Jun 30 13:30:14 you need to enable developer options Jun 30 13:30:17 perlsyntax: ^ Jun 30 13:30:26 thepoosh: cheers Jun 30 13:30:33 gl Jun 30 13:30:45 i was just make sure before i get one thanks:D Jun 30 13:30:47 thepoosh: and which is the object? Jun 30 13:30:51 for getIntent? Jun 30 13:31:17 thanks thepoosh Jun 30 13:31:53 galaxyAbstractor, make sure you have a proper recording profile set Jun 30 13:31:57 and orientation Jun 30 13:31:59 and resolution and fps Jun 30 13:32:00 and stuff :) Jun 30 13:32:07 Alfreda: why is the fragment class static? Jun 30 13:32:30 thepoosh: is default Jun 30 13:32:33 i remove static? Jun 30 13:32:38 yes Jun 30 13:32:46 ok i try thanks Jun 30 13:33:39 Mavrik: the thing is that these settings worked just before I got the preview to work properly, that's why I'm confused, but I guess I'll check into the other video settings too then Jun 30 13:35:06 galaxyAbstractor, checked one of my sources, the order I used it in was: Jun 30 13:35:44 new MediaRecorder; camera.unlock(), recorder.setCamera(), configure reconrder, recorder.setOrientationHint, recorder.prepare(), recorder.start Jun 30 13:36:14 if using a TextureView call setPreviewDisplay before calling prepare() Jun 30 13:37:04 Since the camera already got a Surface, do the MediaRecorder have to be set to the same Surface? Jun 30 13:38:35 thepoosh: This fragment inner class should be static (com.example.test.MainActivity.PlaceholderFragment) Jun 30 13:38:52 so take it out of the class Jun 30 13:38:57 and make it a seprate class Jun 30 13:39:03 separate Jun 30 13:39:39 galaxyAbstractor, IIRC if you're using surfaceview then not Jun 30 13:39:45 but it's been awhile since I tried it Jun 30 13:39:47 thepoosh: i dont undstand well Jun 30 13:40:10 you can help me plz? Jun 30 13:40:50 Alfreda: there is no reason for your fragment to be an inner class Jun 30 13:41:01 so i'm using a receiver to try and start a service, but the service doesn't seem to want to run. Is there some sort of restriction on this? Bare in mind, i'm passing a static context stored in the Application class, would this have any effect on the starting of this service? Jun 30 13:41:04 extract it to it's own class file and remove the static Jun 30 13:41:59 guys i added a project to the libraries of my application Jun 30 13:42:07 Mavrik: :D :D it's working, thank you so much Jun 30 13:42:11 while coding i can import methods and classes from the imported proejct Jun 30 13:42:15 however it does not compile Jun 30 13:42:19 skinkitten: you mean all this public class PlaceholderFragment extends Fragment Jun 30 13:42:20 says that it cannot find any classes Jun 30 13:42:24 any ideas? Jun 30 13:43:00 benzap: any reason you don't want to use the context passed to onreceive? Jun 30 13:43:14 thepoosh: you mean all this public class PlaceholderFragment extends Fragment Jun 30 13:43:32 mmarklar: i'm calling an async task Jun 30 13:43:51 I mean... does the receiver run on the UI thread? Jun 30 13:44:13 benzap: afaik no restrictions, I'm running a service from a receiver in the app I'm working on now Jun 30 13:44:39 hmm.. I think I might just calling it directly, instead of calling it as an async task Jun 30 13:45:24 if i put class PlaceholderFragment extends Fragment out of public class MainActivity extends ActionBarActivity i have error: "The public type PlaceholderFragment must be defined in its own file" Jun 30 13:46:43 thepoosh: Jun 30 13:48:15 lein droid doall Jun 30 13:48:40 woops Jun 30 13:49:58 can anyone tell me why the ide lets me import classes from package but the debugger says they don't exist? Jun 30 13:51:11 jvrodrigues: be sure to follow these instructions when you add external jars Jun 30 13:51:12 http://stackoverflow.com/questions/1334802/how-can-i-use-external-jars-in-an-android-project Jun 30 13:51:24 unless that's not your problem Jun 30 13:51:26 it's not an external jar Jun 30 13:51:30 it's an actual project Jun 30 13:51:38 with gardle and whatnot Jun 30 13:51:40 in my MainActivity.java i have http://pastebin.com/c1fLS2Er but i have an error: This fragment inner class should be static (com.example.test.MainActivity.PlaceholderFragment) Jun 30 13:51:45 some tips? Jun 30 13:51:50 i like to modify my libs as i write my app Jun 30 13:53:01 mmarklar: seems I need to use the receiver context when running a service, that was the problem Jun 30 14:03:49 hi, I'm looking at the SipDemo example, and I don't understand where does the "android.SipDemo.INCOMING_CALL" action comes from. http://pastebin.com/skTiwHjA (line 70) Jun 30 14:07:13 meital: have you seen this? http://developer.android.com/guide/topics/connectivity/sip.html Jun 30 14:09:15 FrancescoV: "When the SIP service receives a new call, it sends out an intent with the action string provided by the application. In SipDemo, this action string is android.SipDemo.INCOMING_CALL. " - where is it defined? Jun 30 14:10:56 meital: in my sip app it's in /res/values/strings.xml , I think it's in the demo in the string resources too Jun 30 14:15:03 im never agreeing to develop an android app again for only 10K Jun 30 14:16:36 FrancescoV: it's not there. also the output of `grep -r "INCOMING_CALL" *` shows that it only exists in WalkieTalkieActivity.java, and it's not defined there Jun 30 14:16:58 jaspertheghost, ho ho ho Jun 30 14:17:10 ?? Jun 30 14:17:19 how big of an app for 10k Jun 30 14:18:34 real hours if i get it done by August 1st 400-450 hours Jun 30 14:19:26 meital: I think that the string/action is also somewhere in the manifest, correct? Jun 30 14:20:01 im doing it for an effective rate of 25$ an hour which is absurd Jun 30 14:20:25 FrancescoV: I'm nor sure that I understand, but it seems like it's not there Jun 30 14:20:50 jaspertheghost: you mean your estimate was very wrong? Jun 30 14:21:30 suckered, and $25 is quite good for entry level, which you are Jun 30 14:24:40 i agreed to my boss, to do it for 10k so im getting 10k... he is very very cheap ... im entry level on android side but not in general to programming senior php side ... mid level slightly under mid level in java Jun 30 14:28:39 whats the going rate for android dev in general? Jun 30 14:29:06 what like as a contractor? Jun 30 14:29:32 a non-technical question: I'm from Belgium (Europe for who doesn't know Belgium) and I'm looking for little freelance projects, not huge projects because I have a fulltime job too. Where do you guys find those projects on the web? Jun 30 14:29:38 jaspertheghost: this really wil highly depend on where you are working/living Jun 30 14:29:56 here it's around 800€/day Jun 30 14:30:03 holly shit Jun 30 14:30:12 i live in US, Florida Jun 30 14:30:14 timroes: and where is here/there? Jun 30 14:30:15 for a generel senior developer (also if you make java or so) Jun 30 14:30:19 southern germany Jun 30 14:30:33 working for a professional it contractor Jun 30 14:30:38 FrancescoV: You can check out sites like freelancer, most of them have been saturated with cheap labor from india though. Jun 30 14:30:45 i make 1/4 of that at my current job Jun 30 14:30:50 freelancer are a bit less than that (at around 80€-90€/hour) Jun 30 14:31:00 thats the price the client pays, not what i get :D Jun 30 14:31:01 errr: https://www.elance.com/ not freelancer Jun 30 14:31:17 as a freelancer usually 600-700€ day Jun 30 14:31:34 (but therefore ofc wway higher expenses, here in germany, due to insurances, etc.) Jun 30 14:31:35 then again i am made 50% under the going rate for level ... and im leaving the company in 6 months becuase of it and other things... company will be left without any programmers im the last one with no plans for hiring anymore Jun 30 14:31:37 Jesperhead: found that too but too much reactions (low priced) which isn't possible to get it done Jun 30 14:32:22 FrancescoV: Yeah good luck then I'm afraid. Many of the contracting jobs are going to countries with a cheaper workforce Jun 30 14:33:17 luckily that has already turned around here. companies prefer having professional developers from around here. outsourcing to india is alreaday decreasing here again Jun 30 14:33:51 i hate outsourcing to india no offense to anyone indian Jun 30 14:34:05 oh that's good to hear, do they do bad work? Not terribly educated on their quality Jun 30 14:34:09 i feel the language barrior to be a huge thing to overcome Jun 30 14:34:27 but still somehow android development often goes to agencies here, who say: oh we make you an app for like 50k, what is a price where a professional IT contractor won't compete with Jun 30 14:35:09 Hey, guys, I got the weirdest complaint. Is there a maximum number of methods allowed to be declared in an Android app? Jun 30 14:35:19 ScottishPig: yeap Jun 30 14:35:21 ScottishPig: 42 Jun 30 14:35:24 lol Jun 30 14:35:38 Jesperhead: I feel like that's a little low. Jun 30 14:35:47 i think he was hidding Jun 30 14:35:48 ScottishPig: I'll be in my corner. Ignore me. Jun 30 14:35:55 ScottishPig: that was a joke :) Jun 30 14:35:58 its 65k Jun 30 14:35:58 I know he was kidding. Jun 30 14:36:19 why does the limit exist? Jun 30 14:36:21 32 bit register Jun 30 14:36:22 actually i am curious to know the real answer to this Jun 30 14:36:28 I want to add printing support in my app. What would you use? So far "Google cloud print" seems to be the best option. Jun 30 14:36:29 ah Jun 30 14:36:30 i guess someone stores something in 16 bits :0 Jun 30 14:36:55 but you can work around that, though I would consider beforehand refactoring :) Jun 30 14:37:04 lol Jun 30 14:37:08 For the workaround: https://www.facebook.com/notes/facebook-engineering/under-the-hood-dalvik-patch-for-facebook-for-android/10151345597798920 Jun 30 14:38:30 So, max methods is 2^16? ... is there any documentation on this? I looked before asking here, I promise. Jun 30 14:38:41 hello Jun 30 14:39:14 I mean... I've seen stack overflow and google code submissions... Jun 30 14:40:15 ScottishPig: perhaps its somewhere in here: https://source.android.com/devices/tech/dalvik/dex-format.html Jun 30 14:40:23 or in the code somewhere, but wouldn't know where exactly right now :) Jun 30 14:40:50 timroes: Huge thanks! This is a handy resource. Jun 30 14:40:50 is new andrid L completely 64 bit and it uses new Art packaging format? Jun 30 14:40:55 for power saving with the gps component, after how many time between update do you think it's better to call requestSingleUpdate() in a loop with a sleep instead of requestLocationUpdates() ? Jun 30 14:41:25 ^^ id like to know this answer as well Jun 30 14:41:58 jaspertheghost: afaik you can still build 32bit, and no packaging format stays the same Jun 30 14:42:09 at least from what you as a developer produces, so still .dex files in there Jun 30 14:42:47 https://www.youtube.com/watch?v=EBlTzQsUoOw talk from the IO explaining lot of technical stuff about ART Jun 30 14:42:48 so how does ART play into this? Jun 30 14:43:04 thakns Jun 30 14:43:20 in short (long in video above): it replaced dalvik, so the runtime. you will stilll load an apk, but this will be compiled ahead of time to some more native like code Jun 30 14:43:25 im sitting here at work its 10:30 AM and im to damn tired to do anything i just worked 30 hours over the weekend ughhh Jun 30 14:43:32 instead of fully interpreted at runtime by somethiing like dalvik Jun 30 14:46:13 then go to sleep, and take google i/o video with you :) Jun 30 14:51:03 lol i cant im at work Jun 30 14:51:23 i work 40 hours a week and been doing this droid project on the weekends and nights Jun 30 14:53:02 jaspertheghost, figure 30-50% more than your normal salary for contracting is a normal "going-rate" Jun 30 14:53:28 im doing it for less errr Jun 30 14:53:40 well atleast i got the experience with it Jun 30 14:54:10 I have this issue where it works to fetch an RSS if running debug, but not if signed. Anyone seen this? Jun 30 14:55:21 well, the mistake was giving a flat rate and not estimating the effort correctly :p Jun 30 14:56:54 oh well, learning experience, sounds pretty good either way Jun 30 14:57:12 well i ran the risk of the guy saying no, he doesnt like paying people alot of money ... its so bad that we havent hired any developers to replace the 1 that got fired and 2nd that quit Jun 30 14:57:48 we have needed a new android app for over 2 years ... and i knew 10k was at his comfort level anything more and he would of just not redone the android app Jun 30 14:58:50 but yea def learning expeience ... the 3 years i have worked here have tought me alot about programming, devops and about what kind of companies NOT to work for Jun 30 15:08:01 can anyone help me configure gradle to work with a project dependency? Jun 30 15:08:17 i did everything ok but when i compile the app it can't find packages Jun 30 15:12:56 pastebin gradle script Jun 30 15:25:05 Hey guys...is Octa-core processors phones a Real advantage or marketing myth? Jun 30 15:26:29 Hey folks :) Is it possible to assign users to groups/roles and limit access to apps depending on a users group/role when privately distributing apps using the Play Store private channels (detailed here http://developer.android.com/distribute/tools/open-distribution.html)? Jun 30 15:26:51 ReGiStRaS: big.LITTLE cores might provide a power-saving advantage (which is what all of the 8-core processors are at the moment). Jun 30 15:26:58 I have a situation where I have multiple private apps but I don't want every user subscribed to the private channel to have access to all of those apps Jun 30 15:27:07 I’m not convinced that quad-core processors are a benefit in phones or tablets, though. Jun 30 15:27:12 what is up guys! Jun 30 15:27:19 this is mkgnbgkg Jun 30 15:27:22 lol Jun 30 15:29:12 does anybody know if there is a way to force a library to use sdk build tools 19.1.0 without forking/manually editing the build.gradle file? Jun 30 15:31:52 is it possible to automatically change switch to if - else in android studio? Jun 30 15:36:28 I have a listview item, how can I change the background when the item is clicked / focus? using a drawable for that? set on listView or on the layout for the item? Jun 30 15:38:25 FrancescoV, permanently? Jun 30 15:41:32 darken: I want to have: default: blue, focus: darkblue (both in colors res) Jun 30 15:42:05 use a state drawable Jun 30 15:42:36 http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Jun 30 15:43:14 darken, ok thanks! Jun 30 15:43:16 My app has a settings menu (preferences class), after using the "login" preference, I want to "grey out" and "disable" the login button, and then enable/ungray the "logout button". I have an implementation that technically "works" but it crashes when I log in/out (but the app loads back up with the preference changes completed) Jun 30 15:43:33 i have code incoming Jun 30 15:45:57 preferences.java: http://pastebin.com/MPqpP6Mx Jun 30 15:47:25 and heres my login.java (asynctask) onpostexecute Jun 30 15:47:27 http://pastebin.com/jgkhnFV6 Jun 30 15:47:43 stacktrace still incoming Jun 30 15:48:34 stacktrace: http://pastebin.com/qzw2u3kE Jun 30 15:50:11 well, look at the nullpointerexception Jun 30 15:50:15 look at the line number Jun 30 15:50:23 see why are you calling methods on a null object. Jun 30 15:51:14 public class login extends Activity { Jun 30 15:51:15 public preferences myPref = new preferences(); Jun 30 15:51:31 Mavrik: sorry that was not included. I declared it at the start of the login class Jun 30 15:53:02 additionally, heres my preferences.xml account category: http://pastebin.com/UQ9UNrtw Jun 30 15:55:26 You can't "new SomeActivitySubclass()" Jun 30 15:55:51 (in your case, "new preferences()") Jun 30 15:56:13 *blinks* im exploring new waters here Jun 30 15:56:28 Activity instances can only be created with startActivity Jun 30 15:56:38 oh Jun 30 15:56:39 OH Jun 30 15:57:00 preferences isnt a class i can just play with it extends the activity i see Jun 30 15:57:38 well that puts me in a bind, do you know how I could get my desired result? Do I need to fall back to intents? Jun 30 15:58:06 not sure if i can launch a specific function with an intent Jun 30 15:58:43 what is your desired result Jun 30 15:58:51 My app has a settings menu (preferences class), after using the "login" preference, I want to "grey out" and "disable" the login button, and then enable/ungray the "logout button". I have an implementation that technically "works" but it crashes when I log in/out (but the app loads back up with the preference changes completed) Jun 30 15:59:14 tl;dr, I login, disable the login button. I logout, disable the logout button Jun 30 15:59:31 while doing the opposite to each other Jun 30 15:59:33 that has nothing to do with any additional activities, so i don't get the issue Jun 30 15:59:45 if you saw the code from earlier you would Jun 30 16:00:10 in my login asynctask I called a new Preferences() class and tried to run a function from within it Jun 30 16:00:31 darken: http://pastebin.com/jgkhnFV6 Jun 30 16:00:55 line 25. I called public preferences myPref = new preferences(); at the start of the class Jun 30 16:01:08 I'm not inclined to open thousand pastebins ;), if this is no issue, post your project completely on github and let people see it there, if you expect that you will need help more often in the future on the project it will make it easier :) Jun 30 16:02:05 i have no problem sharing personal projects but this is one for work so i have to pick and choose what i can share. I dont blame you though I hate pastebin Jun 30 16:02:17 i don't get your idea still Jun 30 16:02:26 ok my preferences has both a login/logout button Jun 30 16:02:33 login is just an asynctask Jun 30 16:02:42 where is this happening Jun 30 16:02:46 in a preferencefragment? Jun 30 16:03:10 no frags, im doing the stacked method but will update the whole project after I get a working version Jun 30 16:03:24 sep asynctask as its own class Jun 30 16:03:41 You can't modify the ui of one activity from another. You'll have to use the various lifecycle callbacks if you need stuff to happen based on actions that might have taken place in another activity Jun 30 16:03:41 oh Jun 30 16:04:14 or update the UI for changes in onResume() Jun 30 16:04:17 All of a sudden I dont know why I dont just copy/paste the asynctask into preferences Jun 30 16:04:49 its for logging in so theres really no reason not to Jun 30 16:05:03 other than uglies Jun 30 16:05:08 i also hope you store any password securely Jun 30 16:05:25 i was told sharedprefs is the way to do it Jun 30 16:05:27 what work is that again you are doing :)? Jun 30 16:05:41 a shared preference can easily be read Jun 30 16:05:45 eh nothing too flashy, a free app for our clients Jun 30 16:06:09 lets them view particular bits of data about our services, important updates, push notificates etc Jun 30 16:06:34 darken: then that is something I'm concerned with and wil have to fix Jun 30 16:06:45 Just wondering, exactly why should we not use hardcoded strings for text attributes in layouts? Why use resource strings instead? Jun 30 16:07:01 Onionnion, translations Jun 30 16:08:16 Easy changing of strings throughout the app Jun 30 16:08:18 "or update the UI for changes in onResume()" Jun 30 16:08:22 thats the one Jun 30 16:09:10 SimonVT, darken, thank you very much for your input Jun 30 16:10:22 So more of a better practice thing Jun 30 16:10:36 hmm, should I volunteer to do a talk on I/O and L for a local techie group? Jun 30 16:11:20 Leeds, free snacks? Jun 30 16:11:20 urrrggghhh hold on folks, if I m using asynctasks the preferences activity is never really "paused" Jun 30 16:11:28 Need free snacks Jun 30 16:11:31 darken: yes, actually - and beer! Jun 30 16:11:39 before or after the talk ;) Jun 30 16:11:41 Leeds: why are you asking us? Jun 30 16:11:43 lol Jun 30 16:12:08 because it'll mean going 'outside' and spending time with 'people' Jun 30 16:12:31 wear a sign "just here for beer" Jun 30 16:14:55 at least i dont think my activity is paused. Jun 30 16:16:22 ignore me im tripping. onResume is just the ticket Jun 30 16:24:10 Onionnion it makes it a lot easier to change them. maybe you have hardcoded strings for default values or something all over your app. it is easier to open the one xml file and change the text then sifting through layout xml. also, like darken said, if you ever do multiple languages you have to do that. also, if you use a particular string all over the place you don't want to go change it everywhere if bosses say they want the wording changed Jun 30 16:24:11 or something Jun 30 16:24:13 don't be tripping fool Jun 30 16:24:52 Ah, yeah that does make sense Jun 30 16:25:04 I don't hardcode them, was just wondering (just started android dev a while ago) Jun 30 16:28:25 maybe canadiancow can gently encourage folks at google to put release notes up for gradle-plugin 0.12 and the new support libraries :) Jun 30 16:31:33 he's too busy eating grass Jun 30 16:31:51 hey mikedg :D Jun 30 16:33:41 hey guys, does anybody know what the best way is to fix gradle build tools version on libraries? Jun 30 16:35:42 fack :( Jun 30 16:38:12 I’m testing the L preview but cant android studio does not recognize setTranslationZ as a method on VIew. Any ideas what the problem could be? Jun 30 16:40:00 You're not building against L Jun 30 16:40:25 i did set compileSdkVersion 'android-L' Jun 30 16:40:37 what am I missing then? Jun 30 16:43:15 Maybe you forgot to sync your gradle files Jun 30 16:43:21 Or change it in all modules Jun 30 16:44:48 How can I reuse part of the UI within a fragment including the functionality behind it? Jun 30 16:47:03 Still no luck. It builds and works as intended. Just that Android studio showing setTranslationZ in red saying it doesn’t exist. Jun 30 17:03:10 If I have an existing UI in a fragment and want to reuse part of this UI, how do I best extract the UI elements? Can I simply create a sub-fragment and reference the elements within it from the java code as before? Jun 30 17:03:15 how do I troubleshoot the debugger connection? Do I need to sniff ports on both the the pc and the device? Jun 30 17:03:42 barq: IMO not a good idea, transmitting data between frags is hard enough as it is Jun 30 17:04:00 So duplicate code instead? Jun 30 17:04:34 barq: well, depends. You may be able to recycle xml Jun 30 17:04:55 barq: hat are you trying to do? Jun 30 17:06:04 I basically have a few text inputs in one fragment that I want to use in the same form in another fragment. Jun 30 17:06:25 Both fragments are contained within one activity, but on different "screens" Jun 30 17:06:29 As in not shown at the same time, obviously. Jun 30 17:07:13 barq: you should be ok reusing xml, as long as the stuff you want is in a separate view Jun 30 17:07:47 By reusing xml you mean copy/paste? Or is there a way to reference a block of xml? Jun 30 17:08:30 barq: of course you can reference xml, just make a view and call the inflater in your code Jun 30 17:08:56 just make sure the xml is a separate file Jun 30 17:09:12 Or use Jun 30 17:09:38 barq: I never used include, no idea about that Jun 30 17:11:09 Just create another xml with the layout code and then reference that using include within another xml. That's probably the easiest way to do it. Jun 30 17:12:56 Thanks for your help! Jun 30 17:13:10 barq: Again, the xml implementation here is not generic (note all the urls point to google servers) so not all standard xml stuff will work Jun 30 17:16:55 "Google: OEMs forbidden from customizing Android Auto, Wear and TV" cool by me, but they are walking a fine line here with their oems Jun 30 17:17:20 g00s: probably the actual terms are a bit different Jun 30 17:17:35 maybe similar to Android One? Jun 30 17:17:46 One is customizable, just not for the base OS Jun 30 17:17:51 g00s, they're still letting oems add services Jun 30 17:18:04 OEMs will be able to provide a collection of their own pre-installed apps, custom watch faces and other features that don’t require much deep scrubbing of the Android framework, but they won’t be able to get down and dirty and change the core of it. Jun 30 17:18:05 which means additional integration with phone Jun 30 17:18:10 according to the article Jun 30 17:18:30 g00s: wtf do they mean "customizing"? For certain value of "customizing" they might ban all development Jun 30 17:18:34 long screen= a long screen is wider... how does that make any sense at all? a long screen is...longer Jun 30 17:18:57 jamesson: "customizing" the core framework to the point that it barely passes CTS? :> Jun 30 17:19:09 p_l: sorry, cts? Jun 30 17:19:17 jamesson: Compatibility Test Suite Jun 30 17:19:26 even if they do pass cts, google can still say no :) Jun 30 17:19:27 p_l: never seen that Jun 30 17:19:28 jamesson, its what you have to pass to call yourself android Jun 30 17:19:38 LiENUS: got it Jun 30 17:19:39 jamesson: it's what you have to pass to get license to include GApps Jun 30 17:19:41 and get google play services Jun 30 17:19:54 p_l, i thought it was necescary to get the license just to call the derned thing android Jun 30 17:20:15 ie amazon doesnt call the os on the firephone and kindle android because it doesnt actually pass cts Jun 30 17:20:26 so the part here they are talking about not changing especially is the UI - wonder how that works out when you have some oem "UX" skin that now has to be coherent on other devices not allowing re-skinning :D Jun 30 17:20:46 the original "customization" guide for AOSP I think is still correct even for One, just as long as you customize things that aren't fucking around with core OS unless as part of AOSP Jun 30 17:20:57 how do I troubleshoot the debugger connection? Do I need to sniff ports on both the the pc and the device? Jun 30 17:22:40 470*320 px and mdpi means 470*320dp right? Jun 30 17:36:06 a guy sent me a project with MyStuff and FacebookSDK folders in it. How do I reference the FacebookSDK folder from MyStuff imported project (in Eclipse ADT)? Jun 30 17:44:49 i've been getting bored with mobile stuff lately, but when i see something like this i get encouraged again. http://venturebeat.com/2014/06/26/your-old-smartphone-could-pinpoint-illegal-logging-save-the-rainforests/ Jun 30 17:47:05 In google+ when content is loading, the action bar has an animation directly underneath it (the google colors move around, if you recall) What is that called? I can toggle an animation with setSupportProgressBarIndeterminateVisibility(true) but that animation is only a spinning progressindicator Jun 30 17:47:45 explodes hm, if nobody knows its done in iosched 2014 - should have the sources for that soonish Jun 30 17:49:05 iosched?.. Jun 30 17:52:14 It's just a view in their layout that they toggle visibility of Jun 30 17:54:31 but i do find it amusing … there are no shortage of progress bar indicators (standalone and in the window) … its like, hey guys - do these suck so bad you need to keep reinventing frivolous stuff? just use the shit in the platform :) Jun 30 17:56:23 Yeah, everyone should just stick to standard widgets. Keep Android apps boring, just the way we like it Jun 30 17:57:08 exactly Jun 30 17:59:22 explodes every year Google releases a scheduling app for the IO conference and releases the source code Jun 30 18:00:54 SimonVT not saying new things should be tried. i'm glad they are giving use RecyclerView. i'm glad there are a whole bunch of other nice widgets on github to use. its just that … there is already standard widgets for this, and an outward radiating band is awesome … why exactly, i dunno Jun 30 18:01:02 *shouldn't be tried Jun 30 18:01:25 nice.. Android Studio is now beta! Jun 30 18:01:26 its like those chimps that stick grass in their ear Jun 30 18:04:46 i'm going to call the rainbow progress bar "unicorn orgasm" Jun 30 18:06:47 is there a way to set button size height to 2*wrap_content? Jun 30 18:07:33 With a custom view Jun 30 18:07:50 Sounds like a horrible plan tho Jun 30 18:08:36 how do I remove that underline in an edittext? Jun 30 18:09:16 The background? Jun 30 18:09:24 not really an android question but im currently learning openGL and searching for a tool that helps "planning" vertix transitions Jun 30 18:09:59 does anyone know a good tool where i can create simple vertixes in a coordinate system with some kind of gui, a coordinate system etc? Jun 30 18:10:43 hi everyone, i'm trying to use a FileProvider to share an image from my app's internal storage to an external app. if I give my launching Intent ACTION_SEND, the image successfully attaches to an email in Gmail, but if I give it ACTION_VIEW every image viewer on my phone (Gallery, G+ Photos) launches but does not actually attempt to open the photo. Am I using the wrong ACTION? Jun 30 18:12:06 SimonVT: no not the background. there is a small line udner the text. Jun 30 18:26:27 stroke: you mean the line that looks like this └─────────────┘ Jun 30 18:26:45 or, an underline Jun 30 18:27:19 oh, you actually said underline Jun 30 18:34:56 the smallest normal screens are ridiculously small, the categories are way to wide... Jun 30 18:36:49 stroke: you can also limit by db Jun 30 18:36:52 dp* Jun 30 18:39:39 Can I use values defined in xml in code? Jun 30 18:40:00 stroke, by parsing the xml and storing the value in a variable certainly Jun 30 19:00:26 danijoo: can I, not in Google Play Store right? I thought it only supported small,normal,large..., the old way? Jun 30 19:01:44 hi guys, I m new to android dev Jun 30 19:01:51 so I have a question Jun 30 19:02:23 if I have 3 activities: the first that list products, second: shows a product detail, and a last one to edit it Jun 30 19:02:24 danijoo: also it is only width while my app is more of a problem with length... Jun 30 19:02:54 mh ok Jun 30 19:03:19 how could this product details be passed from activity to activity? right now Im using bundles to pass each product column value separatly as argument of the row Jun 30 19:03:27 is it the right way to do it? Jun 30 19:03:51 or should I pass only product id and retreive the product in detail activity & edit activity? Jun 30 19:04:23 argument of the bundle Jun 30 19:06:21 i would only pass the ID Jun 30 19:09:28 danijoo: so we would have to repeat the query to fetch this individual item in detail & edit page right? Jun 30 19:10:04 h4k1m: If you only need for example the name in activity 1, you should only query for that Jun 30 19:10:10 and in the second query for all Jun 30 19:10:28 but passing it arround via a bundle is fine, too. Jun 30 19:10:34 If it works, it works :) Jun 30 19:10:44 danijoo: that seems correct coming from a web background (passing the id) Jun 30 19:17:03 hey guys i have a question i have two buttons on my action bar, and one has a popup menu that is light, and one that is dark...this would clearly be a themeing/styling issue correct? or is it supposed to be that way via default Jun 30 19:20:12 the theme i am using is Jun 30 19:20:13